#29860 [Opn]: Cannot compile with mysql and mysqli extensions

From: Date: Tue, 05 Oct 2004 21:33:53 +0000
Subject: #29860 [Opn]: Cannot compile with mysql and mysqli extensions
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-67157@lists.php.net to get a copy of this message
ID: 29860 User updated by: rjanson at msn dot com Reported By: rjanson at msn dot com Status: Open Bug Type: Compile Failure Operating System: Redhat 9 PHP Version: 5.0.1 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2004-10-05 22:52:00] php at kilimajer dot net Workaround is to execute the last failing command with one -lmysqlclient removed, then again make. This should be fixed in ext/mysqli/config.m4. ------------------------------------------------------------------------ [2004-10-05 13:50:38] php at kilimajer dot net This is caused by -lmysqlclient being supplied twice to the linker (at least it was my case). ------------------------------------------------------------------------ [2004-09-24 19:59:01] rjanson at msn dot com I've tried the same steps with php-5.02 and still the same results. ------------------------------------------------------------------------ [2004-09-21 01:12:32] rjanson at msn dot com I tried backing up and completely uninstalling, then reinstalling Mysql-4.1.4-0 from RPM, and still get the same result. Others out there are having this issue as well. Is there nothing to be done? --Rich ------------------------------------------------------------------------ [2004-09-13 20:44:01] rjanson at msn dot com I installed mysql via the RPMs provided on the MySQL site. I unsinstalled the MySQL-shared-compat-4.1.4-0 rpm and tried building agin with the same result. These are the RPMs I have installed currently: MySQL-devel-4.1.4-0 MySQL-client-4.1.4-0 MySQL-Max-4.1.4-0 MySQL-bench-4.1.3-1 MySQL-server-4.1.4-0 MySQL-shared-4.1.4-0 Is it possible something with the RPMs is causing the failure? ------------------------------------------------------------------------ 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 (#67157) next »