[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] Compile error OS X with gcc3.3

From: Daichi Shinozaki
Subject: Re: [Swftools-common] Compile error OS X with gcc3.3
Date: Wed, 11 May 2005 01:55:16 +0900
User-agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317)


Will Prater wrote:


Here is the error from CVS for gcc3.3

gcc -DHAVE_CONFIG_H jpeg2swf.o -o jpeg2swf ../lib/librfxswf.a -L/opt/local/lib -L/usr/local/lib -lungif -lt1 -ljpeg -lz -lm -L/opt/local/lib -lfreetype -lz
ld: Undefined symbols:
make[1]: *** [jpeg2swf] Error 1
make: *** [all] Error 2

Same error for me (MacOSX10.4, gcc-3.3, with fink libraries, libmp3lame from source).

I searched the mysterious "_fprintf$LDBLStub" string from /usr/lib/*.a and found that
this was defined in /usr/lib/libSystemStubs.a.

> for i in /usr/lib/*.a; do echo $i && nm -a $i 2> /dev/null | grep '_fprintf\$LDBLStub'; done
00000000 T _fprintf$LDBLStub
00000000 T _fprintf$LDBLStub
00000000 T _fprintf$LDBLStub

After tweaking Makefile.common,
SWFTools built successfully.

My Makefile.common:
LIBS= -L/sw/lib -L/usr/local/lib -lungif -lt1 -ljpeg -lz -lm -L/sw/lib/freetype2/lib -lfreetype -lSystemStubs
** append -lSystemStubs to LIBS line

To compile:
> CXX="g++-3.3" CC="gcc-3.3" LDFLAGS="-L/sw/lib" CPPFLAGS="-I/sw/include -I/usr/local/lame" ./configure

Although I'm really not sure what the libSystemStubs is, why this is required, etc.


Daichi Shinozaki

reply via email to

[Prev in Thread] Current Thread [Next in Thread]