ID: 37756 User updated by: mauricio at pastrana dot co dot uk Reported By: mauricio at pastrana dot co dot uk Status: Bogus Bug Type: Compile Failure Operating System: OS X 10.4.6 PHP Version: 5.1.4 New Comment:
Not sure if this is the proper path for this. But just in case someone lands here looking for answers: This is a MySQL bug and has been only commented in the code. The way to solve it (on my platform) is to install MySQL/PHP/Apache using an old version of MySQL and the libraries that come with it (I used 4.2), then once it's running you can upgrade to mysql 5.022 and it will run latest version. this has been documented here: http://www.macaddict.com/forums/topic/83340 here's the MySQL Bug entry: http://bugs.mysql.com/bug.php?id=19575 cheers, -mp Previous Comments: ------------------------------------------------------------------------ [2006-06-09 06:21:57] [EMAIL PROTECTED] It's a conflict between two libraries (libmysql and libcrypto) that PHP links against. Nothing we can do about that as it's not a problem with PHP. ------------------------------------------------------------------------ [2006-06-08 23:22:30] mauricio at pastrana dot co dot uk Description: ------------ Following the instructions from http://www.phpmac.com/articles.php?view=252 I downloaded and installed apache 2.2.2 and MySQL 5.022(max), however whence you try to ./configure --with-mysql=path php5.1.4 will stall. MySQL runs no problem on its own (from the mysql package installer for OS X), PHP 5.1.4 runs good too (when installed sans --with-mysql=path), I have a phpinfo page up, and Apache 2.2.2 runs EVEN from the system preferences panel, but of course no MySQL support and hence mysql_connect is, of course, dead. this is the complete configure line I used: % ./configure \ % --prefix=/apache2/php \ % --with-zlib \ % --with-xml \ % --with-ldap=/usr \ % --enable-cli \ % --with-zlib-dir=/usr \ % --enable-exif \ % --enable-ftp \ % --enable-mbstring \ % --enable-mbregex \ % --enable-dbx \ % --enable-sockets \ % --with-iodbc=/usr \ % --with-curl=/usr \ % --with-mysql=/usr/local/mysql \ (optional, required MySQL) % --with-apxs2=/apache2/bin/apxs % sudo make Also, there is a macaddict forum discussion on this issue, seems it could be Intel Macs or Xcode 2.3 or a combination of both. Reproduce code: --------------- macbuch:~ mauriciopastrana$ cd php-5.1.4 macbuch:~/php-5.1.4 mauriciopastrana$ ./configure --prefix=/apache2/php --with-zlib --with-xml --with-ldap=/usr --enable-cli --with-zlib-dir=/usr --enable-exif --enable-ftp --enable-mbstring --enable-mbregex --enable-dbx --enable-sockets --with-iodbc=/usr --with-curl=/usr --with-mysql=/usr/local/mysql --with-apxs2=/apache2/bin/apxs (snip) +--------------------------------------------------------------------+ | License: | | This software is subject to the PHP License, available in this | | distribution in the file LICENSE. By continuing this installation | | process, you are bound by the terms of this license agreement. | | If you do not agree with the terms of this license, you must abort | | the installation process at this point. | +--------------------------------------------------------------------+ Thank you for using PHP. macbuch:~/php-5.1.4 mauriciopastrana$ sudo make (snip) /usr/local/mysql/lib/libmysqlclient.a(ssl.o) definition of _TLSv1_server_method in section (__TEXT,__text) /usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libssl.dylib(t1_srvr.o) definition of _TLSv1_server_method /usr/bin/ld: warning multiple definitions of symbol _ERR_print_errors_fp /usr/local/mysql/lib/libmysqlclient.a(ssl.o) definition of _ERR_print_errors_fp in section (__TEXT,__text) /usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libcrypto.dylib(err_prn.o) definition of _ERR_print_errors_fp collect2: ld returned 1 exit status make: *** [libs/libphp5.bundle] Error 1 macbuch:~/php-5.1.4 mauriciopastrana$ Expected result: ---------------- success at make to execute make install. PHP with MySQL support. Actual result: -------------- crash at make: collect2: ld returned 1 exit status make: *** [libs/libphp5.bundle] Error 1 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37756&edit=1