Hello everyone,
I am currently trying to compile the TestSerial tutorial application from
the wiki on a telosb mote, but I can't seem to get it working.
I have installed TinyOS on a freshly installed Ubuntu 9.04 using the
repositories from the web. After modifying the CLASSPATH so it points to
tinyos.jar instead of the directory and adding '.', I still had problems
compiling. Looking at the archives I found that stddef.h did not load
properly so I added the lines:
CFLAGS += -I/usr/lib/gcc/i486-linux-gnu/4.3/include/
CFLAGS += -I/usr/include/
to the Makefile.
This solved the problem partially, now I have a new error that I can't
seem to find anywhere on the archives.
Compiling TestSerial with 'make telosb' gives the following:
$ make telosb
mkdir -p build/telosb
compiling TestSerialAppC to a telosb binary
ncc -o build/telosb/main.exe -Os -O -mdisable-hwmul -Wall -Wshadow
-Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c -board=
-DDEFINED_TOS_AM_GROUP=0x22 -I/opt/tinyos-2.1.0/tos/lib/T2Hack
-I/usr/lib/gcc/i486-linux-gnu/4.3/include/ -I/usr/include/
-DIDENT_APPNAME=\"TestSerialAppC\" -DIDENT_USERNAME=\"ivan\"
-DIDENT_HOSTNAME=\"dell-desktop\" -DIDENT_USERHASH=0x96db2062L
-DIDENT_TIMESTAMP=0x4a4ca941L -DIDENT_UIDHASH=0x048ca3f3L
TestSerialAppC.nc -lm
In file included from /opt/tinyos-2.1.0/tos/platforms/telosb/hardware.h:4,
from /opt/tinyos-2.1.0/tos/system/SchedulerBasicP.nc:41,
from /opt/tinyos-2.1.0/tos/system/TinySchedulerC.nc:40:
/opt/tinyos-2.1.0/tos/chips/msp430/msp430hardware.h: In function
`__nesc_disable_interrupt':
/opt/tinyos-2.1.0/tos/chips/msp430/msp430hardware.h:208: warning: implicit
declaration of function `dint'
/opt/tinyos-2.1.0/tos/chips/msp430/msp430hardware.h: In function
`__nesc_enable_interrupt':
/opt/tinyos-2.1.0/tos/chips/msp430/msp430hardware.h:214: warning: implicit
declaration of function `eint'
/opt/tinyos-2.1.0/tos/chips/msp430/msp430hardware.h: In function
`__nesc_enable_interrupt':
/opt/tinyos-2.1.0/tos/chips/msp430/msp430hardware.h:214: warning: implicit
declaration of function `eint'
/opt/tinyos-2.1.0/tos/chips/msp430/msp430hardware.h: In function
`__nesc_disable_interrupt':
/opt/tinyos-2.1.0/tos/chips/msp430/msp430hardware.h:208: warning: implicit
declaration of function `dint'
/tmp/ccjZTUWG.o: En la función `__nesc_atomic_start':
app.c:(.text+0x1e): referencia a `dint' sin definir
/tmp/ccjZTUWG.o: En la función `__nesc_atomic_end':
app.c:(.text+0x2e): referencia a `eint' sin definir
/tmp/ccjZTUWG.o: En la función `main':
app.c:(.text+0x4ec): referencia a `eint' sin definir
app.c:(.text+0x52a): referencia a `dint' sin definir
make: *** [exe0] Error 1
"referencia a XXXX sin definir" means "undefined reference to XXXX" in
English.
I would be really grateful if someone could help me. Thank you very much
in advance.
Best regards,
Iván
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help