[Mesa-dev] Mesa-8.0.2 libGL.so: undefined reference to `XGetXCBConnection'
Adam Jackson
ajax at redhat.com
Tue Apr 17 06:34:37 PDT 2012
On Mon, 2012-04-16 at 22:15 +1000, jupiter.hce at gmail.com wrote:
> I've just built Mesa-8.0.2 in a Linux box. Then there were errors of "libGL.so:
> undefined reference to `XGetXCBConnection'"
% nm -aD --defined /usr/lib/libX11-xcb.so.1 | grep XCB
473ef560 T XGetXCBConnection
> and "libGL.so: undefined
> reference to `xcb_glx_client_info'" while I was compiling glew-1.7.0.
>
> What was I missing in building Mesa-8.0.2?
% nm -aD --defined /usr/lib/libxcb-glx.so.0 | grep client_info$
47756d10 T xcb_glx_client_info
> $ ldd libGL.so
> linux-gate.so.1 => (0x003d9000)
> libX11.so.6 => /usr/lib/libX11.so.6 (0x00588000)
> libXext.so.6 => /usr/lib/libXext.so.6 (0x0016c000)
> libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0x0097c000)
> libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0x009ed000)
> libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x003a8000)
> libpthread.so.0 => /lib/libpthread.so.0 (0x006ea000)
> libdl.so.2 => /lib/libdl.so.2 (0x00dad000)
> libdrm.so.2 => /usr/local/mesa/lib/libdrm.so.2 (0x0023e000)
> libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00248000)
> libm.so.6 => /lib/libm.so.6 (0x00aa4000)
> libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x008f5000)
> libc.so.6 => /lib/libc.so.6 (0x003da000)
> libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00110000)
> /lib/ld-linux.so.2 (0x0085f000)
> librt.so.1 => /lib/librt.so.1 (0x0012e000)
> libXau.so.6 => /usr/lib/libXau.so.6 (0x00137000)
Note that neither one of the above libraries is mentioned in your ldd
output, which means libGL was linked incorrectly. What method did you
use to build Mesa?
- ajax
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20120417/2cdf0dbe/attachment.pgp>
More information about the mesa-dev
mailing list