Bug #55108 [Opn->Fbk]: Unable to compile with MySQL
| From: | johannes@php.net | Date: | Fri, 01 Jul 2011 20:22:29 +0000 |
| Subject: | Bug #55108 [Opn->Fbk]: Unable to compile with MySQL | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-161475@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55108&edit=1
ID: 55108
Updated by: johannes@php.net
Reported by: s21122012 at yahoo dot com
Summary: Unable to compile with MySQL
-Status: Open
+Status: Feedback
Type: Bug
Package: Compile Failure
Operating System: Mac OS X 10.6.8
PHP Version: 5.4.0alpha1
Block user comment: N
Private report: N
New Comment:
These might be caused by conflicts in the usage of either HAVE_DNS_SEARCH or HAVE_RES_NSEARCH
between MySQL libs and PHP. Did you use MySQL binary packages or did you compile MySQL yourself?
I have no Mac at hand, could you please send me the file main/php_config.h from the failing build? -
Thanks.
(As remark: You could build PHP using mysqlnd instead of libmysql by using --with-mysql=mysqlnd
--with-mysqli=mysqlnd - but your issue should be fixed anyways.)
Previous Comments:
------------------------------------------------------------------------
[2011-07-01 15:04:34] s21122012 at yahoo dot com
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 this bug report at https://bugs.php.net/bug.php?id=55108&edit=1