php.net |  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: lennond at darkhorse dot com
New email:
PHP Version: OS:

 

 [2009-12-17 19:32 UTC] lennond at darkhorse dot com
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-12-18 00:35 UTC] jani@php.net
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] jani@php.net
FYI: should be fixed in SVN. I do not have MacOSX available to test but maybe it works now.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 19:01:33 2024 UTC