From:             mauricio at pastrana dot co dot uk
Operating system: OS X 10.4.6
PHP version:      5.1.4
PHP Bug Type:     Compile Failure
Bug description:  make w/mysql fails (libphp5.bundle problem), possible Intel 
Mac/Xcode 2.3 error

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 bug report at http://bugs.php.net/?id=37756&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=37756&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=37756&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=37756&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=37756&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=37756&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=37756&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=37756&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=37756&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=37756&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=37756&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=37756&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=37756&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=37756&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=37756&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=37756&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=37756&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=37756&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=37756&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=37756&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=37756&r=mysqlcfg

Reply via email to