[Tinyos-help] Problems compiling on Fedora core 4

Avinash Sridharan avinash.sridharan at gmail.com
Mon Sep 26 18:02:49 PDT 2005


 Hi All,
I have been tryin to install TinyOS 1.1.0 on fedora core 4. I have already
done the same on an older machine with Fedora core 3, and things went
through just fine.
Firstly the locate-jre script used in tinyos.h and other places is not able
to lcoate the javac, java and jni directories correctly. This is due to some
problem with the IBM-Java2 package naming problem. After I got every
installed and ran toscheck, I had to manually compile the tools. Weirdly I
had to include "#include <stddef.h>" to Global.h under 'uisp' folder to get
it compiling.

Now I am trying to compile a simple app 'Sense' and these are the errors I
am receiving (I even upgraded to the lates CVS release 1.1.4 and still the
result stays the same):
------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[root at dynamic-134-221 Sense]# make pc
compiling Sense to a pc binary
ncc -o build/pc/main.exe -g -O0 -board=micasb -pthread -target=pc -Wall
-Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -fnesc-nido-tosnodes=1000
-fnesc-cfile=build/pc/app.c -I /local/lib/gcc-lib/avr/3.3-tinyos/include/ -I
/usr/linux/include Sense.nc <http://sense.nc/> -lm
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:157: parse error before `struct'
/opt/tinyos-1.x/tos/types/AM.h:159: parse error before `struct'
/opt/tinyos-1.x/tos/types/AM.h: In function `TOS_MsgLength':
/opt/tinyos-1.x/tos/types/AM.h:187: 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:159: 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:159: warning: location of shadowed
declaration
make: *** [build/pc/main.exe] Error 1
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Could some one give me some pointers as to what I might be doing wrong here.

Thanks,
Avinash
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20050926/d08649e0/attachment.html


More information about the Tinyos-help mailing list