Discussion:
compiling 2.4.29 breaks with error
(too old to reply)
Georg Schwarz
2005-02-13 11:42:36 UTC
Permalink
Trying to compile 2.4.29 on a PowerMac I end up like this:

ld -r -o netfilter.o ip_conntrack.o ip_conntrack_amanda.o
ip_conntrack_tftp.o ip_conntrack_ftp.o ip_conntrack_irc.o
ip_nat_amanda.o ip_nat_tftp.o ip_nat_ftp.o ip_nat_irc.o ip_tables.o
iptable_filter.o iptable_nat.o ipt_helper.o ipt_limit.o ipt_mark.o
ipt_mac.o ipt_pkttype.o ipt_multiport.o ipt_owner.o ipt_tos.o ipt_ecn.o
ipt_dscp.o ipt_ah.o ipt_esp.o ipt_length.o ipt_ttl.o ipt_state.o
ipt_conntrack.o ipt_unclean.o ipt_tcpmss.o ipt_REJECT.o ipt_MIRROR.o
ipt_MASQUERADE.o ipt_REDIRECT.o ip_nat_snmp_basic.o ipt_ULOG.o
ipt_TCPMSS.o arp_tables.o arptable_filter.o ipchains.o
ipchains.o: In function `ip_conntrack_init':
ipchains.o(.text.init+0xb0): multiple definition of `ip_conntrack_init'
ip_conntrack.o(.text.init+0x24): first defined here
ipchains.o: In function `ip_nat_cleanup':
ipchains.o(.text+0x60a8): multiple definition of `ip_nat_cleanup'
iptable_nat.o(.text+0x2008): first defined here
ipchains.o: In function `place_in_hashes':
ipchains.o(.text+0x5884): multiple definition of `place_in_hashes'
iptable_nat.o(.text+0x17e4): first defined here
ipchains.o: In function `ip_nat_seq_adjust':
ipchains.o(.text+0x6a34): multiple definition of `ip_nat_seq_adjust'
iptable_nat.o(.text+0x2994): first defined here
ipchains.o(.sdata+0x68): multiple definition of `ip_ct_icmp_timeout'
ip_conntrack.o(.sdata+0x5c): first defined here
ipchains.o(.sdata+0x44): multiple definition of
`ip_ct_tcp_timeout_syn_recv'
ip_conntrack.o(.sdata+0x38): first defined here
ipchains.o(.sdata+0x6c): multiple definition of `protos'
iptable_nat.o(.sdata+0x0): first defined here
ipchains.o: In function `ip_conntrack_expect_related':
ipchains.o(.text+0x2f14): multiple definition of
`ip_conntrack_expect_related'
ip_conntrack.o(.text+0x2260): first defined here
ipchains.o(.sdata+0x74): multiple definition of `helpers'
iptable_nat.o(.sdata+0x8): first defined here
ipchains.o: In function `ip_ct_no_defrag':
ipchains.o(.sbss+0x4): multiple definition of `ip_ct_no_defrag'
ip_conntrack.o(.sbss+0x4): first defined here
ipchains.o(.sdata+0x60): multiple definition of `ip_ct_udp_timeout'
ip_conntrack.o(.sdata+0x54): first defined here
ipchains.o(.data+0x8c): multiple definition of `ip_conntrack_lock'
ip_conntrack.o(.data+0x428): first defined here
ipchains.o: In function `ip_nat_used_tuple':
ipchains.o(.text+0x4bc0): multiple definition of `ip_nat_used_tuple'
iptable_nat.o(.text+0xb20): first defined here
ipchains.o: In function `ip_ct_selective_cleanup':
ipchains.o(.text+0x3f2c): multiple definition of
`ip_ct_selective_cleanup'
ip_conntrack.o(.text+0x3278): first defined here
ipchains.o: In function `ip_nat_mangle_tcp_packet':
ipchains.o(.text+0x60ec): multiple definition of
`ip_nat_mangle_tcp_packet'
iptable_nat.o(.text+0x204c): first defined here
ipchains.o(.sdata+0x50): multiple definition of
`ip_ct_tcp_timeout_close_wait'
ip_conntrack.o(.sdata+0x44): first defined here
ipchains.o(.data+0x8c): multiple definition of
`ip_conntrack_expect_tuple_lock'
ip_conntrack.o(.data+0x428): first defined here
ipchains.o(.data+0x400): multiple definition of `ip_nat_protocol_tcp'
iptable_nat.o(.data+0x198): first defined here
ipchains.o: In function `ip_nat_mangle_udp_packet':
ipchains.o(.text+0x64fc): multiple definition of
`ip_nat_mangle_udp_packet'
iptable_nat.o(.text+0x245c): first defined here
ipchains.o: In function `do_bindings':
ipchains.o(.text+0x59d4): multiple definition of `do_bindings'
iptable_nat.o(.text+0x1934): first defined here
ipchains.o(.sdata+0x48): multiple definition of
`ip_ct_tcp_timeout_established'
ip_conntrack.o(.sdata+0x3c): first defined here
ipchains.o(.sdata+0x5c): multiple definition of
`ip_ct_tcp_timeout_close'
ip_conntrack.o(.sdata+0x50): first defined here
ipchains.o: In function `ip_nat_setup_info':
ipchains.o(.text+0x5418): multiple definition of `ip_nat_setup_info'
iptable_nat.o(.text+0x1378): first defined here
ipchains.o: In function `ip_conntrack_put':
ipchains.o(.text+0x4200): multiple definition of `ip_conntrack_put'
ip_conntrack.o(.text+0x354c): first defined here
ipchains.o: In function `invert_tuplepr':
ipchains.o(.text+0x2e70): multiple definition of `invert_tuplepr'
ip_conntrack.o(.text+0x21bc): first defined here
ipchains.o: In function `ip_conntrack_helper_register':
ipchains.o(.text+0x390c): multiple definition of
`ip_conntrack_helper_register'
ip_conntrack.o(.text+0x2c58): first defined here
ipchains.o: In function `ip_conntrack_in':
ipchains.o(.text+0x2b60): multiple definition of `ip_conntrack_in'
ip_conntrack.o(.text+0x1eac): first defined here
ipchains.o: In function `find_nat_proto':
ipchains.o(.text+0x4b68): multiple definition of `find_nat_proto'
iptable_nat.o(.text+0xac8): first defined here
ipchains.o: In function `ip_conntrack_expect_put':
ipchains.o(.text+0x4254): multiple definition of
`ip_conntrack_expect_put'
ip_conntrack.o(.text+0x35a0): first defined here
ipchains.o(.data+0xb8): multiple definition of
`ip_conntrack_generic_protocol'
ip_conntrack.o(.data+0x454): first defined here
ipchains.o(.data+0x3cc): multiple definition of `unknown_nat_protocol'
iptable_nat.o(.data+0x164): first defined here
ipchains.o: In function `ip_ct_gather_frags':
ipchains.o(.text+0x3b80): multiple definition of `ip_ct_gather_frags'
ip_conntrack.o(.text+0x2ecc): first defined here
ipchains.o(.sdata+0x2c): multiple definition of `ip_conntrack_max'
ip_conntrack.o(.sdata+0x20): first defined here
ipchains.o(.sdata+0x64): multiple definition of
`ip_ct_udp_timeout_stream'
ip_conntrack.o(.sdata+0x58): first defined here
ipchains.o(.data+0x390): multiple definition of `ip_nat_lock'
iptable_nat.o(.data+0x128): first defined here
ipchains.o: In function `ip_nat_init':
ipchains.o(.text.init+0x310): multiple definition of `ip_nat_init'
iptable_nat.o(.text.init+0x9c): first defined here
ipchains.o: In function `ip_ct_find_helper':
ipchains.o(.text+0x2608): multiple definition of `ip_ct_find_helper'
ip_conntrack.o(.text+0x1954): first defined here
ipchains.o: In function `ip_ct_refresh':
ipchains.o(.text+0x3ad0): multiple definition of `ip_ct_refresh'
ip_conntrack.o(.text+0x2e1c): first defined here
ipchains.o: In function `ip_conntrack_expect_find_get':
ipchains.o(.text+0x17b4): multiple definition of
`ip_conntrack_expect_find_get'
ip_conntrack.o(.text+0xb00): first defined here
ipchains.o: In function `icmp_reply_translation':
ipchains.o(.text+0x5d78): multiple definition of
`icmp_reply_translation'
iptable_nat.o(.text+0x1cd8): first defined here
ipchains.o(.sdata+0x4c): multiple definition of
`ip_ct_tcp_timeout_fin_wait'
ip_conntrack.o(.sdata+0x40): first defined here
ipchains.o: In function `ip_ct_find_proto':
ipchains.o(.text+0x1608): multiple definition of `ip_ct_find_proto'
ip_conntrack.o(.text+0x954): first defined here
ipchains.o: In function `ip_nat_cheat_check':
ipchains.o(.text+0x4b20): multiple definition of `ip_nat_cheat_check'
iptable_nat.o(.text+0xa80): first defined here
ipchains.o: In function `__ip_conntrack_confirm':
ipchains.o(.text+0x1f44): multiple definition of
`__ip_conntrack_confirm'
ip_conntrack.o(.text+0x1290): first defined here
ipchains.o: In function `ip_conntrack_find_get':
ipchains.o(.text+0x1e9c): multiple definition of `ip_conntrack_find_get'
ip_conntrack.o(.text+0x11e8): first defined here
ipchains.o: In function `ip_conntrack_get':
ipchains.o(.text+0x1f1c): multiple definition of `ip_conntrack_get'
ip_conntrack.o(.text+0x1268): first defined here
ipchains.o: In function `ip_nat_helper_unregister':
ipchains.o(.text+0x6eac): multiple definition of
`ip_nat_helper_unregister'
iptable_nat.o(.text+0x2e0c): first defined here
ipchains.o: In function `replace_in_hashes':
ipchains.o(.text+0x57a4): multiple definition of `replace_in_hashes'
iptable_nat.o(.text+0x1704): first defined here
ipchains.o(.sdata+0x58): multiple definition of
`ip_ct_tcp_timeout_time_wait'
ip_conntrack.o(.sdata+0x4c): first defined here
ipchains.o(.sdata+0x28): multiple definition of
`ip_conntrack_htable_size'
ip_conntrack.o(.sdata+0x1c): first defined here
ipchains.o: In function `ip_conntrack_unexpect_related':
ipchains.o(.text+0x4290): multiple definition of
`ip_conntrack_unexpect_related'
ip_conntrack.o(.text+0x35dc): first defined here
ipchains.o(.data+0x2cc): multiple definition of
`ip_conntrack_protocol_tcp'
ip_conntrack.o(.data+0x668): first defined here
ipchains.o(.data+0x434): multiple definition of `ip_nat_protocol_udp'
iptable_nat.o(.data+0x1cc): first defined here
ipchains.o: In function `ip_conntrack_helper_unregister':
ipchains.o(.text+0x3980): multiple definition of
`ip_conntrack_helper_unregister'
ip_conntrack.o(.text+0x2ccc): first defined here
ipchains.o(.sdata+0x40): multiple definition of
`ip_ct_tcp_timeout_syn_sent'
ip_conntrack.o(.sdata+0x34): first defined here
ipchains.o(.data+0x300): multiple definition of
`ip_conntrack_protocol_udp'
ip_conntrack.o(.data+0x69c): first defined here
ipchains.o(.sdata+0x54): multiple definition of
`ip_ct_tcp_timeout_last_ack'
ip_conntrack.o(.sdata+0x48): first defined here
ipchains.o: In function `ip_nat_helper_register':
ipchains.o(.text+0x6c00): multiple definition of
`ip_nat_helper_register'
iptable_nat.o(.text+0x2b60): first defined here
ipchains.o(.sdata+0xc): multiple definition of `ip_conntrack_destroyed'
ip_conntrack.o(.sdata+0x0): first defined here
ipchains.o: In function `__ip_ct_find_proto':
ipchains.o(.text+0x15b0): multiple definition of `__ip_ct_find_proto'
ip_conntrack.o(.text+0x8fc): first defined here
ipchains.o: In function `ip_conntrack_tuple_taken':
ipchains.o(.text+0x2274): multiple definition of
`ip_conntrack_tuple_taken'
ip_conntrack.o(.text+0x15c0): first defined here
ipchains.o: In function `ip_ct_get_tuple':
ipchains.o(.text+0x42f0): multiple definition of `ip_ct_get_tuple'
ip_conntrack.o(.text+0x363c): first defined here
ipchains.o(.sdata+0x3c): multiple definition of `ip_ct_generic_timeout'
ip_conntrack.o(.sdata+0x30): first defined here
ipchains.o(.data+0x468): multiple definition of `ip_nat_protocol_icmp'
iptable_nat.o(.data+0x200): first defined here
ipchains.o: In function `icmp_error_track':
ipchains.o(.text+0x22e0): multiple definition of `icmp_error_track'
ip_conntrack.o(.text+0x162c): first defined here
ipchains.o: In function `ip_conntrack_cleanup':
ipchains.o(.text+0x4154): multiple definition of `ip_conntrack_cleanup'
ip_conntrack.o(.text+0x34a0): first defined here
ipchains.o: In function `ip_conntrack_alter_reply':
ipchains.o(.text+0x3824): multiple definition of
`ip_conntrack_alter_reply'
ip_conntrack.o(.text+0x2b70): first defined here
ipchains.o: In function `ip_conntrack_change_expect':
ipchains.o(.text+0x3578): multiple definition of
`ip_conntrack_change_expect'
ip_conntrack.o(.text+0x28c4): first defined here
ipchains.o(.data+0x35c): multiple definition of
`ip_conntrack_protocol_icmp'
ip_conntrack.o(.data+0x6f8): first defined here
ipchains.o(.sdata+0x18): multiple definition of `protocol_list'
ip_conntrack.o(.sdata+0xc): first defined here
ipchains.o(.sdata+0x10): multiple definition of
`ip_conntrack_expect_list'
ip_conntrack.o(.sdata+0x4): first defined here
ipchains.o: In function `ip_conntrack_hash':
ipchains.o(.sbss+0x8): multiple definition of `ip_conntrack_hash'
ip_conntrack.o(.sbss+0x8): first defined here
ipchains.o(.sdata+0x80): multiple definition of `ip_nat_seqofs_lock'
iptable_nat.o(.sdata+0x14): first defined here
make[3]: *** [netfilter.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.29/net/ipv4/netfilter'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.29/net/ipv4/netfilter'
make[1]: *** [_subdir_ipv4/netfilter] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.29/net'
make: *** [_dir_net] Error 2

Is this a bug in the kernel code, or did I do something wrong
configuring?
--
Georg Schwarz http://home.pages.de/~schwarz/
***@freenet.de +49 177 8811442
Markus Kossmann
2005-02-13 14:02:25 UTC
Permalink
Post by Georg Schwarz
ld -r -o netfilter.o ip_conntrack.o ip_conntrack_amanda.o
ip_conntrack_tftp.o ip_conntrack_ftp.o ip_conntrack_irc.o
ip_nat_amanda.o ip_nat_tftp.o ip_nat_ftp.o ip_nat_irc.o ip_tables.o
iptable_filter.o iptable_nat.o ipt_helper.o ipt_limit.o ipt_mark.o
ipt_mac.o ipt_pkttype.o ipt_multiport.o ipt_owner.o ipt_tos.o
ipt_ecn.o ipt_dscp.o ipt_ah.o ipt_esp.o ipt_length.o ipt_ttl.o
ipt_state.o ipt_conntrack.o ipt_unclean.o ipt_tcpmss.o ipt_REJECT.o
ipt_MIRROR.o ipt_MASQUERADE.o ipt_REDIRECT.o ip_nat_snmp_basic.o
ipt_ULOG.o ipt_TCPMSS.o arp_tables.o arptable_filter.o ipchains.o
ipchains.o(.text.init+0xb0): multiple definition of
[...]
Post by Georg Schwarz
Is this a bug in the kernel code, or did I do something wrong
configuring?
It seems that you configured both iptables (new packetfilter) and
ipchains (old packetfilter) support into your kernel. Either build them
as module or decide for one.
Georg Schwarz
2005-02-17 20:20:29 UTC
Permalink
Post by Markus Kossmann
It seems that you configured both iptables (new packetfilter) and
ipchains (old packetfilter) support into your kernel. Either build them
as module or decide for one.
yes, yiou are right. It happened because I had taken the stock config and
switched off module support using menuconfig. This made everything
previously configured as a module now compiled in staticly.

Loading...