- 论坛徽章:
- 0
|
安装 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 ? |
|