Problems linking with libSDL-1.2.8 (missing X11_InitOSKeymap etc)

Hello,

I’ve built libsdl-1.2.8 under Linux. When I try to link an empty
C-program with it, I get the following errors:

nirvana.lewin.nu>gcc test.c -L/usr/lib -Wl,-rpath,/usr/lib -lSDL
-lpthread -o etestt
/usr/lib/libSDL.so: undefined reference to X11_InitOSKeymap' /usr/lib/libSDL.so: undefined reference toDISKAUD_bootstrap’
/usr/lib/libSDL.so: undefined reference to X11_SetKeyboardState' /usr/lib/libSDL.so: undefined reference toX11_PumpEvents’
/usr/lib/libSDL.so: undefined reference to `DUMMY_bootstrap’
collect2: ld returned 1 exit status

It seems like these missing symbols should be internal to SDL?

Any tips?

Thanks,

Erland