net/ipv4/netfilter/ip_conntrack_ftp and _irc to export objs
PATCH 1/1 net/ipv4/netfilter/ip_conntrack_ftp and _irc to export objs
Hi,
the two modules mentioned export symbols but are not mentioned in export-objs in Makefile and thus give errors. Patch attached.
// Jarno
ipv4/netfilter/Makefile renamed from ipv4/netfilter/Makefile.bak +1 -1
@@ -9,7 +9,7 @@ O_TARGET := netfilter.o -export-objs = ip_conntrack_standalone.o ip_fw_compat.o ip_nat_standalone.o ip_tables.o arp_tables.o +export-objs = ip_conntrack_standalone.o ip_fw_compat.o ip_nat_standalone.o ip_tables.o arp_tables.o ip_conntrack_ftp.o ip_conntrack_irc.o # Multipart objects. list-multi := ip_conntrack.o iptable_nat.o ipfwadm.o ipchains.o
Quoted 10 lines · Jarno Paananen
Hi,
the two modules mentioned export symbols but are not mentioned in export-objs in
Makefileand thus give errors. Patch attached.// Jarno
ipv4/netfilter/Makefile line 15
Quoted 8 lines
ipv4/netfilter/Makefile renamed from ipv4/netfilter/Makefile.bak +1
-1@@ -9,7 +9,7 @@ O_TARGET := netfilter.o -export-objs = ip_conntrack_standalone.o ip_fw_compat.o ip_nat_standalone.o ip_tables.o arp_tables.o +export-objs = ip_conntrack_standalone.o ip_fw_compat.o ip_nat_standalone.o ip_tables.o arp_tables.o ip_conntrack_ftp.o ip_conntrack_irc.o # Multipart objects. list-multi := ip_conntrack.o iptable_nat.o ipfwadm.o ipchains.o
Did you see this part starting at row 34?
# connection tracking helpers
obj-$(CONFIG_IP_NF_FTP) += ip_conntrack_ftp.o
ifdef CONFIG_IP_NF_NAT_FTP
export-objs += ip_conntrack_ftp.o
endifobj-$(CONFIG_IP_NF_IRC) += ip_conntrack_irc.o
ifdef CONFIG_IP_NF_NAT_IRC
export-objs += ip_conntrack_irc.o
endif
but maybe the ifdefs shouldn't use the NAT define... I don't think I've compiled without NAT support...
Signature · 4 lines
/Martin Never argue with an idiot. They drag you down to their level, then beat you with experience.
Martin Josefsson <[email protected]> writes:
| On Sat, 2002-09-14 at 19:53, Jarno Paananen wrote: | > Hi, | > | > the two modules mentioned export symbols but are not mentioned in | > export-objs in Makefile and thus give errors. Patch attached. | > | > // Jarno | > | > --- net/ipv4/netfilter/Makefile.bak 2002-09-14 19:50:38.000000000 +0300 | > +++ net/ipv4/netfilter/Makefile 2002-09-14 19:51:28.000000000 +0300 | > @@ -9,7 +9,7 @@ | > | > O_TARGET := netfilter.o | > | > -export-objs = ip_conntrack_standalone.o ip_fw_compat.o ip_nat_standalone.o ip_tables.o arp_tables.o | > +export-objs = ip_conntrack_standalone.o ip_fw_compat.o ip_nat_standalone.o ip_tables.o arp_tables.o ip_conntrack_ftp.o ip_conntrack_irc.o | > | > # Multipart objects. | > list-multi := ip_conntrack.o iptable_nat.o ipfwadm.o ipchains.o | | Did you see this part starting at row 34? | | # connection tracking helpers | obj-$(CONFIG_IP_NF_FTP) += ip_conntrack_ftp.o | ifdef CONFIG_IP_NF_NAT_FTP | export-objs += ip_conntrack_ftp.o | endif | | obj-$(CONFIG_IP_NF_IRC) += ip_conntrack_irc.o | ifdef CONFIG_IP_NF_NAT_IRC | export-objs += ip_conntrack_irc.o | endif | | but maybe the ifdefs shouldn't use the NAT define... | I don't think I've compiled without NAT support... | | -- | /Martin | | Never argue with an idiot. They drag you down to their level, then beat | you with experience.
Hm, didn't notice those, sorry.
It seems the condition for the actual export is different than the Makefile. In ip_conntrack_ftp.c for example the export is done:
#ifdef CONFIG_IP_NF_NAT_NEEDEDEXPORT_SYMBOL(ip_ftp_lock);
#endif
and in Makefile:
ifdef CONFIG_IP_NF_NAT_FTP
export-objs += ip_conntrack_ftp.o
endif
For some reason these didn't match with my .config, relevant part attached.
// Jarno
#
# IP: Netfilter Configuration
#CONFIG_IP_NF_CONNTRACK=mCONFIG_IP_NF_FTP=mCONFIG_IP_NF_IRC=m
# CONFIG_IP_NF_QUEUE is not setCONFIG_IP_NF_IPTABLES=mCONFIG_IP_NF_MATCH_LIMIT=mCONFIG_IP_NF_MATCH_MAC=mCONFIG_IP_NF_MATCH_PKTTYPE=mCONFIG_IP_NF_MATCH_MARK=mCONFIG_IP_NF_MATCH_MULTIPORT=mCONFIG_IP_NF_MATCH_TOS=mCONFIG_IP_NF_MATCH_ECN=mCONFIG_IP_NF_MATCH_DSCP=mCONFIG_IP_NF_MATCH_AH_ESP=mCONFIG_IP_NF_MATCH_LENGTH=mCONFIG_IP_NF_MATCH_TTL=mCONFIG_IP_NF_MATCH_TCPMSS=m
# CONFIG_IP_NF_MATCH_HELPER is not set
# CONFIG_IP_NF_MATCH_STATE is not set
# CONFIG_IP_NF_MATCH_CONNTRACK is not setCONFIG_IP_NF_MATCH_UNCLEAN=mCONFIG_IP_NF_MATCH_OWNER=mCONFIG_IP_NF_FILTER=mCONFIG_IP_NF_TARGET_REJECT=mCONFIG_IP_NF_TARGET_MIRROR=m
# CONFIG_IP_NF_NAT is not setCONFIG_IP_NF_MANGLE=mCONFIG_IP_NF_TARGET_TOS=mCONFIG_IP_NF_TARGET_ECN=mCONFIG_IP_NF_TARGET_DSCP=mCONFIG_IP_NF_TARGET_MARK=mCONFIG_IP_NF_TARGET_LOG=mCONFIG_IP_NF_TARGET_ULOG=mCONFIG_IP_NF_TARGET_TCPMSS=mCONFIG_IP_NF_ARPTABLES=mCONFIG_IP_NF_ARPFILTER=mCONFIG_IP_NF_COMPAT_IPCHAINS=mCONFIG_IP_NF_NAT_NEEDED=y
# CONFIG_IP_NF_COMPAT_IPFWADM is not setCONFIG_IPV6=m
#
# IPv6: Netfilter Configuration
#
# CONFIG_IP6_NF_QUEUE is not setCONFIG_IP6_NF_IPTABLES=mCONFIG_IP6_NF_MATCH_LIMIT=mCONFIG_IP6_NF_MATCH_MAC=mCONFIG_IP6_NF_MATCH_MULTIPORT=m
# CONFIG_IP6_NF_MATCH_OWNER is not setCONFIG_IP6_NF_MATCH_MARK=mCONFIG_IP6_NF_MATCH_LENGTH=m
# CONFIG_IP6_NF_MATCH_EUI64 is not setCONFIG_IP6_NF_FILTER=mCONFIG_IP6_NF_TARGET_LOG=mCONFIG_IP6_NF_MANGLE=mCONFIG_IP6_NF_TARGET_MARK=m
# CONFIG_KHTTPD is not set
# CONFIG_ATM is not set
# CONFIG_VLAN_8021Q is not set
Quoted 9 lines · Jarno Paananen
Hm, didn't notice those, sorry.
It seems the condition for the actual export is different than the
Makefile. Inip_conntrack_ftp.cfor example the export is done:#ifdef
CONFIG_IP_NF_NAT_NEEDEDEXPORT_SYMBOL(ip_ftp_lock);
#endif
Quoted 5 lines
and in
Makefile:ifdef
CONFIG_IP_NF_NAT_FTPexport-objs += ip_conntrack_ftp.oendif
I just did a basic test and I didn't manage to get CONFIG_IP_NF_NAT_NEEDED set without getting CONFIG_IP_NF_NAT and CONFIG_IP_NF_NAT_FTP and CONFIG_IP_NF_NAT_IRC set aswell. (with the corresponding CONFIG_IP_NF_FTP and CONFIG_IP_NF_IRC of course)
Signature · 4 lines
/Martin Never argue with an idiot. They drag you down to their level, then beat you with experience.