免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2177 | 回复: 1
打印 上一主题 下一主题

求助关于 软件安装 sendip的 问题,日后必定投桃报李 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-02-17 15:23 |只看该作者 |倒序浏览
    一入网络深似海,从此文字似路人。

小弟近来想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!

论坛徽章:
0
2 [报告]
发表于 2012-02-20 16:18 |只看该作者
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP