From:             [EMAIL PROTECTED]
Operating system: Solaris 2.6
PHP version:      4.0 Latest CVS (13/02/2001)
PHP Bug Type:     *Configuration Issues
Bug description:  configure emerges with bad LIBS '-l-L/usr/local/lib'

With the latest cvs (13/01/2001) and configure line

'./configure' '--with-apache=../apache_1.3.17' '--with-mysql=/opt/mysql'

generates a bad LIBS line:
LIBS=-lmysqlclient -l-L/usr/local/lib -lglib -lresolv -lresolv -lm -ldl -lcrypt -lnsl 
-lsocket  -lsocket -lgcc

Here is debug.log:
CONFIGURE:   './configure' '--with-apache=../apache_1.3.17' '--with-mysql=/opt/mysql'
CC:         gcc
CFLAGS:     -g -O2
INCLUDES:    -I/opt/src/apache/apache_1.3.17/src/include 
-I/opt/src/apache/apache_1.3.17/src/os/unix  -I$(top_builddir)/Ze
nd -I/opt/mysql/include/mysql
LDFLAGS:     -R/usr/ucblib -L/usr/ucblib 
-R/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2 -L/usr/local/lib/gcc-lib/spa
rc-sun-solaris2.6/2.95.2 -R/opt/mysql/lib/mysql -L/opt/mysql/lib/mysql
LIBS:       -lmysqlclient -l-L/usr/local/lib -lglib -lresolv -lresolv -lm -ldl -lcrypt 
-lnsl -lsocket  -lsocket -lgcc
SAPI:       apache
PHP_RPATHS:  /usr/ucblib /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2 
uname -a:   SunOS nature.Berkeley.EDU 5.6 Generic_105181-23 sun4u sparc SUNW,Ultra-4

gcc -o conftest -g -O2  -D_POSIX_PTHREAD_SEMANTICS  -R/usr/ucblib -L/usr/ucblib 
2.6/2.95.2 -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2 -R/opt/mysql/lib/mysql 
-L/opt/mysql/lib/mysql conftest.c -
lmysqlclient -l-L/usr/local/lib -lglib -lresolv -lresolv -lm -ldl -lcrypt -lnsl 
-lsocket  -lsocket -lgcc 1>&5
ld: fatal: library -l-L/usr/local/lib: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status

Edit Bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to