Hi all,

I trying to install the IPBaseStation to a telosb mote and I have some
errors...

r...@aldo-laptop:/opt/tinyos-2.x-contrib/berkeley/blip/apps/IPBaseStation#
make telosb blip
mkdir -p build/telosb
    compiling BaseStationC to a telosb binary
ncc -o build/telosb/main.exe  -Os -O -DPACKET_LINK -DDEF_MEMCPY
-DENABLE_SPI0_DMA -DBLIP_MULTICAST -DCC2420_HW_ACKNOWLEDGEMENTS
-DTOSH_DATA_LENGTH=102 -I/opt/tinyos-2.x/tos/lib/net/
-I/opt/tinyos-2.x-contrib/berkeley/blip/support/sdk/c/blip/lib6lowpan/
-I/opt/tinyos-2.x-contrib/berkeley/blip/support/sdk/c/blip/libtcp/
-I/opt/tinyos-2.x-contrib/berkeley/blip/tos/lib/net/blip/
-I/opt/tinyos-2.x-contrib/berkeley/blip/tos/lib/net/blip/interfaces/
-I/opt/tinyos-2.x-contrib/berkeley/blip/tos/lib/net/blip/nwprog/
-I/opt/tinyos-2.x-contrib/berkeley/blip/tos/lib/net/blip/shell/
-I/opt/tinyos-2.x-contrib/berkeley/blip/tos/lib/net/blip/serial/
-I/opt/tinyos-2.x-contrib/berkeley/blip/tos/lib/net/blip/platform/
/opt/tinyos-2.x-contrib/berkeley/blip/support/sdk/c/blip/lib6lowpan/lib6lowpan.c
/opt/tinyos-2.x-contrib/berkeley/blip/support/sdk/c/blip/lib6lowpan/lib6lowpanIP.c
/opt/tinyos-2.x-contrib/berkeley/blip/support/sdk/c/blip/lib6lowpan/lib6lowpanFrag.c
/opt/tinyos-2.x-contrib/berkeley/blip/support/sdk/c/blip/lib6lowpan/in_cksum.c
/opt/tinyos-2.x-contrib/berkeley/blip/support/sdk/c/blip/lib6lowpan/ip_malloc.c
/opt/tinyos-2.x-contrib/berkeley/blip/tos/lib/net/blip/table.c
-mdisable-hwmul -fnesc-separator=__ -Wall -Wshadow -Wnesc-all -target=telosb
-fnesc-cfile=build/telosb/app.c -board= -DDEFINED_TOS_AM_GROUP=0x22
-DPACKET_LINK -DDEF_MEMCPY -DCC2420_HW_ACKNOWLEDGEMENTS
-DTOSH_DATA_LENGTH=102
-I/opt/tinyos-2.x-contrib/berkeley/blip/tos/chips/cc2420/
-I/opt/tinyos-2.x-contrib/berkeley/blip/tos/chips/cc2420/interfaces/
-I/opt/tinyos-2.x-contrib/berkeley/blip/tos/chips/cc2420/packet/
-I/opt/tinyos-2.x-contrib/berkeley/blip/tos/chips/cc2420/link/
-I/opt/tinyos-2.x-contrib/berkeley/blip/tos/chips/cc2420/lowpan/
-I/opt/tinyos-2.x-contrib/berkeley/blip/support/sdk/c/blip/include/
-I/opt/tinyos-2.x-contrib/berkeley/blip/support/sdk/c/blip/libtcp/
-I/opt/tinyos-2.x-contrib/berkeley/blip/tos/lib/net/blip/
-I/opt/tinyos-2.x-contrib/berkeley/blip/tos/lib/net/blip/interfaces/
-I/opt/tinyos-2.x-contrib/berkeley/blip/tos/lib/net/blip/nwprog/
-I/opt/tinyos-2.x-contrib/berkeley/blip/tos/lib/net/blip/shell/
-I/opt/tinyos-2.x-contrib/berkeley/blip/tos/lib/net/blip/serial/
/opt/tinyos-2.x-contrib/berkeley/blip/support/sdk/c/blip/lib6lowpan/lib6lowpan.c
/opt/tinyos-2.x-contrib/berkeley/blip/support/sdk/c/blip/lib6lowpan/lib6lowpanIP.c
/opt/tinyos-2.x-contrib/berkeley/blip/support/sdk/c/blip/lib6lowpan/lib6lowpanFrag.c
/opt/tinyos-2.x-contrib/berkeley/blip/support/sdk/c/blip/lib6lowpan/in_cksum.c
/opt/tinyos-2.x-contrib/berkeley/blip/support/sdk/c/blip/lib6lowpan/ip_malloc.c
-DNO_IP_MALLOC -DIDENT_APPNAME=\"BaseStationC\" -DIDENT_USERNAME=\"root\"
-DIDENT_HOSTNAME=\"aldo-laptop\" -DIDENT_USERHASH=0x8964ff76L
-DIDENT_TIMESTAMP=0x4b4d5809L -DIDENT_UIDHASH=0x2bd7802bL  BaseStationC.nc
-lm
/opt/tinyos-2.x/tos/chips/msp430/usart/Msp430Spi0C.nc:62:2: warning:
#warning "Enabling SPI DMA on USART0"
/opt/tinyos-2.x/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning: #warning
"*** LOW POWER COMMUNICATIONS DISABLED ***"
/opt/tinyos-2.x-contrib/berkeley/blip/tos/chips/cc2420/link/PacketLinkC.nc:38:2:
warning: #warning "*** USING PACKET LINK LAYER"
/tmp/ccCIiVPH.o: In function `getLowpanPayload':
lib6lowpan.c:(.text+0x0): multiple definition of `getLowpanPayload'
/tmp/ccuo7VOS.o:lib6lowpan.c:(.text+0x0): first defined here
/tmp/ccCIiVPH.o: In function `getHeaderBitmap':
lib6lowpan.c:(.text+0x1e): multiple definition of `getHeaderBitmap'
/tmp/ccuo7VOS.o:lib6lowpan.c:(.text+0x1e): first defined here
/tmp/ccCIiVPH.o: In function `setupHeaders':
lib6lowpan.c:(.text+0x82): multiple definition of `setupHeaders'
/tmp/ccuo7VOS.o:lib6lowpan.c:(.text+0x82): first defined here
/tmp/ccCIiVPH.o: In function `hasFrag1Header':
lib6lowpan.c:(.text+0xd2): multiple definition of `hasFrag1Header'
/tmp/ccuo7VOS.o:lib6lowpan.c:(.text+0xd2): first defined here
/tmp/ccCIiVPH.o: In function `hasFragNHeader':
lib6lowpan.c:(.text+0xda): multiple definition of `hasFragNHeader'
/tmp/ccuo7VOS.o:lib6lowpan.c:(.text+0xda): first defined here
/tmp/ccCIiVPH.o: In function `getFragDgramSize':
lib6lowpan.c:(.text+0xe2): multiple definition of `getFragDgramSize'
/tmp/ccuo7VOS.o:lib6lowpan.c:(.text+0xe2): first defined here
/tmp/ccCIiVPH.o: In function `getFragDgramTag':
lib6lowpan.c:(.text+0x136): multiple definition of `getFragDgramTag'
/tmp/ccuo7VOS.o:lib6lowpan.c:(.text+0x136): first defined here
/tmp/ccCIiVPH.o: In function `getFragDgramOffset':
lib6lowpan.c:(.text+0x16a): multiple definition of `getFragDgramOffset'
/tmp/ccuo7VOS.o:lib6lowpan.c:(.text+0x16a): first defined here
/tmp/ccCIiVPH.o: In function `setFragDgramSize':
lib6lowpan.c:(.text+0x194): multiple definition of `setFragDgramSize'
/tmp/ccuo7VOS.o:lib6lowpan.c:(.text+0x194): first defined here
/tmp/ccCIiVPH.o: In function `setFragDgramTag':
lib6lowpan.c:(.text+0x1d0): multiple definition of `setFragDgramTag'
/tmp/ccuo7VOS.o:lib6lowpan.c:(.text+0x1d0): first defined here
/tmp/ccCIiVPH.o: In function `setFragDgramOffset':
lib6lowpan.c:(.text+0x1fc): multiple definition of `setFragDgramOffset'
/tmp/ccuo7VOS.o:lib6lowpan.c:(.text+0x1fc): first defined here
/tmp/ccg2v3hO.o:(.data+0x0): multiple definition of `linklocal_prefix'
/tmp/ccqJkAmq.o:(.data+0x0): first defined here
/tmp/ccg2v3hO.o:(.data+0x8): multiple definition of `multicast_prefix'
/tmp/ccqJkAmq.o:(.data+0x8): first defined here
/tmp/ccg2v3hO.o:(.data+0x10): multiple definition of `__my_address'
/tmp/ccqJkAmq.o:(.data+0x10): first defined here
/tmp/ccg2v3hO.o:(.data+0x20): multiple definition of `globalPrefix'
/tmp/ccqJkAmq.o:(.data+0x20): first defined here
/tmp/ccg2v3hO.o: In function `getLinkLocalPrefix':
lib6lowpanIP.c:(.text+0x0): multiple definition of `getLinkLocalPrefix'
/tmp/ccqJkAmq.o:lib6lowpanIP.c:(.text+0x0): first defined here
/tmp/ccg2v3hO.o: In function `cmpPfx':
lib6lowpanIP.c:(.text+0x6): multiple definition of `cmpPfx'
/tmp/ccqJkAmq.o:lib6lowpanIP.c:(.text+0x6): first defined here
/tmp/ccg2v3hO.o: In function `unpackHeaders':
lib6lowpanIP.c:(.text+0x1c): multiple definition of `unpackHeaders'
/tmp/ccqJkAmq.o:lib6lowpanIP.c:(.text+0x1c): first defined here
/tmp/ccg2v3hO.o: In function `packHeaders':
lib6lowpanIP.c:(.text+0x42e): multiple definition of `packHeaders'
/tmp/ccqJkAmq.o:lib6lowpanIP.c:(.text+0x42e): first defined here
/tmp/ccg2v3hO.o: In function `inet_pton6':
lib6lowpanIP.c:(.text+0x640): multiple definition of `inet_pton6'
/tmp/ccqJkAmq.o:lib6lowpanIP.c:(.text+0x640): first defined here
/tmp/ccg2v3hO.o: In function `inet_ntop6':
lib6lowpanIP.c:(.text+0x788): multiple definition of `inet_ntop6'
/tmp/ccqJkAmq.o:lib6lowpanIP.c:(.text+0x788): first defined here
/tmp/ccNmz38R.o:(.data+0x0): multiple definition of `lib6lowpan_frag_tag'
/tmp/cc6VpGY7.o:(.data+0x0): first defined here
/tmp/ccNmz38R.o: In function `ip_memclr':
lib6lowpanFrag.c:(.text+0x0): multiple definition of `ip_memclr'
/tmp/cc6VpGY7.o:lib6lowpanFrag.c:(.text+0x0): first defined here
/tmp/ccNmz38R.o: In function `ip_memcpy':
lib6lowpanFrag.c:(.text+0x10): multiple definition of `ip_memcpy'
/tmp/cc6VpGY7.o:lib6lowpanFrag.c:(.text+0x10): first defined here
/tmp/ccNmz38R.o: In function `getNextFrag':
lib6lowpanFrag.c:(.text+0x26): multiple definition of `getNextFrag'
/tmp/cc6VpGY7.o:lib6lowpanFrag.c:(.text+0x26): first defined here
/tmp/ccKI2Vn0.o: In function `in_cksum':
in_cksum.c:(.text+0x0): multiple definition of `in_cksum'
/tmp/ccivA1xW.o:in_cksum.c:(.text+0x0): first defined here
/tmp/ccKI2Vn0.o: In function `msg_cksum':
in_cksum.c:(.text+0x78): multiple definition of `msg_cksum'
/tmp/ccivA1xW.o:in_cksum.c:(.text+0x78): first defined here
make: *** [exe0] Error 1

I do not Know if its a problem with assembler... or nesc... or maybe some
dependencies...
Here are the environmetal variables...

PATH=/opt/tinyos-2.x/support/sdk/c:$PATH
TOSROOT=/opt/tinyos-2.x
TOSDIR=$TOSROOT/tos
CLASSPATH=$CLASSPATH:$TOSROOT/support/sdk/java/tinyos.jar:.
MAKERULES=$TOSROOT/support/make/Makerules
PYTHONPATH=.:$TOSROOT/support/sdk/python:$PYTHONPATH
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/msp430/lib:/usr/local/lib
LOWPAN_ROOT=/opt/tinyos-2.x-contrib/berkeley/blip
TOSMAKE_PATH=$LOWPAN_ROOT/support/make

I do not have any problems doing: make telosb (with Blink, for example)

Notice that there is 2 lib6lowpan.c files... one in the tinyos-2.x-contrib
tree and another in the tinyos-2.x tree...
I do not know to which one the make rules point...

Any one have any clues or ideas?

Best Regards...

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

Reply via email to