php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29775 can't compile with both --with-mysql and --with-mysqli
Submitted: 2004-08-20 23:15 UTC Modified: 2004-08-23 14:47 UTC
From: rjblickbogus at hotmail dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.0.1 OS: Redhat 9
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: rjblickbogus at hotmail dot com
New email:
PHP Version: OS:

 

 [2004-08-20 23:15 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-21 12:11 UTC] derick@php.net
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.
 [2004-08-23 14:47 UTC] rjblickbogus at hotmail dot com
I don't know about the libraries (both were form 4.1.3beta)... but a better solution is to screw mysqli and just use the adodb library.  Does everything that mysqli can do, but doesn't require --with-mysqli.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Apr 28 21:01:30 2025 UTC