<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 <signal.h>
#include <unistd.h>
#include <cxxabi.h>
- #include <bfd.h>
+ #ifndef PACKAGE
+ #define PACKAGE
+ #ifndef PACKAGE_VERSION
+ #define PACKAGE_VERSION
+ #include <bfd.h>
+ #undef PACKAGE_VERSION
+ #else
+ #include <bfd.h>
+ #endif
+ #undef PACKAGE
+ #else
+ #include <bfd.h>
+ #endif
#include <dlfcn.h>
#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;">—<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>