Dont bother, I have solved the problem, apprently the type def flag that I
was using was named as "TOSSIM" in my make file, after changing it, it now
works. I guess it was just confusing the compiler.


On Fri, Sep 7, 2012 at 8:12 AM, wasif masood <[email protected]> wrote:

>
> but if I try to include CFLAGS += -I./tos/types, then it gives complains
> somthing like that:
>
> wasif@wasif-VirtualBox:/opt/tinyos-2.1.1/apps/IE_tossim$ make micaz sim
>  mkdir -p simbuild/micaz
>   placing object files in simbuild/micaz
>   writing XML schema to app.xml
>   compiling TestAppC to object file sim.o
> ncc -c -shared -fPIC -o simbuild/micaz/sim.o -g -O0 -tossim
> -fnesc-nido-tosnodes=1000 -fnesc-simulate
> -fnesc-nido-motenumber=sim_node\(\) -fnesc-gcc=gcc -Wall -Wshadow
> -Wnesc-all -target=micaz -fnesc-cfile=simbuild/micaz/app.c -board=micasb
> -DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000
> -DIDENT_APPNAME=\"TestAppC\" -DIDENT_USERNAME=\"wasif\"
> -DIDENT_HOSTNAME=\"wasif-VirtualBo\" -DIDENT_USERHASH=0x1f985317L
> -DIDENT_TIMESTAMP=0x5049e41aL -DIDENT_UIDHASH=0xed8df170L
> -I/usr/include/python2.7/ -I./tos/types -I./tos/lib/tossim -DTOSSIM
> -Wno-nesc-data-race TestAppC.nc   -fnesc-dump=components
> -fnesc-dump=variables -fnesc-dump=constants -fnesc-dump=typedefs
> -fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml
> In file included from
> /opt/tinyos-2.1.1/tos/lib/tossim/ActiveMessageC.nc:49,
>                  from TestAppC.nc:61:
> In component `TossimPacketModelC':
> /opt/tinyos-2.1.1/tos/lib/tossim/TossimPacketModelC.nc:132: conflicting
> types for `PacketAcknowledgements.wasAcked'
> /opt/tinyos-2.1.1/tos/interfaces/PacketAcknowledgements.nc:74: previous
> declaration of `PacketAcknowledgements.wasAcked'
>
>
>
> On Fri, Sep 7, 2012 at 8:08 AM, wasif masood <[email protected]> wrote:
>
>>
>>
>> After a lot of struggle, I managed to bring down the problem to few lines
>> of Errors. At this point, the following is the apprently the major show
>> stoper,
>> ./tos/lib/tossim/sim_packet.c:44:21: fatal error: message.h: No such file
>> or directory
>>
>> Can someone please help me out in solving this issue, cos just simply
>> copying the message.h file in  tossim folder is not gonna help since I
>> tried it and after thatit start complaining about other missing header
>> files, it is apparent that there is some missing reference/path to the
>> necessary folder which I have somehow missed or over written, I would
>> really appriciate if someone could dispense with some pointers.
>>
>> Here is the complete error!
>>
>> mkdir -p simbuild/micaz
>>   placing object files in simbuild/micaz
>>   writing XML schema to app.xml
>>   compiling TestAppC to object file sim.o
>> ncc -c -shared -fPIC -o simbuild/micaz/sim.o -g -O0 -tossim
>> -fnesc-nido-tosnodes=1000 -fnesc-simulate
>> -fnesc-nido-motenumber=sim_node\(\) -fnesc-gcc=gcc -Wall -Wshadow
>> -Wnesc-all -target=micaz -fnesc-cfile=simbuild/micaz/app.c -board=micasb
>> -DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000
>> -DIDENT_APPNAME=\"TestAppC\" -DIDENT_USERNAME=\"wasif\"
>> -DIDENT_HOSTNAME=\"wasif-VirtualBo\" -DIDENT_USERHASH=0x1f985317L
>> -DIDENT_TIMESTAMP=0x5049e215L -DIDENT_UIDHASH=0xc32180c9L
>> -I/usr/include/python2.7/ -I./tos/System -I./tos/lib/tossim -DTOSSIM
>> -Wno-nesc-data-race TestAppC.nc   -fnesc-dump=components
>> -fnesc-dump=variables -fnesc-dump=constants -fnesc-dump=typedefs
>> -fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml
>> /opt/tinyos-2.1.1/tos/lib/tossim/sim_noise.c: In function ‘sim_noise_gen’:
>> /opt/tinyos-2.1.1/tos/lib/tossim/sim_noise.c:283:7: warning: variable
>> ‘noiseIndex’ set but not used [-Wunused-but-set-variable]
>> SynchronizerP.nc: In function ‘SynchronizerP$RadioSend$sendDone’:
>> SynchronizerP.nc:282:24: warning: unused variable ‘pulseWord’
>> [-Wunused-variable]
>>   compiling Python support and C libraries into pytossim.o, tossim.o, and
>> c-support.o
>> g++ -c  -shared -fPIC -o simbuild/micaz/pytossim.o -g -O0
>> -DIDENT_APPNAME=\"TestAppC\" -DIDENT_USERNAME=\"wasif\"
>> -DIDENT_HOSTNAME=\"wasif-VirtualBo\" -DIDENT_USERHASH=0x1f985317L
>> -DIDENT_TIMESTAMP=0x5049e215L -DIDENT_UIDHASH=0xc32180c9L
>> -I/usr/include/python2.7/ -I./tos/System -I./tos/lib/tossim -DTOSSIM
>> /opt/tinyos-2.1.1/tos/lib/tossim/tossim_wrap.cxx -I/usr/include/python2.7
>> -I/opt/tinyos-2.1.1/tos/lib/tossim -DHAVE_CONFIG_H
>> In file included from ./tos/lib/tossim/tossim.h:47:0,
>>                  from
>> /opt/tinyos-2.1.1/tos/lib/tossim/tossim_wrap.cxx:2584:
>> ./tos/lib/tossim/tos.h:97:1: error: stray ‘@’ in program
>> ./tos/lib/tossim/tos.h:98:1: error: stray ‘@’ in program
>> ./tos/lib/tossim/tos.h:99:1: error: stray ‘@’ in program
>> In file included from ./tos/lib/tossim/tos.h:106:0,
>>                  from ./tos/lib/tossim/tossim.h:47,
>>                  from
>> /opt/tinyos-2.1.1/tos/lib/tossim/tossim_wrap.cxx:2584:
>> ./tos/lib/tossim/sim_packet.c:44:21: fatal error: message.h: No such file
>> or directory
>> compilation terminated.
>> make: *** [sim-exe] Error 1
>>
>>
>> Regards,
>> Wasif Masood
>>
>>
>
>
> --
> Wasif Masood
>
>


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

Reply via email to