[MacPorts] #31137: unbound @1.4.2 doesn't configure +universal
MacPorts
noreply at macports.org
Thu Nov 10 08:27:26 PST 2011
#31137: unbound @1.4.2 doesn't configure +universal
------------------------------+---------------------------------------------
Reporter: cal@… | Owner: snc@…
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.0.99
Keywords: universal | Port: unbound
------------------------------+---------------------------------------------
Comment(by ryandesign@…):
But I am able to reproduce the failure on the same system with
configure.compiler=llvm-gcc-4.2.
The relevant lines in config.log seem to be these:
{{{
configure:16789: checking for ldns/ldns.h
configure:16789: /Developer/usr/bin/llvm-gcc-4.2 -c -pipe -O2 -arch x86_64
-arch i386 -g -O2 -flto -I/opt/local/include -I/opt/local/include
-I/opt/local/include conftest.c >&5
conftest.c:82:1: warning: "malloc" redefined
conftest.c:81:1: warning: this is the location of the previous definition
In file included from conftest.c:122:
/usr/include/stdio.h:78: error: two or more data types in declaration
specifiers
/usr/include/stdio.h:78: error: two or more data types in declaration
specifiers
/usr/include/stdio.h:414: error: two or more data types in declaration
specifiers
/usr/include/stdio.h:414: error: two or more data types in declaration
specifiers
/usr/include/stdio.h:442: error: two or more data types in declaration
specifiers
In file included from /usr/include/machine/types.h:35,
from /usr/include/sys/types.h:78,
from conftest.c:124:
/usr/include/i386/types.h:78: error: duplicate 'signed'
/usr/include/i386/types.h:78: error: two or more data types in declaration
specifiers
/usr/include/i386/types.h:83: error: duplicate 'short'
/usr/include/i386/types.h:88: error: two or more data types in declaration
specifiers
/usr/include/i386/types.h:93: error: 'long long long' is too long for GCC
/usr/include/i386/types.h:93: error: 'long long long' is too long for GCC
In file included from conftest.c:124:
/usr/include/sys/types.h:84: error: duplicate 'unsigned'
/usr/include/sys/types.h:84: error: two or more data types in declaration
specifiers
/usr/include/sys/types.h:126: error: two or more data types in declaration
specifiers
/usr/include/sys/types.h:126: error: two or more data types in declaration
specifiers
/usr/include/sys/types.h:131: error: two or more data types in declaration
specifiers
/usr/include/sys/types.h:131: error: two or more data types in declaration
specifiers
/usr/include/sys/types.h:167: error: two or more data types in declaration
specifiers
}}}
[wiki:ProblemHotlist#compiler Try using clang]; if also fails,
[wiki:PortfileRecipes#compiler use gcc-4.2 / apple-gcc-4.2]. If you're
sure it works fine with llvm-gcc-4.2 and clang when built non-universal,
you could enclose that compiler block in a `if {[variant_isset
universal]}` block, to avoid making people install the apple-gcc42 port
unnecessarily if they're not building universal.
--
Ticket URL: <https://trac.macports.org/ticket/31137#comment:5>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list