#29860 [Fbk->NoF]: Cannot compile with mysql and mysqli extensions

From: Date: Wed, 13 Oct 2004 23:00:06 +0000
Subject: #29860 [Fbk->NoF]: Cannot compile with mysql and mysqli extensions
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-67557@lists.php.net to get a copy of this message
ID: 29860 Updated by: php-bugs@lists.php.net Reported By: rjanson at msn dot com -Status: Feedback +Status: No Feedback Bug Type: Compile Failure Operating System: Redhat 9 PHP Version: 5.0.1 New Comment: No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". Previous Comments: ------------------------------------------------------------------------ [2004-10-07 12:52:08] stormchaser1 at gmail dot com forgot to mention it's the MySQL 5.0.1-alpha installed from rpms from mysql.com ------------------------------------------------------------------------ [2004-10-07 12:48:24] stormchaser1 at gmail dot com Saame problem... cvs HEAD (php 5.1) from yesterday... ------------------------------------------------------------------------ [2004-10-06 13:28:40] php at kilimajer dot net The errror occurs with these rpms installed: MySQL-server-4.1.5-0 MySQL-client-4.1.5-0 MySQL-bench-4.1.5-0 MySQL-shared-4.1.5-0 MySQL-embedded-4.1.5-0 MySQL-devel-4.1.5-0 They are downloaded from mysql.com ------------------------------------------------------------------------ [2004-10-06 08:52:32] derick@php.net That doesn't make sense unless you only have a static version of the libmysqlclient... in which case I still think that the linker handles that correctly. Can you please try to use a shared library version of libmysqlclient though? ------------------------------------------------------------------------ [2004-10-05 23:33:44] rjanson at msn dot com OK, finally an answer! I checked Makefile and found the following line: EXTRA_LIBS = -lcrypt -lcrypt -lmysqlclient -lpng -lz -lz -lresolv -lm -ldl -lnsl -lxml2 - lz -lm -lxml2 -lz -lm -lmysqlclient -lcrypt -lnsl -lm -lz -lnss_files -lnss_dns -lresolv -lnss_files -lnss_dns -lresolv -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lcrypt By removing one of the -lmysqlclient entries on this line I was able to successfully make and make install with both mysql and mysqli. As confirmed by phpInfo(). I'm not sure why the other libs have multiple entries and don't cause make to crash. ------------------------------------------------------------------------ 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/29860 -- Edit this bug report at http://bugs.php.net/?id=29860&edit=1

« previous php.bugs (#67557) next »