First off, I do not believe this bug is a dupe of bug #14195, as his error msg is different, and is occuring in -r1. My kernel compiles fine in -r1, but fails in -r2. When I go to compile this new revision during the make bzImage stage, the following occurs: make[3]: Circular /usr/src/linux-2.4.20-gentoo-r2/include/linux/netfilter_ipv4/i p_conntrack_helper.h <- /usr/src/linux-2.4.20-gentoo-r2/include/linux/netfilter_ ipv4/ip_conntrack.h dependency dropped. gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-gentoo-r2/include -Wall -Wstrict-protot ypes -Wno-trigraphs -O3 -fno-strict-aliasing -fno-common -fomit-frame-pointer -p ipe -mpreferred-stack-boundary=2 -march=pentium2 -O3 -mmmx -nostdinc -iwithpre fix include -DKBUILD_BASENAME=ip_conntrack_standalone -DEXPORT_SYMTAB -c ip_con ntrack_standalone.c gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-gentoo-r2/include -Wall -Wstrict-protot ypes -Wno-trigraphs -O3 -fno-strict-aliasing -fno-common -fomit-frame-pointer -p ipe -mpreferred-stack-boundary=2 -march=pentium2 -O3 -mmmx -nostdinc -iwithpre fix include -DKBUILD_BASENAME=ip_conntrack_core -c -o ip_conntrack_core.o ip_co nntrack_core.c gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-gentoo-r2/include -Wall -Wstrict-protot ypes -Wno-trigraphs -O3 -fno-strict-aliasing -fno-common -fomit-frame-pointer -p ipe -mpreferred-stack-boundary=2 -march=pentium2 -O3 -mmmx -nostdinc -iwithpre fix include -DKBUILD_BASENAME=ip_conntrack_proto_generic -c -o ip_conntrack_pro to_generic.o ip_conntrack_proto_generic.c gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-gentoo-r2/include -Wall -Wstrict-protot ypes -Wno-trigraphs -O3 -fno-strict-aliasing -fno-common -fomit-frame-pointer -p ipe -mpreferred-stack-boundary=2 -march=pentium2 -O3 -mmmx -nostdinc -iwithpre fix include -DKBUILD_BASENAME=ip_conntrack_proto_tcp -c -o ip_conntrack_proto_t cp.o ip_conntrack_proto_tcp.c gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-gentoo-r2/include -Wall -Wstrict-protot ypes -Wno-trigraphs -O3 -fno-strict-aliasing -fno-common -fomit-frame-pointer -p ipe -mpreferred-stack-boundary=2 -march=pentium2 -O3 -mmmx -nostdinc -iwithpre fix include -DKBUILD_BASENAME=ip_conntrack_proto_udp -c -o ip_conntrack_proto_u dp.o ip_conntrack_proto_udp.c gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-gentoo-r2/include -Wall -Wstrict-protot ypes -Wno-trigraphs -O3 -fno-strict-aliasing -fno-common -fomit-frame-pointer -p ipe -mpreferred-stack-boundary=2 -march=pentium2 -O3 -mmmx -nostdinc -iwithpre fix include -DKBUILD_BASENAME=ip_conntrack_proto_icmp -c -o ip_conntrack_proto_ icmp.o ip_conntrack_proto_icmp.c ld -m elf_i386 -r -o ip_conntrack.o ip_conntrack_standalone.o ip_conntrack_core. o ip_conntrack_proto_generic.o ip_conntrack_proto_tcp.o ip_conntrack_proto_udp.o ip_conntrack_proto_icmp.o gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-gentoo-r2/include -Wall -Wstrict-protot ypes -Wno-trigraphs -O3 -fno-strict-aliasing -fno-common -fomit-frame-pointer -p ipe -mpreferred-stack-boundary=2 -march=pentium2 -O3 -mmmx -nostdinc -iwithpre fix include -DKBUILD_BASENAME=ip_conntrack_ftp -c -o ip_conntrack_ftp.o ip_conn track_ftp.c ip_conntrack_ftp.c:439: parse error before "this_object_must_be_defined_as_expor t_objs_in_the_Makefile" ip_conntrack_ftp.c:439: warning: type defaults to `int' in declaration of `this_ object_must_be_defined_as_export_objs_in_the_Makefile' ip_conntrack_ftp.c:439: warning: data definition has no type or storage class make[3]: *** [ip_conntrack_ftp.o] Error 1 make[3]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r2/net/ipv4/netfilter' make[2]: *** [first_rule] Error 2 make[2]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r2/net/ipv4/netfilter' make[1]: *** [_subdir_ipv4/netfilter] Error 2 make[1]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r2/net' make: *** [_dir_net] Error 2 I am of course am using ip_conntrack_ftp (NetFilter FTP tracking) compiled into the kernel. At first I thought this was because I changed the default FTP port in include/linux/netfilter_ipv4/ip_conntrack_ftp.h, but it fails even with the default FTP port of 21. I deleted the linux-2.4.20-gentoo-r2 directory and re emerged it just to be sure, and the error still occurs. I have attached my .config file (as config with no . because windows is a pain in the .ass.) The system is a P3 600, gcc version 3.2.2, Gentoo 1.4 RC3, with the following make.conf settings: CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -O3 -pipe" Thanks. =)
Created attachment 9750 [details] .config file for my kernel
ok, this should be fixed with a small patch. let me test things a bit to ensure that this patch won't b0rk something else, then i'll upload it. thanks, Jay
Created attachment 9759 [details, diff] fix for bug 18073 apply with 'patch -p1 -s -N -E -d /usr/src/linux-2.4.20-gentoo-r2/ < ipt-fix-18073.diff' or similar. let me know how it goes. Thanks, Jay
*** Bug 17764 has been marked as a duplicate of this bug. ***
this fix above is contained in gentoo-sources-2.4.20-r3. Closing. Thanks, Jay