Building from
http://www.libsdl.org/cvs/SDL-1.2.tar.gz
(looks like it’s dated 7 Feb 2006) on Mac OS X 10.3.9, Xcode 1.5/gcc-3.3,
commandline build intended for a fink installation, some whitespace
inserted for legibility:
gcc -dynamiclib -o .libs/libSDL-1.2.0.7.3.dylib .libs/SDL.o
.libs/SDL_error.o .libs/SDL_fatal.o .libs/SDL_loadso.o
[…list of .o files snipped…]
.libs/libSDL.lax/libcpuinfo.a/SDL_cpuinfo.o -L/usr/X11R6/lib
-framework OpenGL -framework AGL -framework AudioToolbox -framework
AudioUnit -framework IOKit -framework Cocoa -framework Carbon -framework
QuickTime -install_name /sw/lib/libSDL-1.2.0.dylib
-Wl,-compatibility_version -Wl,8 -Wl,-current_version -Wl,8.3
ld: warning multiple definitions of symbol _copysign
.libs/libSDL.lax/libvideo.a/SDL_gamma.o definition of _copysign in
section (__TEXT,__text)
/usr/lib/libSystem.dylib(copysign.o) definition of _copysign
ld: warning multiple definitions of symbol _scalbn
.libs/libSDL.lax/libvideo.a/SDL_gamma.o definition of _scalbn in section
(__TEXT,__text)
/usr/lib/libSystem.dylib(scalb.o) definition of _scalbn
ld: Undefined symbols:
_SDL_sprintf
_SDL_ScanUnsignedLong
_SDL_getenv
_SDL_free
_SDL_malloc
_SDL_memcpy
_SDL_memset
_SDL_snprintf
/usr/bin/libtool: internal link edit command failed
make[2]: *** [libSDL.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
The SDL-1.2.9 install gives no such errors. The link line for 1.2.9
is the same as above, modulo different .o files, but also includes a
-lstdc++ reference.
The following was run by the 1.2.9 configure script:
Copying ./src/thread/generic/SDL_syscond.c -> src/thread/SDL_syscond.c
while the CVS version did
Copying ./src/thread/linux/SDL_syscond.c -> src/thread/SDL_syscond.c
which seems a significant difference.
– Andras Salamon @Andras_SalamonOn Tue, Feb 07, 2006 at 04:23:16AM -0800, Sam Lantinga wrote:
If you get a chance, can you build SDL from CVS and post your results on
this list, along with the OS and compiler version you’re using?