Skip to contentSkip to conversation

linux-2.6.19-ge6243863 build #160 failed

netfilter-core Patrick McHardy 1 participant 1 message Dec 6, 2006 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 8 lines · Toralf Förster

Hello,

the build with the attached .config failed, make ends with:
...
WARNING: "ip_route_output_key" [net/netfilter/nf_conntrack_h323.ko] undefined! make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2

Quoted 5 lines

Here's the config:

# CONFIG_INET is not set

CONFIG_NF_CONNTRACK=y

Interesting combination :) I assume you used make randconfig and don't really have a reason for enabling conntrack without INET ..

The easiest fix seems to be to let everything under net/netfilter depend on INET.

[NETFILTER]: Fix INET=n linking error

Building with INET=n results in

WARNING: "ip_route_output_key" [net/netfilter/nf_conntrack_h323.ko] undefined!

The entire code in net/netfilter is only used for IPv4/IPv6 currently, so let it depend on INET.

Noticed by Toralf F�rster <[email protected]>.

---
commit ce95407aa64e1add96db823d0020f68a5941eb9a
tree 44f0eb5164ee3b0029c6da1aa97fd9517bfb2291
parent fe1a4d3f910960f27afaa4e5d10050cf8d2460c6
author Patrick McHardy <[email protected]> Wed, 06 Dec 2006 09:32:05 +0100 committer Patrick McHardy <[email protected]> Wed, 06 Dec 2006 09:32:42 +0100

 net/netfilter/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/netfilter/Kconfig +1 -1
index 3a66878..1b853c3 100644
@@ -1,5 +1,5 @@
 menu "Core Netfilter Configuration"
-	depends on NET && NETFILTER
+	depends on NET && INET && NETFILTER
 
 config NETFILTER_NETLINK
        tristate "Netfilter netlink interface"