Hello all!,

I'm getting a strange behaviour when I compile my TinyOS application. It
seems that the wirings and implementation is correct (the compiler doesn't
complain about that) and however, it is complaining for every component of
my application using the StdControl interface, for example:

[EMAIL PROTECTED]:/apps/hello_world# make pc
mkdir -p build/pc
    compiling hi_world to a pc binary
ncc -o build/pc/main.exe -g -O0 -pthread -fnesc-nido-tosnodes=1000
-fnesc-simulate -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all
-target=pc -fnesc-cfile=build/pc/app.c -board=micasb
-DIDENT_PROGRAM_NAME=\"hi_world\" -DIDENT_USER_ID=\"root\"
-DIDENT_HOSTNAME=\"aristoteles\" -DIDENT_USER_HASH=0x51ebf9bcL
-DIDENT_UNIX_TIME=0x48354595L -DIDENT_UID_HASH=0x9c7471f4L -I.
-I/home/sescolar/osal/include/
-I/home/sescolar/osal/src/tinyos/interfaces/
-I/home/sescolar/osal/src/tinyos/SCHEDULING_SERVICES/
-I/home/sescolar/osal/src/tinyos/TIME_SERVICES/
-I/home/sescolar/osal/src/tinyos/IO_SERVICES
-I/opt/tinyos-1.x/tos/platform/pc
-I/opt/tinyos-1.x/tos/sensorboards/micasb  hi_world.nc -lm
In file included from /opt/tinyos-1.x/tos/platform/pc/PhotoTemp.nc:58,
                 from /opt/tinyos-1.x/tos/sensorboards/micasb/Photo.nc:53,
from
/home/sescolar/osal/src/tinyos/IO_SERVICES/OS_IOServicesC.nc:17,
                 from hi_world.nc:39:
In component `PhotoTempM':
/opt/tinyos-1.x/tos/platform/pc/PhotoTempM.nc:135: conflicting types for
`PhotoStdControl.init'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:63: previous declaration of
`PhotoStdControl.init'
/opt/tinyos-1.x/tos/platform/pc/PhotoTempM.nc:145: conflicting types for
`PhotoStdControl.start'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:70: previous declaration of
`PhotoStdControl.start'
/opt/tinyos-1.x/tos/platform/pc/PhotoTempM.nc:153: conflicting types for
`PhotoStdControl.stop'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:78: previous declaration of
`PhotoStdControl.stop'
/opt/tinyos-1.x/tos/platform/pc/PhotoTempM.nc:161: conflicting types for
`TempStdControl.init'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:63: previous declaration of
`TempStdControl.init'
/opt/tinyos-1.x/tos/platform/pc/PhotoTempM.nc:171: conflicting types for
`TempStdControl.start'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:70: previous declaration of
`TempStdControl.start'
/opt/tinyos-1.x/tos/platform/pc/PhotoTempM.nc:179: conflicting types for
`TempStdControl.stop'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:78: previous declaration of
`TempStdControl.stop'
In file included from /opt/tinyos-1.x/tos/platform/pc/TimerC.nc:57,
                 from /opt/tinyos-1.x/tos/platform/pc/PhotoTemp.nc:58,
from /opt/tinyos-1.x/tos/sensorboards/micasb/Photo.nc:53,
from
/home/sescolar/osal/src/tinyos/IO_SERVICES/OS_IOServicesC.nc:17,
                 from hi_world.nc:39:
In component `TimerM':
/opt/tinyos-1.x/tos/system/TimerM.nc:76: conflicting types for
`StdControl.init'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:63: previous declaration of
`StdControl.init'
/opt/tinyos-1.x/tos/system/TimerM.nc:86: conflicting types for
`StdControl.start'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:70: previous declaration of
`StdControl.start'
/opt/tinyos-1.x/tos/system/TimerM.nc:90: conflicting types for
`StdControl.stop'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:78: previous declaration of
`StdControl.stop'
In file included from /opt/tinyos-1.x/tos/system/ClockC.nc:51,
                 from /opt/tinyos-1.x/tos/platform/pc/TimerC.nc:57, from
/opt/tinyos-1.x/tos/platform/pc/PhotoTemp.nc:58, from
/opt/tinyos-1.x/tos/sensorboards/micasb/Photo.nc:53, from
/home/sescolar/osal/src/tinyos/IO_SERVICES/OS_IOServicesC.nc:17,
                 from hi_world.nc:39:
In component `HPLClock':
... more errors....


Obviously, there is no conflict between the StdControl interface defined
in StdControl.nc and the StdControl interface used by TimerM.nc (or
whatever other component).


I attach a file with all compilation errors obtained.

I don't understand this error because all things *seem* to be correct.
Anybody knows what is happening?

Thanks in advance.
Soledad.
[EMAIL PROTECTED]:/apps/hello_world# make pc
mkdir -p build/pc
    compiling hi_world to a pc binary
ncc -o build/pc/main.exe -g -O0 -pthread -fnesc-nido-tosnodes=1000 
-fnesc-simulate -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=pc 
-fnesc-cfile=build/pc/app.c -board=micasb -DIDENT_PROGRAM_NAME=\"hi_world\" 
-DIDENT_USER_ID=\"root\" -DIDENT_HOSTNAME=\"aristoteles\" 
-DIDENT_USER_HASH=0x51ebf9bcL -DIDENT_UNIX_TIME=0x48354595L 
-DIDENT_UID_HASH=0x9c7471f4L -I. -I/home/sescolar/osal/include/ 
-I/home/sescolar/osal/src/tinyos/interfaces/ 
-I/home/sescolar/osal/src/tinyos/SCHEDULING_SERVICES/ 
-I/home/sescolar/osal/src/tinyos/TIME_SERVICES/ 
-I/home/sescolar/osal/src/tinyos/IO_SERVICES  -I/opt/tinyos-1.x/tos/platform/pc 
-I/opt/tinyos-1.x/tos/sensorboards/micasb  hi_world.nc -lm
In file included from /opt/tinyos-1.x/tos/platform/pc/PhotoTemp.nc:58,
                 from /opt/tinyos-1.x/tos/sensorboards/micasb/Photo.nc:53,
                 from 
/home/sescolar/osal/src/tinyos/IO_SERVICES/OS_IOServicesC.nc:17,
                 from hi_world.nc:39:
In component `PhotoTempM':
/opt/tinyos-1.x/tos/platform/pc/PhotoTempM.nc:135: conflicting types for 
`PhotoStdControl.init'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:63: previous declaration of 
`PhotoStdControl.init'
/opt/tinyos-1.x/tos/platform/pc/PhotoTempM.nc:145: conflicting types for 
`PhotoStdControl.start'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:70: previous declaration of 
`PhotoStdControl.start'
/opt/tinyos-1.x/tos/platform/pc/PhotoTempM.nc:153: conflicting types for 
`PhotoStdControl.stop'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:78: previous declaration of 
`PhotoStdControl.stop'
/opt/tinyos-1.x/tos/platform/pc/PhotoTempM.nc:161: conflicting types for 
`TempStdControl.init'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:63: previous declaration of 
`TempStdControl.init'
/opt/tinyos-1.x/tos/platform/pc/PhotoTempM.nc:171: conflicting types for 
`TempStdControl.start'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:70: previous declaration of 
`TempStdControl.start'
/opt/tinyos-1.x/tos/platform/pc/PhotoTempM.nc:179: conflicting types for 
`TempStdControl.stop'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:78: previous declaration of 
`TempStdControl.stop'
In file included from /opt/tinyos-1.x/tos/platform/pc/TimerC.nc:57,
                 from /opt/tinyos-1.x/tos/platform/pc/PhotoTemp.nc:58,
                 from /opt/tinyos-1.x/tos/sensorboards/micasb/Photo.nc:53,
                 from 
/home/sescolar/osal/src/tinyos/IO_SERVICES/OS_IOServicesC.nc:17,
                 from hi_world.nc:39:
In component `TimerM':
/opt/tinyos-1.x/tos/system/TimerM.nc:76: conflicting types for `StdControl.init'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:63: previous declaration of 
`StdControl.init'
/opt/tinyos-1.x/tos/system/TimerM.nc:86: conflicting types for 
`StdControl.start'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:70: previous declaration of 
`StdControl.start'
/opt/tinyos-1.x/tos/system/TimerM.nc:90: conflicting types for `StdControl.stop'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:78: previous declaration of 
`StdControl.stop'
In file included from /opt/tinyos-1.x/tos/system/ClockC.nc:51,
                 from /opt/tinyos-1.x/tos/platform/pc/TimerC.nc:57,
                 from /opt/tinyos-1.x/tos/platform/pc/PhotoTemp.nc:58,
                 from /opt/tinyos-1.x/tos/sensorboards/micasb/Photo.nc:53,
                 from 
/home/sescolar/osal/src/tinyos/IO_SERVICES/OS_IOServicesC.nc:17,
                 from hi_world.nc:39:
In component `HPLClock':
/opt/tinyos-1.x/tos/platform/pc/HPLClock.nc:63: conflicting types for 
`StdControl.init'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:63: previous declaration of 
`StdControl.init'
/opt/tinyos-1.x/tos/platform/pc/HPLClock.nc:71: conflicting types for 
`StdControl.start'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:70: previous declaration of 
`StdControl.start'
/opt/tinyos-1.x/tos/platform/pc/HPLClock.nc:76: conflicting types for 
`StdControl.stop'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:78: previous declaration of 
`StdControl.stop'
In file included from /opt/tinyos-1.x/tos/platform/pc/Accel.nc:40,
                 from 
/home/sescolar/osal/src/tinyos/IO_SERVICES/OS_IOServicesC.nc:25,
                 from hi_world.nc:39:
In component `AccelM':
/opt/tinyos-1.x/tos/platform/pc/AccelM.nc:53: conflicting types for 
`StdControl.init'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:63: previous declaration of 
`StdControl.init'
/opt/tinyos-1.x/tos/platform/pc/AccelM.nc:61: conflicting types for 
`StdControl.start'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:70: previous declaration of 
`StdControl.start'
/opt/tinyos-1.x/tos/platform/pc/AccelM.nc:67: conflicting types for 
`StdControl.stop'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:78: previous declaration of 
`StdControl.stop'
In file included from /opt/tinyos-1.x/tos/sensorboards/micasb/Mag.nc:41,
                 from 
/home/sescolar/osal/src/tinyos/IO_SERVICES/OS_IOServicesC.nc:26,
                 from hi_world.nc:39:
In component `MagM':
/opt/tinyos-1.x/tos/sensorboards/micasb/MagM.nc:94: conflicting types for 
`PotControl.init'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:63: previous declaration of 
`PotControl.init'
/opt/tinyos-1.x/tos/sensorboards/micasb/MagM.nc:97: conflicting types for 
`PotControl.start'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:70: previous declaration of 
`PotControl.start'
/opt/tinyos-1.x/tos/sensorboards/micasb/MagM.nc:100: conflicting types for 
`PotControl.stop'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:78: previous declaration of 
`PotControl.stop'
/opt/tinyos-1.x/tos/sensorboards/micasb/MagM.nc:146: conflicting types for 
`StdControl.init'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:63: previous declaration of 
`StdControl.init'
/opt/tinyos-1.x/tos/sensorboards/micasb/MagM.nc:154: conflicting types for 
`StdControl.start'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:70: previous declaration of 
`StdControl.start'
/opt/tinyos-1.x/tos/sensorboards/micasb/MagM.nc:158: conflicting types for 
`StdControl.stop'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:78: previous declaration of 
`StdControl.stop'
In file included from /opt/tinyos-1.x/tos/sensorboards/micasb/MicC.nc:54,
                 from 
/home/sescolar/osal/src/tinyos/IO_SERVICES/OS_IOServicesC.nc:27,
                 from hi_world.nc:39:
In component `MicM':
/opt/tinyos-1.x/tos/sensorboards/micasb/MicM.nc:107: conflicting types for 
`StdControl.init'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:63: previous declaration of 
`StdControl.init'
/opt/tinyos-1.x/tos/sensorboards/micasb/MicM.nc:118: conflicting types for 
`StdControl.start'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:70: previous declaration of 
`StdControl.start'
/opt/tinyos-1.x/tos/sensorboards/micasb/MicM.nc:123: conflicting types for 
`StdControl.stop'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:78: previous declaration of 
`StdControl.stop'
In file included from /opt/tinyos-1.x/tos/platform/pc/I2CC.nc:51,
                 from /opt/tinyos-1.x/tos/sensorboards/micasb/I2CPotC.nc:51,
                 from /opt/tinyos-1.x/tos/sensorboards/micasb/MicC.nc:54,
                 from 
/home/sescolar/osal/src/tinyos/IO_SERVICES/OS_IOServicesC.nc:27,
                 from hi_world.nc:39:
In component `I2CM':
/opt/tinyos-1.x/tos/platform/pc/I2CM.nc:176: conflicting types for 
`StdControl.init'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:63: previous declaration of 
`StdControl.init'
/opt/tinyos-1.x/tos/platform/pc/I2CM.nc:186: conflicting types for 
`StdControl.start'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:70: previous declaration of 
`StdControl.start'
/opt/tinyos-1.x/tos/platform/pc/I2CM.nc:190: conflicting types for 
`StdControl.stop'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:78: previous declaration of 
`StdControl.stop'
In file included from /opt/tinyos-1.x/tos/sensorboards/micasb/I2CPotC.nc:51,
                 from /opt/tinyos-1.x/tos/sensorboards/micasb/MicC.nc:54,
                 from 
/home/sescolar/osal/src/tinyos/IO_SERVICES/OS_IOServicesC.nc:27,
                 from hi_world.nc:39:
In component `I2CPotM':
/opt/tinyos-1.x/tos/sensorboards/micasb/I2CPotM.nc:84: conflicting types for 
`StdControl.init'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:63: previous declaration of 
`StdControl.init'
/opt/tinyos-1.x/tos/sensorboards/micasb/I2CPotM.nc:90: conflicting types for 
`StdControl.start'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:70: previous declaration of 
`StdControl.start'
/opt/tinyos-1.x/tos/sensorboards/micasb/I2CPotM.nc:94: conflicting types for 
`StdControl.stop'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:78: previous declaration of 
`StdControl.stop'
In file included from /opt/tinyos-1.x/tos/sensorboards/micasb/Sounder.nc:52,
                 from 
/home/sescolar/osal/src/tinyos/IO_SERVICES/OS_IOServicesC.nc:28,
                 from hi_world.nc:39:
In component `SounderM':
/opt/tinyos-1.x/tos/sensorboards/micasb/SounderM.nc:50: conflicting types for 
`StdControl.init'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:63: previous declaration of 
`StdControl.init'
/opt/tinyos-1.x/tos/sensorboards/micasb/SounderM.nc:57: conflicting types for 
`StdControl.start'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:70: previous declaration of 
`StdControl.start'
/opt/tinyos-1.x/tos/sensorboards/micasb/SounderM.nc:63: conflicting types for 
`StdControl.stop'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:78: previous declaration of 
`StdControl.stop'
In file included from /opt/tinyos-1.x/tos/platform/pc/PageEEPROMC.nc:54,
                 from 
/home/sescolar/osal/src/tinyos/IO_SERVICES/OS_IOServicesC.nc:35,
                 from hi_world.nc:39:
In component `PageEEPROMM':
/opt/tinyos-1.x/tos/platform/pc/PageEEPROMM.nc:86: conflicting types for 
`StdControl.init'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:63: previous declaration of 
`StdControl.init'
/opt/tinyos-1.x/tos/platform/pc/PageEEPROMM.nc:95: conflicting types for 
`StdControl.start'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:70: previous declaration of 
`StdControl.start'
/opt/tinyos-1.x/tos/platform/pc/PageEEPROMM.nc:100: conflicting types for 
`StdControl.stop'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:78: previous declaration of 
`StdControl.stop'
In file included from 
/home/sescolar/osal/src/tinyos/TIME_SERVICES/OS_TimeServicesC.nc:17,
                 from hi_world.nc:40:
In component `OS_TimeServicesM':
/home/sescolar/osal/src/tinyos/TIME_SERVICES/OS_TimeServicesM.nc: In function 
`OS_TimeServices.osal_timer_start':
/home/sescolar/osal/src/tinyos/TIME_SERVICES/OS_TimeServicesM.nc:172: warning: 
assignment makes pointer from integer without a cast
In file included from /opt/tinyos-1.x/tos/system/SimpleTime.nc:55,
                 from 
/home/sescolar/osal/src/tinyos/TIME_SERVICES/OS_TimeServicesC.nc:20,
                 from hi_world.nc:40:
In component `SimpleTimeM':
/opt/tinyos-1.x/tos/system/SimpleTimeM.nc: At top level:
/opt/tinyos-1.x/tos/system/SimpleTimeM.nc:71: conflicting types for 
`StdControl.init'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:63: previous declaration of 
`StdControl.init'
/opt/tinyos-1.x/tos/system/SimpleTimeM.nc:82: conflicting types for 
`StdControl.start'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:70: previous declaration of 
`StdControl.start'
/opt/tinyos-1.x/tos/system/SimpleTimeM.nc:88: conflicting types for 
`StdControl.stop'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:78: previous declaration of 
`StdControl.stop'
In file included from /opt/tinyos-1.x/tos/platform/pc/PCRadio.h:97,
                 from /opt/tinyos-1.x/tos/platform/pc/Main.nc:46,
                 from hi_world.nc:43:
In C file:
/opt/tinyos-1.x/tos/platform/pc/rfm_model.c: In function `create_simple_model':
/opt/tinyos-1.x/tos/platform/pc/rfm_model.c:138: warning: assignment from 
incompatible pointer type
/opt/tinyos-1.x/tos/platform/pc/rfm_model.c: In function `create_static_model':
/opt/tinyos-1.x/tos/platform/pc/rfm_model.c:307: warning: assignment from 
incompatible pointer type
/opt/tinyos-1.x/tos/platform/pc/rfm_model.c: In function `create_lossy_model':
/opt/tinyos-1.x/tos/platform/pc/rfm_model.c:529: warning: assignment from 
incompatible pointer type
make: *** [exe0] Error 1
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to