Bug #14824 Updated: libmysqlclient.a error at compile time

From: Date: Mon, 04 Feb 2002 09:05:32 +0000
Subject: Bug #14824 Updated: libmysqlclient.a error at compile time
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-79072@lists.php.net to get a copy of this message
ID: 14824 Updated by: dickmeiss@php.net Reported By: istvan.takacs@hungax.com Status: Closed Bug Type: Compile Failure Operating System: Red Hat Linux 7.2, kernel 2.4.7 PHP Version: 4.1.1 New Comment: This bug has been fixed in CVS. Previous Comments: ------------------------------------------------------------------------ [2002-02-02 04:06:16] 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-01-25 11:28:33] sean@grand-central.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-01-18 06:39:03] istvan.takacs@hungax.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-16 10:39:57] seba@iq.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-16 09:52:16] seba@iq.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? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/14824 -- Edit this bug report at http://bugs.php.net/?id=14824&edit=1

« previous php.dev (#79072) next »