[one-users] Compilation problem
Upendra Sharma
upendras at hotmail.com
Wed Feb 25 14:48:11 PST 2009
Thanks Ruben,
I tried and it doesnt compile ...
my results ..
$> flex -Vflex version 2.5.4$> flex host_parser.l "host_parser.l", line 37: unrecognized %option: header-file
thats odd ... have they removed header-file option in the newer version ???
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 :).
Please do let me know if there is a fix for this problem.
thanks,-upendra
PS:On a completely different note: a not-so-important concern: 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).
> Date: Wed, 25 Feb 2009 18:38:19 +0100
> From: rubensm at dacya.ucm.es
> Subject: Re: [one-users] Compilation problem
> To: users at lists.opennebula.org
> CC: upendras at hotmail.com
>
> Hi,
> Here its working with
> $ flex -V
> flex 2.5.35
> $ bison --version
> bison (GNU Bison) 2.3
>
> So I suggest you to execute flex directly and see if it works:
>
> $ cd one-1.2.0/src/host
> $ flex host_parser.l
>
> Cheers
>
> Ruben
>
>
> On Wednesday 25 February 2009 05:41:00 Upendra Sharma wrote:
>>
>> Hi folks,
>> I tried to compile one-1.2.0 and it threw an error while compiling the lex file.I ran the following command
>> 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
>> I checked the host_parser.l is the same file (using diff).
>> my flex and bison versions are ..lex --versionlex version 2.5.4
>> bison --versionbison (GNU Bison) 2.3
>>
>> of course, I checked ... when I run scons without parsers=yes .. it sails smoothly. Can someone tell me where am I doing it wrong?
>>
>> thanks,-upendra
>>
>> _________________________________________________________________
>> Chose your Life Partner! Join MSN Matrimony FREE
>> http://www.in.msn.com/matrimony
>
> --
> +---------------------------------------------------------------+
> Dr. Ruben Santiago Montero
> Associate Professor
> Distributed System Architecture Group (http://dsa-research.org)
>
> URL: http://dsa-research.org/doku.php?id=people:ruben
> Weblog: http://blog.dsa-research.org/?author=7
>
> GridWay, http://www.gridway.org
> OpenNEbula, http://www.opennebula.org
> +---------------------------------------------------------------+
_________________________________________________________________
Chose your Life Partner! Join MSN Matrimony FREE
http://www.in.msn.com/matrimony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20090225/5d2bb2a1/attachment.htm>
More information about the Users
mailing list