On Wed, Sep 23, 2020 at 15:39:49 +0200, Ján Tomko wrote:
We set WITH_LIBATTR in meson.build, not WITH_ATTR.
Signed-off-by: Ján Tomko <jtomko(a)redhat.com>
Fixes: 3ace72965c3b11fc763f781ae7ce3ca29dd36507
---
tests/meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
I got:
[1010/1047] Linking target tests/securityselinuxlabeltest
FAILED: tests/securityselinuxlabeltest
cc -o tests/securityselinuxlabeltest src/libvirt_probes.o
tests/securityselinuxlabeltest.p/securityselinuxlabeltest.c.o -Wl,--as-needed
-Wl,--no-undefined -Wl,-export-dynamic -pie -Wl,--whole-archive -Wl,--start-group
tests/libtest_utils.a tests/libtest_utils_qemu.a -Wl,--no-whole-archive
src/libvirt.so.0.6008.0 -Wl,--no-copy-dt-needed-entries -Wl,-export-dynamic -ldl
/usr/lib64/libglib-2.0.so /usr/lib64/libgobject-2.0.so /usr/lib64/libgio-2.0.so
/usr/lib64/libgnutls.so /usr/lib64/libnl-3.so /usr/lib64/libnl-route-3.so
/usr/lib64/libxml2.so /usr/lib64/libsasl2.so -lselinux /usr/lib64/libtirpc.so
/usr/lib64/libyajl.so -Wl,-export-dynamic -lselinux -Wl,-export-dynamic -lselinux
-Wl,--end-group '-Wl,-rpath,$ORIGIN/../src'
-Wl,-rpath-link,/home/pipo/build/libvirt/gcc/src
/bin/ld: tests/securityselinuxlabeltest.p/securityselinuxlabeltest.c.o: in function
`mymain':
/home/pipo/build/libvirt/gcc/../../../libvirt/tests/securityselinuxlabeltest.c:349:
undefined reference to `virQEMUCapsNew'
/bin/ld:
/home/pipo/build/libvirt/gcc/../../../libvirt/tests/securityselinuxlabeltest.c:352:
undefined reference to `virQEMUCapsSet'
/bin/ld:
/home/pipo/build/libvirt/gcc/../../../libvirt/tests/securityselinuxlabeltest.c:353:
undefined reference to `virQEMUCapsSet'
/bin/ld: tests/libtest_utils_qemu.a(testutilsqemu.c.o): in function
`qemuTestParseCapabilitiesArch':
/home/pipo/build/libvirt/gcc/../../../libvirt/tests/testutilsqemu.c:292: undefined
reference to `virQEMUCapsNewBinary'
/bin/ld: /home/pipo/build/libvirt/gcc/../../../libvirt/tests/testutilsqemu.c:293:
undefined reference to `virQEMUCapsLoadCache'
/bin/ld: tests/libtest_utils_qemu.a(testutilsqemu.c.o): in function
`qemuTestCapsCacheInsert':
/home/pipo/build/libvirt/gcc/../../../libvirt/tests/testutilsqemu.c:328: undefined
reference to `virQEMUCapsNewCopy'
/bin/ld: /home/pipo/build/libvirt/gcc/../../../libvirt/tests/testutilsqemu.c:333:
undefined reference to `virQEMUCapsHasMachines'
/bin/ld: /home/pipo/build/libvirt/gcc/../../../libvirt/tests/testutilsqemu.c:330:
undefined reference to `virQEMUCapsNew'
after applying this patch.