
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