[libvirt] Duplicate symbol error with 0.9.3 on OSX

Matthias Bolte matthias.bolte at googlemail.com
Mon Jul 4 15:23:11 UTC 2011

2011/7/4 Justin Clift <jclift at redhat.com>:
> Hi all,
> Just went to update the OSX libvirt build for 0.9.3, but it's
> giving a duplicate symbol error:
>  ld: duplicate symbol _virNetworkDNSHostsDef in ./.libs/libvirt_driver_test.a(libvirt_driver_test_la-test_driver.o) and ./.libs/libvirt_conf.a(libvirt_conf_la-network_conf.o)
> "virNetworkDNSHostsDef" is definitely in src/conf/network_conf.*,
> but not seeing it anywhere in src/test/test_driver.*.
> Anyone have suggestions on what to look at?
> Regards and best wishes,
> Justin Clift

The problem seems to the the struct A {} A; style. This looks bogus.
Here's a patch that might fix it.

Matthias Bolte
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-conf-Fix-declaration-of-virNetworkDNS-Hosts-Def-stru.patch
Type: application/mbox
Size: 1500 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110704/d4f45cb5/attachment-0001.mbox>

More information about the libvir-list mailing list