php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32465 Compile fails on undefined symbol "res_nmkquery"
Submitted: 2005-03-27 03:35 UTC Modified: 2005-03-29 06:54 UTC
From: bkoenig at cs dot tu-berlin dot de Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.0.3 OS: FreeBSD 5.3-RELEASE
Private report: No CVE-ID: None
 [2005-03-27 03:35 UTC] bkoenig at cs dot tu-berlin dot de
Description:
------------
Isn't it just wrong that the configure script of PHP detects

checking for res_nmkquery in -lbind... no
checking for __res_nmkquery in -lbind... yes

but PHP uses res_nmkquery nevertheless?

This affects res_ninit, res_nmkquery, res_nsend and res_nclose  in ext/standard/dns.c and the compilation will fail definitely.

Regards Bj?rn



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-29 00:42 UTC] sniper@php.net
As you're obviously just assuming, bogus. (I don't see any errors here..) And it's perfectly okay to check for the funcs like that: They're aliased in a header file.

 [2005-03-29 06:54 UTC] bkoenig at cs dot tu-berlin dot de
Yes, of course they are aliases in the header file.

Is there a way to exactly tell where the necessary header files are located or a switch to avoid using these functions without removing libbind? This would solve the problem in my case without using ugly workarounds.

Regards Bj?rn
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Aug 16 22:00:02 2025 UTC