From: lennond at darkhorse dot com
Operating system: Mac OS X 10.5
PHP version: 5.2.12
PHP Bug Type: Compile Failure
Bug description: Conflicting type defs in various BIND headers
Description:
------------
When building PHP 5.2.12 from source tarball on Mac OS Leopard
(10.5.8), the DNS extension fails to compile. The following error was
printed:
In file included from /usr/include/arpa/nameser.h:59,
from /usr/local/src/php-5.2.12/ext/standard/dns.c:62:
/usr/include/arpa/nameser8_compat.h:304: error: conflicting types
for HEADER
/usr/include/arpa/nameser_compat.h:99: error: previous declaration
of HEADER was here
The following patch resolves the issue for me:
--- configure.in.bak 2009-12-17 11:14:31.000000000 -0800
+++ configure.in 2009-12-17 11:14:37.000000000 -0800
@@ -378,7 +378,6 @@
netinet/in.h \
alloca.h \
arpa/inet.h \
-arpa/nameser_compat.h \
arpa/nameser.h \
assert.h \
crypt.h \
Expected result:
----------------
Successful build
Actual result:
--------------
Failed build
--
Edit bug report at http://bugs.php.net/?id=50510&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=50510&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=50510&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=50510&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=50510&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=50510&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=50510&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=50510&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=50510&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=50510&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=50510&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=50510&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=50510&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=50510&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=50510&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50510&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=50510&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=50510&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=50510&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=50510&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=50510&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=50510&r=mysqlcfg