
Hello! I'm working with libsmi-0.4.1 and I have one problem. I don't know what options was used to compile parser-smi.y file. I compiled this file with command (I didn't make any changes in this file):
bison -d parser-smi.y
and after this I have two files: parser-smi.tab.c 294KB parser-smi.tab.h 7KB
Size of these files is different than size of original files in libsmi-0.4.1 (in turn: 292KB and 1KB). In addition when I try to compile whole libsmi library with original parser files, everything is allright, but with these files which I got as a result of bison's work I have error: NMAKE : fatal error U1077: 'cl' : return code '0x2'
To compile library I use makefile file from win directory as it is shown in README.win file.
Maybe the original files were compiled with other options or I do some mistakes during compilation parser-smi.y file.
Help me, please! Tom

miksiu wrote:
Hello! I'm working with libsmi-0.4.1 and I have one problem. I don't know what options was used to compile parser-smi.y file. I compiled this file with command (I didn't make any changes in this file):
bison -d parser-smi.y
and after this I have two files: parser-smi.tab.c 294KB parser-smi.tab.h 7KB
Size of these files is different than size of original files in libsmi-0.4.1 (in turn: 292KB and 1KB). In addition when I try to compile whole libsmi library with original parser files, everything is allright, but with these files which I got as a result of bison's work I have error: NMAKE : fatal error U1077: 'cl' : return code '0x2'
To compile library I use makefile file from win directory as it is shown in README.win file.
Maybe the original files were compiled with other options or I do some mistakes during compilation parser-smi.y file.
I suggest to either stick with the bison (and flex) generated files that come with libsmi or look at (or simply use) lib/Makefile.am to find out how to call bison. Please note that (at least in the past) there have been releases of bison that made an uggly "sed"-workaround in the Makefile.am necessary.
-frank

Hi,
At Mon, 29 Nov 2004 16:51:40 +0100 miksiu wrote:
miksiu> Hello! miksiu> I'm working with libsmi-0.4.1 and I have one problem. I don't know what miksiu> options was used to compile parser-smi.y file. I compiled this file with miksiu> command (I didn't make any changes in this file):
miksiu> bison -d parser-smi.y
try:
bison -v -t -d -psmi parser-smi.y
and likewise for sming:
bison -v -t -d -psming parser-sming.y
and to generate scanner-smi.c and scanner-sming.c
flex -Cfe -Psmi -t scanner-smi.l > scanner-smi.c flex -Cfe -Psming -t scanner-sming.l > scanner-sming.c
should work (taken from the Makefile generated for a linux platform).
Erik
participants (3)
-
Erik Schoenfelder
-
Frank Strauß
-
miksiu