[Fwd: [Tinyos-help] Problem in Application Surge for platform
telos]
Sushil Siddesh
sushil.siddesh at gmail.com
Sun Sep 10 21:50:25 PDT 2006
It hasn't been declared before being used.
Sushil
On 9/11/06, Sumit Gupta <singhals.sumit at gmail.com> wrote:
> hi Sushil,
>
> Thanks for your insight. I got it. I will use SurgeTelos application. But
> can you still explain waht do u mean by "implicit declaration of function".
>
> Regards and thanks,
> Sumit
>
>
>
>
> On 9/10/06, Sushil Siddesh <sushil.siddesh at gmail.com> wrote:
> > Hey Sumit,
> >
> > What does the first line in the makefile
> > (/opt/tinyos-1.x/apps/Surge/makefile) say about this??
> >
> > Sushil
> > > -------- Original Message --------
> > > Subject: [Tinyos-help] Problem in Application Surge for platform
> telos
> > > Date: Sun, 10 Sep 2006 22:54:42 -0500
> > > From: Sumit Gupta <singhals.sumit at gmail.com>
> > > To: tinyos-help at Millennium.Berkeley.EDU
> > >
> > >
> > >
> > > I have been trying to compile application Surge for telos motes but its
> > > giving me errors. However, it compiled perfectly fine for other
> > > platforms (mica2, pc etc).
> > >
> > > For telos its giving me following errors:
> > >
> > >
> > > Sumit at superComp /opt/tinyos-1.x/apps/Surge
> > > $ make telos
> > > mkdir -p build/telos
> > > compiling Surge to a telos binary
> > > ncc -o build/telos/main.exe -O -I%T/lib/Route -I%T/lib/Queue
> > > -I%T/lib/Broadcast
> > > -mdisable-hwmul -I/opt/tinyos-1.x/tos/lib/CC2420Radio
> > > -I/opt/tinyos-1.x/tos/lib/
> > > Flash -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=telos
> > > -fnesc-cfi
> > > le=build/telos/app.c -board=micasb -I%T/lib/Deluge
> > > -Wl,--section-start=.text=0x1
> > > a00,--defsym=_reset_vector__=0x1100
> -DIDENT_PROGRAM_NAME=\"Surge\"
> > > -DIDENT_USER_
> > > ID=\"Sumit\" -DIDENT_HOSTNAME=\"superComp\"
> > > -DIDENT_USER_HASH=0x85ed13fbL -DIDEN
> > > T_UNIX_TIME=0x4504db6aL -DIDENT_UID_HASH=0x291885d3L Surge.nc
> > > <http://Surge.nc> -lm
> > > In file included from Surge.nc:42 <http://Surge.nc:42>:
> > > In component `SurgeM':
> > > SurgeM.nc: In function `SendData':
> > > SurgeM.nc:89: warning: suggest parentheses around assignment used as
> > > truth value
> > >
> > > In file included from
> > > C:/PROGRA~1/UCB/cygwin/opt/tinyos-
> 1.x/tos/sensorboards/mic
> > > asb/Photo.nc:45,
> > > from Surge.nc:42 <http://Surge.nc:42>:
> > > In C file:
> > >
> C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/sensorboard.h:
> > > At
> > > top level:
> > >
> C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/sensorboard.h:71:
> > > warning: return-type defaults to `int'
> > >
> C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/sensorboard.h:71:
> > > warning: data definition has no type or storage class
> > >
> C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/sensorboard.h:73:
> > > warning: return-type defaults to `int'
> > > C:/PROGRA~1/UCB/cygwin/opt/tinyos-
> 1.x/tos/sensorboards/micasb/sensorboard.h:73:
> > > warning: data definition has no type or storage class
> > >
> C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/sensorboard.h:74:
> > > warning: return-type defaults to `int'
> > >
> C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/sensorboard.h:74:
> > > warning: data definition has no type or storage class
> > >
> C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/sensorboard.h:75:
> > > warning: return-type defaults to `int'
> > >
> C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/sensorboard.h:75:
> > > warning: data definition has no type or storage class
> > > C:/PROGRA~1/UCB/cygwin/opt/tinyos-
> 1.x/tos/sensorboards/micasb/sensorboard.h:76:
> > > warning: return-type defaults to `int'
> > >
> C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/sensorboard.h:76:
> > > warning: data definition has no type or storage class
> > >
> C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/sensorboard.h:77:
> > > warning: return-type defaults to `int'
> > >
> C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/sensorboard.h:77:
> > > warning: data definition has no type or storage class
> > >
> C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/sensorboard.h:78:
> > > warning: return-type defaults to `int'
> > > C:/PROGRA~1/UCB/cygwin/opt/tinyos-
> 1.x/tos/sensorboards/micasb/sensorboard.h:78:
> > > warning: data definition has no type or storage class
> > >
> C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/sensorboard.h:79:
> > > warning: return-type defaults to `int'
> > >
> C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/sensorboard.h:79:
> > > warning: data definition has no type or storage class
> > > In file included from
> > > C:/PROGRA~1/UCB/cygwin/opt/tinyos-
> 1.x/tos/sensorboards/mic
> > > asb/PhotoTemp.nc:58,
> > > from
> > >
> C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/mic
> > > asb/Photo.nc:53,
> > > from Surge.nc:42 <http://Surge.nc:42>:
> > > In component `PhotoTempM':
> > >
> C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/PhotoTempM.nc:
> > > In
> > > function `getSample':
> > >
> C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/PhotoTempM.nc:211:
> > > implicit declaration of function `TOSH_SET_PHOTO_CTL_PIN'
> > > C:/PROGRA~1/UCB/cygwin/opt/tinyos-
> 1.x/tos/sensorboards/micasb/PhotoTempM.nc:212:
> > > implicit declaration of function `TOSH_MAKE_PHOTO_CTL_OUTPUT'
> > >
> C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/PhotoTempM.nc:213:
> > > implicit declaration of function `TOSH_CLR_TEMP_CTL_PIN'
> > >
> C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/PhotoTempM.nc:214:
> > > implicit declaration of function `TOSH_MAKE_TEMP_CTL_INPUT'
> > >
> C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/PhotoTempM.nc:251:
> > > implicit declaration of function `TOSH_CLR_PHOTO_CTL_PIN'
> > >
> C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/PhotoTempM.nc:252:
> > > implicit declaration of function `TOSH_MAKE_PHOTO_CTL_INPUT'
> > >
> C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/PhotoTempM.nc:253:
> > > implicit declaration of function `TOSH_SET_TEMP_CTL_PIN'
> > >
> C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/PhotoTempM.nc:254:
> > > implicit declaration of function `TOSH_MAKE_TEMP_CTL_OUTPUT'
> > > In file included from
> > >
> C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/lib/Route/MultiH
> > > opRouter.nc:93,
> > > from Surge.nc:43 <http://Surge.nc:43>:
> > > In component `MultiHopLEPSM':
> > >
> C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/lib/Route/MultiHopLEPSM.nc:
> In
> > > functio
> > > n `SendRouteTask':
> > >
> C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/lib/Route/MultiHopLEPSM.nc:398:
> > > implic
> > > it declaration of function `qsort'
> > > In file included from
> > > C:/PROGRA~1/UCB/cygwin/opt/tinyos-
> 1.x/tos/sensorboards/mic
> > > asb/Sounder.nc:52,
> > > from Surge.nc:43 <http://Surge.nc:43>:
> > > In component `SounderM':
> > >
> C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/SounderM.nc:
> > > In fu
> > > nction `StdControl.init':
> > >
> C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/SounderM.nc:51:
> > > im
> > > plicit declaration of function `TOSH_MAKE_SOUNDER_CTL_OUTPUT'
> > > C:/PROGRA~1/UCB/cygwin/opt/tinyos-
> 1.x/tos/sensorboards/micasb/SounderM.nc:52:
> > > im
> > > plicit declaration of function `TOSH_CLR_SOUNDER_CTL_PIN'
> > >
> C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/SounderM.nc:
> > > In fu
> > > nction `StdControl.start':
> > >
> C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/SounderM.nc:58:
> > > im
> > > plicit declaration of function `TOSH_SET_SOUNDER_CTL_PIN'
> > > C:/PROGRA~1/UCB/cygwin/opt/tinyos-
> 1.x/tos/sensorboards/micasb/SounderM.nc:
> > > In fu
> > > nction `StdControl.stop':
> > >
> C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/SounderM.nc:64:
> > > im
> > > plicit declaration of function `TOSH_CLR_SOUNDER_CTL_PIN'
> > > make: *** [exe0] Error 1
> > >
> > > Sumit at superComp /opt/tinyos-1.x/apps/Surge
> > >
> > >
> > > I got rid of errors related to sensorboard by commenting out code
> > > related to Photo and Sounder Components (in Surge.nc <http://Surge.nc>
> > > and SurgeM.nc) as I dont need them for my experiment. But error (marked
> > > in red) related to MultihopLEPSM.nc for function qsort is giving me
> > > problem. I dont want to change the routing algorithm and thus dont want
> > > to modify this file. If I comment out the line # 398, i.e.
> > >
> > > qsort (sortTbl,j,sizeof(struct
> SortEntry),sortByReceiveEstFcn);
> > >
> > > then it compiles but it creates a problem for me as I am changing the
> > > routing algorithm.
> > >
> > > What do u mean by "implict declaration of function"?
> > >
> > > Can anyone please guide me about it? Why it is giving problem only for
> > > telos platforms?
> > >
> > > Regards,
> > > Sumit Gupta
> > >
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > Tinyos-help mailing list
> > > Tinyos-help at Millennium.Berkeley.EDU
> > >
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> > >
> > >
> > >
> >
>
>
More information about the Tinyos-help
mailing list