Bug #18021 Updated: custom PDFlib not linked when building with a PDFlib in /usr/local/lib

From: Date: Thu, 27 Jun 2002 16:25:16 +0000
Subject: Bug #18021 Updated: custom PDFlib not linked when building with a PDFlib in /usr/local/lib
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-12255@lists.php.net to get a copy of this message
ID: 18021 Updated by: prante@hbz-nrw.de Reported By: prante@hbz-nrw.de -Status: Open +Status: Bogus Bug Type: PDF related Operating System: Solaris 8 PHP Version: 4.2.1 New Comment: OK, it was a very weird configuration issue with Apache/PHP builds. Sorry. Previous Comments: ------------------------------------------------------------------------ [2002-06-27 11:26:13] prante@hbz-nrw.de Same for 4.2.0 ------------------------------------------------------------------------ [2002-06-27 11:06:07] prante@hbz-nrw.de It's not possible to override a system-wide PDFlib in /usr/local/lib by a custom PDFlib. This is a problem arising for PHP builders who don't have the possibility to install system libraries (with root access). I'm builing PHP 4.2.1 on Solaris 8 and tried to link against PDFlib 4.0.3 and no longer the system-wide 4.0.2. Other operating systems may be affected, too. ./configure, make, make install work as usual. But phpinfo() always shows the PDFlib version which is present in /usr/local/lib, no matter how hard I try to configure PHP for PDFlib. LDFLAGS are understood but are inserted in the wrong position. The problem is visible in $BUILD/php-4.2.1/libphp4.la where a "-R /usr/local/lib" precedes the custom PDFlib directory and followed by an obviously wrong resolved "/usr/local/lib/libpdf.la" (it should be "$LOCAL/pdflib/lib/libpdf.la") I looked for /usr/local/lib dependencies in the whole PHP code but didn't find any. I even removed /usr/local/lib from LD_LIBRARY_PATH but it didn't help either. I edited the configure script, no way. I don't know how to get rid of PHP using /usr/local/lib. I guess this is a bug in the new build system. Without "CC=gcc" configure didn't work at all. CC=gcc \ CPPFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I$LOCAL/openssl/include -I$LOCAL/pdflib/include" \ LDFLAGS="-L$LOCAL/openssl/lib -L$LOCAL/pdflib/lib" \ ./configure \ --prefix=$LOCAL/php \ --with-apache=$BUILD_APACHE \ --with-openssl=$LOCAL/openssl \ --with-oci8=$ORACLE_HOME \ --with-oracle=$ORACLE_HOME \ --with-mysql=$LOCAL/mysql \ --with-zlib \ --with-zlib-dir=$LOCAL/zlib \ --with-ftp \ --enable-ftp \ --with-ttf \ --with-gd \ --enable-gd-imgstrttf \ --enable-gd-native-ttf \ --with-gettext \ --with-magic-quotes \ --with-pdflib=$LOCAL/pdflib \ <--- this doesn't work! --with-png-dir=$LOCAL/libpng \ --with-jpeg-dir=$LOCAL/libjpeg \ --with-tiff-dir=$LOCAL/libtiff \ --enable-versioning \ --enable-memory-limit \ --enable-track-vars \ --enable-url-includes \ --enable-sysvshm \ --enable-sysvsem ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18021&edit=1

« previous php.bugs (#12255) next »