Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
7.55.1 fails to build on Mac OS X PowerPC, expected specifier-qualifier-list before ‘curl_off_t’ #1797
I did this
I expected the following
Mac OS X 10.5.8 PowerPC
Here is a log of the failure:
The errors begin with:
I suspect #1774 caused this. 7.55.0 built successfully on the same system.
I'm not in front of a PowerPC system right now, but sources on the Internet show that a PowerPC Mac running Mac OS X 10.4 defines
Is that using gcc?
How about fixing it like this:
--- a/include/curl/system.h +++ b/include/curl/system.h @@ -424,11 +424,11 @@ /* KEEP GENERIC GCC THE LAST ENTRY */ /* ===================================== */ #elif defined(__GNUC__) # if !defined(__LP64__) && (defined(__ILP32__) || \ - defined(__i386__) || defined(__powerpc__) || defined(__arm__) || \ + defined(__i386__) || defined(__powerpc__) || defined(__ppc__) || defined(__arm__) || \ defined(__sparc__) || defined(__mips__) || defined(__sh__) || \ defined(__XTENSA__) || (defined(__SIZEOF_LONG__) && __SIZEOF_LONG__ == 4)) # define CURL_SIZEOF_LONG 4 # define CURL_TYPEOF_CURL_OFF_T long long # define CURL_FORMAT_CURL_OFF_T "lld"
Yes, the Apple-modified version of gcc 4.2.1 that comes with Xcode 3.1.4. Apple-modified GCC is the default compiler on Mac OS X 10.6 and earlier.
That was going to be my suggestion. I've seen other code on the Internet that also checks for