Hi, I ran in a pristine xenial instance:
sudo apt-get update sudo apt-get install --yes --force-yes --fix-missing autotools-dev bison build-essential bzip2 debconf-utils debhelper dpatch dpkg-dev flex git htmldoc iproute libcurl3-nss libcurl4-nss-dev libevent-d ev libgmp3-dev libkrb5-dev libldap2-dev libnspr4* libnss3* libpam0g-dev libsqlite3-dev libssl-dev libunbound-dev man2html pkg-config po-debconf screen ubuntu-dev-tools xmlto zlib1g-dev electric-fence libcap- ng-dev libsystemd-dev dh-systemd libaudit-dev libldns-dev libselinux1-dev git clone https://github.com/libreswan/libreswan export VERSION=3.25 sed -i "s/@IPSECBASEVERSION@/$VERSION/g" ./packaging/debian/changelog make deb Got stuck with: -DUSE_MD5 -DUSE_SHA2 -DUSE_SHA1 -DUSE_AES -DUSE_3DES -DUSE_CAMELLIA -DUSE_SERPENT -DUSE_TWOFISH -DUSE_CAST -DUSE_XCBC -DDEFAULT_RUNDIR=\"/run/pluto\" -DFIPSPRODUCTCHECK=\"/etc/system-fips\" -DIPSEC_CONF=\"/etc/ipsec.conf\" -DIPSEC_CONFDDIR=\"/etc/ipsec.d\" -DIPSEC_NSSDIR=\"/var/lib/ipsec/nss\" -DIPSEC_CONFDIR=\"/etc\" -DIPSEC_EXECDIR=\"/usr/lib/ipsec\" -DIPSEC_SBINDIR=\"/usr/sbin\" -DIPSEC_VARDIR=\"/var\" -DPOLICYGROUPSDIR=\"/etc/ipsec.d/policies\" -DIPSEC_SECRETS_FILE=\"/etc/ipsec.secrets\" -DFORCE_PR_ASSERT -DUSE_FORK=1 -DUSE_VFORK=0 -DUSE_DAEMON=0 -DUSE_PTHREAD_SETSCHEDPRIO=1 -DGCC_LINT -DALLOW_MICROSOFT_BAD_PROPOSAL -DHAVE_LIBCAP_NG -Werror -Wall -Wextra -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wmissing-declarations -Wredundant-decls -Wnested-externs -I/home/ubuntu/libreswan/linux/include -I../../include -I/usr/include/nss -I/usr/include/nspr \ -MF ../../OBJ.linux.x86_64/programs/pluto/kernel_netlink.d \ -MP -MMD -MT kernel_netlink.o \ -o ../../OBJ.linux.x86_64/programs/pluto/kernel_netlink.o \ -c /home/ubuntu/libreswan/programs/pluto/kernel_netlink.c In file included from /home/ubuntu/libreswan/programs/pluto/linux-copy/linux/xfrm.h:5:0, from /home/ubuntu/libreswan/programs/pluto/kernel_netlink.c:56: /usr/include/netinet/in.h:101:5: error: expected identifier before numeric constant IPPROTO_HOPOPTS = 0, /* IPv6 Hop-by-Hop options. */ ^ .... /home/ubuntu/libreswan/programs/pluto/kernel_netlink.c:709:22: error: ‘IPPROTO_ICMPV6’ undeclared (first use in this function) transport_proto == IPPROTO_ICMPV6) { ^ /home/ubuntu/libreswan/programs/pluto/kernel_netlink.c:709:22: note: each undeclared identifier is reported only once for each function it appears in /home/ubuntu/libreswan/programs/pluto/kernel_netlink.c: In function ‘netlink_add_sa’: /home/ubuntu/libreswan/programs/pluto/kernel_netlink.c:1360:4: error: ‘IPPROTO_ICMPV6’ undeclared (first use in this function) IPPROTO_ICMPV6 == sa->transport_proto) { ^ /home/ubuntu/libreswan/programs/pluto/kernel_netlink.c: In function ‘netlink_bypass_policy’: /home/ubuntu/libreswan/programs/pluto/kernel_netlink.c:2766:15: error: ‘IPPROTO_ICMPV6’ undeclared (first use in this function) if (proto == IPPROTO_ICMPV6) { ^ /home/ubuntu/libreswan/programs/pluto/kernel_netlink.c: In function ‘netlink_v6holes’: /home/ubuntu/libreswan/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[5]: *** [kernel_netlink.o] Error 1 ../../mk/targets.mk:90: recipe for target 'all' failed make[4]: *** [all] Error 2 make[4]: Leaving directory '/home/ubuntu/libreswan/programs/pluto' ../mk/targets.mk:90: recipe for target 'recursive-all' failed make[3]: *** [recursive-all] Error 2 make[3]: Leaving directory '/home/ubuntu/libreswan/programs' mk/targets.mk:90: recipe for target 'recursive-all' failed make[2]: *** [recursive-all] Error 2 make[2]: Leaving directory '/home/ubuntu/libreswan' debian/rules:23: recipe for target 'override_dh_auto_build' failed make[1]: *** [override_dh_auto_build] Error 2 make[1]: Leaving directory '/home/ubuntu/libreswan' debian/rules:6: recipe for target 'build' failed make: *** [build] Error 2 dpkg-buildpackage: error: debian/rules build 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 Please advice Thanks! -- bentzy
_______________________________________________ Swan mailing list [email protected] https://lists.libreswan.org/mailman/listinfo/swan
