User-Agent: Mozilla/5.0 (X11; U; Linux i686; cs; rv:1.8.1.1) Gecko/20061221 BonEcho/2.0.0.1 Build Identifier: The linux/config.h has been removed from Linux Kernel >=2.6.19 by kernel developers, some packages unfortunately rely on it including ebtables. The emerge attempt therefore looks like this >>> Compiling source in /var/tmp/portage/net-firewall/ebtables-2.0.6-r1/work/ebtables-v2.0.6 ... i686-pc-linux-gnu-gcc -Wall -Wunused -DPROGVERSION=\"2.0.6\" -DPROGNAME=\"ebtables\" -DPROGDATE=\"November\ 2003\" -D_PATH_ETHERTYPES=\"/etc/ethertypes\" -c -o getethertype.o getethertype.c -Iinclude/ i686-pc-linux-gnu-gcc -Wall -Wunused -DPROGVERSION=\"2.0.6\" -DPROGNAME=\"ebtables\" -DPROGDATE=\"November\ 2003\" -D_PATH_ETHERTYPES=\"/etc/ethertypes\" -c -o ebtables.o ebtables.c -Iinclude/ 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 ebtables.c: In function 'list_em': ebtables.c:583: warning: pointer targets in passing argument 1 of 'print_mac_and_mask' differ in signedness ebtables.c:583: warning: pointer targets in passing argument 2 of 'print_mac_and_mask' differ in signedness ebtables.c:590: warning: pointer targets in passing argument 1 of 'print_mac_and_mask' differ in signedness ebtables.c:590: warning: pointer targets in passing argument 2 of 'print_mac_and_mask' differ in signedness ebtables.c: In function 'main': ebtables.c:2192: warning: pointer targets in passing argument 2 of 'get_mac_and_mask' differ in signedness ebtables.c:2192: warning: pointer targets in passing argument 3 of 'get_mac_and_mask' differ in signedness ebtables.c:2207: warning: pointer targets in passing argument 2 of 'get_mac_and_mask' differ in signedness ebtables.c:2207: warning: pointer targets in passing argument 3 of 'get_mac_and_mask' differ in signedness make: *** [ebtables.o] Error 1 !!! ERROR: net-firewall/ebtables-2.0.6-r1 failed. Call stack: ebuild.sh, line 1580: Called dyn_compile ebuild.sh, line 945: Called src_compile ebtables-2.0.6-r1.ebuild, line 22: Called die !!! emake failed !!! If you need support, post the topmost build error, and the call stack if relevant. Reproducible: Always Steps to Reproduce:
Created attachment 106979 [details, diff] include linux/config.h only when __KERNEL__ defined ebtables doesn't need linux/config.h anyway, move the #include inside the existing conditional for kernel builds
Created attachment 106980 [details] fixed ebuild, place in portage overlay Proposed updated ebuild
Please verify this patch and forward it upstream. Thanks.
(In reply to comment #3) > Please verify this patch and forward it upstream. Thanks. > On second thought, maybe there's no need. I checked that file in the 2.6.19 kernel and it no longer includes linux/config.h.... so I guess upstream will have this fixed when they update to the latest kernel headers.
Thanks for the patch. Compilation is now OK. It seems upstream is going to release new verison of ebtables-2.0.8 independent of linux/config.h soon.
Please file a new bug when ebtables-2.0.8 is released
Could the patch be included in portage, since ebtables 2.0.6-r1 is marked stable but isn't useable on uclibc?
*** Bug 186240 has been marked as a duplicate of this bug. ***
Reopen, this breaks stable tree.
The latest stable userspace release is version 2.0.8-1, released on May 29, 2007 but it doesn't build :-( with gcc on AMD64 (gcc (GCC) 4.2.0 (Gentoo 4.2.0 p1.4)) .... ld -shared -soname libebtc.so -o libebtc.so -lc getethertype.o communication.o libebtc.o useful_functions.o ebtables.o ld: ebtables.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC ebtables.o: could not read symbols: Bad value make: *** [libebtc] Error 1
Created attachment 126094 [details] makefile patch this fixes at least the gcc4.2 linker issue
Created attachment 126245 [details] more or less experimental 2.0.8.1 ebuild
Created attachment 126246 [details, diff] 2.0.8-1 makefile patch
ebtables-2.8.0.1, now in portage and seems to compile with sys-kernel/linux-headers-2.6.21. I suppose it works with 2.6.19 too. Reopen, please, if I missed anything here. Thank you all for your work!
*** Bug 188774 has been marked as a duplicate of this bug. ***
I'm sorry for duplicate, I decided to fill the bug two days after I found it (delayed because packages.gentoo.org was unreachable), at that time, inet-firewall/ebtables-2.0.6-r1 was most recent version and for some reason (maybe bad query), I didn't find any related bug for this package. Thanks for the resolution ! Fix works for me
works for me too