<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hello,<div><br></div><div>It would seem this mailing list is pretty busy - however I have not seen any responses to my email?</div><div><br></div><div>Is there anybody who can take a peek at this and give me some suggestions?</div><div><br></div><div>Thanks,</div><div><br></div><div>Maarten Jacobs<br><br><div><hr id="stopSpelling">From: maarten256@hotmail.com<br>To: libvir-list@redhat.com<br>Date: Sun, 24 Jan 2016 12:57:51 -0500<br>Subject: [libvirt] Compiling libvirt on Cygwin<br><br>

<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
<div dir="ltr">Hello,<div><br></div><div>I have been trying to get libvirt compiled on Cygwin but I have run into a rather perplexing issue.</div><div><br></div><div>I am running a 32-bit installation of Cygwin on Windows 10:</div><div><br></div><div>CYGWIN_NT-10.0-WOW dell-desktop 2.4.0(0.293/5/3) 2016-01-15 16:14 i686 Cygwin</div><div><br></div><div>I have had to "fix" a number of problems in the Makefile that prevented the code from linking properly. I am not sure if the fixes are entirely correct - but as long as the linker was ok I pressed on.</div><div><br></div><div>After applying those changes to the Makefile, I ran into the following issue when creating libvirtd.exe:</div><div><br></div><div><div>  CCLD     libvirtd.exe</div><div>../src/.libs/libvirt_driver_remote.a(libvirt_net_rpc_la-virnetmessage.o): In function `virNetMessageNew':</div><div>/home/maart/source/libvirt/src/rpc/virnetmessage.c:39: multiple definition of `virNetMessageNew'</div><div>/home/maart/source/libvirt/src/.libs/libvirt.dll.a(d002143.o):(.text+0x0): first defined here</div></div><div><span style="font-size:12pt;">...</span></div><div><span style="font-size:12pt;">collect2: error: ld returned 1 exit status</span></div><div><div>Makefile:2152: recipe for target 'libvirtd.exe' failed</div><div>make[3]: *** [libvirtd.exe] Error 1</div><div>make[3]: Leaving directory '/cygdrive/c/cygwin64/home/maart/source/libvirt/daemon'</div><div>Makefile:2050: recipe for target 'all' failed</div><div>make[2]: *** [all] Error 2</div><div>make[2]: Leaving directory '/cygdrive/c/cygwin64/home/maart/source/libvirt/daemon'</div><div>Makefile:1993: recipe for target 'all-recursive' failed</div><div>make[1]: *** [all-recursive] Error 1</div><div>make[1]: Leaving directory '/cygdrive/c/cygwin64/home/maart/source/libvirt'</div><div>Makefile:1887: recipe for target 'all' failed</div><div>make: *** [all] Error 2</div></div><div><br></div><div>It appears to me that somehow when the executable is linked together, it finds two separate definitions of the virNetMessageNew method, however I cannot figure out how that could be.</div><div><br></div><div>If anybody has any suggestions on how to debug this I'd appreciate it.</div><div><br></div><div>For clarity: my aim is to get the code to compile first, whether or not it will actually work under Cygwin. I do not believe there should be a specific reason why this code could not be made to compile/link - even if the end result may not work as intended... But I hope to find that out once I successfully create the resulting executables.</div><div><br></div><div>Thanks,</div><div><br></div><div>Maarten Jacobs</div>                                       </div>
<br>--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list</div></div>                                       </div></body>
</html>