Source: curl Version: 7.55.0-1 Tags: patch upstream User: helm...@debian.org Usertags: rebootstrap
curl fails to build from source for powerpc. Its include/curl/system.h tries to detect lots of platforms but falls short on powerpc. It attempts to detect it by checking __ppc__, but that's not defined on Linux. One should be checking __powerpc__ in addition. See http://nadeausoftware.com/articles/2012/02/c_c_tip_how_detect_processor_type_using_compiler_predefined_macros for details. The attached patch adds that macro and thus makes the build continue. Please consider applying it. Helmut
Index: curl-7.55.0/include/curl/system.h =================================================================== --- curl-7.55.0.orig/include/curl/system.h +++ curl-7.55.0/include/curl/system.h @@ -401,7 +401,7 @@ #elif defined(__GNUC__) # if !defined(__LP64__) && (defined(__ILP32__) || \ - defined(__i386__) || defined(__ppc__) || defined(__arm__) || \ + defined(__i386__) || defined(__ppc__) || defined(__powerpc__) || defined(__arm__) || \ defined(__sparc__) || defined(__mips__) || defined(__sh__) || \ defined(__XTENSA__)) # define CURL_SIZEOF_LONG 4