#32704 [Opn->Fbk]: libmysqlclient twice?
| From: | tony2001@php.net | Date: | Thu, 14 Apr 2005 16:08:24 +0000 |
| Subject: | #32704 [Opn->Fbk]: libmysqlclient twice? | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-77535@lists.php.net to get a copy of this message | ||
ID: 32704
Updated by: tony2001@php.net
Reported By: red at icuii dot com
-Status: Open
+Status: Feedback
Bug Type: Compile Failure
Operating System: Fedora Core 2
PHP Version: 5.0.4
New Comment:
As you can see, there are a lot of duplicated -lz, -lm and others, so I
doubt that libmysqclient is an exception and can't be used twice.
So, where the error message?
Also, please describe the software used in the build system.
Previous Comments:
------------------------------------------------------------------------
[2005-04-14 17:58:38] red at icuii dot com
Description:
------------
Linking fails because -lmysqlclient appears twice in the Makefile's
EXTRA_LIBS. I can remove one and it builds and runs fine.
Here's my configure command:
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-curl
--with-curlwrappers --enable-exif --enable-ftp --with-gd --with-mysql
--enable-sockets --with-xsl --with-pic --with-mnogosearch=/usr
--with-zlib
Then here's the line from the Makefile:
EXTRA_LIBS = -lcrypt -lexslt -lcrypt -lmysqlclient -lpng -lz -lcurl -lz
-lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lcurl -lssl -lcrypto
-lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lssl
-lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto
-lresolv -ldl -lz -lz -lxml2 -lz -lm -lm -lrt -lz -lmysqlclient
-lmnogosearch -lmnogocharset -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm
-lxslt -lxml2 -lz -lm -lcrypt
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32704&edit=1