php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9243 configure emerges with bad LIBS '-l-L/usr/local/lib'
Submitted: 2001-02-13 15:01 UTC Modified: 2001-03-05 16:07 UTC
From: casterln at nature dot Berkeley dot EDU Assigned:
Status: Closed Package: *Configuration Issues
PHP Version: 4.0 Latest CVS (13/02/2001) OS: Solaris 2.6
Private report: No CVE-ID: None
 [2001-02-13 15:01 UTC] casterln at nature dot Berkeley dot EDU
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
CPPFLAGS:    -D_POSIX_PTHREAD_SEMANTICS
CXX:        
CXXFLAGS:   
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
DLIBS:      
SAPI:       apache
PHP_RPATHS:  /usr/ucblib /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2 /opt/mysql/lib/mysql
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 -R/usr/local/lib/gcc-lib/sparc-sun-solaris
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



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-13 20:00 UTC] casterln at nature dot Berkeley dot EDU
Had to remove an extra '-l' preceding the backticked
call to glib-config:

--- configure-  Tue Feb 13 12:09:24 2001
+++ configure   Tue Feb 13 16:53:05 2001
@@ -25074,7 +25074,7 @@
  *)
 
    
-  LIBS="-l`$GLIBCONFIG --libs` $LIBS"
+  LIBS="`$GLIBCONFIG --libs` $LIBS"
 
 
   ;;

 [2001-03-04 16:07 UTC] sniper@php.net
Does this happen with the latest CVS now?
And if it does, could you please send me your config.log file ( sniper@php.net )

--Jani

 [2001-03-05 16:07 UTC] derick@php.net
user reported that it does not occur with latest CVS
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Mar 03 23:01:32 2024 UTC