#29775 [Opn->Bgs]: can't compile with both --with-mysql and --with-mysqli
| From: | derick@php.net | Date: | Sat, 21 Aug 2004 10:11:50 +0000 |
| Subject: | #29775 [Opn->Bgs]: can't compile with both --with-mysql and --with-mysqli | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-65024@lists.php.net to get a copy of this message | ||
ID: 29775
Updated by: derick@php.net
Reported By: rjblickbogus at hotmail dot com
-Status: Open
+Status: Bogus
Bug Type: Compile Failure
Operating System: Redhat 9
PHP Version: 5.0.1
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
You're most likely mixing two different mysql client librarues.
Previous Comments:
------------------------------------------------------------------------
[2004-08-20 23:15:55] rjblickbogus at hotmail dot com
Description:
------------
./configure --with-apxs2=/usr/local/apache2/bin/apxs
--with-mysql=/usr/include/mysql/ --disable-cgi WORKS FINE.
./configure --with-apxs2=/usr/local/apache2/bin/apxs
--with-mysqli=/usr/bin/mysql_config --disable-cgi WORKS FINE.
But, combining --with-mysql and --with-mysqli:
./configure --with-apxs2=/usr/local/apache2/bin/apxs
--with-mysql=/usr/include/mysql/ --with-mysqli=/usr/bin/mysql_config
--disable-cgi
fails during make with a laundry list of errors of the form:
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x320): In function
`net_write_command':
: multiple definition of `net_write_command'
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x320): first defined
here
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x9c0): In function
`my_net_read':
: multiple definition of `my_net_read'
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x9c0): first defined
here
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1
MySQL 4.1.3-beta is in use.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29775&edit=1