- 论坛徽章:
- 0
|
一入网络深似海,从此文字似路人。
小弟近来想copy一个软件----Sendip,所谓知己知彼方能百战不殆。于是就先安装。就在这第一步就出现了问题。
首先系统版本:
[root@localhost ~]# cat /proc/version
Linux version 2.6.31.5-127.fc12.i686.PAE (mockbuild@x86-3.fedora.phx.redhat.com)
sendip软件出处:http://www.earth.li/projectpurple/progs/sendip.html (Source tarball)
下载下来放在 /tmp 下,解压,然后make, 出现状况入下:
[root@localhost sendip-2.5]# make
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: In function ‘do_opt’:
ipv4.c:212: error: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
/usr/include/stdio.h:343: note: expected ‘char * __restrict__’ but argument is of type ‘u_int8_t *’
ipv4.c:213: error: pointer targets in passing argument 1 of ‘compact_string’ differ in signedness
sendip_module.h:41: note: expected ‘char *’ but argument is of type ‘u_int8_t *’
ipv4.c:240: error: pointer targets in passing argument 5 of ‘addoption’ differ in signedness
ipv4.c:81: note: expected ‘u_int8_t *’ but argument is of type ‘char *’
ipv4.c:355: error: pointer targets in passing argument 5 of ‘addoption’ differ in signedness
ipv4.c:81: note: expected ‘u_int8_t *’ but argument is of type ‘char *’
ipv4.c:380: error: pointer targets in passing argument 5 of ‘addoption’ differ in signedness
ipv4.c:81: note: expected ‘u_int8_t *’ but argument is of type ‘char *’
ipv4.c:402: error: pointer targets in passing argument 5 of ‘addoption’ differ in signedness
ipv4.c:81: note: expected ‘u_int8_t *’ but argument is of type ‘char *’
make: *** [ipv4.so] Error 1
[root@localhost sendip-2.5]#
网上搜索之后说是bug,已经修复,但是又没有新的源代码(有个网站上有分散的:http://sendip.sourcearchive.com/ ... 8e03f47a3bbda2.html),但是我不会制作makefile,他原本的那个makefile文件看着都非常吃力。
小弟跪求大神花几分钟帮忙分析一下原因,帮助小弟解决这个问题,最终成功安装,copy。日后将详细的过程编辑成文档并上传,供后来的学弟学妹参考学习。
thx all!
|
|