<p>The build on FreeBSD results with the error: <code>"undefined reference to 'backtrace_symbols'"</code>. We need to link against <code>-lexecinfo</code> at least on 10.0 and 10.1 to get it working.</p>
<p>We can fix the problem with:</p>
<pre><code>if(CMAKE_SYSTEM_NAME MATCHES "BSD")
find_library(execinfo execinfo "/usr/local/lib" "/usr/lib")
target_link_libraries(mlpack ${execinfo})
endif(CMAKE_SYSTEM_NAME MATCHES "BSD")
</code></pre>
<p>I'm not an CMake expert so maybe there is better solution or a better place to fix the issue.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/issues/423">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFFLjZfunev7ldi4JVjflmiYybRFtks5n3F9JgaJpZM4DyK4A.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/issues/423"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>