[Mesa-users] Undefined references to xcb functions while building mesa.
alexandre schenberg
ale.schenberg at yandex.com
Sat Jul 1 22:58:00 UTC 2023
While building mesa, I end facing multiple error messages complaining about not finding several libxcb's functions.
The output:
make[4]: Entering directory `/media/34GB/Arquivos-de-Programas-Linux/mesa-19.0.0/src/egl'
CCLD libEGL.la
./.libs/libEGL_common.a(egldevice.o): In function `_eglAddDRMDevice':
egldevice.c:(.text+0x3d): undefined reference to `drmDevicesEqual'
./.libs/libEGL_common.a(loader_dri3_helper.o): In function `set_adaptive_sync_property':
loader_dri3_helper.c:(.text+0x205): undefined reference to `xcb_discard_reply'
./.libs/libEGL_common.a(loader_dri3_helper.o): In function `dri3_wait_for_event_locked':
loader_dri3_helper.c:(.text+0x572): undefined reference to `xcb_wait_for_special_event'
./.libs/libEGL_common.a(loader_dri3_helper.o): In function `dri3_flush_present_events.part.8':
loader_dri3_helper.c:(.text+0x606): undefined reference to `xcb_poll_for_special_event'
./.libs/libEGL_common.a(loader_dri3_helper.o): In function `dri3_update_drawable':
loader_dri3_helper.c:(.text+0x7f8): undefined reference to `xcb_register_for_special_xge'
loader_dri3_helper.c:(.text+0x8d4): undefined reference to `xcb_unregister_for_special_event'
./.libs/libEGL_common.a(loader_dri3_helper.o): In function `loader_dri3_drawable_fini':
loader_dri3_helper.c:(.text+0x1081): undefined reference to `xcb_discard_reply'
loader_dri3_helper.c:(.text+0x1091): undefined reference to `xcb_unregister_for_special_event'
./.libs/libEGL_common.a(loader_dri3_helper.o): In function `loader_dri3_wait_for_msc':
loader_dri3_helper.c:(.text+0x13ab): undefined reference to `xcb_wait_for_special_event'
./.libs/libEGL_common.a(loader_dri3_helper.o): In function `dri3_copy_area':
loader_dri3_helper.c:(.text+0x2e4): undefined reference to `xcb_discard_reply'
collect2: error: ld returned 1 exit status
Problem I am passing xcb through PKG_CONFIG_PATH.
I also tried to add: LDFLAGS=-L/media/34GB/Arquivos-de-Programas-Linux/xorg/Xcb-1.9.3/lib/
But it didn't change anything.
My full configure:
CPPFLAGS=-I/media/34GB/Arquivos-de-Programas-Linux/xorg/Xshmfence-1.2/include/ LDFLAGS=-L/media/34GB/Arquivos-de-Programas-Linux/xorg/Xcb-1.9.3/lib/ CFLAGS=-march=native ./configure --prefix=/media/34GB/Arquivos-de-Programas-Linux/Mesa-19.0.0 --enable-autotools --with-gallium-drivers=i915 --with-dri-drivers=i915 PKG_CONFIG_PATH=/media/34GB/Arquivos-de-Programas-Linux/Zlib-1.2.11/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/glproto-1.4.17/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/Drm-2.4.75/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/xorg/Xorgproto-2018.1/share/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/xorg/X11-1.4.4/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/xorg/Xcb-1.9.3/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/xorg/Pthread-stubs-0.1/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/xorg/Xau-1.0.0/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/xorg/Xext-1.1.1/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/xorg/Xdamage-1.1.1/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/xorg/Xfixes/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/xorg/Xxf86vm-1.0.0/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/xorg/Xshmfence-1.2/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/xorg/Xrandr-1.1.1/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/xorg/Xrender-0.9.0.2/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/Expat-2.1.0/lib/pkgconfig/
Open to suggestions
More information about the mesa-users
mailing list