cURL / Mailing Lists / curl-library / Single Mail


Re: fat binary for Mac OSX 10.5.X

From: Toby Peterson <>
Date: Thu, 30 Apr 2009 13:49:10 -0700

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:


Fix the following defines and it should work correctly:


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
Received on 2009-04-30