#26544 [Com]: Compile fails on undefined symbol "res_ninit"

From: Date: Mon, 26 Jul 2004 12:53:34 +0000
Subject: #26544 [Com]: Compile fails on undefined symbol "res_ninit"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-63556@lists.php.net to get a copy of this message
 ID:               26544
 Comment by:       peti-ke at freemail dot hu
 Reported By:      andy at kksonline dot com
 Status:           Bogus
 Bug Type:         Compile Failure
 Operating System: FreeBSD 5.1 (Stable)
 PHP Version:      5CVS-2003-12-6
 New Comment:

i had the same problem under fbsd 5.1.

than i tried different thing and finally it worked.

i deinstalled bind8 and put bind9 on it. than i did a portsclean -C -D
-L -i

and after these thing the compile worked without any mistake.


Previous Comments:
------------------------------------------------------------------------

[2003-12-11 06:37:40] sniper@php.net

Ask why bind has these functions but why doesn't your resolv.h  have
the aliases..

This is not PHP bug.


------------------------------------------------------------------------

[2003-12-10 11:57:26] andy at kksonline dot com

Hi !
I have checked both things.
main/php_config.h looks fine

I have taken look into /usr/include/resolv.h

There are quite a few res_* defines, but I checked, there are few
res_n* defines missing, all those I reported to be produced (res_ninit,
res_nmkquery, res_nsend and res_nclose).

Any idea what to do next. Where should these defines be linked to?
Maybe I can ask on freebsd forum, but I need to know what I am looking
for...

Andy

------------------------------------------------------------------------

[2003-12-10 10:24:25] sniper@php.net

Configure detects the functions with the underscore prefixes.
(e.g. __res_nmkquery in -lbind)

Please check if you have '#define HAVE_RESOLV_H 1' in
main/php_config.h..also check that the /usr/include/resolv.h 
actually has the aliases for these functions, e.g.

#define res_nmkquery __res_nmkquery


------------------------------------------------------------------------

[2003-12-09 15:37:37] sniper@php.net

Please put the config.log file online somewhere OR email it to me. (DO
NOT paste it here!)


------------------------------------------------------------------------

[2003-12-09 13:48:49] andy at kksonline dot com

Hi !
Nothing changed. Same error.
Andy

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/26544

-- 
Edit this bug report at http://bugs.php.net/?id=26544&edit=1


Thread (12 messages)

« previous php.bugs (#63556) next »