Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 431002

Summary: sys-kernel/ksymoops-2.4.11-r1 with sys-devel/binutils-2.22.90 - In file included from ksymoops.h:9:0, from io.c:11: /usr/include/bfd.h:37:2: error: #error config.h must be included before this header
Product: Gentoo Linux Reporter: Martin von Gagern <Martin.vGagern>
Component: [OLD] Core systemAssignee: Gentoo Kernel Miscellaneous <kernel-misc>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: http://sourceware.org/bugzilla/show_bug.cgi?id=14072
http://sourceware.org/bugzilla/show_bug.cgi?id=14243
Whiteboard:
Package list:
Runtime testing required: ---

Description Martin von Gagern 2012-08-11 20:32:07 UTC
sys-kernel/ksymoops-2.4.11-r1 fails to compile against sys-devel/binutils-2.22.90, stating error messages like the following:

In file included from ksymoops.h:9:0,
                 from io.c:11:
/usr/include/bfd.h:37:2: error: #error config.h must be included before this header

The #error line was introduced in response to
http://sourceware.org/bugzilla/show_bug.cgi?id=14072
to deal with binutils-internal inclusion policy. Effects on other programs, very much like the problem described above, were also reported at
http://sourceware.org/bugzilla/show_bug.cgi?id=14243

That report was closed WONTFIX, with the indication that projects including that bfd.h should generate and include an autotooled config.h, so I guess that's what ksymoops should do.
Comment 1 Ian Abbott 2012-08-20 12:24:32 UTC
Coverting this old, unmaintained project to use autotools is probably overkill. A simple workaround is to define a macro called PACKAGE in ksymoops.h before including <bfd.h>.
Comment 2 Ian Abbott 2012-08-20 12:40:19 UTC
I attached a patch to bug 428728 since this is a duplicate of that one.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-08-25 03:52:26 UTC

*** This bug has been marked as a duplicate of bug 428728 ***