Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue May 28, 2015 · 1 comment
Open

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

GoogleCodeExporter opened this issue May 28, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

 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
Copy link
Author

用新一点儿的内核就好了。

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant