Can't build playsound in SDL_sound-1.0.0

I’m having problems building playsound in the SDL_sound-1.0.0 distribution.
Seems gcc isn’t getting told about SDL libs:

/bin/sh …/libtool --mode=link gcc -g -O2 -o playsound
playsound-playsound.o …/libSDL_sound.la
gcc -g -O2 -o .libs/playsound playsound-playsound.o …/.libs/libSDL_sound.so
-Wl,–rpath -Wl,/usr/local/lib
playsound-playsound.o: In function output_versions': /home/jbodnar/projects/mp3/build/SDL_sound-1.0.0/playsound/playsound.c:92: undefined reference toSDL_Linked_Version’
playsound-playsound.o: In function main': /home/jbodnar/projects/mp3/build/SDL_sound-1.0.0/playsound/playsound.c:804: undefined reference toSDL_Init’
/home/jbodnar/projects/mp3/build/SDL_sound-1.0.0/playsound/playsound.c:995:
undefined reference to SDL_OpenAudio' /home/jbodnar/projects/mp3/build/SDL_sound-1.0.0/playsound/playsound.c:1025: undefined reference toSDL_PauseAudio’
/home/jbodnar/projects/mp3/build/SDL_sound-1.0.0/playsound/playsound.c:1039:
undefined reference to SDL_PauseAudio' /home/jbodnar/projects/mp3/build/SDL_sound-1.0.0/playsound/playsound.c:1047: undefined reference toSDL_Delay’
/home/jbodnar/projects/mp3/build/SDL_sound-1.0.0/playsound/playsound.c:1049:
undefined reference to SDL_CloseAudio' /home/jbodnar/projects/mp3/build/SDL_sound-1.0.0/playsound/playsound.c:1056: undefined reference toSDL_Quit’
/home/jbodnar/projects/mp3/build/SDL_sound-1.0.0/playsound/playsound.c:1036:
undefined reference to SDL_Delay' /home/jbodnar/projects/mp3/build/SDL_sound-1.0.0/playsound/playsound.c:997: undefined reference toSDL_GetError’
/home/jbodnar/projects/mp3/build/SDL_sound-1.0.0/playsound/playsound.c:1000:
undefined reference to SDL_Quit' /home/jbodnar/projects/mp3/build/SDL_sound-1.0.0/playsound/playsound.c:917: undefined reference toSDL_RWFromFP’
/home/jbodnar/projects/mp3/build/SDL_sound-1.0.0/playsound/playsound.c:806:
undefined reference to SDL_GetError' ../.libs/libSDL_sound.so: undefined reference tosqrt’
…/.libs/libSDL_sound.so: undefined reference to SDL_RWFromFile' ../.libs/libSDL_sound.so: undefined reference toSDL_FreeRW’
…/.libs/libSDL_sound.so: undefined reference to SDL_AllocRW' ../.libs/libSDL_sound.so: undefined reference tocos’
…/.libs/libSDL_sound.so: undefined reference to sin' ../.libs/libSDL_sound.so: undefined reference topow’
…/.libs/libSDL_sound.so: undefined reference to SDL_ThreadID' ../.libs/libSDL_sound.so: undefined reference toSDL_DestroyMutex’
…/.libs/libSDL_sound.so: undefined reference to tan' ../.libs/libSDL_sound.so: undefined reference toSDL_mutexV’
…/.libs/libSDL_sound.so: undefined reference to SDL_mutexP' ../.libs/libSDL_sound.so: undefined reference toSDL_SetError’
…/.libs/libSDL_sound.so: undefined reference to `SDL_CreateMutex’
collect2: ld returned 1 exit status
make: *** [playsound] Error 1

I’m building this with uClibc so my configuration is fairly complex:

$ env PATH=/home/jbodnar/projects/mp3/build/i386-linux-uclibc/usr/bin:$PATH
./configure --enable-static=no
–with-sdl-exec-prefix=/home/jbodnar/projects/mp3/build/SDL-1.2.4/sdl-config
–disable-sdltest --enable-voc=no --enable-wav=no --enable-raw=no
–enable-aiff=no --enable-au=no --enable-shn=no --enable-midi=no
–enable-flac=no --enable-seekable-flac=no --enable-smpeg=no
–enable-mikmod=no --enable-modplug=no --enable-ogg=no --enable-physfs=no

Could this be messing things up? What should the Makefile look like for
playsound? Here are some sections of note from the one that gets generate by
the configure above:


SDL_CFLAGS =
SDL_CONFIG = /home/jbodnar/projects/mp3/build/SDL-1.2.4/sdl-config
SDL_LIBS =

DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
CPPFLAGS =
LDFLAGS =
LIBS =

Should any of those that aren’t defined be defined?–
Jason Bodnar
@Jason_Bodnar
http://www.shakabuku.org

Jason Bodnar wrote:

stuff…

looks like sdl-config --libs and -lm are needed to make it complete…
-lm is the math library, shouldn’t SDL_sound get this automagically…
and SDL missing…is just a crime…–
-==-
Jon Atkins
http://jonatkins.org/