Problems in compiling D-ITG

Discussion in 'Programming' started by MietitoreDAnime, Feb 15, 2007.

  1. #1
    Hi all, I have some problems in compiling Distributed Internet Traffic Generator (D-ITG) on an Ubuntu machine. The Generator is free and you can find it at http://www.grid.unina.it/software/ITG/. When I try to compile the program, I get the following error:


    fabio@fabio:~/Tesi Specialistica/DITG/trunk/src$ make
    make[1]: Entering directory `/home/fabio/Tesi Specialistica/DITG/trunk/src/ITGSend'
    make -C newran -ef nr_gnu.mak myexcept.o
    make[2]: Entering directory `/home/fabio/Tesi Specialistica/DITG/trunk/src/ITGSend/newran'
    make[2]: `myexcept.o' is up to date.
    make[2]: Leaving directory `/home/fabio/Tesi Specialistica/DITG/trunk/src/ITGSend/newran'
    make -C newran -ef nr_gnu.mak extreal.o
    make[2]: Entering directory `/home/fabio/Tesi Specialistica/DITG/trunk/src/ITGSend/newran'
    make[2]: `extreal.o' is up to date.
    make[2]: Leaving directory `/home/fabio/Tesi Specialistica/DITG/trunk/src/ITGSend/newran'
    make -C newran -ef nr_gnu.mak newran.o
    make[2]: Entering directory `/home/fabio/Tesi Specialistica/DITG/trunk/src/ITGSend/newran'
    make[2]: `newran.o' is up to date.
    make[2]: Leaving directory `/home/fabio/Tesi Specialistica/DITG/trunk/src/ITGSend/newran'
    g++ -DLINUX_OS -Wall -Wno-deprecated -c -o traffic.o traffic.cpp
    traffic.cpp: In function ‘void telnetParser(SumRandom**, SumRandom**, TDistro&, TDistro&)’:
    traffic.cpp:75: error: no match for ‘operator*’ in ‘1.10000000000000008881784197001252323389053344727e+0 * * ParetoRV’
    traffic.cpp:80: error: no match for ‘operator+’ in ‘D + 21’
    traffic.cpp: In function ‘void voIPParser(int, char**, int&, unsigned int, SumRandom**, SumRandom**, TDistro&, TDistro&)’:
    traffic.cpp:177: error: no match for ‘operator*’ in ‘((VAD * framesize) * samples) * * ConstantRV’
    traffic.cpp:181: error: no match for ‘operator*’ in ‘(1.0e+3 / pkts) * * ConstantRV’
    traffic.cpp: In function ‘void dnsParser(SumRandom**, SumRandom**, TDistro&, TDistro&)’:
    traffic.cpp:198: error: no match for ‘operator*’ in ‘1.785714285714285551875946111977100372314453125e+3 * * ConstantRV’
    traffic.cpp:204: error: no match for ‘operator*’ in ‘2.2e+2 * * UniformRV’
    make[1]: *** [traffic.o] Error 1
    make[1]: Leaving directory `/home/fabio/Tesi Specialistica/DITG/trunk/src/ITGSend'
    make: *** [ITGSend] Error 2


    Have I missed some option when I call "make"?
    Can someone help me?
    Thank you
     
    MietitoreDAnime, Feb 15, 2007 IP
  2. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #2
    worked for me, which version did you download ??

    
    root@chunky [~/D-ITG-2.4.3/src]# make
    g++ -DLINUX_OS -Wall -Wno-deprecated    -c -o common/thread.o common/thread.cpp
    g++ -DLINUX_OS -Wall -Wno-deprecated    -c -o common/ITG.o common/ITG.cpp
    g++ -DLINUX_OS -Wall -Wno-deprecated    -c -o common/timestamp.o common/timestamp.cpp
    g++ -DLINUX_OS -Wall -Wno-deprecated    -c -o common/serial.o common/serial.cpp
    make[1]: Entering directory `/root/D-ITG-2.4.3/src/ITGSend'
    make -C newran -ef nr_gnu.mak myexcept.o
    make[2]: Entering directory `/root/D-ITG-2.4.3/src/ITGSend/newran'
    g++ -DLINUX_OS -Wall -Wno-deprecated  -c myexcept.cpp
    make[2]: Leaving directory `/root/D-ITG-2.4.3/src/ITGSend/newran'
    make -C newran -ef nr_gnu.mak extreal.o
    make[2]: Entering directory `/root/D-ITG-2.4.3/src/ITGSend/newran'
    g++ -DLINUX_OS -Wall -Wno-deprecated  -c extreal.cpp
    make[2]: Leaving directory `/root/D-ITG-2.4.3/src/ITGSend/newran'
    make -C newran -ef nr_gnu.mak newran.o
    make[2]: Entering directory `/root/D-ITG-2.4.3/src/ITGSend/newran'
    g++ -DLINUX_OS -Wall -Wno-deprecated  -c newran.cpp
    newran.cpp: In static member function `static double Random::Get()':
    newran.cpp:166: warning: this decimal constant is unsigned only in ISO C90
    newran.cpp: In static member function `static void Random::Set(double)':
    newran.cpp:174: warning: this decimal constant is unsigned only in ISO C90
    make[2]: Leaving directory `/root/D-ITG-2.4.3/src/ITGSend/newran'
    g++ -DLINUX_OS -Wall -Wno-deprecated    -c -o traffic.o traffic.cpp
    g++ -DLINUX_OS -Wall -Wno-deprecated    -c -o ../common/pipes.o ../common/pipes.cpp
    g++ -DLINUX_OS -Wall -Wno-deprecated  -Inewran newran/myexcept.o newran/extreal.o newran/newran.o ../common/serial.o ../common/ITG.o ../common/timestamp.o ../common/thread.o traffic.o ../common/pipes.o ITGSend.cpp -o ITGSend -lpthread -g
    ITGSend.cpp: In function `void* flowSender(void*)':
    ITGSend.cpp:1817: warning: statement has no effect
    ITGSend.cpp:2062: warning: control reaches end of non-void function
    cp ITGSend /root/D-ITG-2.4.3/src/../bin/
    make[1]: Leaving directory `/root/D-ITG-2.4.3/src/ITGSend'
    make[1]: Entering directory `/root/D-ITG-2.4.3/src/ITGRecv'
    g++ -DLINUX_OS -Wall -Wno-deprecated    -c -o data.o data.cpp
    data.cpp: In function `void* icmpSock(void*)':
    data.cpp:186: warning: statement has no effect
    data.cpp: In function `void* udpSock(void*)':
    data.cpp:384: warning: statement has no effect
    data.cpp: In function `void* tcpSock(void*)':
    data.cpp:596: warning: statement has no effect
    g++ -DLINUX_OS -Wall -Wno-deprecated  ../common/ITG.o ../common/timestamp.o ../common/serial.o ../common/pipes.o ../common/thread.o data.o ITGRecv.cpp -o ITGRecv -lpthread -g
    cp ITGRecv /root/D-ITG-2.4.3/src/../bin/
    make[1]: Leaving directory `/root/D-ITG-2.4.3/src/ITGRecv'
    make[1]: Entering directory `/root/D-ITG-2.4.3/src/ITGLog'
    g++ -DLINUX_OS -Wall -Wno-deprecated    -c -o channel.o channel.cpp
    g++ -DLINUX_OS -Wall -Wno-deprecated  ../common/ITG.o ../common/timestamp.o ../common/thread.o channel.o ITGLog.cpp -o ITGLog -lpthread -g
    cp ITGLog /root/D-ITG-2.4.3/src/../bin/
    make[1]: Leaving directory `/root/D-ITG-2.4.3/src/ITGLog'
    make[1]: Entering directory `/root/D-ITG-2.4.3/src/ITGDec'
    g++ -DLINUX_OS -Wall -Wno-deprecated  ITGDecod.cpp -lm -o ITGDec -lpthread -g
    cp ITGDec /root/D-ITG-2.4.3/src/../bin/
    g++ -DLINUX_OS -Wall -Wno-deprecated  ITGDecod.cpp -lm -DV23 -o ITGDec-23 -lpthread -g
    cp ITGDec-23 /root/D-ITG-2.4.3/src/../bin/
    make[1]: Leaving directory `/root/D-ITG-2.4.3/src/ITGDec'
    make[1]: Entering directory `/root/D-ITG-2.4.3/src/libITG'
    g++ -DLINUX_OS -Wall -Wno-deprecated  -fPIC -shared -o libITG.so ITGapi.cpp ../common/thread.o -lpthread -g
    cp libITG.so /root/D-ITG-2.4.3/src/../bin/
    make[1]: Leaving directory `/root/D-ITG-2.4.3/src/libITG'
    make[1]: Entering directory `/root/D-ITG-2.4.3/src/ITGManager'
    g++ -DLINUX_OS -Wall -Wno-deprecated  ITGManager.cpp ../libITG/ITGapi.cpp -o ITGManager -lpthread -g
    cp ITGManager /root/D-ITG-2.4.3/src/../bin/
    make[1]: Leaving directory `/root/D-ITG-2.4.3/src/ITGManager'
    root@chunky [~/D-ITG-2.4.3/src]#
    
    Code (markup):
     
    krakjoe, Feb 15, 2007 IP
  3. MietitoreDAnime

    MietitoreDAnime Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    My version is the same that the yours, my operating system is UBUNTU 6.10, but I had the same problem on others machines, like MAC machines. Do you use the make command? Do you use this command with some particular option? I go in src directory of the program and type the make command with no options. Please Help me...
     
    MietitoreDAnime, Feb 15, 2007 IP
  4. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #4
    just make, that was it

    http://hozter.info/archive.tar is the compiled source, maybe that'll work.

    PS there's no mac makefiles, only windows and linux
     
    krakjoe, Feb 15, 2007 IP
  5. MietitoreDAnime

    MietitoreDAnime Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I have to compile the code for my university but I type make in src directory and it didn't compile. Do you have changed the makefile for linux o unix.mk? Or Do you know the reason of this problem?
     
    MietitoreDAnime, Feb 15, 2007 IP
  6. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #6
    well, I'd try make clean first, because it says it's not making objects becuase they are up to date, which clearly isn't true, I'd also check that your g++ and gcc are working properly, as the fatal errors come after that's called, other than that the software package isn't helpful in d-bugging as there is no configure.errors or tail txt left in the compile dir, which would be normal, but there isnt one, I'd say you need the authors help on this one, or some Ubuntu gurus.
     
    krakjoe, Feb 15, 2007 IP
  7. MietitoreDAnime

    MietitoreDAnime Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Which distribution of linux do you use?
     
    MietitoreDAnime, Feb 15, 2007 IP
  8. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #8
    CentOS server edition
     
    krakjoe, Feb 15, 2007 IP
  9. MietitoreDAnime

    MietitoreDAnime Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Which version of compiler do you have? I have the same problem with a Suse Machine. I'm starting to think that the problem is g++ or same library that I've misses. Do you have changed the makefile?
    Sorry for my bad english, Thanks for all
     
    MietitoreDAnime, Feb 16, 2007 IP