View previous topic :: View next topic |
Author |
Message |
selig Guru
Joined: 31 Jul 2005 Posts: 425 Location: Prague, Czech Republic
|
Posted: Tue Dec 01, 2009 12:16 pm Post subject: xtables-addons compilation fails [SOLVED] |
|
|
Hello, I am having trouble compiling xtables-addons with kernel 2.6.28
Code: |
include/linux/mmzone.h:18:26: linux/bounds.h: no such file or directory
include/linux/mmzone.h:256:5: warning: "MAX_NR_ZONES" is not defined
In file included from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from include/linux/textsearch.h:7,
from include/linux/skbuff.h:26,
from include/linux/ip.h:108,
from /home/ttx/tmp/xtables-addons-1.20/extensions/compat_xtables.c:9:
include/linux/mmzone.h:277: error: `MAX_NR_ZONES' undeclared here (not in a function)
In file included from include/linux/scatterlist.h:6,
from /usr/src/linux-2.6.28-hardened-r9/arch/x86/include/asm/dma-mapping.h:9,
from include/linux/dma-mapping.h:57,
from include/linux/dmaengine.h:29,
from include/linux/skbuff.h:29,
from include/linux/ip.h:108,
from /home/ttx/tmp/xtables-addons-1.20/extensions/compat_xtables.c:9:
include/linux/mm.h:442:63: warning: "NR_PAGEFLAGS" is not defined
include/linux/mm.h:490:62: warning: "NR_PAGEFLAGS" is not defined
make[4]: *** [/home/ttx/tmp/xtables-addons-1.20/extensions/compat_xtables.o] Error 1
make[3]: *** [_module_/home/ttx/tmp/xtables-addons-1.20/extensions] Error 2
make[3]: Leaving directory `/usr/src/linux-2.6.28-hardened-r9'
make[2]: *** [modules] Error 2
make[2]: Leaving directory `/home/ttx/tmp/xtables-addons-1.20/extensions'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ttx/tmp/xtables-addons-1.20'
make: *** [all] Error 2
|
Can I do anything to fix this or does it mean the kernel is too new for xtables-addons-1.20?
Last edited by selig on Thu Jan 21, 2010 8:49 pm; edited 1 time in total |
|
Back to top |
|
|
selig Guru
Joined: 31 Jul 2005 Posts: 425 Location: Prague, Czech Republic
|
Posted: Thu Jan 21, 2010 8:48 pm Post subject: |
|
|
The newest version compiles fine, finally! |
|
Back to top |
|
|
shivamgarg n00b
Joined: 04 Aug 2014 Posts: 1
|
Posted: Mon Aug 04, 2014 12:07 pm Post subject: |
|
|
Getting the same error ...Can you share the working version
make all-recursive
make[1]: Entering directory `/home/shivamgarg/xtables-addons/xtables-addons-1.22'
Making all in extensions
make[2]: Entering directory `/home/shivamgarg/xtables-addons/xtables-addons-1.22/extensions'
if [ -n "/lib/modules/2.6.32-431.el6.x86_64/build" ]; then make -C /lib/modules/2.6.32-431.el6.x86_64/build M=/home/shivamgarg/xtables-addons/xtables-addons-1.22/extensions modules; fi;
make[3]: Entering directory `/usr/src/kernels/2.6.32-431.el6.x86_64'
WARNING: Symbol version dump /usr/src/kernels/2.6.32-431.el6.x86_64/Module.symvers
is missing; modules will have no dependencies and modversions.
CC [M] /home/shivamgarg/xtables-addons/xtables-addons-1.22/extensions/compat_xtables.o
In file included from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from include/linux/textsearch.h:7,
from include/linux/skbuff.h:27,
from include/linux/ip.h:108,
from /home/shivamgarg/xtables-addons/xtables-addons-1.22/extensions/compat_xtables.c:9:
include/linux/mmzone.h:18:26: error: linux/bounds.h: No such file or directory
include/linux/mmzone.h:275:5: warning: "MAX_NR_ZONES" is not defined
include/linux/mmzone.h:277:7: warning: "MAX_NR_ZONES" is not defined
include/linux/mmzone.h:279:7: warning: "MAX_NR_ZONES" is not defined
In file included from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from include/linux/textsearch.h:7,
from include/linux/skbuff.h:27,
from include/linux/ip.h:108,
from /home/shivamgarg/xtables-addons/xtables-addons-1.22/extensions/compat_xtables.c:9:
include/linux/mmzone.h:326: error: ‘MAX_NR_ZONES’ undeclared here (not in a function)
In file included from include/linux/scatterlist.h:6,
from include/linux/dma-mapping.h:8,
from include/linux/dmaengine.h:26,
from include/linux/skbuff.h:30,
from include/linux/ip.h:108,
from /home/shivamgarg/xtables-addons/xtables-addons-1.22/extensions/compat_xtables.c:9:
include/linux/mm.h:538:63: warning: "NR_PAGEFLAGS" is not defined
include/linux/mm.h:586:62: warning: "NR_PAGEFLAGS" is not defined
make[4]: *** [/home/shivamgarg/xtables-addons/xtables-addons-1.22/extensions/compat_xtables.o] Error 1
make[3]: *** [_module_/home/shivamgarg/xtables-addons/xtables-addons-1.22/extensions] Error 2
make[3]: Leaving directory `/usr/src/kernels/2.6.32-431.el6.x86_64'
make[2]: *** [modules] Error 2
make[2]: Leaving directory `/home/shivamgarg/xtables-addons/xtables-addons-1.22/extensions'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/shivamgarg/xtables-addons/xtables-addons-1.22'
make: *** [all] Error 2 |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Mon Aug 04, 2014 1:49 pm Post subject: |
|
|
shivamgarg wrote: | Getting the same error ...Can you share the working version |
shivamgarg ... the "working version" isn't going to be of any use to you as it's a gentoo package and not something suitable for Redhat/Fedora/CentOS (or whatever flavour of RH you happen to be running).
best ... khay |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|