function dummy_glXChooseVisual: error: undefined reference to 'XMatchVisualInfo
Latest 1.3.0 version fails to build https://abf.openmandriva.org/build_lists/650664
Looks like -lX11 is missing in tests/meson_build.txt
FAILED: tests/dummy/libGLX_dummy.so
/usr/bin/clang -o tests/dummy/libGLX_dummy.so 'tests/dummy/bdc5d17@@GLX_dummy@sha/GLX_dummy.c.o' -Wl,--as-needed -Wl,--allow-shlib-undefined -shared -fPIC -Wl,--start-group -Wl,-soname,libGLX_dummy.so -Os -fomit-frame-pointer -gdwarf-4 -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -fstack-protector-strong --param=ssp-buffer-size=4 -m64 -mtune=generic -flto -O3 -Wstrict-aliasing=0 -Os -fomit-frame-pointer -gdwarf-4 -Wstrict-aliasing=2 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -m64 -mtune=generic -flto -O3 -Wstrict-aliasing=0 -Wl,-O2 -Wl,--no-undefined -flto -fuse-ld=gold tests/dummy/libpatchentrypoints.a src/util/libtrace.a src/util/libutils_misc.a -Wl,--end-group '-Wl,-rpath,$ORIGIN/:$ORIGIN/../../src/util' -Wl,-rpath-link,/builddir/build/BUILD/libglvnd-1.3.0/build/tests/dummy -Wl,-rpath-link,/builddir/build/BUILD/libglvnd-1.3.0/build/src/util
/tmp/lto-llvm-66a480.o:ld-temp.o:function dummy_glXChooseVisual: error: undefined reference to 'XMatchVisualInfo'
/tmp/lto-llvm-66a480.o:ld-temp.o:function dummy_glXGetVisualFromFBConfig: error: undefined reference to 'XMatchVisualInfo'
clang-9: error: linker command failed with exit code 1 (use -v to see invocation)
[74/128] Compiling C object 'tests/59830eb@@glxcreatecontext@exe/testglxcreatecontext.c.o'.
[75/128] Compiling C object 'tests/59830eb@@glxcreatecontext@exe/test_utils.c.o'.
[76/128] Generating symbol file 'src/GLdispatch/b69c0ea@@GLdispatch@sha/libGLdispatch.so.0.0.0.symbols'.
[77/128] Linking target tests/dummy/libEGL_dummy0.so.
[78/128] Compiling C object 'src/GLX/9433ddc@@GLX@sha/libglx.c.o'.
[79/128] Linking target tests/dummy/libEGL_dummy1.so.
[80/128] Compiling C object 'src/GLX/9433ddc@@GLX@sha/libglxmapping.c.o'.
ninja: build stopped: subcommand failed.
Edited by Tomasz Paweł Gajc