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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 11:01:30 2024 UTC