I tried to compile tcpreplay on HP-UX today and the first problem was
with configure:

=============================================
Configure script (configure.in) contains a test program for testing the
version of libnet. Run of ./configure ends with:
---------------------------------------
checking for libnet version... unknown
configure: error: Unable to determine version of libnet
---------------------------------------

Relevant part of config.log is:
---------------------------------------
configure:7003: checking for libnet version
configure:7035: gcc -o conftest -pipe -Wall -O3 -funroll-loops
conftest.c -L/usr/local/lib -lnet >&5
In file included from /usr/local/include/libnet.h:121,
                 from conftest.c:65:
/usr/local/include/./libnet/libnet-headers.h:660: error: duplicate
member 'ip_v'
/usr/local/include/./libnet/libnet-headers.h:661: error: duplicate
member 'ip_hl'
/usr/local/include/./libnet/libnet-headers.h:1102: error: duplicate
member 'isl_user'
/usr/local/include/./libnet/libnet-headers.h:1103: error: duplicate
member 'isl_type'
/usr/local/include/./libnet/libnet-headers.h:1536: error: duplicate
member 'th_off'
/usr/local/include/./libnet/libnet-headers.h:1537: error: duplicate
member 'th_x2'
/usr/local/include/./libnet/libnet-headers.h:1647: error: duplicate
member 'vrrp_t'
/usr/local/include/./libnet/libnet-headers.h:1648: error: duplicate
member 'vrrp_v'
/usr/local/include/./libnet/libnet-headers.h:1648: error: duplicate
member '({anonymous})'
In file included from /usr/local/include/libnet.h:122,
                 from conftest.c:65:
/usr/local/include/./libnet/libnet-structures.h:40: error: conflicting
types for 'uint64_t'
/usr/include/sys/_inttypes.h:100: error: previous declaration of
'uint64_t' washere
---------------------------------------

The problem is that /usr/local/include/libnet.h has:
---------------------------------------
#define LIBNET_BIG_ENDIAN 1
---------------------------------------

However, that test program (incorrectly) forces:
---------------------------------------
#define LIBNET_LIL_ENDIAN 1
---------------------------------------

This then causes duplicated fields.

BTW, this is libnet 1.1.2.1.
=============================================

The next problem was with libnet (which obviously is a separate issue),
where uint64_t is redefined in libnet-structures.h file (line 40 and 41
- see above). Just mentioning it for completeness. This is something for
libnet folks to fix.

The next issue was a missing strtoull() function on HP-UX (i.e. link
failed). There is a test for it in the configure script, but no action
is taken by the code if the function isn't there. Not exactly sure what
the proper fix would be, but defining strtoull() to be strtoul() worked
on my platform.

PS. I tried submitting this as a bug, but Wiki told me I was posting
spam.

-- 
Bojan


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Tcpreplay-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tcpreplay-users

Reply via email to