PHP 5.1.6 on Mac OSX 10.4.8 w/MySQL 5.0.27 support

From: Date: Thu, 02 Nov 2006 04:53:46 +0000
Subject: PHP 5.1.6 on Mac OSX 10.4.8 w/MySQL 5.0.27 support
Groups: php.general 
Request: Send a blank email to php-general+get-244079@lists.php.net to get a copy of this message
Any ideas on how to get this PHP configure / compile to work? Apache 2.2.3 is installed and working from source. MySQL 5.0.27 is installed and working from the Mac OSX package available on the MySQL site. PHP 5.1.6 will configure and make if I don't worry about MySQL support. The configure fails if I try to add MySQL support. Here's the first configure attempt: ./configure \ --with-axps2=/usr/local/apache2/bin/axps \ --with-mysql=/usr/local/mysql This will error out saying the zlib library is missing, so I add the zlib parameter: ./configure \ --with-axps2=/usr/local/apache2/bin/axps \ --with-mysql=/usr/local/mysql \ --with-zlib=/usr This configure fails with the config.log output at the end of this email. I have the Mac fully updated and the Developer package is installed. I Googled for answers, found a few examples of others who've had success and tried to use the same configure as them, but I end up with the same error. Well, I found some stuff on entropy.ch that I didn't try, mainly because they were using Apache 1.3 and I'm using Apache 2.2.3. Thanks in advance for any ideas you have. -Ed configure:58552: gcc -o conftest -I/usr/include -g -O2 -no-cpp-precomp -L/usr/local/mysql/lib -L/usr/local/mysql/lib -liconv -L/usr/lib conftest.c -lmysqlclient -liconv -lz -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm 1>&5 ld: Undefined symbols: _fprintf$LDBLStub _sprintf$LDBLStub _printf$LDBLStub configure: failed program was: #line 58541 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mysql_close(); int main() { mysql_close() ; return 0; } configure:58773: checking for mysql_error in -lmysqlclient configure:58792: gcc -o conftest -I/usr/include -g -O2 -no-cpp-precomp -L/usr/local/mysql/lib -L/usr/local/mysql/lib -liconv -L/usr/lib -L/usr -L/usr conftest.c -lmysqlclient -lz -liconv -lz -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm 1>&5 ld: Undefined symbols: _fprintf$LDBLStub _sprintf$LDBLStub _printf$LDBLStub configure: failed program was: #line 58781 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mysql_error(); int main() { mysql_error() ; return 0; }

« previous php.general (#244079) next »