php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #628 undef reference in dns.c
Submitted: 1998-08-07 08:08 UTC Modified: 1998-08-13 15:07 UTC
From: tobi at usa dot net Assigned:
Status: Closed Package: Compile Failure
PHP Version: 3.0.2a OS: Linux Alpha (RedHat 4.2)
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: tobi at usa dot net
New email:
PHP Version: OS:

 

 [1998-08-07 08:08 UTC] tobi at usa dot net
This is what I get when compiling Apache-1.3.1 with PHP-3.0.2a:

gcc  -DLINUX=2 -DUSE_HSREGEX -DSERVER_SUBVERSION=\"PHP/3.0.2a\" ./apaci    \
      -o httpd buildmark.o modules.o modules/standard/libstandard.a modules/php
modules/php3/libphp3.a(dns.o): In function Php3_checkdnsrr':
/usr/local/src/php-3.0.2a/functions/dns.c:212: undefined reference to __res_sea
/usr/local/src/php-3.0.2a/functions/dns.c:212: undefined reference to __res_sea
/usr/local/src/php-3.0.2a/functions/dns.c:279: undefined reference to __res_sea
/usr/local/src/php-3.0.2a/functions/dns.c:279: undefined reference to __res_sea
/usr/local/src/php-3.0.2a/functions/dns.c:288: undefined reference to __dn_skip
/usr/local/src/php-3.0.2a/functions/dns.c:288: undefined reference to __dn_skip
/usr/local/src/php-3.0.2a/functions/dns.c:294: undefined reference to __dn_skip
/usr/local/src/php-3.0.2a/functions/dns.c:294: undefined reference to __dn_skip
/usr/local/src/php-3.0.2a/functions/dns.c:306: undefined reference to __dn_expa
/usr/local/src/php-3.0.2a/functions/dns.c:306: undefined reference to __dn_expa
...etc.

Compilation of php runs clean, same for Apache without php. 
I can't duplicate the error on an Intel machine (same version and settings). 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-08-13 15:07 UTC] rasmus
Adding -lresolv to the LIBS line in the Apache Makefile should solve this.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Jun 15 01:00:02 2026 UTC