<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Freebsd on mwclabs</title><link>https://mwclabs.net/tags/freebsd/</link><description>Recent content in Freebsd 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/freebsd/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><item><title>Error "tar: Unrecognized archive format" on FreeBSD 8.2</title><link>https://mwclabs.net/posts/2013/05/error-tar-unrecognized-archive-format-on-freebsd-8.2/</link><pubDate>Mon, 20 May 2013 21:11:25 -0300</pubDate><guid>https://mwclabs.net/posts/2013/05/error-tar-unrecognized-archive-format-on-freebsd-8.2/</guid><description>&lt;p>After trying to install a certain Port on FreeBSD 8.2, the following error was being reported:&lt;/p>
&lt;pre tabindex="0">&lt;code>tar: Unrecognized archive format
&lt;/code>&lt;/pre>&lt;p>After a bit of digging, I found out the distributed version of bsdtar wasn&amp;rsquo;t recognizing &lt;code>xz&lt;/code> compression between &lt;code>-7&lt;/code> and &lt;code>-9&lt;/code>.&lt;/p>
&lt;p>As a workaround, while not upgrading to FreeBSD 8.3, you can do the following:&lt;/p>
&lt;ul>
&lt;li>Install the Port &lt;code>archivers/libarchive&lt;/code>; and&lt;/li>
&lt;li>Append the line below in the file &lt;code>/etc/make.conf&lt;/code>:&lt;/li>
&lt;/ul>
&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-make" data-lang="make">&lt;span style="display:flex;">&lt;span>TAR&lt;span style="color:#f92672">=&lt;/span>/usr/local/bin/bsdtar
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>That being done, you now will be able to successfully install the failing Port.&lt;/p>
&lt;p>&lt;a href="http://forums.freebsd.org/showthread.php?t=39404">More info.&lt;/a>&lt;/p>
&lt;p>&lt;strong>UPDATE&lt;/strong>&lt;/p>
&lt;p>If you are getting the error below while installing &lt;code>archivers/libarchive&lt;/code>:&lt;/p>
&lt;pre tabindex="0">&lt;code>error: spawn.h: No such file or directory
&lt;/code>&lt;/pre>&lt;p>You should try installing it with the following commands:&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>make clean
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>make ac_cv_header_spawn_h&lt;span style="color:#f92672">=&lt;/span>no
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>make install
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div></description></item><item><title>Reading and writing NTFS on FreeBSD</title><link>https://mwclabs.net/posts/2010/05/reading-and-writing-ntfs-on-freebsd/</link><pubDate>Tue, 25 May 2010 17:18:32 -0300</pubDate><guid>https://mwclabs.net/posts/2010/05/reading-and-writing-ntfs-on-freebsd/</guid><description>&lt;p>Mouting your NTFS device on write mode.&lt;/p>
&lt;p>This will mount your HD on read-only mode:&lt;/p>
&lt;p>&lt;code>mount -t nfs /dev/da0s1 /mnt&lt;/code>&lt;/p>
&lt;p>To be able to mount your NTFS and write, you will need &lt;code>NTFS-3G&lt;/code>.&lt;/p>
&lt;p>Install the port:&lt;/p>
&lt;p>&lt;code>cd /usr/ports/sysutils/fusefs-ntfs&lt;/code>&lt;/p>
&lt;p>&lt;code>make install&lt;/code>&lt;/p>
&lt;p>Load the kernel module:&lt;/p>
&lt;p>&lt;code>kldload /usr/local/modules/fuse.ko&lt;/code>&lt;/p>
&lt;p>Mount the desired device:&lt;/p>
&lt;p>&lt;code>mount -t ntfs-3g /dev/da0s1 /mnt&lt;/code>&lt;/p>
&lt;p>Alternative mounting command:&lt;/p>
&lt;p>&lt;code>ntfs-3g /dev/da0s1 /mnt&lt;/code>&lt;/p></description></item></channel></rss>