else \
gcc -o sendip -g -rdynamic -lm -fPIC -fsigned-char -pipe -Wall -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wnested-externs -Winline -Werror -g -Wcast-align -DSENDIP_LIBS=\"/usr/local/lib/sendip\" sendip.o gnugetopt.o gnugetopt1.o compact.o ; \
fi"
gcc -o ipv4.so -fPIC -fsigned-char -pipe -Wall -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wnested-externs -Winline -Werror -g -Wcast-align -DSENDIP_LIBS=\"/usr/local/lib/sendip\" -shared ipv4.c csum.o compact.o
cc1: warnings being treated as errors
ipv4.c: 在函数‘do_opt’中:
ipv4.c:212: 错误:传递‘sprintf’的参数 1 给指针时,目标与指针符号不一致
/usr/include/stdio.h:363: 附注:需要类型‘char * __restrict__’,但实参的类型为‘u_int8_t *’
ipv4.c:213: 错误:传递‘compact_string’的参数 1 给指针时,目标与指针符号不一致
sendip_module.h:41: 附注:需要类型‘char *’,但实参的类型为‘u_int8_t *’
ipv4.c:240: 错误:传递‘addoption’的参数 5 给指针时,目标与指针符号不一致
ipv4.c:81: 附注:需要类型‘u_int8_t *’,但实参的类型为‘char *’
ipv4.c:355: 错误:传递‘addoption’的参数 5 给指针时,目标与指针符号不一致
ipv4.c:81: 附注:需要类型‘u_int8_t *’,但实参的类型为‘char *’
ipv4.c:380: 错误:传递‘addoption’的参数 5 给指针时,目标与指针符号不一致
ipv4.c:81: 附注:需要类型‘u_int8_t *’,但实参的类型为‘char *’
ipv4.c:402: 错误:传递‘addoption’的参数 5 给指针时,目标与指针符号不一致
ipv4.c:81: 附注:需要类型‘u_int8_t *’,但实参的类型为‘char *’
make: *** [ipv4.so] 错误 1
应该打开文件按照提示进行修改就可以;
2)之后从csdn再下载一个软件进行安装:
能够进行安装了。libdnet
2、tcpreplay
先安装bison、flex、再安装libpcap等,最后再安装tcpreplay
1)./configure检查系统配置时(自动生产makefile文件)提示如下,所以需要安装libpcap文件
checking for libpcap... no
configure: error: libpcap not found
直接用yum的方法安装之后还是提示libpcap not found
然后手动安装libpcap安装包,依赖bison、flex,使用yum后再次./configure安装libpcap又报错一下命令
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/tongxinshuyu/article-35103-2.html
444444444444444
没人敢惹吧
中国人不惹事