bdf.h requires config.h

Benson Muite benson.muite@ut.ee
Wed Nov 28 18:13:00 GMT 2018


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



More information about the Binutils mailing list