compile error in ip_conntrack_ftp.c:440:
Since iirc 2.4.20 I get this error when compiling a kernel:
|------------------- | make[2]: Entering directory `/tmp/KERNEL/linux-2.4.20-pre5/net/ipv4/netfilter' | make[2]: Circular /tmp/KERNEL/linux-2.4.20-pre5/include/linux/netfilter_ipv4/ip_conntrack_helper.h <- /tmp/KERNEL/linux-2.4.20-pre5/include/linux/netfilter_ipv4/ip_conntrack.h dependency dropped. | 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/tmp/KERNEL/linux-2.4.20-pre5/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -nostdinc -iwithprefix include -DKBUILD_BASENAME=ip_conntrack_ftp -c -o ip_conntrack_ftp.o ip_conntrack_ftp.c | ip_conntrack_ftp.c:440: parse error before `this_object_must_be_defined_as_export_objs_in_the_Makefile' | ip_conntrack_ftp.c:440: warning: type defaults to `int' in declaration of `this_object_must_be_defined_as_export_objs_in_the_Makefile' | ip_conntrack_ftp.c:440: warning: data definition has no type or storage class | make[2]: *** [ip_conntrack_ftp.o] Error 1 | make[2]: Leaving directory `/tmp/KERNEL/linux-2.4.20-pre5/net/ipv4/netfilter' | make[1]: *** [_modsubdir_ipv4/netfilter] Error 2 | make[1]: Leaving directory `/tmp/KERNEL/linux-2.4.20-pre5/net' | make: *** [_mod_net] Error 2 |-------------------
IIRC the error is in ip_conntrack_itc, too.
How to reproduce:
make mrproper
copy config below to .config
make menuconfig --> Exit&Save
make dep
# optional: make bzImage - Logfile above was generated this way make modules
This looks exactly like
http://www.uwsg.iu.edu/hypermail/linux/kernel/0209.2/0923.html
but hasn't this been fixed since?
Please Cc me on replies.
thanks, cu andreas
----------stripped down example config---------CONFIG_X86=yCONFIG_UID16=yCONFIG_MODULES=yCONFIG_KMOD=yCONFIG_M686=yCONFIG_X86_WP_WORKS_OK=yCONFIG_X86_INVLPG=yCONFIG_X86_CMPXCHG=yCONFIG_X86_XADD=yCONFIG_X86_BSWAP=yCONFIG_X86_POPAD_OK=yCONFIG_RWSEM_XCHGADD_ALGORITHM=yCONFIG_X86_L1_CACHE_SHIFT=5CONFIG_X86_HAS_TSC=yCONFIG_X86_GOOD_APIC=yCONFIG_X86_PGE=yCONFIG_X86_USE_PPRO_CHECKSUM=yCONFIG_X86_PPRO_FENCE=yCONFIG_X86_F00F_WORKS_OK=yCONFIG_NOHIGHMEM=yCONFIG_X86_TSC=yCONFIG_NET=yCONFIG_SYSVIPC=yCONFIG_BINFMT_ELF=yCONFIG_PACKET=mCONFIG_PACKET_MMAP=yCONFIG_NETLINK_DEV=mCONFIG_NETFILTER=yCONFIG_UNIX=yCONFIG_INET=yCONFIG_INET_ECN=yCONFIG_IP_NF_CONNTRACK=mCONFIG_IP_NF_FTP=mCONFIG_IP_NF_IRC=mCONFIG_IP_NF_IPTABLES=mCONFIG_IP_NF_MATCH_LIMIT=mCONFIG_IP_NF_MATCH_MAC=mCONFIG_IP_NF_MATCH_MARK=mCONFIG_IP_NF_MATCH_MULTIPORT=mCONFIG_IP_NF_MATCH_TOS=mCONFIG_IP_NF_MATCH_LENGTH=mCONFIG_IP_NF_MATCH_TTL=mCONFIG_IP_NF_MATCH_TCPMSS=mCONFIG_IP_NF_MATCH_STATE=mCONFIG_IP_NF_FILTER=mCONFIG_IP_NF_TARGET_REJECT=mCONFIG_IP_NF_MANGLE=mCONFIG_IP_NF_TARGET_TOS=mCONFIG_IP_NF_TARGET_MARK=mCONFIG_IP_NF_TARGET_LOG=mCONFIG_IP_NF_TARGET_ULOG=mCONFIG_IP_NF_TARGET_TCPMSS=mCONFIG_IP_NF_COMPAT_IPCHAINS=mCONFIG_IP_NF_NAT_NEEDED=yCONFIG_INPUT_MOUSEDEV_SCREEN_X=1024CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768CONFIG_DRM=yCONFIG_DRM_NEW=yCONFIG_RAMFS=yCONFIG_MSDOS_PARTITION=yCONFIG_NLS=yCONFIG_NLS_DEFAULT="iso8859-1"CONFIG_ZLIB_INFLATE=y
----------------------------------------
Quoted 16 lines · Andreas Metzler
Since iirc 2.4.20 I get this error when compiling a kernel:
|------------------- | make[2]: Entering directory `/tmp/KERNEL/linux-2.4.20-pre5/net/ipv4/netfilter' | make[2]: Circular /tmp/KERNEL/linux-2.4.20-pre5/include/linux/netfilter_ipv4/ip_conntrack_helper.h <- /tmp/KERNEL/linux-2.4.20-pre5/include/linux/netfilter_ipv4/ip_conntrack.h dependency dropped. | 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/tmp/KERNEL/linux-2.4.20-pre5/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -nostdinc -iwithprefix include -DKBUILD_BASENAME=ip_conntrack_ftp -c -o ip_conntrack_ftp.o ip_conntrack_ftp.c | ip_conntrack_ftp.c:440: parse error before `this_object_must_be_defined_as_export_objs_in_the_Makefile' | ip_conntrack_ftp.c:440: warning: type defaults to `int' in declaration of `this_object_must_be_defined_as_export_objs_in_the_Makefile' | ip_conntrack_ftp.c:440: warning: data definition has no type or storage class | make[2]: *** [ip_conntrack_ftp.o] Error 1 | make[2]: Leaving directory `/tmp/KERNEL/linux-2.4.20-pre5/net/ipv4/netfilter' | make[1]: *** [_modsubdir_ipv4/netfilter] Error 2 | make[1]: Leaving directory `/tmp/KERNEL/linux-2.4.20-pre5/net' | make: *** [_mod_net] Error 2 |-------------------
Quoted 4 lines
CONFIG_IP_NF_CONNTRACK=mCONFIG_IP_NF_FTP=mCONFIG_IP_NF_IRC=mCONFIG_IP_NF_IPTABLES=m
I got the same error. With
CONFIG_IP_NF_MATCH_CONNTRACK=m
(Connection tracking match support), the error disappears.
Regards...
Michael
Quoted 8 lines · Michael Mauch
Quoted 7 lines · Andreas Metzler
Since iirc 2.4.20 I get this error when compiling a kernel:
|------------------- | make[2]: Entering directory `/tmp/KERNEL/linux-2.4.20-pre5/net/ipv4/netfilter' | make[2]: Circular /tmp/KERNEL/linux-2.4.20-pre5/include/linux/netfilter_ipv4/ip_conntrack_helper.h <- /tmp/KERNEL/linux-2.4.20-pre5/include/linux/netfilter_ipv4/ip_conntrack.h dependency dropped. | 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/tmp/KERNEL/linux-2.4.20-pre5/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -nostdinc -iwithprefix include -DKBUILD_BASENAME=ip_conntrack_ftp -c -o ip_conntrack_ftp.o ip_conntrack_ftp.c | ip_conntrack_ftp.c:440: parse error before `this_object_must_be_defined_as_export_objs_in_the_Makefile'
[...]
Quoted 10 lines
Quoted 4 lines
CONFIG_IP_NF_CONNTRACK=mCONFIG_IP_NF_FTP=mCONFIG_IP_NF_IRC=mCONFIG_IP_NF_IPTABLES=mI got the same error. With
CONFIG_IP_NF_MATCH_CONNTRACK=m(Connection tracking match support), the error disappears.
Hello,
This fixes neither the example I posted (add this line to initial minimal config, make menuconfig, make clean dep, make modules), nor the real world example
http://www.logic.univie.ac.at/~ametzler/2.4.20.breaks.config
cu andreas
Quoted 6 lines · Andreas Metzler
Hello,
This fixes neither the example I posted (add this line to initial minimal config, make menuconfig, make clean dep, make modules), nor the real world examplehttp://www.logic.univie.ac.at/~ametzler/2.4.20.breaks.config
Hi,
I'll take a look at this later today, I think there are more problems than this in the config-dependencies, I'll go over 2.4 and 2.5 and see what I find.
Signature · 1 line
/Martin
Quoted 9 lines · Andreas Metzler
Quoted 8 lines · Michael Mauch
Quoted 7 lines · Andreas Metzler
Since iirc 2.4.20 I get this error when compiling a kernel:
|------------------- | make[2]: Entering directory `/tmp/KERNEL/linux-2.4.20-pre5/net/ipv4/netfilter' | make[2]: Circular /tmp/KERNEL/linux-2.4.20-pre5/include/linux/netfilter_ipv4/ip_conntrack_helper.h <- /tmp/KERNEL/linux-2.4.20-pre5/include/linux/netfilter_ipv4/ip_conntrack.h dependency dropped. | 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/tmp/KERNEL/linux-2.4.20-pre5/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -nostdinc -iwithprefix include -DKBUILD_BASENAME=ip_conntrack_ftp -c -o ip_conntrack_ftp.o ip_conntrack_ftp.c | ip_conntrack_ftp.c:440: parse error before `this_object_must_be_defined_as_export_objs_in_the_Makefile'
[...]
Quoted 5 lines
This fixes neither the example I posted (add this line to initial minimal config, make menuconfig, make clean dep, make modules), nor the real world example
http://www.logic.univie.ac.at/~ametzler/2.4.20.breaks.config
[...]
Still reproducible with 2.4.21-pre6.
cu andreas
Quoted 11 lines · Andreas Metzler
Quoted 9 lines · Andreas Metzler
Quoted 8 lines · Michael Mauch
Quoted 7 lines · Andreas Metzler
Since iirc 2.4.20 I get this error when compiling a kernel:
|------------------- | make[2]: Entering directory `/tmp/KERNEL/linux-2.4.20-pre5/net/ipv4/netfilter' | make[2]: Circular /tmp/KERNEL/linux-2.4.20-pre5/include/linux/netfilter_ipv4/ip_conntrack_helper.h <- /tmp/KERNEL/linux-2.4.20-pre5/include/linux/netfilter_ipv4/ip_conntrack.h dependency dropped. | 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/tmp/KERNEL/linux-2.4.20-pre5/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -nostdinc -iwithprefix include -DKBUILD_BASENAME=ip_conntrack_ftp -c -o ip_conntrack_ftp.o ip_conntrack_ftp.c | ip_conntrack_ftp.c:440: parse error before `this_object_must_be_defined_as_export_objs_in_the_Makefile'[...]
Quoted 8 lines
Quoted 5 lines
This fixes neither the example I posted (add this line to initial minimal config, make menuconfig, make clean dep, make modules), nor the real world example
http://www.logic.univie.ac.at/~ametzler/2.4.20.breaks.config
[...]
Still reproducible with 2.4.21-pre6.
Still reproducible with 2.4.21-pre7.
cu andreas