Bug #75487 [NEW]: can't find res_ndestroy
| From: | ddmitrie at gmail dot com | Date: | Mon, 06 Nov 2017 00:42:52 +0000 |
| Subject: | Bug #75487 [NEW]: can't find res_ndestroy | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-212474@lists.php.net to get a copy of this message | ||
From: ddmitrie at gmail dot com
Operating system: Linux
PHP version: 7.2.0RC5
Package: Compile Failure
Bug Type: Bug
Bug description:can't find res_ndestroy
Description:
------------
configure makes certain attempts to find res_ndestroy() under various
names, including for example __res_ndestroy() and
innocuous_res_ndestroy, in various libraries including bind, resolv
If I get it right, it finally finds this function in bind under
__res_ndestroy name:
configure:79335: checking for __res_ndestroy in -lbind
configure:79360: cc -o conftest -I/usr/include -g -O2
-fvisibility=hidden -L/usr/lib
-Wl,-rpath,/home/myaccount/php/install/lib
-L/home/myaccount/php/install/lib conftest.c -lbind -lresolv -lcrypt
-lrt -lrt -lm -ldl -configure:79360: $? = 0
configure:79369: result: yes
c
and main/php_config.h gets the following entry:
#define HAVE_RES_NDESTROY 1
all of sudden, make fails
it looks like res_ndestroy used by configure as an alias to
__res_ndestroy didn't make through and compiler still found
res_ndestroy() calls, otherwise it would complaint about missed
__res_ndestroy
if I comment out HAVE_RES_NDESTROY in php_configure.h and rebuild with
make clean all, it fails on missed isfinite() function. Commenting out
HAVE_ISFINITE brings yet another failure: undeclared
CALLGRIND_STOP_INSTRUMENTATION and CALLGRIND_START_INSTRUMENTATION
symbols. Finally commenting out HAVE_VALGRIND results in success.
Test script:
---------------
./configure --prefix=/home/myaccount/php/install \
--disable-fileinfo \
--with-libxml-dir=/home/myaccount/php/install && \
make
Actual result:
--------------
ext/standard/.libs/dns.o(.text+0x1608): In function
`zif_dns_check_record':
php-7.2.0RC5/ext/standard/dns.c:422: undefined reference to
`res_ndestroy'
ext/standard/.libs/dns.o(.text+0x1c1a): In function
`zif_dns_get_record':
php-7.2.0RC5/ext/standard/dns.c:1013: undefined reference to
`res_ndestroy'
ext/standard/.libs/dns.o(.text+0x1c9e):
php-7.2.0RC5/ext/standard/dns.c:937: undefined reference to
`res_ndestroy'
ext/standard/.libs/dns.o(.text+0x1d60):
php-7.2.0RC5/ext/standard/dns.c:972: undefined reference to
`res_ndestroy'
--
Edit bug report at https://bugs.php.net/bug.php?id=75487&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75487&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75487&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75487&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=75487&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=75487&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=75487&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=75487&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=75487&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=75487&r=support
Expected behavior: https://bugs.php.net/fix.php?id=75487&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=75487&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=75487&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=75487&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75487&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=75487&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=75487&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=75487&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75487&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=75487&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=75487&r=mysqlcfg