Bug #10941: php4-200105171245/ext/standard/dns.c:281: undefined reference to `__res_search'
| From: | klashma at klashma dot com | Date: | Thu, 17 May 2001 20:26:38 +0000 |
| Subject: | Bug #10941: php4-200105171245/ext/standard/dns.c:281: undefined reference to `__res_search' | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-55665@lists.php.net to get a copy of this message | ||
From: klashma@klashma.com
Operating system: RedHat7.1&Kernel 2.4.4
PHP version: 4.0 Latest CVS (2001-05-17)
PHP Bug Type: Compile Failure
Bug description: php4-200105171245/ext/standard/dns.c:281: undefined reference to
`__res_search'
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 :(
--
Edit Bug report at: http://bugs.php.net/?id=10941&edit=1