php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13565 php4-200110050900/ext/standard/dns.c:240: undefined reference to `__res_search'
Submitted: 2001-10-05 13:12 UTC Modified: 2001-12-12 06:24 UTC
From: jerome dot ponsin at francetrader dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.0.6 OS: RedHat7.1&Kernel 2.4.4
Private report: No CVE-ID: None
 [2001-10-05 13:12 UTC] jerome dot ponsin at francetrader dot com
Almost same problem that bug ID #10941 
but it is not resolved for me in 4.0.6,
even with latest snapshot : 200110050900
(from : http://snaps.php.net/) 

gcc -c  -I./os/unix -I./include   -DLINUX=22 -I/root/php4-200110050900 -I/root/php4-200110050900/main -I/root/php4-200110050900/main -I/root/php4-200110050900/Zend -I/root/php4-200110050900/Zend -I/root/php4-200110050900/TSRM -I/root/php4-200110050900/TSRM -I/root/php4-200110050900 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci` buildmark.c
gcc  -DLINUX=22 -I/root/php4-200110050900 -I/root/php4-200110050900/main -I/root/php4-200110050900/main -I/root/php4-200110050900/Zend -I/root/php4-200110050900/Zend -I/root/php4-200110050900/TSRM -I/root/php4-200110050900/TSRM -I/root/php4-200110050900 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci`    \
      -o httpd buildmark.o modules.o modules/standard/libstandard.a modules/php4/libphp4.a main/libmain.a ./os/unix/libos.a ap/libap.a  lib/expat-lite/libexpat.a  -Wl,-rpath,/usr/local/lib -Wl,-rpath,/opt/oracle/product/8.1.7/lib  -rdynamic -L/usr/local/lib -L/opt/oracle/product/8.1.7/lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4   -ldl -lm -ldl -lz -lcrypt -lresolv -lm -ldl -lnsl  -lresolv -lcrypt -lclntsh   -lm -lcrypt

modules/php4/libphp4.a(dns.o): In function `zif_checkdnsrr':
/root/php4-200110050900/ext/standard/dns.c:240: undefined reference to `__res_search'
modules/php4/libphp4.a(dns.o): In function `zif_getmxrr':
/root/php4-200110050900/ext/standard/dns.c:301: undefined reference to `__res_search'
/root/php4-200110050900/ext/standard/dns.c:328: undefined reference to `__dn_expand'
collect2: ld returned 1 exit status

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-12 06:24 UTC] yohgaki@php.net
You should have problem with /lib/libresolve.so.2
It compiles fine with my linux.
Reinstall libresolve. If you still have problem reopen this bug report again.
 [2002-04-17 04:58 UTC] jasper at formmailer dot net
I have the same problem. I installed the new Redhat RPMs for glibc (glibc-2.1.3-23), but nothing helped.
I am using Redhat 6.2

I hope someone has a solution for this.

- Jasper
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 17:01:31 2024 UTC