The problem is in the Makefile.
The target is specified as null. Changing this to $(PLATFORM), the
code compiles without problem.
Wonder why it was set to null in the first place ....
Anyway, hope this helps others if they run into similar problems.

Abhay

On 10/29/09, Abhay Ghatpande <[email protected]> wrote:
> I am using tinyos-2.x on Mac OS 1.6.
>
> Blink app builds and installs to mote (telosb) successfully.
>
> However, when I try to build the TestSerial app, I get a long list of
> warnings and errors reproduced below:
>
> ----
>  In file included from /usr/include/string.h:148,
>                  from
> /Users/abhay/Developer/Source/tinyos-2.x/tos/system/tos.h:13:
> /usr/include/secure/_string.h: In function `__inline_memcpy_chk':
> /usr/include/secure/_string.h:58: warning: return makes pointer from
> integer without a cast
> /usr/include/secure/_string.h: In function `__inline_memmove_chk':
> /usr/include/secure/_string.h:69: warning: return makes pointer from
> integer without a cast
> /usr/include/secure/_string.h: In function `__inline_memset_chk':
> /usr/include/secure/_string.h:80: warning: return makes pointer from
> integer without a cast
> /usr/include/secure/_string.h: In function `__inline_strcpy_chk':
> /usr/include/secure/_string.h:91: warning: return makes pointer from
> integer without a cast
> /usr/include/secure/_string.h: In function `__inline_stpcpy_chk':
> /usr/include/secure/_string.h:103: warning: return makes pointer from
> integer without a cast
> /usr/include/secure/_string.h: In function `__inline_strncpy_chk':
> /usr/include/secure/_string.h:116: warning: return makes pointer from
> integer without a cast
> /usr/include/secure/_string.h: In function `__inline_strcat_chk':
> /usr/include/secure/_string.h:127: warning: return makes pointer from
> integer without a cast
> /usr/include/secure/_string.h: In function `__inline_strncat_chk':
> /usr/include/secure/_string.h:139: warning: return makes pointer from
> integer without a cast
> In file included from
> /Users/abhay/Developer/Source/tinyos-2.x/tos/system/tos.h:14:
> /usr/include/stdlib.h: At top level:
> /usr/include/stdlib.h:272: syntax error before `^'
> /usr/include/stdlib.h:272: `type name' declared as function returning a
> function
> /usr/include/stdlib.h:274: syntax error before `^'
> /usr/include/stdlib.h:274: `type name' declared as function returning a
> function
> /usr/include/stdlib.h:301: syntax error before `^'
> /usr/include/stdlib.h:301: `type name' declared as function returning a
> function
> /usr/include/stdlib.h:307: syntax error before `^'
> /usr/include/stdlib.h:307: `type name' declared as function returning a
> function
> /usr/include/stdlib.h:313: syntax error before `^'
> /usr/include/stdlib.h:313: `type name' declared as function returning a
> function
> /usr/include/stdlib.h:319: syntax error before `^'
> /usr/include/stdlib.h:319: `type name' declared as function returning a
> function
> In file included from
> /Users/abhay/Developer/Source/tinyos-2.x/tos/system/SchedulerBasicP.nc:41,
>                  from
> /Users/abhay/Developer/Source/tinyos-2.x/tos/system/TinySchedulerC.nc:40:
> /Users/abhay/Developer/Source/tinyos-2.x/tos/platforms/null/hardware.h:
> In function `__nesc_ntoh_afloat':
> /Users/abhay/Developer/Source/tinyos-2.x/tos/platforms/null/hardware.h:22:
> warning: pointer/integer type mismatch in conditional expression
> /Users/abhay/Developer/Source/tinyos-2.x/tos/platforms/null/hardware.h:
> In function `__nesc_hton_afloat':
> /Users/abhay/Developer/Source/tinyos-2.x/tos/platforms/null/hardware.h:27:
> warning: pointer/integer type mismatch in conditional expression
> In file included from
> /Users/abhay/Developer/Source/tinyos-2.x/tos/system/TinySchedulerC.nc:40:
> In component `SchedulerBasicP':
> /Users/abhay/Developer/Source/tinyos-2.x/tos/system/SchedulerBasicP.nc:
> In function `Scheduler.init':
> /Users/abhay/Developer/Source/tinyos-2.x/tos/system/SchedulerBasicP.nc:117:
> warning: pointer/integer type mismatch in conditional expression
> failed to parse message file TestSerial.h
> make: *** [TestSerialMsg.java] Error 1
> -----
>
> I'm pretty new to this, and I've never seen the '^' mark in a C file
> before, but it sure is present in the stdlib.h file.
>
> Any ideas?
>
> Thanks,
>
> Abhay
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to