Re: [PATCH v2] Link libxml2 and libdbus in tests which need it.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Apr 08, 2013 at 07:54:55AM -0500, Serge Hallyn wrote:
> Some tests fail to build without libxml2 or libdbus specified, add
> them where needed.
> 
> Without this, I get errors like
> 
> /usr/bin/ld: virnettlscontexttest.o: undefined reference to symbol 'gnutls_x509_crt_set_activation_time@@GNUTLS_1_4'
> /usr/bin/ld: note: 'gnutls_x509_crt_set_activation_time@@GNUTLS_1_4' is defined in DSO /usr/lib/x86_64-linux-gnu/libgnutls.so.26 so try adding it to the linker command line
> /usr/lib/x86_64-linux-gnu/libgnutls.so.26: could not read symbols: Invalid operation
> collect2: error: ld returned 1 exit status

So this makes sense because virnettlscontexttest.c directly
calls various TLS APIs, and so needs to link to gnutls.

I'm not seeing why you need to add dbus + libxml to all these
other tests though. What errors are you getting from them ?

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]