Hello,
I try to compile TestTinySec apps on micaz platform. I'm able to compile on
pc, mica, mica2, but not for micaz(and my testbed is just based on it).I
receive the same output in a windows box and on a Linux box.
This is the output, it seems that it does not find some headers or
libraries:

[EMAIL PROTECTED]:/opt/tinyos-1.x/apps/TestTinySec$ make micaz
mkdir -p build/micaz
   compiling TestTinySec to a micaz binary
ncc -o build/micaz/main.exe -Os -I%T/lib/Counters  -I%T/lib/TinySec
-I%T/platform/%p/TinySec
-DTINYSEC_KEY="0x51,0x25,0x07,0xA4,0x7E,0xE0,0xBA,0xFD,0x58,0x0D,0x1E,0x07,0xC4,0xE1,0x67,0x57"
-DTINYSEC_KEYSIZE=8 -finline-limit=100000 -Wall -Wshadow
-DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=micaz
-fnesc-cfile=build/micaz/app.c -board=micasb -I%T/lib/Deluge
-DIDENT_PROGRAM_NAME=\"TestTinySec\" -DIDENT_USER_ID=\"lorenzo\"
-DIDENT_HOSTNAME=\"Vincent\" -DIDENT_USER_HASH=0x540faefeL
-DIDENT_UNIX_TIME=0x455c47f6L -DIDENT_UID_HASH=0x68c5ca65L
-I/opt/tinyos-1.x/tos/lib/CC2420Radio
TestTinySec.nc -lm
TestTinySecM.nc: In function `StdControl.init':
TestTinySecM.nc:72: `TINYSEC_ENCRYPT_AND_AUTH' undeclared (first use in this
function)
TestTinySecM.nc:72: (Each undeclared identifier is reported only once
TestTinySecM.nc:72: for each function it appears in.)
In file included from /opt/tinyos-1.x/tos/lib/TinySec/TinySecC.nc:46:
/opt/tinyos-1.x/tos/interfaces/TinySec.nc: At top level:
/opt/tinyos-1.x/tos/interfaces/TinySec.nc:59: syntax error before `*'
/opt/tinyos-1.x/tos/interfaces/TinySec.nc:117: syntax error before `*'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:128: syntax error before `*'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:129: syntax error before `*'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:134: `TINYSEC_AUTH_ONLY'
undeclared here (not in a function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:134: initializer element is not
constant
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:134: (near initialization for
`sendMode')
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:135:
`TINYSEC_RECEIVE_AUTHENTICATED' undeclared here (not in a function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:135: initializer element is not
constant
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:135: (near initialization for
`receiveMode')
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc: In function `StdControl.init':
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:185: `TINYSEC_NODE_ID_SIZE'
undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:192: array subscript is not an
integer
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:195: array subscript is not an
integer
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc: In function
`TinySecControl.resetIV':
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:278: `TINYSEC_NODE_ID_SIZE'
undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc: In function `Send.send':
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:295: `TINYSEC_AUTH_ONLY'
undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:296: `TINYSEC_ENABLED_BIT'
undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:297: `TINYSEC_ENCRYPT_AND_AUTH'
undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:299:
`TINYSEC_ENCRYPT_ENABLED_BIT' undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:300: `TINYSEC_DISABLED'
undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc: In function
`RadioSend.sendDone':
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:307: `TINYSEC_ENABLED_BIT'
undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:308:
`TINYSEC_ENCRYPT_ENABLED_BIT' undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc: In function
`RadioReceive.receive':
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:314: `TINYSEC_ENABLED_BIT'
undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:315:
`TINYSEC_ENCRYPT_ENABLED_BIT' undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:316: struct has no member named
`receiveSecurityMode'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:316: `TINYSEC_ENCRYPT_AND_AUTH'
undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:319: struct has no member named
`receiveSecurityMode'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:319: `TINYSEC_AUTH_ONLY'
undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:322: struct has no member named
`receiveSecurityMode'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:322: `TINYSEC_DISABLED'
undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:325: `TINYSEC_RECEIVE_ANY'
undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:338:
`TINYSEC_RECEIVE_AUTHENTICATED' undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:343: `TINYSEC_RECEIVE_CRC'
undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc: In function
`TinySecMode.setTransmitMode':
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:351: `TINYSEC_ENCRYPT_AND_AUTH'
undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:352: `TINYSEC_AUTH_ONLY'
undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:353: `TINYSEC_DISABLED'
undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc: In function
`TinySecMode.setReceiveMode':
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:361:
`TINYSEC_RECEIVE_AUTHENTICATED' undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:362: `TINYSEC_RECEIVE_CRC'
undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:363: `TINYSEC_RECEIVE_ANY'
undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc: In function
`decryptIncrementalInit':
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:484: struct has no member named
`addr'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:485: struct has no member named
`type'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:486: struct has no member named
`length'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:498: struct has no member named
`iv'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:500: struct has no member named
`addr'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc: In function
`decryptIncremental':
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:542: struct has no member named
`enc'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:543: `cleartext_rec_ptr'
undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc: In function
`computeMACIncremental':
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:585: `TINYSEC_MSG_DATA_SIZE'
undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc: In function
`computeMACIncrementalFinish':
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:619: struct has no member named
`calc_mac'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:622: struct has no member named
`MACcomputed'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:623: struct has no member named
`receiveDone'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc: In function `verifyMAC':
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:641: struct has no member named
`MACcomputed'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:657: struct has no member named
`calc_mac'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:657: subscripted value is
neither array nor pointer
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:657: struct has no member named
`mac'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:657: subscripted value is
neither array nor pointer
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:661: struct has no member named
`MACcomputed'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:662: `cleartext_rec_ptr'
undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc: At top level:
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:673: syntax error before `*'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc: In function
`TinySec.receiveInit':
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:675: `cleartext_rec_ptr'
undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:675: `cleartext_ptr' undeclared
(first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:677: `TINYSEC_MSG_DATA_SIZE'
undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:681: struct has no member named
`cryptoDone'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:682: struct has no member named
`receiveDone'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:683: struct has no member named
`MACcomputed'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc: In function
`TinySecRadio.byteReceived':
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:703: struct has no member named
`iv'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:709: struct has no member named
`enc'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:714: struct has no member named
`enc'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:717: struct has no member named
`mac'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:717: subscripted value is
neither array nor pointer
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:726: struct has no member named
`length'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:727: struct has no member named
`length'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:729: struct has no member named
`length'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:730:
`TINYSEC_ENCRYPT_ENABLED_BIT' undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:739: struct has no member named
`length'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:739: `TINYSEC_ENABLED_BIT'
undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:741: struct has no member named
`length'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:748: struct has no member named
`enc'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:759: struct has no member named
`iv'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:765: invalid use of undefined
type `struct TOS_Msg_TinySecCompat'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:806: `cleartext_rec_ptr'
undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:806: struct has no member named
`enc'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:809: struct has no member named
`cryptoDone'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:811: struct has no member named
`receiveDone'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:815: struct has no member named
`receiveDone'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:816: struct has no member named
`MACcomputed'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:818: struct has no member named
`cryptoDone'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc: At top level:
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:831: syntax error before `*'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc: In function `TinySec.sendInit':
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:832: `cleartext_send_ptr'
undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:832: `cleartext_ptr' undeclared
(first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:835: struct has no member named
`addr'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:836: struct has no member named
`length'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:837: struct has no member named
`type'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:840:
`TINYSEC_ENCRYPT_ENABLED_BIT' undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:848: struct has no member named
`length'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:848: `TINYSEC_ENABLED_BIT'
undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:858: `TINYSEC_MSG_DATA_SIZE'
undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc: In function `computeMAC':
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:872: struct has no member named
`addr'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:874: struct has no member named
`calc_mac'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:879: struct has no member named
`mac'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:879: struct has no member named
`calc_mac'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc: At top level:
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:890: syntax error before `*'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc: In function `addPadding':
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:893: `dataLength' undeclared
(first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:894: `bufptr' undeclared (first
use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc: In function `encrypt':
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:905: struct has no member named
`addr'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:906: struct has no member named
`type'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:906: struct has no member named
`length'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:914: struct has no member named
`iv'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:916: struct has no member named
`addr'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:925: `cleartext_send_ptr'
undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:928: struct has no member named
`enc'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:933: struct has no member named
`enc'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:940: `TINYSEC_NODE_ID_SIZE'
undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc: In function `noEncrypt':
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:955: struct has no member named
`iv'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:956: struct has no member named
`enc'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:956: `cleartext_send_ptr'
undeclared (first use in this function)
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc: In function
`TinySecRadio.getTransmitByte':
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:986: struct has no member named
`iv'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:992: struct has no member named
`mac'
/opt/tinyos-1.x/tos/lib/TinySec/TinySecM.nc:992: subscripted value is
neither array nor pointer
make: *** [exe0] Error 1
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to