php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37756 make w/mysql fails (libphp5.bundle problem), possible Intel Mac/Xcode 2.3 error
Submitted: 2006-06-08 23:22 UTC Modified: 2006-06-15 23:29 UTC
From: mauricio at pastrana dot co dot uk Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.1.4 OS: OS X 10.4.6
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mauricio at pastrana dot co dot uk
New email:
PHP Version: OS:

 

 [2006-06-08 23:22 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-09 06:21 UTC] derick@php.net
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-15 23:29 UTC] mauricio at pastrana dot co dot uk
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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 23 20:01:29 2024 UTC