<div dir="ltr"><div>Yep, I can remove that line without obvious issue, but the build still has issues:<br><br></div>Next attempt at `make programs` got<br><div><br>/usr/local/src/libreswan-3.8/lib/libswan/udpfromto.c:75:2: error: &quot;Must have either IP_PKTINFO or IP_RECVDSTADDR&quot;<br><br></div><div>So I added the following to ports/darwin/include/sysdep.h, as OSX supports IP_RECVDSTADDR (<a href="https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man4/ip.4.html">https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man4/ip.4.html</a>)<br><br>/* udpfromto socket option for BSD */<br>#define HAVE_UDPFROMTO 1<br>#define HAVE_IP_RECVDSTADDR 1<br></div><div><br></div><div>The next error after that proved to be<br><br>/usr/local/src/libreswan-3.8/lib/libbsdpfkey/pfkey.c:38:10: fatal error: &#39;netkey/key_var.h&#39; file not found<br></div><div><br></div><div>The racoon macport had a similar issue (<a href="http://article.gmane.org/gmane.os.opendarwin.darwinports/6225">http://article.gmane.org/gmane.os.opendarwin.darwinports/6225</a>) and I solved it the same way they did (<a href="https://trac.macports.org/ticket/2173">https://trac.macports.org/ticket/2173</a>), by creating an include/netkey directory and putting netkey/key_var.h and netkey/key_debug.h (from <a href="http://www.opensource.apple.com/source/xnu/xnu-1456.1.26/bsd/netkey/">http://www.opensource.apple.com/source/xnu/xnu-1456.1.26/bsd/netkey/</a>) in there.<br><br></div><div>The next error was <br><br>/usr/local/src/libreswan-3.8/programs/pluto/plutomain.c:100:11: fatal error: &#39;cap-ng.h&#39; file not found<br><br></div><div>And a quick google doesn&#39;t seem sufficient to solve that. I don&#39;t think OSX supports capng_change_id, and I&#39;m not sure what the local analogue would be.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 24, 2014 at 5:09 PM, Paul Wouters <span dir="ltr">&lt;<a href="mailto:paul@nohats.ca" target="_blank">paul@nohats.ca</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, 24 Oct 2014, Noah Easterly wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Has anyone managed to build on OSX 10.9 Mavericks?<br>
</blockquote>
<br></span>
We used to build on OSX but I don&#39;t think we recently tried.<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I&#39;ve tried building from source (after using brew to install nspr, nss, pkg-config, and unbound), but I&#39;ve run into<br>
an issue because tcpd.h can&#39;t be found.<br>
<br>
In file included from /usr/local/src/libreswan-3.8/<u></u>linux/net/ipsec/addrtoa.c:16:<br>
/usr/local/src/libreswan-3.8/<u></u>linux/include/libreswan.h:117:<u></u>10: fatal error: &#39;tcpd.h&#39; file not found<br>
#include &lt;tcpd.h&gt;<br>
</blockquote>
<br></span>
That&#39;s from tcp_wrappers. Can you try just deleting the line?<br>
<br>
I just did on linux and both userland and kernel module build fine. So I<br>
think it is not actually needed. Looking back at the commit it came in<br>
on, 7836dfce, it looks like it was added for the OSX case :)<span class="HOEnZb"><font color="#888888"><br>
<br>
Paul<br>
</font></span></blockquote></div><br></div>