<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Thanks Ruben,<div><br></div><div>I tried and it doesnt compile ... </div><div><br></div><div>my results ..</div><div><div><br></div><div>$> flex -V</div><div>flex version 2.5.4</div><div>$> flex host_parser.l </div><div>"host_parser.l", line 37: unrecognized %option: header-file</div><div><br></div><div><br></div><div>thats odd ... have they removed header-file option in the newer version ???</div><div><br></div><div>Frankly, I was trying to add an extra "SimpleOption" in the configuration file so, simply out of precaution, I switched on the flag "parsers=yes". Later, I checked that the lex file is general enough to work for me without any change. So, currently, I have managed to get it working ... but wanted to check with you folks if there is something wrong in my setup ... and it seems there is something wrong :).</div><div><br></div><div>Please do let me know if there is a fix for this problem.</div><div><br></div><div>thanks,</div><div>-upendra</div><div><br></div><div>PS:</div><div>On a completely different note: a not-so-important concern: </div><div>I was wondering why the nebula folks chose to write their own parser, and why not use the standard XML parser? Given that storing configuration info in XMLs is not unpopular (I guess its widely followed).</div><div><br></div><div><br></div><br>> Date: Wed, 25 Feb 2009 18:38:19 +0100<br>> From: rubensm@dacya.ucm.es<br>> Subject: Re: [one-users] Compilation problem<br>> To: users@lists.opennebula.org<br>> CC: upendras@hotmail.com<br>> <br>> Hi,<br>> Here its working with<br>> $ flex -V<br>> flex 2.5.35<br>> $ bison --version<br>> bison (GNU Bison) 2.3<br>> <br>> So I suggest you to execute flex directly and see if it works:<br>> <br>> $ cd one-1.2.0/src/host<br>> $ flex host_parser.l<br>> <br>> Cheers<br>> <br>> Ruben<br>> <br>> <br>> On Wednesday 25 February 2009 05:41:00 Upendra Sharma wrote:<br>>> <br>>> Hi folks,<br>>> I tried to compile one-1.2.0 and it threw an error while compiling the lex file.I ran the following command <br>>> scons parsers=yes...build_lex(["src/host/host_parser.c", "src/host/host_parser.h"], ["src/host/host_parser.l"])"host_parser.l", line 37: unrecognized %option: header-file<br>>> I checked the host_parser.l is the same file (using diff).<br>>> my flex and bison versions are ..lex --versionlex version 2.5.4<br>>> bison --versionbison (GNU Bison) 2.3<br>>> <br>>> of course, I checked ... when I run scons without parsers=yes .. it sails smoothly. Can someone tell me where am I doing it wrong?<br>>> <br>>> thanks,-upendra<br>>> <br>>> _________________________________________________________________<br>>> Chose your Life Partner! Join MSN Matrimony FREE<br>>> http://www.in.msn.com/matrimony<br>> <br>> -- <br>> +---------------------------------------------------------------+<br>> Dr. Ruben Santiago Montero<br>> Associate Professor<br>> Distributed System Architecture Group (http://dsa-research.org)<br>> <br>> URL: http://dsa-research.org/doku.php?id=people:ruben<br>> Weblog: http://blog.dsa-research.org/?author=7<br>> <br>> GridWay, http://www.gridway.org<br>> OpenNEbula, http://www.opennebula.org<br>> +---------------------------------------------------------------+<br></div><br /><hr />Akshay Kumar takes on the two reigning Bollywood Khans. Catch the action on MSN Entertainment! <a href='http://entertainment.in.msn.com' target='_new'>Check it out!</a></body>
</html>