Hello,

  I have problems compiling IMS bench with pcapplay:
svn co 
https://sipp.svn.sourceforge.net/svnroot/sipp/sipp/branches/ims_benchims_bench
cd ims_bench
make pcapplay
make OSNAME=Linux MODELNAME=i686 GSL_LIBS="-lgsl -lgslcblas -lm"
OBJ_PCAPPLAY="send_packets.o prepare_pcap.o" PCAPPLAY_LIBS="-lpcap"
PCAPPLAY="-DPCAPPLAY" sipp
make[1]: Entering directory `/root/ims_bench'
gcc   -D__LINUX -pthread -DSIPP_EPOLL -D__3PCC__ -DHAVE_GSL -DFORCE_LOGGING
-DPCAPPLAY     -I. -I/opt/openssl/include  -c -o send_packets.o
send_packets.cpp
send_packets.cpp: In function āvoid timerdiv(timeval*, float)ā:
send_packets.cpp:75: warning: converting to ā__time_tā from ādoubleā
send_packets.cpp:76: warning: converting to ā__suseconds_tā from ādoubleā
send_packets.cpp: In function āvoid float2timer(float, timeval*)ā:
send_packets.cpp:89: warning: converting to ā__time_tā from āfloatā
send_packets.cpp:92: warning: converting to ā__suseconds_tā from āfloatā
send_packets.cpp: In function āint send_packets(play_args_t*)ā:
send_packets.cpp:176: error: āstruct udphdrā has no member named āuh_dportā
send_packets.cpp:178: error: āstruct udphdrā has no member named āuh_sportā
send_packets.cpp:179: error: āstruct udphdrā has no member named āuh_dportā
send_packets.cpp:182: error: āstruct udphdrā has no member named āuh_sportā
send_packets.cpp:185: error: āstruct udphdrā has no member named āuh_sportā
send_packets.cpp:192: error: āstruct udphdrā has no member named āuh_sumā
make[1]: *** [send_packets.o] Error 1
make[1]: Leaving directory `/root/ims_bench'
make: *** [pcapplay] Error 2

My OS is Centos 5.5, i686. I've also tried compile send_packet.cpp in
verbose mode, and I saw that gcc uses /usr/include/netinet/udp.h header
file, which has struct with uh_sport member and so on (also __FAVOR_BSD is
defined too). Maybe somebody has faced the same problem and solved it?

Thanks in advanced.

-- 
Best Regards,
Giedrius
------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to