[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) |
Hi,
Will Prater wrote:
List,
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:
_fprintf$LDBLStub
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
/usr/lib/libSystemStubs.a
00000000 T _fprintf$LDBLStub
/usr/lib/libSystemStubs_debug.a
00000000 T _fprintf$LDBLStub
/usr/lib/libSystemStubs_profile.a
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.
Regards,
--
Daichi Shinozaki
SHIELD.JP Admin