[Swan-dev] [patch] Libreswan 3.6 build failure on kernel 3.4
Roel van Meer
roel.vanmeer at bokxing-it.nl
Fri Nov 1 12:26:47 EET 2013
Hi everyone,
While building the linux kernel 3.4.67 with libreswan 3.6 I ran into a build
failure:
/tmp/tmp.3um4Ii/libreswan-3.6/modobj/ipsec_tunnel.c: In function 'ipsec_tunnel_udp_encap_prepare':
/tmp/tmp.3um4Ii/libreswan-3.6/modobj/ipsec_tunnel.c:1734: error: implicit declaration of function 'udp_encap_enable'
It turns out that NEED_UDP_ENCAP_ENABLE, which should be defined on kernels
3.5 and up, was defined on kernels 3.4 and up. The attached patch fixes that.
Best regards,
Roel
-------------- next part --------------
Select correct kernel version for udp_encap_enable requirement.
udp_encap_enable is present from kernel 3.5 and up. Correct the kernel
version that is checked against.
diff -ruN a/linux/include/libreswan/ipsec_kversion.h b/linux/include/libreswan/ipsec_kversion.h
--- a/linux/include/libreswan/ipsec_kversion.h 2013-10-31 03:46:36.000000000 +0100
+++ b/linux/include/libreswan/ipsec_kversion.h 2013-11-01 10:56:20.715071926 +0100
@@ -77,7 +77,7 @@
# endif
#endif
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 4, 0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 5, 0)
# define NEED_UDP_ENCAP_ENABLE
#endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build-errors.txt.gz
Type: application/octet-stream
Size: 647 bytes
Desc: build-errors.txt.gz
URL: <https://lists.libreswan.org/pipermail/swan-dev/attachments/20131101/9bc443b6/attachment.obj>
More information about the Swan-dev
mailing list