On Apr 30, 2009, at 11:44 AM, john blair wrote:
I am trying to build a fat binary(for i386 and x86_64) for
curl-7.19.4. I tried building it with
--disable-dependency-tracking \
CFLAGS="-arch i386 -arch x86_64" \
LDFLAGS="-arch i386 -arch x86_64"
but got
../include/curl/curlrules.h:134: error: size of array
‘__curl_rule_01__’ is negative
I have successfully built a fat binary for curl 7.18.2. Has any one
tried building it with 7.19.4?
If you're trying to do a single-pass universal build, you need to edit
the following files:
include/curl/curlbuild.h
lib/config.h
src/config.h
Fix the following defines and it should work correctly:
CURL_SIZEOF_LONG
SIZEOF_LONG
SIZEOF_SIZE_T
SIZEOF_TIME_T
SIZEOF_VOID_P
If you want to see why this is necessary, just run the configure
script for each individual arch and compare the results.
Not sure why it worked for you on 7.18.4. If I had to guess, I'd think
that a newer macro is generating that error in 7.19.x, but your 7.18.4
build was still broken (for one architecture or the other, depending
on the answers the configure script got).
- Toby