#33899: curl builds incorrectly when +universal ppc i386 x86_64 ----------------------------------------------------+----------------------- Reporter: jeremyhu@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: universal muniversal merger_no_3_archs | Port: curl ----------------------------------------------------+----------------------- Install curl +universal with ppc i386 x86_64 as the chosen arch. muniversal incorrectly merges the header files. Take this block in ${prefix}/include/curl/curlbuild.h for example: {{{ /* The size of `long', as computed by sizeof. */ #if defined (__i386__) || defined(__x86_64__) #ifndef __LP64__ #endif #define CURL_SIZEOF_LONG 4 #if defined (__i386__) || defined(__x86_64__) #else /* __LP64__ */ #define CURL_SIZEOF_LONG 8 #endif /* __LP64__ */ #endif }}} This came from -intel (which was correctly merged from i386 and x86_64): {{{ /* The size of `long', as computed by sizeof. */ #ifndef __LP64__ #define CURL_SIZEOF_LONG 4 #else /* __LP64__ */ #define CURL_SIZEOF_LONG 8 #endif /* __LP64__ */ }}} and from -powerpc (which was correctly just powerpc): {{{ /* The size of `long', as computed by sizeof. */ #define CURL_SIZEOF_LONG 4 }}} -- Ticket URL: <https://trac.macports.org/ticket/33899> MacPorts <http://www.macports.org/> Ports system for Mac OS