/usr/lib/libX11.so: undefined reference to `dlopen@GLIBC_2.2.5'
X11 seems *really* married to glibc, damn.
@neon re: "X11 seems really married to glibc" — it's most definitely not.
X11 the protocol itself does not care (nor does the overall "X window system") about what libraries you use.
libX11, aka Xlib, may care, but I don't think it does.
/usr/lib/libX11.so, your system's build of Xlib as a shared library linked against glibc, of course does. Precisely because it's your system's build of Xlib as a shared library linked against glibc.
@bugaevc Ah, good point.