mzweilin / napt66

Automatically exported from code.google.com/p/napt66
38 stars 12 forks source link

redhat as4上编译错误,求解 #44

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
 make
make -C /lib/modules/2.6.9-5.ELsmp/build M=/root/napt66-0.2 modules
make[1]: Entering directory `/usr/src/kernels/2.6.9-5.EL-smp-i686'
  CC [M]  /root/napt66-0.2/napt66_main.o
In file included from /root/napt66-0.2/napt66_main.c:13:
/root/napt66-0.2/napt66_main.h:19:1: warning: "NIP6" redefined
In file included from include/asm/system.h:5,
                 from include/asm/processor.h:18,
                 from include/asm/thread_info.h:16,
                 from include/linux/thread_info.h:21,
                 from include/linux/spinlock.h:12,
                 from include/linux/capability.h:45,
                 from include/linux/sched.h:7,
                 from include/linux/module.h:10,
                 from /root/napt66-0.2/napt66_main.c:2:
include/linux/kernel.h:208:1: warning: this is the location of the previous 
definition
/root/napt66-0.2/napt66_main.c:39: error: syntax error before "inet6_addr_flag"
/root/napt66-0.2/napt66_main.c:39: warning: type defaults to `int' in 
declaration of `inet6_addr_flag'
/root/napt66-0.2/napt66_main.c:39: warning: data definition has no type or 
storage class
/root/napt66-0.2/napt66_main.c: In function `init_module':
/root/napt66-0.2/napt66_main.c:109: error: `false' undeclared (first use in 
this function)
/root/napt66-0.2/napt66_main.c:109: error: (Each undeclared identifier is 
reported only once
/root/napt66-0.2/napt66_main.c:109: error: for each function it appears in.)
/root/napt66-0.2/napt66_main.c:116: warning: assignment from incompatible 
pointer type
/root/napt66-0.2/napt66_main.c:117: error: `NF_INET_PRE_ROUTING' undeclared 
(first use in this function)
/root/napt66-0.2/napt66_main.c:124: warning: assignment from incompatible 
pointer type
/root/napt66-0.2/napt66_main.c:125: error: `NF_INET_POST_ROUTING' undeclared 
(first use in this function)
make[2]: *** [/root/napt66-0.2/napt66_main.o] Error 1
make[1]: *** [_module_/root/napt66-0.2] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.9-5.EL-smp-i686'
make: *** [all] Error 2

Original issue reported on code.google.com by 508.t...@gmail.com on 9 Dec 2011 at 7:16

GoogleCodeExporter commented 9 years ago
用新一点儿的内核就好了。

Original comment by wsgtr...@gmail.com on 14 Dec 2011 at 2:03