ID:               37756
 Updated by:       [EMAIL PROTECTED]
 Reported By:      mauricio at pastrana dot co dot uk
-Status:           Open
+Status:           Bogus
 Bug Type:         Compile Failure
 Operating System: OS X 10.4.6
 PHP Version:      5.1.4
 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[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

Reply via email to