<p>I also hit this on an Arch box yesterday.  The libbfd maintainers are obstinate:</p>

<p><a href="https://sourceware.org/bugzilla/show_bug.cgi?id=14243">https://sourceware.org/bugzilla/show_bug.cgi?id=14243</a><br>
<a href="https://sourceware.org/bugzilla/show_bug.cgi?id=15920">https://sourceware.org/bugzilla/show_bug.cgi?id=15920</a></p>

<p>They claim that bfd is an "internal only" library and should not be used by other projects, and use this to justify their decision to force users to define <code>PACKAGE</code> and <code>PACKAGE_VERSION</code> themselves (thereby making the check meaningless to begin with!).</p>

<p>I don't like it, but probably the only solution here is to define those two variables in backtrace.hpp right before bfd.h is included, and then undefine them right after bfd.h is included.</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-196881642">https://github.com/mlpack/mlpack/issues/574#issuecomment-196881642</a><img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFOQZNJ7Cn8AByMsgCJFNq3Bilxm8ks5pttGlgaJpZM4HxIQb.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-196881642"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>