php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10941 php4-200105171245/ext/standard/dns.c:281: undefined reference to `__res_search'
Submitted: 2001-05-17 16:26 UTC Modified: 2001-06-03 23:50 UTC
From: klashma at klashma dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0 Latest CVS (2001-05-17) OS: RedHat7.1&Kernel 2.4.4
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: klashma at klashma dot com
New email:
PHP Version: OS:

 

 [2001-05-17 16:26 UTC] klashma at klashma dot com
This bug is basically the same as bug #10150:

Here's my info:

[root@klashma klashma]# gcc -v   
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-81)
[root@klashma klashma]# make --version
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for i386-redhat-linux-gnu
---
Here's what I type to compile:
[root@klashma klashma]# ./configure --with-mysql --with-imap
[root@klashma klashma]# make

And I get this:
<...CUT...>
/bin/sh /home/klashma/php4-200105171245/libtool --silent --mode=link gcc  -I. -I/home/klashma/php4-200105171245/ -I/home/klashma/php4-200105171245/main -I/home/klashma/php4-200105171245 -I/home/klashma/php4-200105171245/Zend -I/home/klashma/php4-200105171245/ext/mysql/libmysql -I/home/klashma/php4-200105171245/ext/xml/expat -I/home/klashma/php4-200105171245/TSRM  -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2 -prefer-non-pic -static   -o php -export-dynamic   stub.lo libphp4.la 
gcc: unrecognized option `-prefer-non-pic'
./.libs/libphp4.a(dns.o): In function `php_if_checkdnsrr':
/home/klashma/php4-200105171245/ext/standard/dns.c:212: undefined reference to `__res_search'
./.libs/libphp4.a(dns.o): In function `php_if_getmxrr':
/home/klashma/php4-200105171245/ext/standard/dns.c:281: undefined reference to `__res_search'
/home/klashma/php4-200105171245/ext/standard/dns.c:308: undefined reference to `__dn_expand'
collect2: ld returned 1 exit status
make[1]: *** [php] Error 1
make[1]: Leaving directory `/home/klashma/php4-200105171245'
make: *** [all-recursive] Error 1
[root@klashma php4-200105171245]#

Et voil?, there's nothing to do, it just won't compile :(

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-22 23:14 UTC] sniper@php.net
Please try PHP 4.0.6 RC1 from:

http://www.php.net/~andi/php-4.0.6RC1.tar.gz

--Jani

 [2001-06-03 23:50 UTC] sniper@php.net
This should be fixed in PHP 4.0.6R. Please try the 
latest release candidate from:

http://www.php.net/~andi/php-4.0.6RC2.tar.gz

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon May 05 20:01:29 2025 UTC