2011/7/4 Justin Clift <jclift 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
http://photron.blogspot.com
Attachment:
0003-conf-Fix-declaration-of-virNetworkDNS-Hosts-Def-stru.patch
Description: application/mbox