<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font face="DejaVu Serif">hi,</font></p>
<p><font face="DejaVu Serif">check:
<a class="moz-txt-link-freetext" href="https://libreswan.org/wiki/3.21_on_Debian_Wheezy">https://libreswan.org/wiki/3.21_on_Debian_Wheezy</a></font></p>
<p><font face="DejaVu Serif">For me it work by doing:</font></p>
<pre>echo USE_GLIBC_KERN_FLIP_HEADERS=true >> Makefile.inc.local</pre>
<br>
<br>
<div class="moz-cite-prefix">On 07/02/2018 09:10 AM, Bentzy Sagiv
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAFc=Z_0Rp9fUTN1W9w-73h+d=-uDWxHN89Wy5aNP5Kk8UuQzcw@mail.gmail.com">
<div dir="ltr">Hi,
<div><br>
</div>
<div>I ran in a pristine xenial instance:</div>
<div><br>
</div>
<blockquote style="margin:0px 0px 0px
40px;border:none;padding:0px">
<div><span style="font-family:monospace"><span
style="color:rgb(0,0,0);background-color:rgb(255,255,255)">sudo
apt-get update</span></span></div>
<div><span style="font-family:monospace"><font color="#000000"><br>
</font></span></div>
<div><span style="font-family:monospace"><span
style="color:rgb(0,0,0);background-color:rgb(255,255,255)">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</span></span></div>
<div><span style="font-family:monospace">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-</span></div>
<div><span style="font-family:monospace">ng-dev libsystemd-dev
dh-systemd libaudit-dev libldns-dev libselinux1-dev</span></div>
<div><br>
</div>
<div><span style="font-family:monospace"><span
style="color:rgb(0,0,0);background-color:rgb(255,255,255)">git
clone <a href="https://github.com/libreswan/libreswan"
moz-do-not-send="true">https://github.com/libreswan/libreswan</a></span></span></div>
<div><span style="font-family:monospace"><br>
</span></div>
<div><span style="font-family:monospace"><span
style="color:rgb(0,0,0);background-color:rgb(255,255,255)">export
VERSION=3.25
</span></span></div>
<div><span style="font-family:monospace">sed -i
"s/@IPSECBASEVERSION@/$VERSION/g"
./packaging/debian/changelog</span></div>
<div><span style="font-family:monospace"><br>
</span></div>
<div><span style="font-family:monospace"><span><span
style="color:rgb(0,0,0);background-color:rgb(255,255,255)">make
deb</span></span></span></div>
</blockquote>
<div><span style="font-family:monospace"><br>
<br>
Got stuck with:</span></div>
<div><span style="font-family:monospace"><br>
</span></div>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div>
<div><font face="monospace">-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 \</font></div>
</div>
<div>
<div><font face="monospace"> -MF
../../OBJ.linux.x86_64/programs/pluto/kernel_netlink.d \</font></div>
</div>
<div>
<div><font face="monospace"> -MP -MMD -MT
kernel_netlink.o \</font></div>
</div>
<div>
<div><font face="monospace"> -o
../../OBJ.linux.x86_64/programs/pluto/kernel_netlink.o \</font></div>
</div>
<div>
<div><font face="monospace"> -c
/home/ubuntu/libreswan/programs/pluto/kernel_netlink.c</font></div>
</div>
<div>
<div><font face="monospace">In file included from
/home/ubuntu/libreswan/programs/pluto/linux-copy/linux/xfrm.h:5:0,</font></div>
</div>
<div>
<div><font face="monospace"> from
/home/ubuntu/libreswan/programs/pluto/kernel_netlink.c:56:</font></div>
</div>
<div>
<div><font face="monospace">/usr/include/netinet/in.h:101:5:
error: expected identifier before numeric constant</font></div>
</div>
<div>
<div><font face="monospace"> IPPROTO_HOPOPTS = 0, /*
IPv6 Hop-by-Hop options. */</font></div>
</div>
<div>
<div><font face="monospace"> ^</font></div>
</div>
<div>
<div><font face="monospace">....</font></div>
</div>
<div>
<div><font face="monospace"><br>
</font></div>
</div>
<div>
<div><font face="monospace">/home/ubuntu/libreswan/programs/pluto/kernel_netlink.c:709:22:
error: ‘IPPROTO_ICMPV6’ undeclared (first use in this
function)</font></div>
</div>
<div>
<div><font face="monospace"> transport_proto ==
IPPROTO_ICMPV6) {</font></div>
</div>
<div>
<div><font face="monospace"> ^</font></div>
</div>
<div>
<div><font face="monospace">/home/ubuntu/libreswan/programs/pluto/kernel_netlink.c:709:22:
note: each undeclared identifier is reported only once
for each function it appears in</font></div>
</div>
<div>
<div><font face="monospace">/home/ubuntu/libreswan/programs/pluto/kernel_netlink.c:
In function ‘netlink_add_sa’:</font></div>
</div>
<div>
<div><font face="monospace">/home/ubuntu/libreswan/programs/pluto/kernel_netlink.c:1360:4:
error: ‘IPPROTO_ICMPV6’ undeclared (first use in this
function)</font></div>
</div>
<div>
<div><font face="monospace"> IPPROTO_ICMPV6 ==
sa->transport_proto) {</font></div>
</div>
<div>
<div><font face="monospace"> ^</font></div>
</div>
<div>
<div><font face="monospace">/home/ubuntu/libreswan/programs/pluto/kernel_netlink.c:
In function ‘netlink_bypass_policy’:</font></div>
</div>
<div>
<div><font face="monospace">/home/ubuntu/libreswan/programs/pluto/kernel_netlink.c:2766:15:
error: ‘IPPROTO_ICMPV6’ undeclared (first use in this
function)</font></div>
</div>
<div>
<div><font face="monospace"> if (proto == IPPROTO_ICMPV6) {</font></div>
</div>
<div>
<div><font face="monospace"> ^</font></div>
</div>
<div>
<div><font face="monospace">/home/ubuntu/libreswan/programs/pluto/kernel_netlink.c:
In function ‘netlink_v6holes’:</font></div>
</div>
<div>
<div><font face="monospace">/home/ubuntu/libreswan/programs/pluto/kernel_netlink.c:2837:41:
error: ‘IPPROTO_ICMPV6’ undeclared (first use in this
function)</font></div>
</div>
<div>
<div><font face="monospace"> ret =
netlink_bypass_policy(AF_INET6, IPPROTO_ICMPV6,</font></div>
</div>
<div>
<div><font face="monospace">
^</font></div>
</div>
<div>
<div><font face="monospace">../../mk/<a
href="http://depend.mk:34" moz-do-not-send="true">depend.mk:34</a>:
recipe for target 'kernel_netlink.o' failed</font></div>
</div>
<div>
<div><font face="monospace">make[5]: *** [kernel_netlink.o]
Error 1</font></div>
</div>
<div>
<div><font face="monospace">../../mk/<a
href="http://targets.mk:90" moz-do-not-send="true">targets.mk:90</a>:
recipe for target 'all' failed</font></div>
</div>
<div>
<div><font face="monospace">make[4]: *** [all] Error 2</font></div>
</div>
<div>
<div><font face="monospace">make[4]: Leaving directory
'/home/ubuntu/libreswan/programs/pluto'</font></div>
</div>
<div>
<div><font face="monospace">../mk/<a
href="http://targets.mk:90" moz-do-not-send="true">targets.mk:90</a>:
recipe for target 'recursive-all' failed</font></div>
</div>
<div>
<div><font face="monospace">make[3]: *** [recursive-all]
Error 2</font></div>
</div>
<div>
<div><font face="monospace">make[3]: Leaving directory
'/home/ubuntu/libreswan/programs'</font></div>
</div>
<div>
<div><font face="monospace">mk/<a
href="http://targets.mk:90" moz-do-not-send="true">targets.mk:90</a>:
recipe for target 'recursive-all' failed</font></div>
</div>
<div>
<div><font face="monospace">make[2]: *** [recursive-all]
Error 2</font></div>
</div>
<div>
<div><font face="monospace">make[2]: Leaving directory
'/home/ubuntu/libreswan'</font></div>
</div>
<div>
<div><font face="monospace">debian/rules:23: recipe for
target 'override_dh_auto_build' failed</font></div>
</div>
<div>
<div><font face="monospace">make[1]: ***
[override_dh_auto_build] Error 2</font></div>
</div>
<div>
<div><font face="monospace">make[1]: Leaving directory
'/home/ubuntu/libreswan'</font></div>
</div>
<div>
<div><font face="monospace">debian/rules:6: recipe for
target 'build' failed</font></div>
</div>
<div>
<div><font face="monospace">make: *** [build] Error 2</font></div>
</div>
<div>
<div><font face="monospace">dpkg-buildpackage: error:
debian/rules build gave error exit status 2</font></div>
</div>
<div>
<div><font face="monospace">debuild: fatal error at line
1376:</font></div>
</div>
<div>
<div><font face="monospace">dpkg-buildpackage -rfakeroot -D
-us -uc -i -b failed</font></div>
</div>
<div>
<div><font face="monospace">Makefile:608: recipe for target
'deb' failed</font></div>
</div>
<div>
<div><font face="monospace">make: *** [deb] Error 29</font></div>
</div>
</blockquote>
<div><br>
</div>
<div><br clear="all">
<div>Please advice</div>
<div>Thanks!</div>
<div><br>
</div>
-- bentzy
<div class="gmail_signature">
<div dir="ltr"> <br>
</div>
</div>
</div>
</div>
<!--'"--><br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Swan mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Swan@lists.libreswan.org">Swan@lists.libreswan.org</a>
<a class="moz-txt-link-freetext" href="https://lists.libreswan.org/mailman/listinfo/swan">https://lists.libreswan.org/mailman/listinfo/swan</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Saludos / Regards / Cumprimentos
Anónio Silva</pre>
</body>
</html>