ID: 42490
Updated by: [EMAIL PROTECTED]
Reported By: jerry at scene-naturally dot dyndns dot org
-Status: Open
+Status: Bogus
Bug Type: Compile Failure
Operating System: OS X 10.4.10
PHP Version: 5.2.4
New Comment:
Having 2 sets of header/library files which conflict with each other
will never work and is not any PHP bug.
Previous Comments:
------------------------------------------------------------------------
[2007-09-07 14:42:25] jerry at scene-naturally dot dyndns dot org
The log file is on its way.
------------------------------------------------------------------------
[2007-09-07 09:44:51] [EMAIL PROTECTED]
We don't really need much from the resolv OR bind library (whichever is
found) in ext/standard/dns.c so I don't think you really _need_ BIND 9
to get all the goodies out of PHP.
Anyway, I think this is more of a header issue anyway, conflict between
installed resolv.h and bind 9 header files.
Can you sent me the config.log file you get after configure?
------------------------------------------------------------------------
[2007-09-06 14:46:22] jerry at scene-naturally dot dyndns dot org
No, there is only the one libbind file installed from the Bind 9
Installation (9.4.1-p1), This is an update to the older files provided
by Apple.
It was compiled using the --enable-libbind option for apps such as
Postfix that need this library. This option places the libbind into
/usr/local/lib.
This is the only libbind file on the entire system.
The older Apple setup is done differently using
/usr/lib/libresolv.9.dylib and /usr/lib/libresolv.dylib for the
library files.
As I have mentioned, if you remove (safely -- by shutting down all
apps that depend on the bind libraries and then move the libbind fiel
out of the search path or not safely by just removing the libbind
library file out of the search path) and then running configure for
PHP, this will allow you to build PHP. But you do not get all of the
benefits provided by the BIND files -- as far as I can tell, the
configure app is not not really checking the older Apple resolv
libraries for very much.
------------------------------------------------------------------------
[2007-09-06 10:56:27] [EMAIL PROTECTED]
So you have multiple libbind.* around? AFAIK, this Macosx version comes
with bind 9, so why do you have to install bind 8??? (I'm very confused
now..)
Are you able to try this with a clean system without any bind 8 libs
installed and without modifying anything, using PHP 5.2.4 from fresh
sources?
------------------------------------------------------------------------
[2007-09-05 14:29:28] jerry at scene-naturally dot dyndns dot org
Hello Jani and thank you for taking a further look at this problem.
I tried the suggestion, but it did not work, running into a problem
with dns. I have attached the output from running the make command.
/temp/php-5.2.4/ext/standard/dns.c: In function 'zif_dns_get_record':
/temp/php-5.2.4-copy/ext/standard/dns.c:673: error: 'HEADER'
undeclared (first use in this function)
/temp/php-5.2.4/ext/standard/dns.c:673: error: 'hp' undeclared (first
use in this function)
/temp/php-5.2.4/ext/standard/dns.c:674: error: parse error before
'buf'
/temp/php-5.2.4/ext/standard/dns.c:778: error: 'QUERY' undeclared
(first use in this function)
/temp/php-5.2.4/ext/standard/dns.c:778: error: 'C_IN' undeclared
(first use in this function)
/temp/php-5.2.4/ext/standard/dns.c:778: error: 'buf' undeclared (first
use in this function)
/temp/php-5.2.4/ext/standard/dns.c:786: error: 'answer' undeclared
(first use in this function)
/temp/php-5.2.4/ext/standard/dns.c:797: error: parse error before ')'
token
/temp/php-5.2.4/ext/standard/dns.c: In function 'zif_dns_get_mx':
/temp/php-5.2.4/ext/standard/dns.c:865: error: 'HEADER' undeclared
(first use in this function)
/temp/php-5.2.4/ext/standard/dns.c:865: error: 'hp' undeclared (first
use in this function)
/temp/php-5.2.4/ext/standard/dns.c:894: error: 'C_IN' undeclared
(first use in this function)
/temp/php-5.2.4/ext/standard/dns.c:901: error: parse error before ')'
token
make: *** [ext/standard/dns.lo] Error 1
There is an un-safe method to get this to work. Before running
Configure, just move the libbind.a library out of /usr/local/lib and
then run configure, which will then not put any of the dependent bind
stuff into the various makefiles, etc.
Jerry
------------------------------------------------------------------------
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/42490
--
Edit this bug report at http://bugs.php.net/?id=42490&edit=1