[Swan] Compiling on Ubuntu 16.04

Paul Wouters paul at nohats.ca
Sat Aug 11 21:52:22 UTC 2018


See https://libreswan.org/wiki/Libreswan_on_Debian_Wheezy

And use “make deb”

Sent from my phone

> On Aug 11, 2018, at 16:51, Whit Blauvelt <whit.swan at transpect.com> wrote:
> 
> Hi,
> 
> Trying to compile on Ubuntu 16.04, with "make all" I'm stuck at:
> 
> -----
> 
> In file included from /usr/src/libreswan-3.25/linux/include/libreswan.h:78:0,
>                 from /usr/src/libreswan-3.25/programs/pluto/kernel_netlink.c:57:
> /usr/src/libreswan-3.25/programs/pluto/kernel_netlink.c: In function ‘netlink_raw_eroute’:
> /usr/src/libreswan-3.25/programs/pluto/kernel_netlink.c:709:22: error: ‘IPPROTO_ICMPV6’ undeclared (first use in this function)
>   transport_proto == IPPROTO_ICMPV6) {
>                      ^
> /usr/src/libreswan-3.25/programs/pluto/kernel_netlink.c:709:22: note: each undeclared identifier is reported only once for each function it appears in
> /usr/src/libreswan-3.25/programs/pluto/kernel_netlink.c: In function ‘netlink_add_sa’:
> /usr/src/libreswan-3.25/programs/pluto/kernel_netlink.c:1360:4: error: ‘IPPROTO_ICMPV6’ undeclared (first use in this function)
>    IPPROTO_ICMPV6 == sa->transport_proto) {
>    ^
> /usr/src/libreswan-3.25/programs/pluto/kernel_netlink.c: In function ‘netlink_bypass_policy’:
> /usr/src/libreswan-3.25/programs/pluto/kernel_netlink.c:2766:15: error: ‘IPPROTO_ICMPV6’ undeclared (first use in this function)
>  if (proto == IPPROTO_ICMPV6) {
>               ^
> /usr/src/libreswan-3.25/programs/pluto/kernel_netlink.c: In function ‘netlink_v6holes’:
> /usr/src/libreswan-3.25/programs/pluto/kernel_netlink.c:2837:41: error: ‘IPPROTO_ICMPV6’ undeclared (first use in this function)
>   ret = netlink_bypass_policy(AF_INET6, IPPROTO_ICMPV6,
>                                         ^
> ../../mk/depend.mk:34: recipe for target 'kernel_netlink.o' failed
> make[3]: *** [kernel_netlink.o] Error 1
> ../../mk/targets.mk:90: recipe for target 'all' failed
> make[2]: *** [all] Error 2
> make[2]: Leaving directory '/usr/src/libreswan-3.25/programs/pluto'
> ../mk/targets.mk:90: recipe for target 'recursive-all' failed
> make[1]: *** [recursive-all] Error 2
> make[1]: Leaving directory '/usr/src/libreswan-3.25/programs'
> mk/targets.mk:90: recipe for target 'recursive-all' failed
> make: *** [recursive-all] Error 2
> 
> -----
> 
> When I try "make deb" instead I get:
> 
> -----
> 
> dpkg-source: warning: unknown information field 'Rules-Requires-Root' in input data in general section of control info file
> dpkg-source: error: cannot read libreswan-3.25/debian/patches/0003-update-README.nss-to-match-debian-defaults-for-IPSEC.patch: No such file or directory
> dpkg-buildpackage: error: dpkg-source -i --before-build libreswan-3.25 gave error exit status 2
> debuild: fatal error at line 1376:
> dpkg-buildpackage -rfakeroot -D -us -uc -i -b failed
> Makefile:608: recipe for target 'deb' failed
> make: *** [deb] Error 29
> 
> -----
> 
> The "make all" errors look like they're IPv6 related. We don't use IPv6.
> Would leaving out IPv6 support allow compilation? If so, what's the
> invocation for that?
> 
> Thanks,
> Whit
> _______________________________________________
> Swan mailing list
> Swan at lists.libreswan.org
> https://lists.libreswan.org/mailman/listinfo/swan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.libreswan.org/pipermail/swan/attachments/20180811/d0d78307/attachment.html>


More information about the Swan mailing list