Bug #10941 Updated: php4-200105171245/ext/standard/dns.c:281: undefined reference to `__res_search'
| From: | sniper@php.net | Date: | Tue, 22 May 2001 21:14:11 +0000 |
| Subject: | Bug #10941 Updated: php4-200105171245/ext/standard/dns.c:281: undefined reference to `__res_search' | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-56355@lists.php.net to get a copy of this message | ||
ID: 10941
Updated by: sniper
Reported By: klashma@klashma.com
Old-Status: Open
Status: Feedback
Bug Type: Compile Failure
Operating system:
PHP Version: 4.0 Latest CVS (2001-05-17)
Assigned To:
Comments:
Please try PHP 4.0.6 RC1 from:
http://www.php.net/~andi/php-4.0.6RC1.tar.gz
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2001-05-17 16:26:38] klashma@klashma.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 :(
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10941&edit=2