#24261 [NEW]: --with-cpdflib=/path forgets paths leading to compile failure.

From: Date: Thu, 19 Jun 2003 19:11:19 +0000
Subject: #24261 [NEW]: --with-cpdflib=/path forgets paths leading to compile failure.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-42251@lists.php.net to get a copy of this message
From: pj at dc dot luth dot se Operating system: Solaris 8 PHP version: 4.3.2 PHP Bug Type: Compile Failure Bug description: --with-cpdflib=/path forgets paths leading to compile failure. Description: ------------ When libtiff and libjpeg are in different directories compared to clibpdf and a path is given to all three configure fails to find clibpdf although it exists. (It only searches in the libtiff for some reason, it seems to mangle the paths that are given). This fixes it for me, however it seems like it is a gross hack. A guess is that CPDF_TIFF_TEST mangles the path. --- ext/cpdf/config.m4.orig Thu Jun 19 09:57:51 2003 +++ ext/cpdf/config.m4 Thu Jun 19 21:00:00 2003 @@ -63,10 +63,12 @@ if test "$withval" = "no"; then AC_MSG_RESULT(no) else + old_withval=$withval AC_MSG_RESULT(yes) PHP_NEW_EXTENSION(cpdf, cpdf.c) CPDF_JPEG_TEST CPDF_TIFF_TEST + withval=$old_withval for i in $withval /usr /usr/local; do if test -f "$i/include/cpdflib.h"; then CPDFLIB_INCLUDE=$i/include Reproduce code: --------------- Fill in the variables with paths. ./configure --prefix=%{_prefix} \ --enable-ftp \ --enable-versioning \ --with-config-file-path=/env/%{module} \ --with-apxs=$APACHE/bin/apxs \ --enable-pear \ --disable-short-tags \ --enable-bcmath \ --enable-memory-limit \ --with-db3=$DB3 \ --with-ldap=$OPENLDAP \ --with-mhash=$MHASH \ --enable-track-vars \ --enable-trans-sid \ --enable-calendar \ --with-unixODBC=$UNIXODBC \ --with-mysql=$MYSQL \ --with-imap=$IMAP \ --with-imap-ssl=$OPENSSL \ --with-gd=$GD \ --with-jpeg-dir=$LIBJPEG \ --with-png-dir=$LIBPNG \ --with-zlib=$ZLIB \ --with-gettext=$GETTEXT \ --with-tiff-dir=$LIBTIFF \ --with-cpdflib=$CLIBPDF \ --with-xpm-dir=$XPM \ --with-readline=$READLINE \ --with-openssl=$OPENSSL \ --with-bz2=$BZIP2 \ --with-gmp=$GMP \ --with-freetype-dir=$FREETYPE \ --with-gdbm=$GDBM Expected result: ---------------- Configure complete and ready to make. Actual result: -------------- configure fails to find clibpdf. -- Edit bug report at http://bugs.php.net/?id=24261&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24261&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24261&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24261&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24261&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24261&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24261&r=support Expected behavior: http://bugs.php.net/fix.php?id=24261&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24261&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24261&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24261&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24261&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24261&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24261&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24261&r=gnused

« previous php.bugs (#42251) next »