Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18073 - linux-2.4.20-gentoo-r2 fails to compile with ip_conntrack_ftp
Summary: linux-2.4.20-gentoo-r2 fails to compile with ip_conntrack_ftp
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Jay Pfeifer (RETIRED)
URL:
Whiteboard:
Keywords:
: 17764 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-03-23 23:51 UTC by PJ
Modified: 2003-04-15 17:45 UTC (History)
1 user (show)

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


Attachments
.config file for my kernel (config,20.09 KB, text/plain)
2003-03-23 23:52 UTC, PJ
Details
fix for bug 18073 (ipt-fix-18073.diff,2.02 KB, patch)
2003-03-24 10:57 UTC, Jay Pfeifer (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description PJ 2003-03-23 23:51:24 UTC
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. =)
Comment 1 PJ 2003-03-23 23:52:12 UTC
Created attachment 9750 [details]
.config file for my kernel
Comment 2 Jay Pfeifer (RETIRED) gentoo-dev 2003-03-24 01:11:43 UTC
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 
Comment 3 Jay Pfeifer (RETIRED) gentoo-dev 2003-03-24 10:57:17 UTC
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
Comment 4 Jay Pfeifer (RETIRED) gentoo-dev 2003-03-24 18:34:11 UTC
*** Bug 17764 has been marked as a duplicate of this bug. ***
Comment 5 Jay Pfeifer (RETIRED) gentoo-dev 2003-04-15 17:45:43 UTC
this fix above is contained in gentoo-sources-2.4.20-r3. 
 
Closing. 
 
Thanks, 
 
Jay