ID: 26544 Comment by: shrooms at gmail dot com 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 on machines ranging from FreeBSD 4.6 to 5.2. This is how I got it to work. If you have a resolv.h in /usr/include, do the following. (don't forget to backup) cd /usr/local/bind/ (for safety) mv include oldinclude mv lib oldlib ln -s /usr/include include ln -s /usr/lib lib now Download the Bind 8 (source) and compile it. it will put a new working resolv.h in /usr/include and the other appropriate files, It will also put the appropriate libs in the lib dir. Now you should be able to compile php 5 as normal. Hope this helps. Previous Comments: ------------------------------------------------------------------------ [2004-07-26 20:45:36] ronnie at rustybrick dot com Indeed, php5 compiled fine on my FreeBSD box until I installed bind 8. Then, after recompiling, the above errors occurred. PHP 4 works fine either way. Was php 5 assuming Bind 9? ------------------------------------------------------------------------ [2004-07-26 14:53:33] peti-ke at freemail dot hu 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. ------------------------------------------------------------------------ [2003-12-11 06:37:40] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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 ------------------------------------------------------------------------ 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