Find the answer to your Linux question:
Results 1 to 4 of 4
hi , i am trying to install sense simulator.form last two days its giving me following errors. please guide me its very urgent.i have downloaded sense3.1 directory then in linux ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2010
    Posts
    2

    problems in installation of sense simulator


    hi ,
    i am trying to install sense simulator.form last two days its giving me following errors. please guide me its very urgent.i have downloaded sense3.1 directory then in linux i decompressed it but while building the simulator its giving me errors about not finding out the bin/sh folder what to do abt it?

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Hi and Welcome !

    Which Linux distro/version are you using? Could you post exact error message here?
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Mar 2010
    Posts
    2

    sense simulator problems

    fedora 11. and error messages are i have downloaded sense3.1 directory then in linux i decompressed it but while building the simulator its giving following errors.
    imake
    make -i all -C libraries/parseConfig/src
    make[1]: Entering directory `/home/exam/sense3/sense3.1/
    code/libraries/parseConfig/src'
    make[1]: Leaving directory `/home/exam/sense3/sense3.1/code/libraries/parseConfig/src'
    make[1]: Entering directory `/home/exam/sense3/sense3.1/code/libraries/parseConfig/src'
    g++ -Wall -c -I../inc -I../../visualizer/inc -I../../../common -O3 -Wall -O3 -DVISUAL_ROUTE -DVR_SIZE=30 CIParseRtns.cpp -o ../obj/CIParseRtns.o
    g++ -Wall -c -I../inc -I../../visualizer/inc -I../../../common -O3 -Wall -O3 -DVISUAL_ROUTE -DVR_SIZE=30 ConfigInfo.cpp -o ../obj/ConfigInfo.o
    g++ -Wall -c -I../inc -I../../visualizer/inc -I../../../common -O3 -Wall -O3 -DVISUAL_ROUTE -DVR_SIZE=30 ConfigInfoWrapper.cpp -o ../obj/ConfigInfoWrapper.o
    g++ -Wall -c -I../inc -I../../visualizer/inc -I../../../common -O3 -Wall -O3 -DVISUAL_ROUTE -DVR_SIZE=30 file.cpp -o ../obj/file.o
    g++ -Wall -c -I../inc -I../../visualizer/inc -I../../../common -O3 -Wall -O3 -DVISUAL_ROUTE -DVR_SIZE=30 NodeInfo.cpp -o ../obj/NodeInfo.o
    In file included from NodeInfo.cpp:31:
    ../../../common/path.h: In member function ‘const char* path_t<size>::ToString()’:
    ../../../common/path.h:64: error: there are no arguments to ‘sprintf’ that depend on a template parameter, so a declaration of ‘sprintf’ must be available
    ../../../common/path.h:64: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
    ../../../common/path.h:68: error: there are no arguments to ‘sprintf’ that depend on a template parameter, so a declaration of ‘sprintf’ must be available
    make[1]: [../obj/NodeInfo.o] Error 1 (ignored)
    ar -r ../lib/libconfigParser.a ../obj/CIParser.o ../obj/CIScanner.o ../obj/CIParseRtns.o ../obj/ConfigInfo.o ../obj/ConfigInfoWrapper.o ../obj/file.o ../obj/NodeInfo.o
    ar: creating ../lib/libconfigParser.a
    ar: ../obj/NodeInfo.o: No such file or directory
    make[1]: [../lib/libconfigParser.a] Error 1 (ignored)
    ranlib ../lib/libconfigParser.a
    ranlib: '../lib/libconfigParser.a': No such file
    make[1]: [../lib/libconfigParser.a] Error 1 (ignored)
    make[1]: Leaving directory `/home/exam/sense3/sense3.1/code/libraries/parseConfig/src'
    make -i all -C libraries/visualizer/src
    make[1]: Entering directory `/home/exam/sense3/sense3.1/code/libraries/visualizer/src'
    make[1]: Leaving directory `/home/exam/sense3/sense3.1/code/libraries/visualizer/src'
    make[1]: Entering directory `/home/exam/sense3/sense3.1/code/libraries/visualizer/src'
    g++ -Wall -c -I../inc -I../../../common -O3 -Wall -O3 -DVISUAL_ROUTE -DVR_SIZE=30 Visualizer.cpp -o ../obj/Visualizer.o
    In file included from Visualizer.cpp:27:
    ../../../common/path.h: In member function ‘const char* path_t<size>::ToString()’:
    ../../../common/path.h:64: error: there are no arguments to ‘sprintf’ that depend on a template parameter, so a declaration of ‘sprintf’ must be available
    ../../../common/path.h:64: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
    ../../../common/path.h:68: error: there are no arguments to ‘sprintf’ that depend on a template parameter, so a declaration of ‘sprintf’ must be available
    make[1]: [../obj/Visualizer.o] Error 1 (ignored)
    ar -r ../lib/libvisualizer.a ../obj/Visualizer.o
    ar: creating ../lib/libvisualizer.a
    ar: ../obj/Visualizer.o: No such file or directory
    make[1]: [../lib/libvisualizer.a] Error 1 (ignored)
    ranlib ../lib/libvisualizer.a
    ranlib: '../lib/libvisualizer.a': No such file
    make[1]: [../lib/libvisualizer.a] Error 1 (ignored)
    make[1]: Leaving directory `/home/exam/sense3/sense3.1/code/libraries/visualizer/src'
    make -i all -C libraries/packetList/src
    make[1]: Entering directory `/home/exam/sense3/sense3.1/code/libraries/packetList/src'
    make[1]: Leaving directory `/home/exam/sense3/sense3.1/code/libraries/packetList/src'
    make[1]: Entering directory `/home/exam/sense3/sense3.1/code/libraries/packetList/src'
    g++ -Wall -c -I../inc -I../../../common -O3 -Wall -O3 -DVISUAL_ROUTE -DVR_SIZE=30 packetList.cpp -o ../obj/packetList.o
    g++ -Wall -c -I../inc -I../../../common -O3 -Wall -O3 -DVISUAL_ROUTE -DVR_SIZE=30 AppStats.cpp -o ../obj/AppStats.o
    g++ -Wall -c -I../inc -I../../../common -O3 -Wall -O3 -DVISUAL_ROUTE -DVR_SIZE=30 NodeStats.cpp -o ../obj/NodeStats.o
    ar -r ../lib/libpacketList.a ../obj/packetList.o ../obj/AppStats.o ../obj/NodeStats.o
    ar: creating ../lib/libpacketList.a
    ranlib ../lib/libpacketList.a
    make[1]: Leaving directory `/home/exam/sense3/sense3.1/code/libraries/packetList/src'
    make -C compc++
    make[1]: Entering directory `/home/exam/sense3/sense3.1/code/compc++'
    g++ -Wall -O3 -DVISUAL_ROUTE -DVR_SIZE=30 -c -o lexer.o lexer.cpp
    lexer.cpp:1656: warning: ‘void yyunput(int, char*)’ defined but not used
    g++ -Wall -O3 -DVISUAL_ROUTE -DVR_SIZE=30 -c -o token.o token.cpp
    g++ -Wall -O3 -DVISUAL_ROUTE -DVR_SIZE=30 -c -o parser.o parser.cpp
    g++ -o ../bin/cxx lexer.o token.o parser.o -lstdc++
    make[1]: Leaving directory `/home/exam/sense3/sense3.1/code/compc++'
    make -C examples/compc++
    make[1]: Entering directory `/home/exam/sense3/sense3.1/code/examples/compc++'
    ../../bin/cxx hello-incl.cc
    g++ -Wall -O3 -DVISUAL_ROUTE -DVR_SIZE=30 -o hello-incl hello-incl.cxx -lstdc++
    ../../bin/cxx hello-system.cc
    g++ -Wall -O3 -DVISUAL_ROUTE -DVR_SIZE=30 -o hello-system hello-system.cxx -lstdc++
    ../../bin/cxx hello-funct.cc
    g++ -Wall -O3 -DVISUAL_ROUTE -DVR_SIZE=30 -o hello-funct hello-funct.cxx -lstdc++
    ../../bin/cxx print-int.cc
    g++ -Wall -O3 -DVISUAL_ROUTE -DVR_SIZE=30 -o print-int print-int.cxx -lstdc++
    ../../bin/cxx print-array.cc
    g++ -Wall -O3 -DVISUAL_ROUTE -DVR_SIZE=30 -o print-array print-array.cxx -lstdc++
    make[1]: Leaving directory `/home/exam/sense3/sense3.1/code/examples/compc++'
    make -C examples/cost
    make[1]: Entering directory `/home/exam/sense3/sense3.1/code/examples/cost'
    ../../bin/cxx mm1.cc
    g++ -Wall -O3 -DVISUAL_ROUTE -DVR_SIZE=30 -o mm1 mm1.cxx -lstdc++
    ../../bin/cxx mm1-comp.cc
    g++ -Wall -O3 -DVISUAL_ROUTE -DVR_SIZE=30 -o mm1-comp mm1-comp.cxx -lstdc++
    ../../bin/cxx mm1-server.cc
    g++ -Wall -O3 -DVISUAL_ROUTE -DVR_SIZE=30 -o mm1-server mm1-server.cxx -lstdc++
    ../../bin/cxx mmm1.cc
    g++ -Wall -O3 -DVISUAL_ROUTE -DVR_SIZE=30 -o mmm1 mmm1.cxx -lstdc++
    make[1]: Leaving directory `/home/exam/sense3/sense3.1/code/examples/cost'
    [exam@localhost code]$ ls

  4. #4
    Just Joined!
    Join Date
    Mar 2010
    Posts
    1
    you need to change one line in code/definitions.mk :

    CCFLAGS += -DVISUAL_ROUTE -DVR_SIZE=30
    to
    CCFLAGS += -DVISUAL_ROUTE -DVR_SIZE=30 -fpermissive

    I've done it and it work with me.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •