Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 153524 - kernel gentoo-sources-2.6.18-r1 fails to compile xt_physdev.c
Summary: kernel gentoo-sources-2.6.18-r1 fails to compile xt_physdev.c
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Daniel Drake (RETIRED)
URL: http://www2.kernel.org/git/?p=linux/k...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-31 01:18 UTC by Rumi Szabolcs
Modified: 2006-11-20 08:55 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
kernel .config file (config,43.08 KB, text/plain)
2006-10-31 08:40 UTC, Rumi Szabolcs
Details
kernel .config for 2.6.18-gentoo-r2 (config-2.6.18-gentoo-r2-mks1,39.01 KB, text/plain)
2006-11-11 06:33 UTC, bugzilla
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rumi Szabolcs 2006-10-31 01:18:59 UTC
Overview:

Kernel 2.6.18-gentoo-r1 fails to compile module xt_physdev.c

Actual results:

[...]

  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
net/built-in.o: In function `checkentry':
xt_physdev.c:(.text+0x1fba5): undefined reference to `brnf_deferred_hooks'
xt_physdev.c:(.text+0x1fbcf): undefined reference to `brnf_deferred_hooks'
make: *** [.tmp_vmlinux1] Error 1

Additional info:

xt_physdev.c is apparently the implementation of
CONFIG_NETFILTER_XT_MATCH_PHYSDEV ("physdev" match support)
which was enabled in the kernel config.

xt_physdev.c includes <linux/netfilter_bridge.h> and in
netfilter_bridge.h the declaration
"extern int brnf_deferred_hooks;" is a conditional of
CONFIG_BRIDGE_NETFILTER (Bridged IP/ARP packets filtering)
but this was also enabled in the kernel config.

Disabling CONFIG_NETFILTER_XT_MATCH_PHYSDEV makes the
kernel compile.
Comment 1 Daniel Drake (RETIRED) gentoo-dev 2006-10-31 08:01:13 UTC
Please attach your .config
Comment 2 Rumi Szabolcs 2006-10-31 08:40:45 UTC
Created attachment 100896 [details]
kernel .config file
Comment 3 bugzilla 2006-11-11 06:31:56 UTC
I experience the same problem as Rumi reported, with the same workaround (disabeling "physdev" match support), but using gentoo-sources-2.6.18-r2 which has been declared stable yesterday.
Comment 4 bugzilla 2006-11-11 06:33:25 UTC
Created attachment 101679 [details]
kernel .config for 2.6.18-gentoo-r2
Comment 5 Michael Hoegler 2006-11-13 08:40:11 UTC
Confirm the same problem with gentoo-sources-2.6.18-r2.
Im trying to recompile with 
CONFIG_NETFILTER_XT_MATCH_PHYSDEV=m
Results will follow!
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2006-11-14 11:27:14 UTC
You need to enable CONFIG_BRIDGE_NETFILTER. This will be fixed in the next release.
Comment 7 Daniel Drake (RETIRED) gentoo-dev 2006-11-20 08:55:47 UTC
Fixed in gentoo-sources-2.6.18-r3 (genpatches-2.6.18-4)