Undefined references to XF86Vid* & XF86DGA*

Hello,

I compiled SDL 1.1.6 from source, it compiled and installed without any
problems, but now I can’t compile any SDL applications.

I always get this ld errors:

/usr/local/lib/libSDL.so: undefined reference to
XF86VidModeQueryVersion' /usr/local/lib/libSDL.so: undefined reference toXF86VidModeSetViewPort’
/usr/local/lib/libSDL.so: undefined reference to XF86DGAQueryVersion' /usr/local/lib/libSDL.so: undefined reference toXF86VidModeQueryExtension’
/usr/local/lib/libSDL.so: undefined reference to
XF86DGAQueryDirectVideo' /usr/local/lib/libSDL.so: undefined reference toXF86VidModeGetViewPort’
/usr/local/lib/libSDL.so: undefined reference to
XF86VidModeLockModeSwitch' /usr/local/lib/libSDL.so: undefined reference toXF86DGAQueryExtension’

/usr/local/lib/libSDL.so: undefined reference to XF86DGADirectVideo' /usr/local/lib/libSDL.so: undefined reference toXF86VidModeSwitchToMode’
/usr/local/lib/libSDL.so: undefined reference to
XF86VidModeGetAllModeLines' /usr/local/lib/libSDL.so: undefined reference toXF86VidModeGetModeLine’

Well, “ldd /usr/local/lib/libSDL.so” says:

libesd.so.0 => /usr/lib/libesd.so.0 (0x40068000)
libaudiofile.so.0 => /usr/lib/libaudiofile.so.0 (0x40070000)
libasound.so.1 => /usr/lib/libasound.so.1 (0x40081000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40098000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x4013e000)
libc.so.6 => /lib/libc.so.6 (0x4014b000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

Okay, libSDL.so is linked agains libX11 and libXext correctly (and of
course, /usr/X11R6/lib is in /etc/ld.so.conf).

So, what else could be the problem ? Any Idea how to solve this ? I’m
using XFree 3.3.6.

Sebastian