This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
bdf.h requires config.h
- From: Benson Muite <benson dot muite at ut dot ee>
- To: Binutils <binutils at sourceware dot org>
- Date: Wed, 28 Nov 2018 18:13:19 +0000
- Subject: bdf.h requires config.h
Hi,
Am using an application that utilizes binutils, and in particular calls
the bfd.h header file when compiling. Have built binutils-2.3.1 from
source. In this version of binutils, bfd.h seems to require a
configure.h header file. If I comment out lines 34,35 and 36 in bdf.h
which are:
#if !defined PACKAGE && !defined PACKAGE_VERSION
#error config.h must be included before this header
#endif
my target application compiles. What information do PACKAGE,
PACKAGE_VERSION and config.h provide and would there be any other
mechanisms to provide this information that might be more portable?
This issue seems to have been raised before:
https://sourceware.org/bugzilla/show_bug.cgi?id=15920
https://bugzilla.redhat.com/show_bug.cgi?id=845084
https://github.com/HPCToolkit/hpctoolkit-externals/blob/master/binutils/patches-27/patch-config
Regards,
Benson