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

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

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 ?

|: 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 :|

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