首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C语言 >

关于iproute2-3.5.0交叉编译的有关问题

2012-10-23 
关于iproute2-3.5.0交叉编译的问题我在移植iproute2,下载的源码包在linux下可以直接make通过,但是我修改了

关于iproute2-3.5.0交叉编译的问题
我在移植iproute2,下载的源码包在linux下可以直接make通过,但是我修改了Makefile的CC=mips-linux-gcc后编译不通过
环境是fedora12,内核是2.6.31.5
出现了下面的错误

C/C++ code
ipnetns.c:5:25: sys/inotify.h: No such file or directoryipnetns.c: In function `netns_exec':ipnetns.c:151: warning: implicit declaration of function `unshare'ipnetns.c:151: error: `CLONE_NEWNS' undeclared (first use in this function)ipnetns.c:151: error: (Each undeclared identifier is reported only onceipnetns.c:151: error: for each function it appears in.)ipnetns.c: In function `netns_monitor':ipnetns.c:253: warning: implicit declaration of function `inotify_init'ipnetns.c:259: warning: implicit declaration of function `inotify_add_watch'ipnetns.c:259: error: `IN_CREATE' undeclared (first use in this function)ipnetns.c:259: error: `IN_DELETE' undeclared (first use in this function)ipnetns.c:273: error: dereferencing pointer to incomplete typeipnetns.c:273: error: dereferencing pointer to incomplete typeipnetns.c:274: error: dereferencing pointer to incomplete typeipnetns.c:275: error: dereferencing pointer to incomplete typeipnetns.c:276: error: dereferencing pointer to incomplete typeipnetns.c:277: error: dereferencing pointer to incomplete typemake[1]: *** [ipnetns.o] 错误 1make[1]: Leaving directory `/home/jack/iproute2/iproute2-3.5.0/ip'make: *** [all] 错误 2


请兄弟们帮忙

[解决办法]
toolchain不完全?
所谓交叉编译,不仅仅只是换个编译器吧。

热点排行