From:
Operating system: Mac OS X 10.6.8
PHP version: 5.4.0alpha1
Package: Compile Failure
Bug Type: Bug
Bug description:Unable to compile with MySQL
Description:
------------
I'm trying to compile PHP 5.4 alpha 1 with MySQL support using the
configuration
commands in "Version 1". It produces the error below. If I use "Version 2"
(that
is, no MySQL), it works.
MySQL is 5.5.13 x86_64.
Test script:
---------------
Version 1
----------
./configure --prefix=/alt --with-apxs2=/alt/apache/bin/apxs
--with-openssl=/alt --with-zlib=/alt --with-curl=/alt --with-gmp=/alt
--with-libxml-dir=/alt --enable-ftp --disable-cgi
--with-mysql=/usr/local/mysql
--with-mysqli=/usr/local/mysql/bin/mysql_config
Version 2
----------
./configure --prefix=/alt --with-apxs2=/alt/apache/bin/apxs
--with-openssl=/alt --with-zlib=/alt --with-curl=/alt --with-gmp=/alt
--with-libxml-dir=/alt --enable-ftp --disable-cgi
Expected result:
----------------
Build complete
Actual result:
--------------
Undefined symbols for architecture x86_64:
"_res_9_init", referenced from:
_zif_dns_get_mx in dns.o
_zif_dns_get_record in dns.o
_zif_dns_check_record in dns.o
"_res_9_search", referenced from:
_zif_dns_get_mx in dns.o
_zif_dns_get_record in dns.o
_zif_dns_check_record in dns.o
"_res_9_dn_skipname", referenced from:
_zif_dns_get_mx in dns.o
_zif_dns_get_record in dns.o
"_res_9_dn_expand", referenced from:
_zif_dns_get_mx in dns.o
_php_parserr in dns.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1
--
Edit bug report at https://bugs.php.net/bug.php?id=55108&edit=1
--
Try a snapshot (PHP 5.2):
https://bugs.php.net/fix.php?id=55108&r=trysnapshot52
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=55108&r=trysnapshot53
Try a snapshot (trunk):
https://bugs.php.net/fix.php?id=55108&r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=55108&r=fixed
Fixed in SVN and need be documented:
https://bugs.php.net/fix.php?id=55108&r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=55108&r=alreadyfixed
Need backtrace:
https://bugs.php.net/fix.php?id=55108&r=needtrace
Need Reproduce Script:
https://bugs.php.net/fix.php?id=55108&r=needscript
Try newer version:
https://bugs.php.net/fix.php?id=55108&r=oldversion
Not developer issue:
https://bugs.php.net/fix.php?id=55108&r=support
Expected behavior:
https://bugs.php.net/fix.php?id=55108&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=55108&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=55108&r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=55108&r=globals
PHP 4 support discontinued:
https://bugs.php.net/fix.php?id=55108&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=55108&r=dst
IIS Stability:
https://bugs.php.net/fix.php?id=55108&r=isapi
Install GNU Sed:
https://bugs.php.net/fix.php?id=55108&r=gnused
Floating point limitations:
https://bugs.php.net/fix.php?id=55108&r=float
No Zend Extensions:
https://bugs.php.net/fix.php?id=55108&r=nozend
MySQL Configuration Error:
https://bugs.php.net/fix.php?id=55108&r=mysqlcfg
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=55108&r=trysnapshot54