php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4739 build script fails to link "nss_dns" library
Submitted: 2000-05-31 22:14 UTC Modified: 2000-08-20 01:58 UTC
From: myk at zapogee dot com Assigned:
Status: Closed Package: Installation problem
PHP Version: 4.0.0 Release OS: RedHat 6.0 Linux 2.2.5
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: myk at zapogee dot com
New email:
PHP Version: OS:

 

 [2000-05-31 22:14 UTC] myk at zapogee dot com
When compiling PHP as a static module with Apache 1.3.12, Apache compilation fails with the following errors:

modules/php4/libphp4.a(dns.o): In function `php_if_checkdnsrr':
/usr/local/src/php-4.0.0/ext/standard/dns.c:204: undefined reference to `res_search'
modules/php4/libphp4.a(dns.o): In function `php_if_getmxrr':
/usr/local/src/php-4.0.0/ext/standard/dns.c:273: undefined reference to `res_search'
/usr/local/src/php-4.0.0/ext/standard/dns.c:282: undefined reference to `__dn_skipname'
/usr/local/src/php-4.0.0/ext/standard/dns.c:288: undefined reference to `__dn_skipname'
/usr/local/src/php-4.0.0/ext/standard/dns.c:300: undefined reference to `dn_expand'

When compiling PHP as a dynamic module with Apache 1.3.12 I get similar errors.  I solved the problem by prepending 'EXTRA_LIBS="-lnss_dns"' to "./configure" when configuring Apache to load PHP as a static module:

EXTRA_LIBS="-lnss_dns" ./configure ...

I solved the problem when compiling PHP as a dynamic module by doing the same thing when configuring PHP itself instead of Apache, although my guess is that either one works either way, it's just that one of the two has to be configured so it links in that library.

Sorry I'm not sophisticated enough to figure out how to actually fix the PHP build scripts, but hopefully this gives you the information you need to do it.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-08 22:32 UTC] waldschrott@php.net
Please verify that it?s still happening using the latest version of PHP (release 4.0.1pl2 or CVS).
 [2000-08-20 01:58 UTC] sniper@php.net
No feedback from user.

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC