<p>Part You pointed in code is done.</p>

<p>Second thing:</p>

<blockquote>
<p>I think that this has been tested on OS X and is known to not work, so maybe we disable HAS_BFD_DL in the CMake configuration if we are on OS X? Either way we should be sure that compilation works out-of-the-box on OS X.</p>
</blockquote>

<p>Disabling <code>HAS_BFD_DL</code> is temporary but good idea at the moment. Tomorrow I should take care about this.<br><br>
But in near future it has to be done properly. <a href="https://github.com/zoq" class="user-mention">@zoq</a> did some research about compiling <code>mlpack::backtrace</code> in OS X. There is also problem with dependencies in binutils.</p>

<blockquote>
<p>[Friday, December 11, 2015] [09:15:03 PM]    Okay, it turns out that if you install binutils using homebrew it doesn't come with libiberty because of '<a href="https://github.com/Homebrew/homebrew/pull/35881" class="issue-link js-issue-link" data-url="https://github.com/Homebrew/homebrew/issues/35881" data-id="54383476" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">Homebrew/homebrew#35881</a>'.<br>
[Friday, December 11, 2015] [09:15:17 PM]     Unfortunately there is no brew formula for libiberty. So you need to install it manually. Afterwards, you can link against '-liberty'.<br>
[Friday, December 11, 2015] [09:15:30 PM]     Unfortunately there is no brew formula for libiberty. So you need to install it manually. Afterwards, you can link against '-liberty'. But now it turns out you also need to link against libintl which comes with the gettext package. Turns out gettext ships with OS X (default). So my gettext package conflicts with the default version.<br>
[Friday, December 11, 2015] [09:15:44 PM]     No problem adjust the path and we are fine. At the end we can link against the lib '-lintl'.<br>
[Friday, December 11, 2015] [09:15:52 PM]    Now the source code build fine, but prints an error message 'Failed to open executable! : No such file or directory'. On OS X there is no '/proc/self/exe', any ideas?</p>
</blockquote>

<p>So my next step is to prevent building <code>mlpack::backtrace</code> in OS X and FreeBSD. This should help for a while. Later on I will just work on extending this feature for other platforms.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/pull/535#issuecomment-191963007">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFBMLQ7ZoZdQFWLDUMKsnJcCRmr02ks5pp01wgaJpZM4Hm7uJ.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/mlpack/mlpack/pull/535#issuecomment-191963007"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>