Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 188774

Summary: net-firewall/ebtables-2.0.6-r1 won't compile with new kernels
Product: Gentoo Linux Reporter: Jakub Novak <jc.bl.dws>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jakub Novak 2007-08-14 00:23:25 UTC
The same happens with emerging arptables, as in bug #162886
I read somewhere that many older packages are broken this way since mainstream kernel > 2.6.19-rc2, I'm just filling this because I had a hard time searching for resolution so to let people know..

According to http://osdir.com/ml/oprofile/2006-12/msg00050.html :
  The kernel header file linux/config.h has been deprecated for a while and has  now been removed (as of 2.6.19 -- I think around rc2) 
by -Maynard


Reproducible: Always

Steps to Reproduce:
1. emerge =net-firewall/ebtables-2.0.6-r1

Actual Results:  
During compile:
.....
In file included from include/linux/netfilter_bridge/ebtables.h:17,
                 from include/ebtables_u.h:27,
                 from ebtables.c:30:
include/linux/netfilter_bridge.h:7:26: error: linux/config.h: No such file or directory
......


Portage 2.1.3.3 (default-linux/x86/2006.1/server, gcc-4.1.2, glibc-2.6-r0, 2.6.22-gentoo-r2 i686)
=================================================================
System uname: 2.6.22-gentoo-r2 i686 Pentium II (Deschutes)
Gentoo Base System release 1.12.10
Timestamp of tree: Wed, 08 Aug 2007 14:20:01 +0000
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-Os -march=pentium2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.supp.name/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ "
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="apache2 bash-completion berkdb bitmap-fonts cli cracklib crypt cscope cups dri fortran gdbm iconv isdnlog libg++ mailwrapper md5sum midi mudflap mysql ncurses nls nptl nptlonly openmp pam pcre perl php ppds pppd python readline reflection session snmp spl ssl tcpd truetype truetype-fonts type1-fonts unicode urandom vhosts vim-pager x86 xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jakub Novak 2007-08-14 00:29:34 UTC
I dont know how to make patches yet, sorry :/
So I post this solution:

1) start emerging ebtables as normal
2) Immediately after emerge says 'source unpacked.', press CTRL + Z to freeze terminal
3) delete (on line 7, in my version): #include <linux/config.h>
   in file: /var/tmp/portage/net-firewall/ebtables-2.0.6-r1/work/ebtables-v2.0.6/include/linux/netfilter_bridge.h
 (path may differ)
4) press fg to resume emerge, should compile OK

If somebody knows how to write this in form of a patch and will be quicker than me, much appreciated. I'm still searching and learning.

Also, if you think that I should post this elsewhere (such as some ebtables tracker), please say so.

Thanks.
Comment 2 Peter Volkov (RETIRED) gentoo-dev 2007-08-14 03:36:32 UTC
Thank you for report, Jakub. But have you tried ebtables-2.0.8.1? This bug should be fixed there. If not reopen original bug, not this, one.

*** This bug has been marked as a duplicate of bug 159371 ***