[cairo] Problems compiling latest git on OSX

Travis Griggs tgriggs at cincom.com
Fri Dec 11 00:58:55 PST 2009


I have an end to end script for compiling 1.8.8 on my osx box. I just  
tested, it still works. It is a Leopard machine. The things it adds to  
the compilation environment is:

export MACOSX_DEPLOYMENT_TARGET=10.4
export LDFLAGS="-arch ppc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk"
export CFLAGS="-Os -arch ppc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk"

It compiles fine.

If I move up to the latest snapshot, 1.9.4, it too works fine. Or at  
least, it compiles with the same set of scripts (I add --disable-ft,  
because that seems to be required now).

But if I replace my source directory for the snapshot with one fetched  
with latest git clone, it dies. I have to run autogen.sh instead of  
configure. It seems to be having some sort of problem with the trace  
stuff. I've copied the longish error trace below the sig.

One thing that is interesting to me, is to note that when I run  
autogen.sh, it passes on my 3 arguments, but ALSO adds

--cache-file=config.cache --disable-static --enable-test-surfaces

Any help in figuring out why it won't compile out of the box, would be  
GREAT. I'd like to test some of the fixes that I've seen going in. TIA

--
Travis Griggs
Objologist
What's next, Intel Processors branded with "Apple Outside" stickers?



trace.c:227: error: ‘CHAR_BIT’ undeclared (first use in this function)
trace.c:227: error: (Each undeclared identifier is reported only once
trace.c:227: error: for each function it appears in.)
trace.c:236: error: implicit declaration of function ‘free’
trace.c:236: warning: nested extern declaration of ‘free’
trace.c: In function ‘_type_next_token’:
trace.c:256: error: ‘CHAR_BIT’ undeclared (first use in this function)
trace.c:277: error: implicit declaration of function ‘malloc’
trace.c:277: warning: incompatible implicit declaration of built-in  
function ‘malloc’
trace.c: In function ‘_type_create’:
trace.c:321: warning: incompatible implicit declaration of built-in  
function ‘malloc’
trace.c: In function ‘_object_create’:
trace.c:403: warning: incompatible implicit declaration of built-in  
function ‘malloc’
trace.c: In function ‘_get_counter’:
trace.c:427: error: implicit declaration of function ‘calloc’
trace.c:427: warning: incompatible implicit declaration of built-in  
function ‘calloc’
trace.c: In function ‘_init_trace’:
trace.c:457: error: ‘free’ undeclared (first use in this function)
trace.c: In function ‘_type_release_token’:
trace.c:227: error: ‘CHAR_BIT’ undeclared (first use in this function)
trace.c:227: error: (Each undeclared identifier is reported only once
trace.c:227: error: for each function it appears in.)
trace.c:236: error: implicit declaration of function ‘free’
trace.c:236: warning: nested extern declaration of ‘free’
trace.c: In function ‘_type_next_token’:
trace.c:256: error: ‘CHAR_BIT’ undeclared (first use in this function)
trace.c:277: error: implicit declaration of function ‘malloc’
trace.c:277: warning: incompatible implicit declaration of built-in  
function ‘malloc’
trace.c: In function ‘_type_create’:
trace.c:321: warning: incompatible implicit declaration of built-in  
function ‘malloc’
trace.c: In function ‘_object_create’:
trace.c:403: warning: incompatible implicit declaration of built-in  
function ‘malloc’
trace.c: In function ‘_get_counter’:
trace.c:427: error: implicit declaration of function ‘calloc’
trace.c:427: warning: incompatible implicit declaration of built-in  
function ‘calloc’
trace.c: In function ‘_init_trace’:
trace.c:457: error: ‘free’ undeclared (first use in this function)
trace.c: In function ‘_trace_vprintf’:
trace.c:659: error: implicit declaration of function ‘va_arg’
trace.c:659: warning: nested extern declaration of ‘va_arg’
trace.c:659: error: syntax error before ‘int’
trace.c:661: error: syntax error before ‘int’
trace.c:663: error: syntax error before ‘int’
trace.c:672: error: syntax error before ‘int’
trace.c:674: error: syntax error before ‘long’
trace.c:677: error: syntax error before ‘long’
trace.c:682: error: syntax error before ‘const’
trace.c:686: error: syntax error before ‘double’
trace.c:689: error: syntax error before ‘int’
trace.c: In function ‘_trace_printf’:
trace.c:707: error: implicit declaration of function ‘va_start’
trace.c:707: warning: nested extern declaration of ‘va_start’
trace.c:709: error: implicit declaration of function ‘va_end’
trace.c:709: warning: nested extern declaration of ‘va_end’
trace.c: In function ‘get_prog_name’:
trace.c:727: error: implicit declaration of function ‘getenv’
trace.c:727: warning: nested extern declaration of ‘getenv’
trace.c:727: warning: initialization makes pointer from integer  
without a cast
trace.c: In function ‘_init_logfile’:
trace.c:763: warning: assignment makes pointer from integer without a  
cast
trace.c:765: error: implicit declaration of function ‘atoi’
trace.c:765: warning: nested extern declaration of ‘atoi’
trace.c:768: warning: assignment makes pointer from integer without a  
cast
trace.c:773: warning: assignment makes pointer from integer without a  
cast
trace.c:777: warning: assignment makes pointer from integer without a  
cast
trace.c:790: error: implicit declaration of function ‘setenv’
trace.c:790: warning: nested extern declaration of ‘setenv’
trace.c:794: warning: assignment makes pointer from integer without a  
cast
trace.c:798: warning: assignment makes pointer from integer without a  
cast
trace.c:825: error: implicit declaration of function ‘atexit’
trace.c:825: warning: nested extern declaration of ‘atexit’
trace.c: In function ‘_trace_vprintf’:
trace.c:659: error: implicit declaration of function ‘va_arg’
trace.c:659: warning: nested extern declaration of ‘va_arg’
trace.c:659: error: syntax error before ‘int’
trace.c:661: error: syntax error before ‘int’
trace.c:663: error: syntax error before ‘int’
trace.c: In function ‘ensure_operands’:
trace.c:910: error: implicit declaration of function ‘abort’
trace.c:910: warning: incompatible implicit declaration of built-in  
function ‘abort’
trace.c:672: error: syntax error before ‘int’trace.c: In function  
‘_push_operand’:
trace.c:1013: warning: incompatible implicit declaration of built-in  
function ‘abort’

trace.c:674: error: syntax error before ‘long’
trace.c:677: error: syntax error before ‘long’
trace.c:682: error: syntax error before ‘const’
trace.c:686: error: syntax error before ‘double’
trace.c:689: error: syntax error before ‘int’
trace.c: In function ‘_trace_printf’:
trace.c:707: error: implicit declaration of function ‘va_start’
trace.c:707: warning: nested extern declaration of ‘va_start’
trace.c:709: error: implicit declaration of function ‘va_end’
trace.c:709: warning: nested extern declaration of ‘va_end’
trace.c: In function ‘get_prog_name’:
trace.c:727: error: implicit declaration of function ‘getenv’
trace.c:727: warning: nested extern declaration of ‘getenv’
trace.c:727: warning: initialization makes pointer from integer  
without a cast
trace.c: In function ‘_init_logfile’:
trace.c:763: warning: assignment makes pointer from integer without a  
cast
trace.c:765: error: implicit declaration of function ‘atoi’
trace.c:765: warning: nested extern declaration of ‘atoi’
trace.c:768: warning: assignment makes pointer from integer without a  
cast
trace.c:773: warning: assignment makes pointer from integer without a  
cast
trace.c:777: warning: assignment makes pointer from integer without a  
cast
trace.c:790: error: implicit declaration of function ‘setenv’
trace.c:790: warning: nested extern declaration of ‘setenv’
trace.c:794: warning: assignment makes pointer from integer without a  
cast
trace.c:798: warning: assignment makes pointer from integer without a  
cast
trace.c:825: error: implicit declaration of function ‘atexit’
trace.c:825: warning: nested extern declaration of ‘atexit’
trace.c: In function ‘ensure_operands’:
trace.c:910: error: implicit declaration of function ‘abort’
trace.c:910: warning: incompatible implicit declaration of built-in  
function ‘abort’
trace.c: In function ‘_push_operand’:
trace.c:1013: warning: incompatible implicit declaration of built-in  
function ‘abort’
trace.c: In function ‘_emit_image’:
trace.c:1502: warning: unused variable ‘row_stack’
trace.c: In function ‘_emit_image’:
trace.c:1610: warning: incompatible implicit declaration of built-in  
function ‘malloc’
trace.c: In function ‘cairo_surface_write_to_png_stream’:
trace.c:3644: warning: unused variable ‘symbol’
trace.c: In function ‘cairo_surface_write_to_png_stream’:
trace.c:3644: warning: unused variable ‘symbol’
lipo: can't figure out the architecture type of: /var/folders/h1/ 
h1Tdk67hHrGKISaxD6n-4U+++TI/-Tmp-//ccQs3tzA.out
make[4]: *** [libcairo_trace_la-trace.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2



More information about the cairo mailing list