RE: PHP 4.0 Bug #6580 Updated: Configure screws up library names. ..

From: Date: Fri, 08 Sep 2000 14:57:01 +0000
Subject: RE: PHP 4.0 Bug #6580 Updated: Configure screws up library names. ..
Groups: php.dev 
Request: Send a blank email to php-dev+get-32682@lists.php.net to get a copy of this message
Yes, it is still happening... I will attach my debug.log - You will notice that -lttf was added this time - Sorry to change variables like that, I added freetype support to my GD lib yesterday (as I am still using php4.0.1pl2) Thanks, Michael ---- CONFIGURE: './configure' '--with-ldap=/usr/local/ldap' '--without-mysql' '--with-apxs=/usr/local/apache/bin/apxs' '--enable-calendar' '--enable-ftp' '--enable-track-vars' '--with-gd=/usr/local' '--with-jpeg-dir=/usr/local' CC: gcc CFLAGS: -g -O2 CPPFLAGS: -D_POSIX_PTHREAD_SEMANTICS CXX: CXXFLAGS: INCLUDES: -I/usr/local/apache/include -I$(top_builddir)/Zend -I$(top_srcdir) -I/usr/local/include/freetype -I/usr/local/include -I/usr/local/ldap/include LDFLAGS: -R/usr/ucblib -L/usr/ucblib -R/usr/local/lib -L/usr/local/lib -R/usr/local/ldap/lib -L/usr/local/ldap/lib LIBS: -lldapssl41 -l -lttf -ljpeg -lpng -lz -lgd -lresolv -lresolv -lm -ldl -lcrypt -lnsl -lsocket -lsocket -L/usr/local/lib -ljpeg DLIBS: SAPI: apache PHP_RPATHS: /usr/ucblib /usr/local/lib /usr/local/ldap/lib uname -a: SunOS entropy 5.6 Generic_105181-20 sun4u sparc SUNW,Ultra-4 gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -R/usr/ucblib -L/usr/ucblib -R/usr/local/lib -L/usr/local/lib -R/usr/local/ldap/lib -L/usr/local/ldap/lib conftest.c -lldapssl41 -l -lttf -ljpeg -lpng -lz -lgd -lresolv -lresolv -lm -ldl -lcrypt -lnsl -lsocket -lsocket -L/usr/local/lib -ljpeg 1>&5 ld: fatal: library -l-lttf: not found ld: fatal: File processing errors. No output written to conftest collect2: ld returned 1 exit status -----Original Message----- From: Bug Database [mailto:php-dev@lists.php.net] Sent: Thursday, September 07, 2000 7:52 PM To: michael.jackson@lightyearcom.com Subject: PHP 4.0 Bug #6580 Updated: Configure screws up library names... ID: 6580 Updated by: sniper Reported By: michael.jackson@lightyearcom.com Status: Feedback Bug Type: *Install and Config Assigned To: Comments: Please verify if this is still happening with latest CVS or snapshot from http://snaps.php.net/ --Jani Previous Comments: --------------------------------------------------------------------------- [2000-09-06 11:14:01] michael.jackson@lightyearcom.com Here is the configure line I am using... ./configure --without-mysql --with-ldap=/usr/local/ldap --with-apxs=/usr/local/apache/bin/apxs --enable-calendar --enable-ftp --enable-track-vars --with-gd=/usr/local --with-jpeg-dir=/usr/local This works PERFECT in php 4.0.1pl2. In php4.0.2, it will do "strange stuff" - Specifically, on a configure, it will give you the "Attention - Something is likely to be messed up here, check debug.log" error - If you check debug.logm on the "gcc -o conftest" line (14th line down_ it spits out "-l -ljpeg" when it's trying to link. (Note the extra -l) Then it blows up with "ld: FATAL: library -l-ljpeg not found" and on a "make," it tries to link with the argument "-l -lpng" (An extra -l get's thrown in again some how) and it blows up on the final link. I am using gcc 2.95.2 under solaris 2.6, with gd 1.8.3, jpeg6b, IPlanet LDAP SDK 4.1, libpng1.0.8, and apache 1.3.12... Hope this is verbose enough! --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=6580

« previous php.dev (#32682) next »