Lavapipe fails to compile because of undefined references to some udev functions
Distro is Arch Linux, with fully-updated packages, using AUR's mesa-git and meson-git to test.
[5/5] Linking target src/gallium/targets/lavapipe/libvulkan_lvp.so
FAILED: src/gallium/targets/lavapipe/libvulkan_lvp.so
c++ -o src/gallium/targets/lavapipe/libvulkan_lvp.so src/gallium/targets/lavapipe/libvulkan_lvp.so.p/target.c.o -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,--start-group -Wl,-soname,libvulkan_lvp.so -Wl,--whole-archive src/gallium/frontends/lavapipe/liblavapipe_st.a -Wl,--no-whole-archive -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -march=native -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS src/gallium/auxiliary/pipe-loader/libpipe_loader_static.a src/loader/libloader.a src/util/libxmlconfig.a src/util/libmesa_util.a src/util/format/libmesa_format.a src/util/libmesa_util_sse41.a src/c11/impl/libmesa_util_c11.a src/gallium/auxiliary/libgallium.a src/compiler/nir/libnir.a src/compiler/libcompiler.a src/gallium/winsys/sw/wrapper/libwsw.a src/gallium/winsys/sw/dri/libswdri.a src/gallium/winsys/sw/null/libws_null.a src/gallium/winsys/sw/kms-dri/libswkmsdri.a src/gallium/drivers/llvmpipe/libllvmpipe.a src/gallium/drivers/softpipe/libsoftpipe.a src/vulkan/util/libvulkan_util.a -Wl,-Bsymbolic -Wl,--gc-sections -lLLVM-14 -pthread /usr/lib/libz.so -lm /usr/lib/libdrm.so /usr/lib/libexpat.so /usr/lib/libzstd.so /usr/lib/libunwind.so -lLLVM-14 -lsensors -lLLVM-14 -lLLVM-14 /usr/lib/libxcb-dri3.so /usr/lib/libwayland-client.so /usr/lib/libxcb.so /usr/lib/libX11-xcb.so /usr/lib/libX11.so /usr/lib/libxcb-present.so /usr/lib/libxcb-xfixes.so /usr/lib/libxcb-sync.so /usr/lib/libxcb-randr.so /usr/lib/libxcb-shm.so /usr/lib/libxshmfence.so /usr/lib/libXrandr.so -Wl,--end-group
/usr/bin/ld: src/gallium/frontends/lavapipe/../../../vulkan/wsi/libvulkan_wsi.a.p/wsi_common_display.c.o: in function `udev_event_listener_thread':
wsi_common_display.c:(.text.udev_event_listener_thread+0x2e): undefined reference to `udev_new'
/usr/bin/ld: wsi_common_display.c:(.text.udev_event_listener_thread+0x46): undefined reference to `udev_monitor_new_from_netlink'
/usr/bin/ld: wsi_common_display.c:(.text.udev_event_listener_thread+0x65): undefined reference to `udev_monitor_filter_add_match_subsystem_devtype'
/usr/bin/ld: wsi_common_display.c:(.text.udev_event_listener_thread+0x72): undefined reference to `udev_monitor_enable_receiving'
/usr/bin/ld: wsi_common_display.c:(.text.udev_event_listener_thread+0x7f): undefined reference to `udev_monitor_unref'
/usr/bin/ld: wsi_common_display.c:(.text.udev_event_listener_thread+0x88): undefined reference to `udev_unref'
/usr/bin/ld: wsi_common_display.c:(.text.udev_event_listener_thread+0xc5): undefined reference to `udev_monitor_get_fd'
/usr/bin/ld: wsi_common_display.c:(.text.udev_event_listener_thread+0x114): undefined reference to `udev_monitor_receive_device'
/usr/bin/ld: wsi_common_display.c:(.text.udev_event_listener_thread+0x127): undefined reference to `udev_device_get_property_value'
/usr/bin/ld: wsi_common_display.c:(.text.udev_event_listener_thread+0x1d8): undefined reference to `udev_device_unref'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
Aborting...
Edited by Kyle De'Vir