libsmi reporting parse error, expecting '$'

Folks,
I was getting this error
IF-MIB:1: parse error, expecting `$'
on several differnt platforms and it finally turned out to be an issue with bison/flex. I do not know the details, but I do know that the combination
bison 1.875d and flex 2.5.31 does not work
while the combination
bison 2.1 and flex 2.5.4 seems to be fine.
So if someone runs into similar trouble, make sure you upgrade your build tools...
/js

Hi Juergen!
Juergen Schoenwaelder wrote:
I was getting this error
IF-MIB:1: parse error, expecting `$'
on several differnt platforms and it finally turned out to be an issue with bison/flex. I do not know the details, but I do know that the combination
bison 1.875d and flex 2.5.31 does not work
while the combination
bison 2.1 and flex 2.5.4 seems to be fine.
So if someone runs into similar trouble, make sure you upgrade your build tools...
I don't think it is a problem of the build tools. Some parser related files are not rebuilt (parser-smi[ng].tab.h, see also [1]). I modified the Makefile.am and now it works also for the combination bison 1.875d and flex 2.5.31. The modified Makefile.am has been commited to the svn repository.
Best regards, Torsten
Links: [1] http://agitator.ibr.cs.tu-bs.de/pipermail/libsmi/2005-February/000797.html

On Tue, Dec 13, 2005 at 09:36:54PM +0100, Torsten Klie wrote:
Hi Juergen!
Juergen Schoenwaelder wrote:
I was getting this error
IF-MIB:1: parse error, expecting `$'
on several differnt platforms and it finally turned out to be an issue with bison/flex. I do not know the details, but I do know that the combination
bison 1.875d and flex 2.5.31 does not work
while the combination
bison 2.1 and flex 2.5.4 seems to be fine.
So if someone runs into similar trouble, make sure you upgrade your build tools...
I don't think it is a problem of the build tools. Some parser related files are not rebuilt (parser-smi[ng].tab.h, see also [1]). I modified the Makefile.am and now it works also for the combination bison 1.875d and flex 2.5.31. The modified Makefile.am has been commited to the svn repository.
While think worked fine for a while (actually about two years), I again started to have problems. The error message this time:
IF-MIB:1: parse error, unexpected LOWERCASE_IDENTIFIER, expecting $
The MIB module in question is fine and older versions of the libsmi tools build with older versions of fex/bison are working fine. This time, the combination is bison 2.3 and flex 2.5.4.
/js

On Tue, Mar 13, 2007 at 08:44:17AM +0100, Juergen Schoenwaelder wrote:
On Tue, Dec 13, 2005 at 09:36:54PM +0100, Torsten Klie wrote:
Hi Juergen!
Juergen Schoenwaelder wrote:
I was getting this error
IF-MIB:1: parse error, expecting `$'
on several differnt platforms and it finally turned out to be an issue with bison/flex. I do not know the details, but I do know that the combination
bison 1.875d and flex 2.5.31 does not work
while the combination
bison 2.1 and flex 2.5.4 seems to be fine.
So if someone runs into similar trouble, make sure you upgrade your build tools...
I don't think it is a problem of the build tools. Some parser related files are not rebuilt (parser-smi[ng].tab.h, see also [1]). I modified the Makefile.am and now it works also for the combination bison 1.875d and flex 2.5.31. The modified Makefile.am has been commited to the svn repository.
While think worked fine for a while (actually about two years), I again started to have problems. The error message this time:
IF-MIB:1: parse error, unexpected LOWERCASE_IDENTIFIER, expecting $
The MIB module in question is fine and older versions of the libsmi tools build with older versions of fex/bison are working fine. This time, the combination is bison 2.3 and flex 2.5.4.
It seems flex 2.5.4 is causing this problem. I switched to flex 2.5.33 and everything is fine again. Note that flex on MacOS X as well as the flex package in fink is 2.5.4 (there is a flex-devel package for fink which is 2.5.33; make sure you use this if you hit this error).
/js
participants (2)
-
Juergen Schoenwaelder
-
Torsten Klie