[libvirt] [PATCH] Fix several undefined symbol errors in loadable driver modules
Paolo Bonzini
pbonzini at redhat.com
Wed Jun 23 11:08:40 UTC 2010
On 06/23/2010 12:50 PM, Daniel P. Berrange wrote:
>> > libvirt_driver_test_la_LDFLAGS = -module -avoid-version
>> > +libvirt_driver_test_la_LIBADD = libvirt.la ../gnulib/lib/libgnu.la
> I don't think it is right to link to libvirt.la here or with other
> driver modules.
>
> The libvirtd daemon links to libvirt.la already, and is built such
> that all exported symbols are available to modules that are dlopen()d
> Thus it should be sufficient to add symbols to libvirt_private.syms
> and not link to libvirt.la in driver modules.
I don't think that works on Windows. Windows DLLs must not have
undefined symbols. They do not get "magic" access to symbols exported
by previously loaded libraries and (as in this case) programs.
Paolo
More information about the libvir-list
mailing list