Re: Can't compile CVS comedilib on kernel 2.6.15.7 with RTAI 3.3

On Tuesday 28 November 2006 02:51 pm, Ivan Martinez wrote:
> Thanks Ian and Frank.
> I'm not using Bison 1:2.1-0.2ubuntu1 and getting the following errors
> when doing make:
>
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -Wall -D_REENTRANT
> -DLOCALSTATEDIR=\"/usr/local/var\" -g -O2 -MT
> libcomedi_la-calib_lex.lo -MD -MP -MF .deps/libcomedi_la-calib_lex.Tpo
> -c calib_lex.c  -fPIC -DPIC -o .libs/libcomedi_la-calib_lex.o
> ./calib_lex.c:791: error: syntax error before '*' token
> ./calib_lex.c: In function 'calib_yylex':
> ./calib_lex.c:796: error: 'yyscanner' undeclared (first use in this
> function) ./calib_lex.c:796: error: (Each undeclared identifier is
> reported only once ./calib_lex.c:796: error: for each function it
> appears in.)
> calib_lex.l:51: error: 'calib_lvalp' undeclared (first use in this
> function) calib_lex.l:53: error: 'T_STRING' undeclared (first use in
> this function) ...and many other error about undeclared 'T_something'.

The calib_lex files are produced by flex, you'll need to use a version new 
enough to produce reentrant scanners (I'm using 2.5.31-31sarge1 from 
debian currently).

-- 
Frank

Received on 2006-11-29Z01:28:14