|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49332 Make fails with "Undefined symbols: _res_9_dn_expand, _res_9_search and _res_9"
Submitted: 2009-08-23 03:31 UTC Modified: 2009-10-16 16:10 UTC
Avg. Score:4.9 ± 0.3
Reproduced:15 of 15 (100.0%)
Same Version:13 (86.7%)
Same OS:15 (100.0%)
From: vizh at me dot com Assigned: scottmac (profile)
Status: Closed Package: Compile Failure
PHP Version: 5.2.10 OS: Mac OS X 10.6 (10A432)
Private report: No CVE-ID: None
 [2009-08-23 03:31 UTC] vizh at me dot com
I've download, runs 
./configure; make and make fails with undefined symbols: 
_res_9_dn_expand, _res_9_search and _res_9_dn_skipname

Reproduce code:
cd /tmp
curl "" > php.tar.gz
tar -xf php.tar.gz; rm -rf php.tar.gz; mv php* php-build; cd php-build
./configure --disable-all

Actual result:
Undefined symbols:
  "_res_9_search", referenced from:
      _zif_dns_get_mx in dns.o
      _zif_dns_check_record in dns.o
  "_res_9_dn_expand", referenced from:
      _zif_dns_get_mx in dns.o
  "_res_9_dn_skipname", referenced from:
      _zif_dns_get_mx in dns.o
      _zif_dns_get_mx in dns.o


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-08-23 11:31 UTC]
This is fixed in 5.3.1-dev, I'll look into backporting changes to the 5.3 branch.
 [2009-08-24 14:43 UTC]
I would guess Scott meant "PHP_5_2" branch.. :)
 [2009-08-26 00:51 UTC] djem dot v3 at gmail dot com
Since php 5.3 has been preinstalled in Snow Leopard, it is very 
important to have php 5.2 in system.
 [2009-09-07 05:18 UTC] tmallen at 703designs dot com
Here's a temporary fix:
 [2009-09-26 22:56 UTC]
Another temp fix: Add -lresolv to EXTRA_LIBS in the generated MakeFile. 
See also:
 [2009-10-16 16:09 UTC]
Automatic comment from SVN on behalf of scottmac
Log: Fix bug #49332 - Unable to compile with Snow Leopard due to some DNS funsies
 [2009-10-16 16:10 UTC]
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

 [2012-12-22 02:01 UTC] g dot fischer at ah-online dot com
just ran into this issue with 5.3.20, 5.5.0a2 and trunk. seems not fixed.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 20 16:01:35 2024 UTC