[libvirt] Compile libvirt on Solaris

Daniel P. Berrange berrange at redhat.com
Thu Sep 6 14:50:03 UTC 2012


On Thu, Sep 06, 2012 at 08:46:33AM +0000, Yang Zhou (yangzho) wrote:
> Thanks for your answer! I realized actually I don't need to compile QEMU driver because the libvirt client is using Remote driver to talk with libvirtd and then libvirtd will call QUME driver in KVM hypervisor. So I removed the "--with-qume" and trying compiling again only with "--with-esx". This time the error happens on la symbols as followings:
> --------------------------------------------------------------------------------------------------------------------------------------------
> ../src/conf/nwfilter_conf.h:600: warning: parameter has incomplete type
>   CCLD   libvirt_driver_security.la
>   CCLD   libvirt.la
> ld: fatal: libvirt.syms: 1616: symbol `virEventAddHandle' is already defined in file: libvirt.syms
> collect2: ld returned 1 exit status

I've posted a patch for this, copying you on the mail.


> It looks like the symbols are duplicated in ./src/libvirt.la. So I tried to remove duplicated symbols manually and tried the make again. Then new errors happened as followings.
> ----------------------------------------------------------------------------
> bash-3.00# make
> make  all-recursive
> Making all in gnulib/lib
> make  all-recursive
> Making all in include
> Making all in libvirt
> Making all in src
>   GEN    libvirt.def
> make  all-am
>   CCLD   libvirt.la
> Undefined                       first referenced
>  symbol                             in file
> networkNotifyActualDevice           libvirt.syms
> networkAllocateActualDevice         libvirt.syms
> networkGetNetworkAddress            libvirt.syms
> networkBuildDhcpDaemonCommandLine   libvirt.syms
> networkReleaseActualDevice          libvirt.syms
> ld: warning: Symbol referencing errors

With current GIT these symbols are no longer exported. I see you were
compiling a old 0.9.9 release of libvirt. Please retry building the
current GIT release instead - we're not doing fixes for 0.9.9.

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




More information about the libvir-list mailing list