problem installing xprobe2-0.2.1

after finishing ./configure. there were no problem…

then when i using make command

cd libs-external/USI++/src; make
make[1]: Entering directory `/home/taqi303/Desktop/xprobe2-0.2.1/libs-external/USI++/src'
c++ -fPIC -I/usr/include/pcap -I. -Wall -c -O2 ip.cc
ip.cc: In constructor ‘usipp::IP::IP(const char*, u_int8_t)’:
ip.cc:34: error: ‘srand’ was not declared in this scope
ip.cc:45: error: ‘rand’ was not declared in this scope
ip.cc: In constructor ‘usipp::IP::IP(u_int32_t, u_int8_t)’:
ip.cc:82: error: ‘srand’ was not declared in this scope
ip.cc:87: error: ‘rand’ was not declared in this scope
ip.cc: In member function ‘int usipp::IP::set_src(const char*)’:
ip.cc:410: error: ‘exit’ was not declared in this scope
ip.cc: In member function ‘int usipp::IP::set_dst(const char*)’:
ip.cc:432: error: ‘exit’ was not declared in this scope
ip.cc: In member function ‘virtual int usipp::IP::init_device(char*, int, size_t)’:
ip.cc:553: warning: deprecated conversion from string constant to ‘char*’
make[1]: *** [ip.o] Error 1
make[1]: Leaving directory `/home/taqi303/Desktop/xprobe2-0.2.1/libs-external/USI++/src'
make: *** [all] Error 2

can anyone help me… thank you

Hi
Welcome to gcc4.3 funnies… you need to add a few lines of code.
Change to the directory where the source is (where you ran ./configure
from), then;


vi libs-external/USI++/src/ip.cc

After line 15: #include "config.h" add;
#include <cstdlib>

Save and exit

vi libs-external/USI++/src/misc.cc

After line 2: #include "usi++/usi-structs.h" add;
#include <cstdlib>

Save and exit

vi libs-external/USI++/usi++/tcp.h

After line 17: #include "ip.h" add;
#include <cstring>

Save and exit

make clean
make


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.0 x86 Kernel 2.6.25.11-0.1-default
up 2 days 16:22, 3 users, load average: 0.16, 0.11, 0.09
GPU GeForce 6600 TE/6200 TE - Driver Version: 173.14.12