<div dir="ltr"><div><div><div><div><div>Hello,<br><br>I'm trying to set up a development environment on an Arndale (ARM Samsung Exynos 5250) board to work on sVirt. I'm using Debian 7.0, I've downloaded the source code from GIT and than:<br>





<div style="margin-left:40px">
./autogen.sh --prefix=$HOME/usr<br>make<br></div></div></div><br></div><div>but in the middle of make execution, the program fails with this error:<br><div style="margin-left:40px">conf/domain_conf.c: In function 'virDomainHostdevDefParseXML':<br>





conf/domain_conf.c:3915:36: error: 'next_unit' may be used uninitialized in this function [-Werror=uninitialized]<br>
conf/domain_conf.c:3886:9: note: 'next_unit' was declared here<br>conf/domain_conf.c: At top level:<br>cc1: error: unrecognized command line option "-Wno-unused-command-line-argument" [-Werror]<br></div>





<br></div>
<div>I've solved this problem simply initializing the "next_unit" variable (file src/conf/domain_conf.c, line 3886). This is the diff between the original file and the modified one:<br><div style="margin-left:40px">





3886c3886<br><     int next_unit;<br>
---<br>>     int next_unit = -1;<br></div><br>Another way to solve is obviously with --disable-werror, but I guess this is not the best way.<br><br></div><div>My gcc version is 4.6.3 (Debian 4.6.3-14), kernel version is 3.8.0-rc4.<br>






</div><div><br></div>Maybe it's only a compiler problem, but can anyone confirm this? <br>Is it worth to submit a new bug report/patch the source?<br></div><br>Regards,<br></div>Michele<br><div><div><div><div><div><div>



-- <br><div dir="ltr"><b style="color:rgb(51,51,51)"><font>Michele Paolino </font></b><b style="color:rgb(136,136,136)"><br>
</b><font style="color:rgb(136,136,136)">Virtual Open Systems</font><b style="color:rgb(136,136,136)"><font><br></font></b><i style="color:rgb(136,136,136)"><font>Open Source  KVM  Virtualization  Developments<br>Multicore Systems Virtualization Porting Services<br>






</font></i><font style="color:rgb(136,136,136)">Web</font><i style="color:rgb(136,136,136)"><font>:</font></i><span style="color:rgb(102,102,102)"><span style="color:rgb(0,0,0)"> </span><u><span style="color:rgb(0,0,0)"><a href="http://www.virtualopensystems.com/" style="color:rgb(17,85,204)" target="_blank">www.virtualopensystems.com</a></span></u></span></div>







</div></div></div></div></div></div></div>