Fix config-problem + missing export
Subsystems (2)
PATCH 1/1 Fix config-problem + missing export
Hi Harald,
He's some fixes for a compilationproblem in 2.4 when conntrack-helpers were selected as modules but no NAT support was configured.
The first patch, against 2.4-bk, adds a missing export for the amanda conntrack-helper (not really needed for 2.4 but should be there) and makes the exporting of symbols unconditional in the conntrack helpers (ftp and irc).
The second patch is against p-o-m correcting the affected patches there. (adds submitted/22_amanda-conntrack-nat.patch.makefile-2)
And the third patch is against 2.5.67-bk5, it adds the missing export for the amanda conntrack-helper and makes the exports unconditional there as well (they didn't cause any problems on 2.5 but it doesn't hurt making it the same as in 2.4)
Signature · 1 line
/Martin
net/ipv4/netfilter/Makefile +5 -7
@@ -31,27 +31,25 @@ # connection tracking obj-$(CONFIG_IP_NF_CONNTRACK) += ip_conntrack.o -# Amanda protocol support +# connection tracking helpers obj-$(CONFIG_IP_NF_AMANDA) += ip_conntrack_amanda.o -obj-$(CONFIG_IP_NF_NAT_AMANDA) += ip_nat_amanda.o -ifdef CONFIG_IP_NF_NAT_AMANDA +ifdef CONFIG_IP_NF_AMANDA export-objs += ip_conntrack_amanda.o endif - -# connection tracking helpers obj-$(CONFIG_IP_NF_TFTP) += ip_conntrack_tftp.o obj-$(CONFIG_IP_NF_FTP) += ip_conntrack_ftp.o -ifdef CONFIG_IP_NF_NAT_FTP +ifdef CONFIG_IP_NF_FTP export-objs += ip_conntrack_ftp.o endif obj-$(CONFIG_IP_NF_IRC) += ip_conntrack_irc.o -ifdef CONFIG_IP_NF_NAT_IRC +ifdef CONFIG_IP_NF_IRC export-objs += ip_conntrack_irc.o endif # NAT helpers +obj-$(CONFIG_IP_NF_NAT_AMANDA) += ip_nat_amanda.o obj-$(CONFIG_IP_NF_NAT_TFTP) += ip_nat_tftp.o obj-$(CONFIG_IP_NF_NAT_FTP) += ip_nat_ftp.o obj-$(CONFIG_IP_NF_NAT_IRC) += ip_nat_irc.o
net/ipv4/netfilter/ip_conntrack_amanda.c +2 -0
@@ -229,5 +229,7 @@return 0 ; } +EXPORT_SYMBOL (ip_amanda_lock); +module_init (init);module_exit (fini);
net/ipv4/netfilter/ip_conntrack_ftp.c +0 -2
@@ -436,9 +436,7 @@return 0 ; } -#ifdef CONFIG_IP_NF_NAT_NEEDED EXPORT_SYMBOL (ip_ftp_lock); -#endif MODULE_LICENSE ("GPL" );module_init (init);
net/ipv4/netfilter/ip_conntrack_irc.c +0 -2
@@ -305,9 +305,7 @@ } } -#ifdef CONFIG_IP_NF_NAT_NEEDED EXPORT_SYMBOL (ip_irc_lock); -#endif module_init (init);module_exit (fini);
extra/h323-conntrack-nat.patch renamed from ../cvs/dev/netfilter/patch-o-matic/extra/h323-conntrack-nat.patch +1 -3
@@ -35,7 +35,7 @@ diff -uN /dev/null linux/net/ipv4/netfilter/ip_conntrack_h323.c --- /dev/null Thu Apr 11 16:25:15 2002 +++ linux/net/ipv4/netfilter/ip_conntrack_h323.c Wed Aug 21 11:45:51 2002 -@@ -0,0 +1,310 @@ +@@ -0,0 +1,308 @@ +/* + * H.323 'brute force' extension for H.323 connection tracking. + * Jozsef Kadlecsik <[email protected]>
@@ -340,9 +340,7 @@ + ip_conntrack_helper_unregister(&h225); +} + -+#ifdef CONFIG_IP_NF_NAT_NEEDED +EXPORT_SYMBOL(ip_h323_lock); -+#endif + +module_init(init); +module_exit(fini);
extra/h323-conntrack-nat.patch.makefile renamed from ../cvs/dev/netfilter/patch-o-matic/extra/h323-conntrack-nat.patch.makefile +2 -2
@@ -2,8 +2,8 @@ # H.323 support obj-$(CONFIG_IP_NF_H323) += ip_conntrack_h323.o -obj-$(CONFIG_IP_NF_NAT_H323) += ip_nat_h323.o -ifdef CONFIG_IP_NF_NAT_H323 +ifdef CONFIG_IP_NF_H323 export-objs += ip_conntrack_h323.o endif +obj-$(CONFIG_IP_NF_NAT_H323) += ip_nat_h323.o
extra/mms-conntrack-nat.patch renamed from ../cvs/dev/netfilter/patch-o-matic/extra/mms-conntrack-nat.patch +1 -3
@@ -36,7 +36,7 @@ diff -urN -X dontdiff linux-2.4.20-pre7/net/ipv4/netfilter/ip_conntrack_mms.c linux-2.4.20-pre7-mms/net/ipv4/netfilter/ip_conntrack_mms.c --- linux-2.4.20-pre7/net/ipv4/netfilter/ip_conntrack_mms.c 1970-01-01 01:00:00.000000000 +0100 +++ linux-2.4.20-pre7-mms/net/ipv4/netfilter/ip_conntrack_mms.c 2002-09-17 01:29:20.000000000 +0200 -@@ -0,0 +1,310 @@ +@@ -0,0 +1,308 @@ +/* MMS extension for IP connection tracking + * (C) 2002 by Filip Sneppe <[email protected]> + * based on ip_conntrack_ftp.c and ip_conntrack_irc.c
@@ -90,9 +90,7 @@ +#define DEBUGP(format, args...) +#endif + -+#ifdef CONFIG_IP_NF_NAT_NEEDED +EXPORT_SYMBOL(ip_mms_lock); -+#endif + +MODULE_AUTHOR("Filip Sneppe <[email protected]>"); +MODULE_DESCRIPTION("Microsoft Windows Media Services (MMS) connection tracking module");
extra/mms-conntrack-nat.patch.makefile renamed from ../cvs/dev/netfilter/patch-o-matic/extra/mms-conntrack-nat.patch.makefile +1 -1
@@ -1,5 +1,5 @@ # connection tracking helpers obj-$(CONFIG_IP_NF_MMS) += ip_conntrack_mms.o -ifdef CONFIG_IP_NF_NAT_MMS +ifdef CONFIG_IP_NF_MMS export-objs += ip_conntrack_mms.o endif
extra/talk-conntrack-nat.patch renamed from ../cvs/dev/netfilter/patch-o-matic/extra/talk-conntrack-nat.patch +1 -3
@@ -155,7 +155,7 @@ +#endif /* _IP_CONNTRACK_TALK_H */ --- linux-2.4.18-newnat13/net/ipv4/netfilter/ip_conntrack_talk.c Thu Jan 1 01:00:00 1970 +++ linux-2.4.18-newnat13-talk/net/ipv4/netfilter/ip_conntrack_talk.c Wed Mar 20 01:37:38 2002 -@@ -0,0 +1,362 @@ +@@ -0,0 +1,360 @@ +/* + * talk extension for IP connection tracking. + * Jozsef Kadlecsik <[email protected]>
@@ -512,9 +512,7 @@ + ip_conntrack_helper_unregister(&talk_helpers[1]); +} + -+#ifdef CONFIG_IP_NF_NAT_NEEDED +EXPORT_SYMBOL(ip_talk_lock); -+#endif + +module_init(init); +module_exit(fini);
extra/talk-conntrack-nat.patch.makefile renamed from ../cvs/dev/netfilter/patch-o-matic/extra/talk-conntrack-nat.patch.makefile +2 -2
@@ -2,8 +2,8 @@ # talk protocol support obj-$(CONFIG_IP_NF_TALK) += ip_conntrack_talk.o -obj-$(CONFIG_IP_NF_NAT_TALK) += ip_nat_talk.o -ifdef CONFIG_IP_NF_NAT_TALK +ifdef CONFIG_IP_NF_TALK export-objs += ip_conntrack_talk.o endif +obj-$(CONFIG_IP_NF_NAT_TALK) += ip_nat_talk.o
submitted/22_amanda-conntrack-nat.patch renamed from ../cvs/dev/netfilter/patch-o-matic/submitted/22_amanda-conntrack-nat.patch +3 -1
@@ -34,7 +34,7 @@ diff -uNr linux-2.4.18-6mdk-pom-clean/net/ipv4/netfilter/ip_conntrack_amanda.c linux-2.4.18-6mdkuml-48um-pom/net/ipv4/netfilter/ip_conntrack_amanda.c --- linux-2.4.18-6mdk-pom-clean/net/ipv4/netfilter/ip_conntrack_amanda.c 1969-12-31 19:00:00.000000000 -0500 +++ linux-2.4.18-6mdkuml-48um-pom/net/ipv4/netfilter/ip_conntrack_amanda.c 2002-08-16 04:24:25.000000000 -0400 -@@ -0,0 +1,233 @@ +@@ -0,0 +1,235 @@ +/* Amanda extension for IP connection tracking, Version 0.2 + * (C) 2002 by Brian J. Murrell <[email protected]> + * based on HW's ip_conntrack_irc.c as well as other modules
@@ -266,6 +266,8 @@ + return 0; +} + ++EXPORT_SYMBOL(ip_amanda_lock); ++ +module_init(init); +module_exit(fini); diff -uNr linux-2.4.18-6mdk-pom-clean/net/ipv4/netfilter/ip_nat_amanda.c linux-2.4.18-6mdkuml-48um-pom/net/ipv4/netfilter/ip_nat_amanda.c
submitted/22_amanda-conntrack-nat.patch.makefile renamed from ../cvs/dev/netfilter/patch-o-matic/submitted/22_amanda-conntrack-nat.patch.makefile +2 -5
@@ -1,9 +1,6 @@ -obj-$(CONFIG_IP_NF_CONNTRACK) += ip_conntrack.o - -# Amanda protocol support +# connection tracking helpers obj-$(CONFIG_IP_NF_AMANDA) += ip_conntrack_amanda.o -obj-$(CONFIG_IP_NF_NAT_AMANDA) += ip_nat_amanda.o -ifdef CONFIG_IP_NF_NAT_AMANDA +ifdef CONFIG_IP_NF_AMANDA export-objs += ip_conntrack_amanda.o endif
submitted/22_amanda-conntrack-nat.patch.makefile-2 renamed from ../cvs/dev/netfilter/patch-o-matic/submitted/22_amanda-conntrack-nat.patch.makefile-2 +2 -0
@@ -0,0 +1,2 @@ +# NAT helpers +obj-$(CONFIG_IP_NF_NAT_AMANDA) += ip_nat_amanda.o
net/ipv4/netfilter/ip_conntrack_amanda.c +2 -0
@@ -229,5 +229,7 @@return 0 ; } +EXPORT_SYMBOL (ip_amanda_lock); +module_init (init);module_exit (fini);
net/ipv4/netfilter/ip_conntrack_ftp.c +0 -2
@@ -436,9 +436,7 @@return 0 ; } -#ifdef CONFIG_IP_NF_NAT_NEEDED EXPORT_SYMBOL (ip_ftp_lock); -#endif MODULE_LICENSE ("GPL" );module_init (init);
net/ipv4/netfilter/ip_conntrack_irc.c +0 -2
@@ -305,9 +305,7 @@ } } -#ifdef CONFIG_IP_NF_NAT_NEEDED EXPORT_SYMBOL (ip_irc_lock); -#endif module_init (init);module_exit (fini);