[cairo] Cairo cannot locate Xlib.h

Uli Schlachter psychon at znc.in
Sat Sep 5 08:37:23 UTC 2020


Hi,

Am 05.09.20 um 03:06 schrieb alexandre schenberg:
> configure:20422: gcc -o conftest -g -O2 conftest.c -lm 
> -L/media/34GB/Arquivos-de-Programas-Linux/xorg/X11-1.6.7/lib/ -lX11 >&5
> /media/34GB/Arquivos-de-Programas-Linux/xorg/X11-1.6.7/lib//libX11.so: undefined 
> reference to `xcb_wait_for_reply64'
> /media/34GB/Arquivos-de-Programas-Linux/xorg/X11-1.6.7/lib//libX11.so: undefined 
> reference to `xcb_poll_for_queued_event'
> /media/34GB/Arquivos-de-Programas-Linux/xorg/X11-1.6.7/lib//libX11.so: undefined 
> reference to `xcb_poll_for_reply64'
> collect2: ld returned 1 exit status

This sounds like your libX11.so is broken. I am not sure what program
configure is trying to build here, but I bet that libX11.so contains
those undefined references / does not link against libxcb.so.

Can you compile other programs against this libX11.so?

Google found
https://www.geeks3d.com/20120102/programming-tutorial-simple-x11-x-window-code-sample-for-linux-and-mac-os-x/.
Can you try compiling that program? Does it work?

Cheers,
Uli
-- 
"Every once in a while, declare peace. It confuses the hell out of your
enemies"
 - 79th Rule of Acquisition


More information about the cairo mailing list