Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xtables-addons compilation fails [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
selig
Guru
Guru


Joined: 31 Jul 2005
Posts: 425
Location: Prague, Czech Republic

PostPosted: Tue Dec 01, 2009 12:16 pm    Post subject: xtables-addons compilation fails [SOLVED] Reply with quote

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
View user's profile Send private message
selig
Guru
Guru


Joined: 31 Jul 2005
Posts: 425
Location: Prague, Czech Republic

PostPosted: Thu Jan 21, 2010 8:48 pm    Post subject: Reply with quote

The newest version compiles fine, finally!
Back to top
View user's profile Send private message
shivamgarg
n00b
n00b


Joined: 04 Aug 2014
Posts: 1

PostPosted: Mon Aug 04, 2014 12:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Mon Aug 04, 2014 1:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
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