Aaron Turner wrote:
> What I would recommend is follow the directions here:
> http://tcpreplay.synfin.net/trac/wiki/manual#GettingTcpreplayInstalled
>
> Specifically the part about using --disable-local-libopts and
> --disable-libopts-install.
>
> This will cause tcpreplay to link against your system version of
> autogen/autoopts which was used to generate the src/*_opts.[ch] files
> when you run make (they're not in SVN since they're generated source
> files, but they're included in the tarballs).
>   

OK, I did that and it compiled fine thanks. I had a number of warnings 
that I pasted below just in case you are interested in having a look. 
This is with gcc 4.3.3.

> If that doesn't work, i'll be happy to work with you on irc
> (#tcpreplay on freenode).
>   

I have to admit I have never used irc. For LyX development we 
communicate exclusively on the development mailing list. But I can try 
if that's your preferred medium.

Thanks,
Abdel.

In function ‘snprintf’,
inlined from ‘cidr2iplist’ at cidr.c:509:
/usr/include/bits/stdio2.h:65: warning: call to __builtin___snprintf_chk 
will always overflow destination buffer
cache.c: In function ‘read_cache’:
cache.c:116: warning: format ‘%d’ expects type ‘int’, but argument 4 has 
type ‘ssize_t’
cache.c:141: warning: format ‘%ld’ expects type ‘long int’, but argument 
4 has type ‘long long unsigned int’
cache.c: In function ‘write_cache’:
cache.c:188: warning: format ‘%d’ expects type ‘int’, but argument 3 has 
type ‘ssize_t’
cache.c:188: warning: format ‘%d’ expects type ‘int’, but argument 4 has 
type ‘long unsigned int’
cache.c:198: warning: format ‘%d’ expects type ‘int’, but argument 3 has 
type ‘ssize_t’
cache.c:198: warning: format ‘%d’ expects type ‘int’, but argument 4 has 
type ‘size_t’
cache.c:221: warning: format ‘%i’ expects type ‘int’, but argument 3 has 
type ‘ssize_t’
get.c: In function ‘get_l2len’:
get.c:146: warning: unused variable ‘ether_type’
fakepoll.c:43: warning: ‘FAKEPOLL’ defined but not used
xX.c: In function ‘parse_xX_str’:
xX.c:101: warning: implicit declaration of function ‘exit’
xX.c:101: warning: incompatible implicit declaration of built-in 
function ‘exit’
xX.c:108: warning: incompatible implicit declaration of built-in 
function ‘exit’
utils.c: In function ‘_our_safe_malloc’:
utils.c:58: warning: format ‘%d’ expects type ‘int’, but argument 3 has 
type ‘const char *’
utils.c:58: warning: too many arguments for format
utils.c: In function ‘_our_safe_realloc’:
utils.c:83: warning: format ‘%d’ expects type ‘int’, but argument 3 has 
type ‘const char *’
utils.c:83: warning: too many arguments for format
utils.c: In function ‘_our_safe_strdup’:
utils.c:102: warning: format ‘%d’ expects type ‘int’, but argument 3 has 
type ‘const char *’
utils.c:102: warning: too many arguments for format
utils.c: In function ‘_our_safe_free’:
utils.c:119: warning: too many arguments for format
sendpacket.c: In function ‘sendpacket_close’:
sendpacket.c:412: warning: enumeration value ‘SP_TYPE_LIBNET’ not 
handled in switch
sendpacket.c:412: warning: enumeration value ‘SP_TYPE_LIBDNET’ not 
handled in switch
sendpacket.c:412: warning: enumeration value ‘SP_TYPE_LIBPCAP’ not 
handled in switch
sendpacket.c: In function ‘sendpacket_open_pf’:
sendpacket.c:624: warning: pointer targets in passing argument 2 of 
‘get_iface_index’ differ in signedness
sendpacket.c: In function ‘get_iface_index’:
sendpacket.c:703: warning: pointer targets in passing argument 2 of 
‘strlcpy’ differ in signedness
sendpacket.c: In function ‘sendpacket_open_pf’:
sendpacket.c:659: warning: ‘sp’ may be used uninitialized in this function
mac.c: In function ‘macinstring’:
mac.c:123: warning: ‘tok’ may be used uninitialized in this function
mac.c: In function ‘dualmac2hex’:
mac.c:83: warning: ‘tok’ may be used uninitialized in this function
interface.c: In function ‘get_interface’:
interface.c:72: warning: return discards qualifiers from pointer target 
type
tcpdump.c: In function ‘tcpdump_print’:
tcpdump.c:93: warning: implicit declaration of function ‘exit’
tcpdump.c:93: warning: incompatible implicit declaration of built-in 
function ‘exit’
tcpdump.c:96: warning: incompatible implicit declaration of built-in 
function ‘exit’
tcpdump.c: In function ‘tcpdump_open’:
tcpdump.c:167: warning: incompatible implicit declaration of built-in 
function ‘exit’
tcpdump.c:190: warning: incompatible implicit declaration of built-in 
function ‘exit’
tcpdump.c:194: warning: incompatible implicit declaration of built-in 
function ‘exit’
tcpdump.c:198: warning: incompatible implicit declaration of built-in 
function ‘exit’
tcpdump.c:238: warning: incompatible implicit declaration of built-in 
function ‘exit’
tcpdump.c:245: warning: incompatible implicit declaration of built-in 
function ‘exit’
tcpdump.c:252: warning: incompatible implicit declaration of built-in 
function ‘exit’
tcpdump.c: In function ‘tcpdump_close’:
tcpdump.c:278: warning: incompatible implicit declaration of built-in 
function ‘exit’
parse_args.c: In function ‘tcpedit_post_args’:
parse_args.c:63: warning: initialization from incompatible pointer type
edit_packet.c: In function ‘randomize_ipv4’:
edit_packet.c:118: warning: unused variable ‘dstip’
edit_packet.c:118: warning: unused variable ‘srcip’
./plugins/dlt_user/user.c: In function ‘dlt_user_parse_opts’:
./plugins/dlt_user/user.c:188: warning: initialization from incompatible 
pointer type
./plugins/dlt_user/user.c: In function ‘dlt_user_encode’:
./plugins/dlt_user/user.c:247: warning: ‘l2len’ may be used 
uninitialized in this function
tcpreplay_opts.c: In function ‘doUsageOpt’:
tcpreplay_opts.c:897: warning: unused parameter ‘pOptions’
tcpreplay_opts.c:898: warning: unused parameter ‘pOptDesc’
tcpreplay_opts.c: In function ‘doOptListnics’:
tcpreplay_opts.c:966: warning: unused parameter ‘pOptions’
tcpreplay_opts.c:966: warning: unused parameter ‘pOptDesc’
tcpreplay_opts.c: In function ‘doOptPid’:
tcpreplay_opts.c:1148: warning: unused parameter ‘pOptions’
tcpreplay_opts.c:1148: warning: unused parameter ‘pOptDesc’
tcpreplay_opts.c: In function ‘doOptVersion’:
tcpreplay_opts.c:1161: warning: unused parameter ‘pOptions’
tcpreplay_opts.c:1161: warning: unused parameter ‘pOptDesc’
tcpreplay_opts.c: In function ‘doOptLess_Help’:
tcpreplay_opts.c:1211: warning: unused parameter ‘pOptions’
tcpreplay_opts.c:1211: warning: unused parameter ‘pOptDesc’
send_packets.c: In function ‘do_sleep’:
send_packets.c:336: warning: unused variable ‘pps_multi’
signal_handler.c: In function ‘suspend_handler’:
signal_handler.c:91: warning: implicit declaration of function ‘exit’
signal_handler.c:91: warning: incompatible implicit declaration of 
built-in function ‘exit’
signal_handler.c: In function ‘continue_handler’:
signal_handler.c:111: warning: incompatible implicit declaration of 
built-in function ‘exit’
tcpreplay.c: In function ‘post_args’:
tcpreplay.c:282: warning: unused variable ‘gtod’
sleep.c: In function ‘ioport_sleep_init’:
sleep.c:65: warning: implicit declaration of function ‘exit’
sleep.c:65: warning: incompatible implicit declaration of built-in 
function ‘exit’
sleep.c: In function ‘ioport_sleep’:
sleep.c:99: warning: incompatible implicit declaration of built-in 
function ‘exit’
sleep.c:70: warning: unused parameter ‘nap’
tcpprep_opts.c: In function ‘doUsageOpt’:
tcpprep_opts.c:920: warning: unused parameter ‘pOptions’
tcpprep_opts.c:921: warning: unused parameter ‘pOptDesc’
tcpprep_opts.c: In function ‘doOptAuto’:
tcpprep_opts.c:988: warning: unused parameter ‘pOptions’
tcpprep_opts.c:988: warning: unused parameter ‘pOptDesc’
tcpprep_opts.c: In function ‘doOptCidr’:
tcpprep_opts.c:1018: warning: unused parameter ‘pOptions’
tcpprep_opts.c:1018: warning: unused parameter ‘pOptDesc’
tcpprep_opts.c: In function ‘doOptRegex’:
tcpprep_opts.c:1035: warning: unused parameter ‘pOptions’
tcpprep_opts.c:1035: warning: unused parameter ‘pOptDesc’
tcpprep_opts.c: In function ‘doOptPort’:
tcpprep_opts.c:1056: warning: unused parameter ‘pOptions’
tcpprep_opts.c:1056: warning: unused parameter ‘pOptDesc’
tcpprep_opts.c: In function ‘doOptMac’:
tcpprep_opts.c:1069: warning: unused parameter ‘pOptions’
tcpprep_opts.c:1069: warning: unused parameter ‘pOptDesc’
tcpprep_opts.c: In function ‘doOptComment’:
tcpprep_opts.c:1090: warning: format ‘%d’ expects type ‘int’, but 
argument 3 has type ‘size_t’
tcpprep_opts.c:1084: warning: unused parameter ‘pOptions’
tcpprep_opts.c:1084: warning: unused parameter ‘pOptDesc’
tcpprep_opts.c: In function ‘doOptNo_Arg_Comment’:
tcpprep_opts.c:1104: warning: unused parameter ‘pOptions’
tcpprep_opts.c:1104: warning: unused parameter ‘pOptDesc’
tcpprep_opts.c: In function ‘doOptInclude’:
tcpprep_opts.c:1116: warning: unused parameter ‘pOptions’
tcpprep_opts.c:1116: warning: unused parameter ‘pOptDesc’
tcpprep_opts.c: In function ‘doOptExclude’:
tcpprep_opts.c:1137: warning: unused parameter ‘pOptions’
tcpprep_opts.c:1137: warning: unused parameter ‘pOptDesc’
tcpprep_opts.c: In function ‘doOptServices’:
tcpprep_opts.c:1158: warning: unused parameter ‘pOptions’
tcpprep_opts.c:1158: warning: unused parameter ‘pOptDesc’
tcpprep_opts.c: In function ‘doOptNonip’:
tcpprep_opts.c:1170: warning: unused parameter ‘pOptions’
tcpprep_opts.c:1170: warning: unused parameter ‘pOptDesc’
tcpprep_opts.c: In function ‘doOptVersion’:
tcpprep_opts.c:1293: warning: unused parameter ‘pOptions’
tcpprep_opts.c:1293: warning: unused parameter ‘pOptDesc’
tcpprep_opts.c: In function ‘doOptLess_Help’:
tcpprep_opts.c:1333: warning: unused parameter ‘pOptions’
tcpprep_opts.c:1333: warning: unused parameter ‘pOptDesc’
tcpprep.c: In function ‘process_raw_packets’:
tcpprep.c:400: warning: implicit declaration of function ‘add_tree_first’
tree.c:654: warning: ‘tree_print’ defined but not used
tcprewrite_opts.c: In function ‘doUsageOpt’:
tcprewrite_opts.c:1158: warning: unused parameter ‘pOptions’
tcprewrite_opts.c:1159: warning: unused parameter ‘pOptDesc’
tcprewrite_opts.c: In function ‘doOptCachefile’:
tcprewrite_opts.c:1446: warning: unused parameter ‘pOptions’
tcprewrite_opts.c:1446: warning: unused parameter ‘pOptDesc’
tcprewrite_opts.c: In function ‘doOptVersion’:
tcprewrite_opts.c:1460: warning: unused parameter ‘pOptions’
tcprewrite_opts.c:1460: warning: unused parameter ‘pOptDesc’
tcprewrite_opts.c: In function ‘doOptLess_Help’:
tcprewrite_opts.c:1505: warning: unused parameter ‘pOptions’
tcprewrite_opts.c:1505: warning: unused parameter ‘pOptDesc’
tcprewrite.c: In function ‘rewrite_packets’:
tcprewrite.c:235: warning: unused variable ‘i’
tcprewrite.c:235: warning: unused variable ‘frag_len’
tcpbridge_opts.c: In function ‘doUsageOpt’:
tcpbridge_opts.c:1184: warning: unused parameter ‘pOptions’
tcpbridge_opts.c:1185: warning: unused parameter ‘pOptDesc’
tcpbridge_opts.c: In function ‘doOptInclude’:
tcpbridge_opts.c:1527: warning: unused parameter ‘pOptions’
tcpbridge_opts.c:1527: warning: unused parameter ‘pOptDesc’
tcpbridge_opts.c: In function ‘doOptExclude’:
tcpbridge_opts.c:1548: warning: unused parameter ‘pOptions’
tcpbridge_opts.c:1548: warning: unused parameter ‘pOptDesc’
tcpbridge_opts.c: In function ‘doOptPid’:
tcpbridge_opts.c:1569: warning: unused parameter ‘pOptions’
tcpbridge_opts.c:1569: warning: unused parameter ‘pOptDesc’
tcpbridge_opts.c: In function ‘doOptVersion’:
tcpbridge_opts.c:1582: warning: unused parameter ‘pOptions’
tcpbridge_opts.c:1582: warning: unused parameter ‘pOptDesc’
tcpbridge_opts.c: In function ‘doOptLess_Help’:
tcpbridge_opts.c:1621: warning: unused parameter ‘pOptions’
tcpbridge_opts.c:1621: warning: unused parameter ‘pOptDesc’
tcpbridge.c: In function ‘post_args’:
tcpbridge.c:207: warning: initialization from incompatible pointer type
tcpbridge.c:225: warning: too many arguments for format
tcpbridge.c:227: warning: assignment from incompatible pointer type
tcpbridge.c:247: warning: too many arguments for format
tcpbridge.c:249: warning: assignment from incompatible pointer type
send_packets.c: In function ‘do_sleep’:
send_packets.c:336: warning: unused variable ‘pps_multi’
sleep.c: In function ‘ioport_sleep_init’:
sleep.c:65: warning: implicit declaration of function ‘exit’
sleep.c:65: warning: incompatible implicit declaration of built-in 
function ‘exit’
sleep.c: In function ‘ioport_sleep’:
sleep.c:99: warning: incompatible implicit declaration of built-in 
function ‘exit’
sleep.c:70: warning: unused parameter ‘nap’




------------------------------------------------------------------------------
_______________________________________________
Tcpreplay-users mailing list
Tcpreplay-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tcpreplay-users
Support Information: http://tcpreplay.synfin.net/trac/wiki/Support

Reply via email to