php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14824 libmysqlclient.a error at compile time
Submitted: 2002-01-03 07:31 UTC Modified: 2002-02-04 04:05 UTC
Votes:6
Avg. Score:4.5 ± 0.5
Reproduced:6 of 6 (100.0%)
Same Version:2 (33.3%)
Same OS:2 (33.3%)
From: istvan dot takacs at hungax dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.1.1 OS: Red Hat Linux 7.2, kernel 2.4.7
Private report: No CVE-ID: None
 [2002-01-03 07:31 UTC] istvan dot takacs at hungax dot com
#./configure --with-apxs=/usr/local/apache/bin/apxs --with-config-file=/etc/httpd --with-mysql=/usr --with-system-regex --with-xml --with-pgsql --with-zlib --with-gd
 --with-curl --enable-gd-native-ttf --with-mnogosearch --enable-track-vars --with-openssl=/www/openssl

#make
...
libmysqlclient.a errors (duplicate entries in ...)
Sorry, but I don't remember exactly.

We use mysql-2.23.47-1 and php-4.1.1, but I couldn't compile 4.1.0 also.

I tried to copy libtool from 4.0.6 to 4.1.1, and now it works.

Regards,

Istvan

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-16 09:52 UTC] seba at iq dot pl
--with-mnogosearch
http://www.mnogosearch.org/history.html
Probably fixed in "24 Sep 2001: 3.2.0" but this is development 
version of mnogosearch.
What version of mnogosearch do You use?
Compilation pass without --with-mnogosearch?
 [2002-01-16 10:39 UTC] seba at iq dot pl
nope :(

mnogosearch 3.2.3 - errors at compile time:
In file included from 
/usr/local/mnogosearch-3.2.3/include/udmsearch.h:37,
                 from 
/root/php-4.1.1/ext/mnogosearch/php_mnogo.h:31,
                 from internal_functions.c:37:
/usr/local/mnogosearch-3.2.3/include/udm_doc.h:7: parse error 
before `1'
make[2]: *** [internal_functions.lo] Error 1

mnogosearch 3.1.19 - errors at linktool time:
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x4): multiple 
definition of `mysql_port'
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x4): first 
defined here
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x8): multiple 
definition of `mysql_unix_port'
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x8): first 
defined here
/usr/lib/mysql/libmysqlclient.a(libmysql.o): In function 
`net_safe_read':
libmysql.o(.text+0x1cc): multiple definition of `net_safe_read'
[...]
/usr/lib/mysql/libmysqlclient.a(dbug.o): In function 
`_db_pargs_':
dbug.o(.text+0xac8): multiple definition of `_db_pargs_'
/usr/lib/mysql/libmysqlclient.a(dbug.o)(.text+0xac8): first 
defined here
/usr/lib/mysql/libmysqlclient.a(dbug.o): In function 
`_db_lock_file':
dbug.o(.text+0xae0): multiple definition of `_db_lock_file'
/usr/lib/mysql/libmysqlclient.a(dbug.o)(.text+0xae0): first 
defined here
/usr/lib/mysql/libmysqlclient.a(dbug.o): In function 
`_db_unlock_file':
dbug.o(.text+0xaf4): multiple definition of `_db_unlock_file'
/usr/lib/mysql/libmysqlclient.a(dbug.o)(.text+0xaf4): first 
defined here
collect2: ld returned 1 exit status
 [2002-01-18 06:39 UTC] istvan dot takacs at hungax dot com
/usr/lib/mysql/libmysqlclient.a(getvar.o)(.text+0x28c): first defined here
/usr/lib/mysql/libmysqlclient.a(my_lib.o): In function `my_dir':
my_lib.o(.text+0x18): multiple definition of `my_dir'
/usr/lib/mysql/libmysqlclient.a(longlong2str.o)(.text+0x13c): first defined here
/usr/lib/mysql/libmysqlclient.a(llstr.o): In function `llstr':
llstr.o(.text+0x0): multiple definition of `llstr'
/usr/lib/mysql/libmysqlclient.a(llstr.o)(.text+0x0): first defined here
/usr/lib/mysql/libmysqlclient.a(ctype.o)(.data+0x0): multiple definition of `ctype
_latin1'
/usr/lib/mysql/libmysqlclient.a(ctype-big5.o)(.data+0x301): multiple definition of
 `sort_order_big5'
/usr/lib/mysql/libmysqlclient.a(ctype-big5.o)(.data+0x301): first defined here
/usr/lib/mysql/libmysqlclient.a(ctype-big5.o): In function `my_strcoll_big5':
ctype-big5.o(.text+0x51c): multiple definition of `my_strcoll_big5'
/usr/lib/mysql/libmysqlclient.a(ctype-tis620.o)(.text+0x4e4): first defined here
/usr/lib/mysql/libmysqlclient.a(ctype-ujis.o)(.data+0x0): multiple definition of `
ctype_ujis'
/usr/lib/mysql/libmysqlclient.a(ctype-ujis.o)(.data+0x0): first defined here
/usr/lib/mysql/libmysqlclient.a(ctype-ujis.o)(.data+0x101): multiple definition of
 `to_lower_ujis'
/usr/lib/mysql/libmysqlclient.a(dbug.o)(.text+0x9bc): first defined here
/usr/lib/mysql/libmysqlclient.a(dbug.o): In function `_db_pargs_':
dbug.o(.text+0xac8): multiple definition of `_db_pargs_'
/usr/lib/mysql/libmysqlclient.a(dbug.o)(.text+0xac8): first defined here
/usr/lib/mysql/libmysqlclient.a(dbug.o): In function `_db_lock_file':
dbug.o(.text+0xae0): multiple definition of `_db_lock_file'
/usr/lib/mysql/libmysqlclient.a(dbug.o)(.text+0xae0): first defined here
/usr/lib/mysql/libmysqlclient.a(dbug.o): In function `_db_unlock_file':
dbug.o(.text+0xaf4): multiple definition of `_db_unlock_file'
/usr/lib/mysql/libmysqlclient.a(dbug.o)(.text+0xaf4): first defined here
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/usr/src/php-4.1.1'
make: *** [all-recursive] Error 1

:((((

I'm a bit tired of this problem.
It's a completely different machine, but the error is
the same.
So, it would be great if a PHP developer could help to us...

Regards,

Istvan
 [2002-01-25 11:28 UTC] sean at grand-central dot net
Same issues but with RedHat 6.2.

Like the original poster, I also copied libtool from my 4.0.6 installation and it works fine.
 [2002-02-02 04:06 UTC] gluke@php.net
This could happen for example if you compiled mnogosearcg statically with mysql and trying to compile it with php, which is also required mysql. So you are linking mysql twice. 

To fix this - just compile mnogosearch and php with dynamic libs not static.
 [2002-02-04 04:05 UTC] dickmeiss@php.net
This bug has been fixed in CVS.
 [2002-02-07 13:15 UTC] seba at iq dot pl
> This bug has been fixed in CVS.

php4-200202070600
./configure --with-apxs=/usr/local/apache/bin/apxs  
--with-mysql=/usr --with-zlib --enable-memory-limit 
--enable-versioning 
--with-mnogosearch=/usr/local/mnogosearch-3.1.19

Still not working/compiling.

system info:
linux redhat 7.2
apache: 1.3.22 ./configure --with-layout=Apache 
--enable-module=rewrite --enable-module=expires 
--enable-module=headers --enable-shared=rewrite 
--enable-shared=expires --enable-shared=headers
MySQL-devel-3.23.47-1
MySQL-shared-3.23.47-1
MySQL-client-3.23.47-1
MySQL-3.23.47-1
mnogosearch: ./configure --with-mysql=/usr 
--prefix=/usr/local/mnogosearch-3.1.19
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 13:01:30 2024 UTC