Re: configure error with lone '-l'
| From: | Rohan Amin | Date: | Mon, 04 Mar 2002 01:06:52 +0000 |
| Subject: | Re: configure error with lone '-l' | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-6233@lists.php.net to get a copy of this message | ||
This problem seems to have been fixed in the latest snapshot on
snaps.php.net
"Rohan Amin" <rohana@seas.upenn.edu> wrote in message
news:20020303202946.46034.qmail@pb1.pair.com...
> Hello,
>
> I am trying to compile a standalone version of the php binary on my
system:
>
> Redhat 7.2, linux 2.4.17
> php-4.1.2
>
> Below is the debug.log file that is generated after running a configure.
If
> you notice the LIBS line there is, I think, an extra '-l' that is causing
> the error. Before my configure script had --with-gd before --with-java
and
> the configure error then was "/usr/bin/ld: cannot find -l--library=gd"
>
> I have looked in the configure script and can't seem to find this. Is
this
> indeed the error? This error doesn't appear when compiling the apache
> module. If this is indeed the error, how do I fix this typo?
>
> Thanks for your help.
>
> Regards,
>
> Rohan
>
>
> CONFIGURE: './configure' '--with-prefix=/usr/local/etc/php-4.1.2'
> '--with-config-file-path=/www/conf' '--enable-track-vars'
> '--with-mysql=/usr/local/mysql' '--with-java=/usr/local/java'
> '--enable-sysvsem' '--enable-sysvshm' '--enable-sockets'
> CC: gcc
> CFLAGS: -g -O2
> CPPFLAGS:
> CXX:
> CXXFLAGS:
> INCLUDES: -I$(top_builddir)/Zend -I/usr/local/mysql/include/mysql
>
LDFLAGS: -Wl,-rpath,/usr/local/mysql/lib/mysql -L/usr/local/mysql/lib/my
> sql
>
LIBS: -lmysqlclient -l -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lcry
> pt
> DLIBS:
> SAPI: cgi
> PHP_RPATHS: /usr/local/mysql/lib/mysql
>
> gcc -o
>
conftest -g -O2 -Wl,-rpath,/usr/local/mysql/lib/mysql -L/usr/local/mysql/l
> ib/mysql
>
onftest.c -lmysqlclient -l -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lcrypt
> 1>&5
> /usr/bin/ld: cannot find -l--library=crypt
> collect2: ld returned 1 exit status
>
>
>