I got nesc to work using 1.1.3 and applying the patch, reversed.  

Here is an attached patch, just cd into the src directory of nesc and run
patch < c-parse.gperf.patch

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:tinyos-help-
> [EMAIL PROTECTED] On Behalf Of Justin Dugger
> Sent: Tuesday, May 30, 2006 10:21
> To: Michael D
> Cc: tinyos-help@Millennium.Berkeley.EDU
> Subject: Re: [Tinyos-help] problem with make pc
> 
> I was getting the same error on Ubuntu, but it turns out that my
> version of nescc was too old.  If you checked tinyos out from CVS,
> you'll need 1.2.4 it seems.  If "ncc --version" reports something like
> 1.1.2b instead of 1.2.4,  it will tank on the offset() function.  The
> most difficult part in fixing this would probably be finding where the
> old version is coming from. There's a command called "which" that
> reports back where a given program is stored. For example:
> 
>    [EMAIL PROTECTED]:~$ which eclipse
>    /usr/bin/eclipse
> 
> Hopefully that fixes it.
> 
> Justin Dugger
> 
> 
> On 5/30/06, Michael D <[EMAIL PROTECTED]> wrote:
> > When i try to compile a application with make pc i get the following
> error
> >
> > In file included from /opt/tinyos-1.x/tos/platform/pc/packet_sim.h:55,
> >                  from /opt/tinyos-1.x/tos/platform/pc/nido.h:84,
> >                  from /opt/tinyos-1.x/tos/platform/pc/hardware.h:43,
> >                  from /opt/tinyos-1.x/tos/system/tos.h:144:
> > /opt/tinyos-1.x/tos/types/AM.h:155: parse error before `struct'
> > /opt/tinyos-1.x/tos/types/AM.h:156: parse error before `struct'
> > /opt/tinyos-1.x/tos/types/AM.h:158: parse error before `struct'
> > /opt/tinyos-1.x/tos/types/AM.h: In function `TOS_MsgLength':
> > /opt/tinyos-1.x/tos/types/AM.h:186: parse error before `TOS_Msg'
> > In file included from /opt/tinyos-1.x/tos/platform/pc/hardware.h:116,
> >                  from /opt/tinyos-1.x/tos/system/tos.h:144:
> > /opt/tinyos-1.x/tos/platform/pc/eeprom.c: At top level:
> > /opt/tinyos-1.x/tos/platform/pc/eeprom.c:147: warning: declaration of
> > `length' shadows global declaration
> > /opt/tinyos-1.x/tos/types/AM.h:158: warning: location of shadowed
> > declaration
> > /opt/tinyos-1.x/tos/platform/pc/eeprom.c:177: warning: declaration of
> > `length' shadows global declaration
> > /opt/tinyos-1.x/tos/types/AM.h:158: warning: location of shadowed
> > declaration
> > make: *** [exe0] Error 1
> >
> >
> > I already tried to recompile the nesc compiler with the patch that was
> > suggested in :
> > https://mail.millennium.berkeley.edu/pipermail/tinyos-help/2005-
> September/012219.html
> > but it doesnt work.
> >
> > I tried to change the offestof() macro in stddef.h to the old function,
> > but i dont know how to do that.
> > Can anyone help me with this?
> >
> >
> >                            lg, mike
> > _______________________________________________
> > Tinyos-help mailing list
> > Tinyos-help@Millennium.Berkeley.EDU
> > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-
> help
> >
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Attachment: c-parse.gperf.patch
Description: Binary data

_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to