OS X, weird unresolved symbols

Hey,

I’m trying to build SDL on my MacBook, and it seems to be getting right
about to the end before it dies like this:

gcc -dynamiclib -o .libs/libSDL-1.2.0.7.2.dylib .libs/SDL.o
.libs/SDL_error.o .libs/SDL_fatal.o .libs/ SDL_getenv.o .libs/SDL_loadso.o
.libs/libSDL.lax/libarch.a/arch.o .libs/libSDL.lax/libaudio.a/ SDL_audio.o
.libs/libSDL.lax/libaudio.a/SDL_audiocvt.o .libs/libSDL.lax/libaudio.a/
SDL_audiodev.o .libs/libSDL.lax/libaudio.a/SDL_audiomem.o
.libs/libSDL.lax/libaudio.a/ SDL_coreaudio.o
.libs/libSDL.lax/libaudio.a/SDL_diskaudio.o .libs/libSDL.lax/libaudio.a/
SDL_mixer.o .libs/libSDL.lax/libaudio.a/SDL_mixer_m68k.o
.libs/libSDL.lax/libaudio.a/ SDL_mixer_MMX.o
.libs/libSDL.lax/libaudio.a/SDL_mixer_MMX_VC.o .libs/libSDL.lax/libaudio.a/
SDL_romaudio.o .libs/libSDL.lax/libaudio.a/SDL_wave.o
.libs/libSDL.lax/libvideo.a/SDL_blit.o .libs/
libSDL.lax/libvideo.a/SDL_blit_0.o .libs/libSDL.lax/libvideo.a/SDL_blit_1.o
.libs/libSDL.lax/libvideo.a/ SDL_blit_A.o
.libs/libSDL.lax/libvideo.a/SDL_blit_N.o
.libs/libSDL.lax/libvideo.a/SDL_bmp.o .libs/
libSDL.lax/libvideo.a/SDL_cursor.o .libs/libSDL.lax/libvideo.a/SDL_gamma.o
.libs/libSDL.lax/libvideo.a/ SDL_nullevents.o
.libs/libSDL.lax/libvideo.a/SDL_nullmouse.o .libs/libSDL.lax/libvideo.a/
SDL_nullvideo.o .libs/libSDL.lax/libvideo.a/SDL_pixels.o
.libs/libSDL.lax/libvideo.a/SDL_QuartzEvents.o
.libs/libSDL.lax/libvideo.a/SDL_QuartzGL.o
.libs/libSDL.lax/libvideo.a/SDL_QuartzVideo.o .libs/
libSDL.lax/libvideo.a/SDL_QuartzWindow.o
.libs/libSDL.lax/libvideo.a/SDL_QuartzWM.o .libs/
libSDL.lax/libvideo.a/SDL_QuartzYUV.o
.libs/libSDL.lax/libvideo.a/SDL_RLEaccel.o .libs/libSDL.lax/
libvideo.a/SDL_stretch.o .libs/libSDL.lax/libvideo.a/SDL_surface.o
.libs/libSDL.lax/libvideo.a/ SDL_video.o
.libs/libSDL.lax/libvideo.a/SDL_yuv.o
.libs/libSDL.lax/libvideo.a/SDL_yuv_mmx.o .libs/
libSDL.lax/libvideo.a/SDL_yuv_sw.o
.libs/libSDL.lax/libevents.a/SDL_active.o .libs/libSDL.lax/
libevents.a/SDL_events.o .libs/libSDL.lax/libevents.a/SDL_expose.o
.libs/libSDL.lax/libevents.a/ SDL_keyboard.o
.libs/libSDL.lax/libevents.a/SDL_mouse.o
.libs/libSDL.lax/libevents.a/SDL_quit.o .libs/
libSDL.lax/libevents.a/SDL_resize.o
.libs/libSDL.lax/libjoystick.a/SDL_joystick.o .libs/libSDL.lax/
libjoystick.a/SDL_sysjoystick.o
.libs/libSDL.lax/libcdrom.a/AudioFilePlayer.o .libs/libSDL.lax/
libcdrom.a/AudioFileReaderThread.o .libs/libSDL.lax/libcdrom.a/CAGuard.o
.libs/libSDL.lax/ libcdrom.a/CDPlayer.o
.libs/libSDL.lax/libcdrom.a/SDL_cdrom.o .libs/libSDL.lax/libcdrom.a/
SDL_syscdrom.o .libs/libSDL.lax/libthread.a/SDL_syscond.o
.libs/libSDL.lax/libthread.a/ SDL_sysmutex.o
.libs/libSDL.lax/libthread.a/SDL_syssem.o
.libs/libSDL.lax/libthread.a/SDL_systhread.o
.libs/libSDL.lax/libthread.a/SDL_thread.o
.libs/libSDL.lax/libtimer.a/SDL_systimer.o .libs/libSDL.lax/
libtimer.a/SDL_timer.o .libs/libSDL.lax/libendian.a/SDL_endian.o
.libs/libSDL.lax/libfile.a/ SDL_rwops.o
.libs/libSDL.lax/libcpuinfo.a/SDL_cpuinfo.o -framework OpenGL -framework
AGL - framework AudioToolbox -framework AudioUnit -framework IOKit -lstdc++
-framework Cocoa - framework Carbon -framework QuickTime -install_name
/usr/local/lib/libSDL-1.2.0.dylib -Wl,- compatibility_version -Wl,8
-Wl,-current_version -Wl,8.2

ld: Undefined symbols:
__Unwind_Resume
/usr/bin/libtool: internal link edit command failed

AFAIK, this is libstdc++ stuff, and I went into src and dropped that same
line with g++ instead and it was fine. Reconfiguring to use g++ instead of
gcc started at the same point and died this way instead:

ld: Undefined symbols:
_SDL_StartTicks
__Z20SDL_SetTimerThreadedi
__Z22SDL_ThreadedTimerCheckv
_SDL_SYS_StartTimer
_SDL_SYS_StopTimer
_SDL_SYS_TimerInit
_SDL_SYS_TimerQuit

And doing a make clean && make with CC=g++ just died with a bunch of syntax
errors on SDL_diskaudio.c

Any ideas? I’m absolutely dying to get DOSBox and Daggerfall on this thing.

Cheers,

Reid Orsten

Hey,

I’m trying to build SDL on my MacBook, and it seems to be getting right
about to the end before it dies like this:

Try the latest CVS snapshot?
http://www.libsdl.org/cvs.php

-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment