<p><a href="https://github.com/rcurtin" class="user-mention">@rcurtin</a> No problem at all. It may be ugly but here is one way...</p>

<pre><code>diff --git a/src/mlpack/core/util/backtrace.cpp b/src/mlpack/core/util/backtrace.cpp
index 494242c..ed5d469 100644
--- a/src/mlpack/core/util/backtrace.cpp
+++ b/src/mlpack/core/util/backtrace.cpp
@@ -19,7 +19,19 @@
   #include &lt;signal.h&gt;
   #include &lt;unistd.h&gt;
   #include &lt;cxxabi.h&gt;
-  #include &lt;bfd.h&gt;
+  #ifndef PACKAGE
+    #define PACKAGE
+    #ifndef PACKAGE_VERSION
+      #define PACKAGE_VERSION
+      #include &lt;bfd.h&gt;
+      #undef PACKAGE_VERSION
+    #else
+      #include &lt;bfd.h&gt;
+    #endif
+    #undef PACKAGE
+  #else
+    #include &lt;bfd.h&gt;
+  #endif
   #include &lt;dlfcn.h&gt;
 #endif
</code></pre>

<p>If you need bfd.h anywhere else you'd want to have a local bfd.h that wraps it, but it successfully compiled for me so I'm guessing for now it's only needed there.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>You are receiving this because you are subscribed to this thread.<br>Reply to this email directly or view it on GitHub:<br><a href="https://github.com/mlpack/mlpack/issues/574#issuecomment-196892581">https://github.com/mlpack/mlpack/issues/574#issuecomment-196892581</a><img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFBcYZrWepVGHv8jYCbWG6Ej-kQmkks5pttYxgaJpZM4HxIQb.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/574#issuecomment-196892581"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>