ID:               32704
 User updated by:  red at icuii dot com
 Reported By:      red at icuii dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         Compile Failure
 Operating System: Fedora Core 2
 PHP Version:      5.0.4
 New Comment:

Right, I don't know why the duplication of -lmysqlclient causes
problems.

But I get about 80 pages of this:

/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x0): multiple
definition of `net_buffer_length'
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x0): first defined
here
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x4): multiple
definition of `max_allowed_packet'
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x4): first defined
here
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x8): multiple
definition of `net_read_timeout'
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x8): first defined
here
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0xc): multiple
definition of `net_write_timeout'
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0xc): first defined
here

Nothing weird in my build tools, they should all be the standard stuff
that comes with FC2.
gcc 3.3.3 20040412
GNU Make 3.80

The only thing not stock involved is MySQL 4.1.11 installed from RPMs
on the mysql website.


Previous Comments:
------------------------------------------------------------------------

[2005-04-14 18:08:23] [EMAIL PROTECTED]

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.

------------------------------------------------------------------------

[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

Reply via email to