Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 104886 - Layer7 filter do not compile in kernel
Summary: Layer7 filter do not compile in kernel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Daniel Black (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-05 05:59 UTC by tomas charvat
Modified: 2005-09-05 15:11 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tomas charvat 2005-09-05 05:59:32 UTC
im running 2.4.31-hardened, i have extensions in my USE flags. 
I installed Layer7 fitler, source appeared in kernel tree, source.
But when i compile it as module, file do not compile nor complain about something.
When i compile source myself, it works and module is there.

Reproducible: Always
Steps to Reproduce:
1.emerge sys-kernel/hardened-sources-2.4.31
2. link it to /usr/src/linux
3. emerge net-misc/l7-filter
4. go to kernel, menuconfig, chose Layer7 filter (under netfilter) as module
5. make clean, make modules


Actual Results:  
look to the kernel tree netfilter folder, layer7.o isnt there

Expected Results:  
layer7.o should be there among other netfilter modules and it should install
when you type make install :)


i manage to compile it myself so its just some easy error... 

gcc -D__KERNEL__ -I/usr/src/linux-2.4.31-hardened/include -Wall
-Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common
-fno-builtin-sprintf -fomit-frame-pointer -O2  -pipe
-mpreferred-stack-boundary=2 -march=i686  -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.31-hardened/include/linux/modversions.h  -nostdinc
-iwithprefix include -DKBUILD_BASENAME=ipt_layer7  -c -o ipt_layer7.o ipt_layer7.c
Comment 1 Daniel Black (RETIRED) gentoo-dev 2005-09-05 15:11:13 UTC
found the 2.4 patch fails to add:  
obj-$(CONFIG_IP_NF_MATCH_LAYER7) += ipt_layer7.o  
to net/ipv4/netfilter/Makefile below a simliar line with  
CONFIG_IP_NF_MATCH_TCPMSS roughly  
  
I added more patching fuzz so l7-filter-1.4 should work now.  
 
thanks for the bug report thomas.