Re: PHP 4.0 Bug #9243 Updated: configure emerges with bad LIBS '-l-L/usr/local/lib'
| From: | Gary Casterline | Date: | Mon, 05 Mar 2001 21:07:22 +0000 |
| Subject: | Re: PHP 4.0 Bug #9243 Updated: configure emerges with bad LIBS '-l-L/usr/local/lib' | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-47990@lists.php.net to get a copy of this message | ||
Problem solved in latest CVS.
genfiles; buildconf ; configure ; make ; make install
allswell.
Thanks,
_Gary
On Sun, Mar 04, 2001 at 09:07:07PM -0000, Bug Database wrote:
> ID: 9243
> Updated by: sniper
> Reported By: casterln@nature.Berkeley.EDU
> Old-Status: Open
> Status: Feedback
> Bug Type: *Configuration Issues
> Assigned To:
> Comments:
>
> 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
>
>
> Previous Comments:
> ---------------------------------------------------------------------------
>
> [2001-02-13 20:00:17] casterln@nature.Berkeley.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-02-13 15:01:12] casterln@nature.Berkeley.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
>
>
>
>
> ---------------------------------------------------------------------------
>
>
>
> ATTENTION! Do NOT reply to this email!
> To reply, use the web interface found at
> http://bugs.php.net/?id=9243&edit=2