PHP 4.0 Bug #6524: Extra library argument stops make
| From: | stephen at planet-three dot co dot uk | Date: | Mon, 04 Sep 2000 09:26:27 +0000 |
| Subject: | PHP 4.0 Bug #6524: Extra library argument stops make | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-31907@lists.php.net to get a copy of this message | ||
From: stephen@planet-three.co.uk
Operating system: SuSE Linux 6.4
PHP version: 4.0.2
PHP Bug Type: Compile Failure
Bug description: Extra library argument stops make
Configure gives a warning that a basic system test has failed and make fails. It seems as though
there is an extra, unnecessary -l argument, between mysqlclient and curl.
Here's debug log from configure:
CONFIGURE: './configure' '--with-mysql=/usr' '--enable-yp'
'--with-imap' '--with-dbm' '--with-pgsql'
'--with-sybase-ct=/opt/sybase' '--with-curl=/usr/local'
'--with-apxs=/usr/httpd/bin/apxs'
CC: gcc
CFLAGS: -g -O2
CPPFLAGS:
CXX:
CXXFLAGS:
INCLUDES: -I/usr/httpd/include -I$(top_builddir)/Zend -I$(top_srcdir) -I/usr/local/include
-I/usr/include/imap -I/usr/include/mysql
LDFLAGS: -Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-rpath,/usr/local/pgsql/lib
-L/usr/local/pgsql/lib
LIBS: -lpq -lmysqlclient -l -lcurl -lresolv -lm -ldl -lcrypt -lnsl -lresolv
DLIBS: -lc-client
SAPI: apache
PHP_RPATHS: /usr/local/lib /usr/local/pgsql/lib
uname -a: Linux stephen 2.2.14 #1 Sat Mar 25 00:45:35 GMT 2000 i586 unknown
gcc -o conftest -g -O2 -Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-rpath,/usr/local/pgsql/lib
-L/usr/local/pgsql/lib conftest.c -lpq -lmysqlclient -l -lcurl -lresolv -lm -ldl -lcrypt -lnsl
-lresolv 1>&5
/usr/i486-suse-linux/bin/ld: cannot find -l--library=curl
collect2: ld returned 1 exit status