[Mesa-dev] Mesa-8.0.2 libGL.so: undefined reference to `XGetXCBConnection'
jupiter.hce at gmail.com
jupiter.hce at gmail.com
Tue Apr 17 06:53:03 PDT 2012
Thanks Adam, please see following information.
On 2012-04-17 09:34-0400, Adam Jackson wrote:
>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
$ nm -aD --defined /usr/lib/libX11-xcb.so.1 | grep XCB
00000470 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
$ nm -aD --defined /usr/lib/libxcb-glx.so.0 | grep client_info$
0000ddf0 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?
The default of the configuration was used. How should I change the
default configure to link libX11-xcb and libxcb-glx properly?
Thank you.
--juper
More information about the mesa-dev
mailing list