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