It seems to be a problem of flex. I had this problem with flex 2.5.31.
 2.5.4 works fine for me. Or you could try to add a line

static YY_BUFFER_STATE yy_current_buffer = 0;

in lex.nd.c, which of coz is a pretty bad idea..

Yun

On 2/3/06, Nat Pryce <[EMAIL PROTECTED]> wrote:
> Hi.  I've been trying to get the TinyOS toolchain to build on Linux
> (Ubuntu 5.10).  I get the error below when compiling NesC.  Anybody
> have any idea how to fix this?  Do I have the wrong version of flex?
>
>
> make[3]: Entering directory
> `/home/npryce/projects/cityware/tinyos-auto-build/nesc/src'
> if gcc -DHAVE_CONFIG_H -I. -I. -I.  -I./libcompat    -g -Wall -MT
> lex.nd.o -MD -MP -MF ".deps/lex.nd.Tpo" -c -o lex.nd.o lex.nd.c; \
> then mv -f ".deps/lex.nd.Tpo" ".deps/lex.nd.Po"; else rm -f
> ".deps/lex.nd.Tpo"; exit 1; fi
> nesc-dspec.l: In function 'nd_read':
> nesc-dspec.l:93: error: 'yy_current_buffer' undeclared (first use in
> this function)
> nesc-dspec.l:93: error: (Each undeclared identifier is reported only once
> nesc-dspec.l:93: error: for each function it appears in.)
> make[3]: *** [lex.nd.o] Error 1
>
>
> Thanks for any advice.
>
> --Nat.
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to