<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>Hello,</div><div><br></div><div>Seems that a include is missing from that file.</div><div><br></div><div>Please add this line:</div><div><br></div><div>#include <stdio.h></div><div><br></div><div>to src/template/template_syntax.cc, it should fix your problem. If the fix is correct we will add you this patch to our code.</div><div><br></div><div>Bye</div><br><div><div>On Jun 24, 2009, at 3:49 PM, Nandakumar Pezhery wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi,</div> <div>here are the versions:</div> <div> </div> <div>[root@localhost ~]# rpm -qa | grep gcc<br>gcc-4.4.0-4.i586<br>gcc-gfortran-4.4.0-4.i586<br>libgcc-4.4.0-4.i586<br><strong>gcc-c++-4.4.0-4.i586</strong><br>[root@localhost ~]# rpm -qa | grep scons<br><strong>scons-1.2.0-2.fc11.noarch</strong><br> <br>Thanks</div> <div> </div> <div class="gmail_quote">On Wed, Jun 24, 2009 at 6:23 PM, Javier Fontan <span dir="ltr"><<a href="mailto:jfontan@fdi.ucm.es">jfontan@fdi.ucm.es</a>></span> wrote:<br> <blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>Hello,<br><br>Please, tell me the version of scons and g++ you are using. I can not reproduce that error in our machines, perhaps there is something different in the versions you are using.<br> <br>Bye <div> <div></div> <div class="h5"><br><br>On Jun 24, 2009, at 6:57 AM, Nandakumar Pezhery wrote:<br><br></div></div> <blockquote class="gmail_quote" style="padding-left: 1ex; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid; position: static; z-index: auto; "> <div> <div></div> <div class="h5">Hi,<br>I am installing OpenNebula 1.2 on Fedora Core 11<br>2.6.29.4-167.fc11.i686.PAE<br><br>I downloaded and untared the OpenNebula tarball.<br>Changed to the created folder and ran scons to compile OpenNebula<br> <br>I get the following error:<br>scons: Building targets ...<br>g++ -o src/template/template_syntax.o -c -g -Wall -Iinclude src/template/template_syntax.cc<br>template_syntax.y: In function 'void template_error(YYLTYPE*, Template*, char**, const char*)':<br> template_syntax.y:170: error: 'snprintf' was not declared in this scope<br>scons: *** [src/template/template_syntax.o] Error 1<br>scons: building terminated because of errors.<br><br><br>Any clues?<br><br>Rgds<br> Nandakumar<br><br></div></div>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br><a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br> </blockquote><br>-- <br>Javier Fontan, Grid & Virtualization Technology Engineer/Researcher<br>DSA Research Group: <a href="http://dsa-research.org/" target="_blank">http://dsa-research.org</a><br>Globus GridWay Metascheduler: <a href="http://www.gridway.org/" target="_blank">http://www.GridWay.org</a><br> OpenNebula Virtual Infrastructure Engine: <a href="http://www.opennebula.org/" target="_blank">http://www.OpenNebula.org</a><br><br></blockquote></div><br></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="font-size: 12px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>-- <br>Javier Fontan, Grid & Virtualization Technology Engineer/Researcher<br>DSA Research Group: <a href="http://dsa-research.org">http://dsa-research.org</a><br>Globus GridWay Metascheduler: <a href="http://www.GridWay.org">http://www.GridWay.org</a>  <br>OpenNebula Virtual Infrastructure Engine: <a href="http://www.OpenNebula.org">http://www.OpenNebula.org</a></div></div></div></span> </div><br></body></html>