|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50510 Conflicting type defs in various BIND headers
Submitted: 2009-12-17 19:32 UTC Modified: 2009-12-18 11:03 UTC
From: lennond at darkhorse dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.2.12 OS: Mac OS X 10.5
Private report: No CVE-ID: None
 [2009-12-17 19:32 UTC] lennond at darkhorse dot com
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 

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:

---	2009-12-17 11:14:31.000000000 -0800
+++	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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-12-18 00:35 UTC]
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

See bug #50508
 [2009-12-18 11:03 UTC]
FYI: should be fixed in SVN. I do not have MacOSX available to test but maybe it works now.
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Jul 21 01:01:25 2019 UTC