免费注册 查看新帖 |

Chinaunix

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

我ubuntu的环境是不是有问题?中毒了?还是操作错误? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-11-01 09:09 |只看该作者 |倒序浏览
安装 sendip2.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:341: 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] 错误 1

在另一台机器上同样的环境下,就没错!
请前辈们支个招吧,小弟不胜感激!!!
前几天,我系统的右上角桌面开机图标 不见了,当时有个小错误,我没有找到解决办法。都是在用命令关机。是不是跟这个有关系ne ?

论坛徽章:
0
2 [报告]
发表于 2011-11-01 09:34 |只看该作者
顶!

论坛徽章:
0
3 [报告]
发表于 2011-11-01 10:33 |只看该作者
结贴!!!是sendip本身的bug。

论坛徽章:
1
15-16赛季CBA联赛之深圳
日期:2018-12-11 08:52:00
4 [报告]
发表于 2011-11-18 21:50 |只看该作者
ding!

论坛徽章:
49
15-16赛季CBA联赛之福建
日期:2016-06-22 16:22:002015年亚洲杯之中国
日期:2015-01-23 16:25:12丑牛
日期:2015-01-20 09:39:23未羊
日期:2015-01-14 23:55:57巳蛇
日期:2015-01-06 18:21:36双鱼座
日期:2015-01-02 22:04:33午马
日期:2014-11-25 09:58:35辰龙
日期:2014-11-18 10:40:07寅虎
日期:2014-11-13 22:47:15申猴
日期:2014-10-22 15:29:50摩羯座
日期:2014-08-27 10:49:43辰龙
日期:2014-08-21 10:47:58
5 [报告]
发表于 2011-11-18 23:03 |只看该作者
ding!
hwayw 发表于 2011-11-18 21:50



    哥们,你发错版块了,我给你转到Linux新手园地吧

论坛徽章:
0
6 [报告]
发表于 2011-11-19 14:50 |只看该作者
学习一下还是很必要的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP