Can't build SDL applications

/usr/X11R6/lib/libX11.so.6: undefined reference to `shmctl@@GLIBC_2.0

Sounds like a mismatched set of X11 and standard C libraries.

Did you recently upgrade your system?

See ya,
-Sam Lantinga, Lead Programmer, Loki Software, Inc.