<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Openvpn on mwclabs</title><link>https://mwclabs.net/tags/openvpn/</link><description>Recent content in Openvpn on mwclabs</description><generator>Hugo</generator><language>en</language><copyright>&lt;a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank" rel="noopener">CC BY-NC 4.0&lt;/a></copyright><lastBuildDate>Mon, 04 Nov 2013 18:21:02 -0300</lastBuildDate><atom:link href="https://mwclabs.net/tags/openvpn/index.xml" rel="self" type="application/rss+xml"/><item><title>Error installing Port security/openvpn-auth-ldap on FreeBSD 9</title><link>https://mwclabs.net/posts/2013/11/error-installing-port-security/openvpn-auth-ldap-on-freebsd-9/</link><pubDate>Mon, 04 Nov 2013 18:21:02 -0300</pubDate><guid>https://mwclabs.net/posts/2013/11/error-installing-port-security/openvpn-auth-ldap-on-freebsd-9/</guid><description>&lt;p>On FreeBSD 9, the Port &lt;code>security/openvpn-auth-ldap&lt;/code> is flagged as &lt;strong>BROKEN&lt;/strong> because of the following error in the &lt;strong>configure&lt;/strong> build step.&lt;/p>
&lt;pre tabindex="0">&lt;code>configure: WARNING: Check library not found. Unit tests will not be built or run.
checking for openvpn-plugin.h... no
configure: error: Could not locate a working openvpn source tree.
See `config.log&amp;#39; for more details.
===&amp;gt; Script &amp;#34;configure&amp;#34; failed unexpectedly.
Please report the problem to snb@FreeBSD.org [maintainer] and attach the
&amp;#34;/usr/ports/security/openvpn-auth-ldap/work/auth-ldap-2.0.3/config.log&amp;#34;
including the output of the failure of your make command. Also, it might be
a good idea to provide an overview of all packages installed on your system
(e.g. a /usr/sbin/pkg_info -Ea).
*** Error code 1
&lt;/code>&lt;/pre>&lt;p>Looking at the &lt;code>config.log&lt;/code>, we have:&lt;/p>
&lt;pre tabindex="0">&lt;code>configure:5511: checking for openvpn-plugin.h
configure:5544: cc -o conftest -O2 -pipe -DLDAP_DEPRECATED -fno-strict-aliasing -I/usr/ports/security/openvpn/work/openvpn-2.3.0 -export-dynamic conftest.c &amp;gt;&amp;amp;5
conftest.c:15:34: error: openvpn-plugin.h: No such file or directory
&lt;/code>&lt;/pre>&lt;p>Other error that might happen:&lt;/p>
&lt;pre tabindex="0">&lt;code>checking how to run the Objective C preprocessor... /lib/cpp
configure: error: Objective C preprocessor &amp;#34;/lib/cpp&amp;#34; fails sanity check
&lt;/code>&lt;/pre>&lt;p>To fix this, a &lt;a href="https://mwclabs.net/pub/openvpn-auth-ldap.patch">patch&lt;/a> can be applied:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>cd /usr/ports/security/openvpn-auth-ldap
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>wget https://mwclabs.net/pub/openvpn-auth-ldap.patch
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>patch -p0 &amp;lt; openvpn-auth-ldap.patch
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>make &lt;span style="color:#f92672">&amp;amp;&amp;amp;&lt;/span> make install
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div></description></item></channel></rss>