Skip to contentSkip to conversation

Building geoip against voyage kernel source fails

DISCUSSION David Balnaves 4 participants 8 messages May 25, 2008 – May 27, 2008

lore
Share & tools
lore
#0 lore raw

Hi,

I'm trying to build the voyage kernel source with after applying the group external patchlet. i see this error. Can anybody suggest what I'm doing wrong? Also, where is the latest geoip patchlet? Thanks

CC [M] net/ipv4/netfilter/ipt_geoip.o
net/ipv4/netfilter/ipt_geoip.c: In function 'match':
net/ipv4/netfilter/ipt_geoip.c:113: error: 'const struct sk_buff' has no member named 'nh' net/ipv4/netfilter/ipt_geoip.c: At top level:
net/ipv4/netfilter/ipt_geoip.c:280: warning: initialization from incompatible pointer type net/ipv4/netfilter/ipt_geoip.c:284: warning: initialization from incompatible pointer type net/ipv4/netfilter/ipt_geoip.c: In function 'init':
net/ipv4/netfilter/ipt_geoip.c:291: error: implicit declaration of function 'ipt_register_match' net/ipv4/netfilter/ipt_geoip.c: In function 'fini':
net/ipv4/netfilter/ipt_geoip.c:296: error: implicit declaration of function 'ipt_unregister_match' make[4]: *** [net/ipv4/netfilter/ipt_geoip.o] Error 1
make[3]: *** [net/ipv4/netfilter] Error 2
make[2]: *** [net/ipv4] Error 2
make[1]: *** [net] Error 2
make[1]: Leaving directory `/usr/src/linux-source-2.6.23-voyage'
make: *** [debian/stamp-build-kernel] Error 2

voyage:/usr/src/linux-source-2.6.23-voyage# cd ..
voyage:/usr/src# rm -rf linux-source-2.6.23-voyage
Signature · 2 lines
David Balnaves
[email protected]
#1 lore raw

Hi,

Incase any body is interested, I found a patch that seems to address this issue:
http://bjerkeset.com/patches/geoip-match-2.6.22.patch.gz

Unfortunately, not sure about who is the author.

----- Original Message ----- From: "David Balnaves" <[email protected]>
To: "Mail List - Netfilter" <[email protected]>
Sent: Sunday, May 25, 2008 3:11 PM
Subject: Building geoip against voyage kernel source fails

Quoted 32 lines

Hi,

I'm trying to build the voyage kernel source with after applying the group external patchlet. i see this error. Can anybody suggest what I'm doing wrong? Also, where is the latest geoip patchlet? Thanks

CC [M] net/ipv4/netfilter/ipt_geoip.o
net/ipv4/netfilter/ipt_geoip.c: In function 'match':
net/ipv4/netfilter/ipt_geoip.c:113: error: 'const struct sk_buff' has no member named 'nh' net/ipv4/netfilter/ipt_geoip.c: At top level:
net/ipv4/netfilter/ipt_geoip.c:280: warning: initialization from incompatible pointer type net/ipv4/netfilter/ipt_geoip.c:284: warning: initialization from incompatible pointer type net/ipv4/netfilter/ipt_geoip.c: In function 'init':
net/ipv4/netfilter/ipt_geoip.c:291: error: implicit declaration of function 'ipt_register_match' net/ipv4/netfilter/ipt_geoip.c: In function 'fini':
net/ipv4/netfilter/ipt_geoip.c:296: error: implicit declaration of function 'ipt_unregister_match' make[4]: *** [net/ipv4/netfilter/ipt_geoip.o] Error 1
make[3]: *** [net/ipv4/netfilter] Error 2
make[2]: *** [net/ipv4] Error 2
make[1]: *** [net] Error 2
make[1]: Leaving directory `/usr/src/linux-source-2.6.23-voyage'
make: *** [debian/stamp-build-kernel] Error 2

voyage:/usr/src/linux-source-2.6.23-voyage# cd ..
voyage:/usr/src# rm -rf linux-source-2.6.23-voyage
Signature · 7 lines
David Balnaves
[email protected]

--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#5 lore raw
In reply to David Balnaves

David,

I received this from "NICOLAS BOULIANE <[email protected]>" awhile back...

***************************************************************************
***************************************************************************

Hello Nick,

I updated geoip,

now the new pom-ng url is:
http://people.netfilter.org/acidfu/patchlets/

change it manually in your pom-ng/sources.list .... Peejix will send a patch soon so the url will be directly change.

Keep me in touch,
thank you

Nicolas Bouliane

***************************************************************************
***************************************************************************

Quoted 38 lines · David Balnaves

Hi,

I'm trying to build the voyage kernel source with after applying the group external patchlet. i see this error. Can anybody suggest what I'm doing wrong? Also, where is the latest geoip patchlet? Thanks

CC [M] net/ipv4/netfilter/ipt_geoip.o
net/ipv4/netfilter/ipt_geoip.c: In function 'match':
net/ipv4/netfilter/ipt_geoip.c:113: error: 'const struct sk_buff' has no member named 'nh'
net/ipv4/netfilter/ipt_geoip.c: At top level:
net/ipv4/netfilter/ipt_geoip.c:280: warning: initialization from incompatible pointer type
net/ipv4/netfilter/ipt_geoip.c:284: warning: initialization from incompatible pointer type
net/ipv4/netfilter/ipt_geoip.c: In function 'init':
net/ipv4/netfilter/ipt_geoip.c:291: error: implicit declaration of function 'ipt_register_match'
net/ipv4/netfilter/ipt_geoip.c: In function 'fini':
net/ipv4/netfilter/ipt_geoip.c:296: error: implicit declaration of function 'ipt_unregister_match'
make[4]: *** [net/ipv4/netfilter/ipt_geoip.o] Error 1
make[3]: *** [net/ipv4/netfilter] Error 2
make[2]: *** [net/ipv4] Error 2
make[1]: *** [net] Error 2
make[1]: Leaving directory `/usr/src/linux-source-2.6.23-voyage'
make: *** [debian/stamp-build-kernel] Error 2

voyage:/usr/src/linux-source-2.6.23-voyage# cd ..
voyage:/usr/src# rm -rf linux-source-2.6.23-voyage
Signature · 7 lines
David Balnaves
[email protected]

--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Signature · 3 lines
--------
WebSite: http://NickAndBarb.net
--------
#2 lore raw
In reply to David Balnaves
Quoted 20 lines · Nick Pasich
Quoted 20 lines

I'm trying to build the voyage kernel source with after applying the group external patchlet. i see this error. Can anybody suggest what I'm doing wrong? Also, where is the latest geoip patchlet? Thanks

CC [M] net/ipv4/netfilter/ipt_geoip.o
net/ipv4/netfilter/ipt_geoip.c: In function 'match':
net/ipv4/netfilter/ipt_geoip.c:113: error: 'const struct sk_buff' has no member named 'nh'
net/ipv4/netfilter/ipt_geoip.c: At top level:
net/ipv4/netfilter/ipt_geoip.c:280: warning: initialization from incompatible pointer type
net/ipv4/netfilter/ipt_geoip.c:284: warning: initialization from incompatible pointer type
net/ipv4/netfilter/ipt_geoip.c: In function 'init':
net/ipv4/netfilter/ipt_geoip.c:291: error: implicit declaration of function 'ipt_register_match'
net/ipv4/netfilter/ipt_geoip.c: In function 'fini':
net/ipv4/netfilter/ipt_geoip.c:296: error: implicit declaration of function 'ipt_unregister_match'

Quoted 8 lines
Quoted 8 lines

make[4]: *** [net/ipv4/netfilter/ipt_geoip.o] Error 1 make[3]: *** [net/ipv4/netfilter] Error 2
make[2]: *** [net/ipv4] Error 2
make[1]: *** [net] Error 2
make[1]: Leaving directory `/usr/src/linux-source-2.6.23-voyage'
make: *** [debian/stamp-build-kernel] Error 2

voyage:/usr/src/linux-source-2.6.23-voyage# cd ..
voyage:/usr/src# rm -rf linux-source-2.6.23-voyage

Please see the Xtables-addons package, which has Nicolas's latest geoip code (which was designed for 2.6.22) plus additional fixups, and extra code to make it work with 2.6.23 and up.

#6 lore raw
In reply to Nick Pasich
Quoted 8 lines · Nick Pasich

I received this from "NICOLAS BOULIANE <[email protected]>" awhile back...

***************************************************************************
***************************************************************************

Hello Nick,

Quoted 7 lines

I updated geoip,

now the new pom-ng url is:
http://people.netfilter.org/acidfu/patchlets/

change it manually in your pom-ng/sources.list .... Peejix will send a patch soon so the url will be directly change.

I just updated the URL in the sources.list file. Please, make sure you've switched to GIT [1]

[1] http://www.netfilter.org/news.html#2008-05-16

Signature · 1 line
"Los honestos son inadaptados sociales" -- Les Luthiers
#7 lore raw
Quoted 9 lines · Pablo Neira Ayuso
Quoted 5 lines

now the new pom-ng url is:
http://people.netfilter.org/acidfu/patchlets/

change it manually in your pom-ng/sources.list .... Peejix will send a patch soon so the url will be directly change.

I just updated the URL in the sources.list file. Please, make sure you've switched to GIT [1]

I would rather have it delisted from sources.list to not create any confusion with the newer one.

#3 lore raw
In reply to Jan Engelhardt

Hi,

Does the Xtables-addons work with iptables-1.3.6? From what I can see this is part of iptables-1.4. If I want to use earlier than 1.4 I should probably stick to peejix's patchlet right?

----- Original Message ----- From: "Jan Engelhardt" <[email protected]>
To: "Nick Pasich" <[email protected]>; "David Balnaves" <[email protected]>
Cc: "Mail List - Netfilter" <[email protected]>
Sent: Monday, May 26, 2008 5:14 AM
Subject: Re: Building geoip against voyage kernel source fails

Quoted 34 lines · Nick Pasich
Quoted 20 lines
Quoted 20 lines

I'm trying to build the voyage kernel source with after applying the group external patchlet. i see this error. Can anybody suggest what I'm doing wrong? Also, where is the latest geoip patchlet? Thanks

CC [M] net/ipv4/netfilter/ipt_geoip.o
net/ipv4/netfilter/ipt_geoip.c: In function 'match':
net/ipv4/netfilter/ipt_geoip.c:113: error: 'const struct sk_buff' has no member named 'nh'
net/ipv4/netfilter/ipt_geoip.c: At top level:
net/ipv4/netfilter/ipt_geoip.c:280: warning: initialization from incompatible pointer type
net/ipv4/netfilter/ipt_geoip.c:284: warning: initialization from incompatible pointer type
net/ipv4/netfilter/ipt_geoip.c: In function 'init':
net/ipv4/netfilter/ipt_geoip.c:291: error: implicit declaration of function 'ipt_register_match'
net/ipv4/netfilter/ipt_geoip.c: In function 'fini':
net/ipv4/netfilter/ipt_geoip.c:296: error: implicit declaration of function 'ipt_unregister_match'

Quoted 8 lines
Quoted 8 lines

make[4]: *** [net/ipv4/netfilter/ipt_geoip.o] Error 1 make[3]: *** [net/ipv4/netfilter] Error 2
make[2]: *** [net/ipv4] Error 2
make[1]: *** [net] Error 2
make[1]: Leaving directory `/usr/src/linux-source-2.6.23-voyage'
make: *** [debian/stamp-build-kernel] Error 2

voyage:/usr/src/linux-source-2.6.23-voyage# cd ..
voyage:/usr/src# rm -rf linux-source-2.6.23-voyage

Please see the Xtables-addons package, which has Nicolas's latest geoip code (which was designed for 2.6.22) plus additional fixups, and extra code to make it work with 2.6.23 and up.

#4 lore raw
Quoted 5 lines · David Balnaves

Hi,

Does the Xtables-addons work with iptables-1.3.6? From what I can see this is part of iptables-1.4. If I want to use earlier than 1.4 I should probably stick to peejix's patchlet right?

The older geoip before it was imported into xt-a had exponentially worse scalability, was not compatible with biarch setups, endianess was not handled at all, leading it to "not work" in a lot of situations.
You could just upgrade iptables which received a lot of care to compile with older kernels. You can grab the convenient package at
http://dev.medozas.de/files/xtables/xtables-combined-1.5.4.1.tar.bz2
which has everything that one would need.
(Well, except the geoip database because it changes often and is big; it is at http://jengelh.medozas.de/files/geoip/ ; see xtables-addons.8 manpage)