Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 431002 - 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
Summary: sys-kernel/ksymoops-2.4.11-r1 with sys-devel/binutils-2.22.90 - In file inclu...
Status: RESOLVED DUPLICATE of bug 428728
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Miscellaneous
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-11 20:32 UTC by Martin von Gagern
Modified: 2012-08-25 03:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***