Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 382005 - sys-libs/libunwind-1.0: installed include/libunwind-x86_64.h includes nonexistent config.h
Summary: sys-libs/libunwind-1.0: installed include/libunwind-x86_64.h includes nonexis...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://lists.nongnu.org/archive/html/...
Whiteboard:
Keywords:
Depends on:
Blocks: 380975
  Show dependency tree
 
Reported: 2011-09-06 03:43 UTC by Maks Verver
Modified: 2011-09-18 05:49 UTC (History)
1 user (show)

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


Attachments
Remove #include <confing.h> from libunwind-x86_64.h (libunwind-1.0-remove-config.h.patch,300 bytes, patch)
2011-09-06 23:20 UTC, Maks Verver
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maks Verver 2011-09-06 03:43:01 UTC
The 1.0 ebuild installs libunwind.h which (on amd64) includes libunwind-x86_64.h which in turn includes a config.h file that doesn't exist.  This breaks the header altogether and makes the library completely unusable, leading to bugs like #380975 on amd64.

Reproducible: Always

Steps to Reproduce:
echo '#include <libunwind.h>' | cpp >/dev/null
Actual Results:  
In file included from /usr/include/libunwind.h:19:0,
                 from <stdin>:1:
/usr/include/libunwind-x86_64.h:35:20: fatal error: config.h: No such file or directory
compilation terminated.


Expected Results:  
No errors.

libunwind-0.99 works fine; the libunwind-x86_64.h file it install does not include config.h.
Comment 1 Maks Verver 2011-09-06 23:18:47 UTC
Actually it looks like the only reason config.h is included in that header file is to see if the Microsoft ABI is supported (by checking if CONFIG_MSABI_SUPPORT is defined), which isn't possible on Gentoo anyway.

The author is aware of the problem:

  http://lists.nongnu.org/archive/html/libunwind-devel/2011-09/msg00013.html

So there are two easy workarounds:

 1. mask libunwind-1.0 on amd64
 2. add a patch to remove the #include <config.h> line from the header file

Both are temporary solutions, but hopefully upstream provides a permanent fix in the next release.  I'll attach a patch for #2 which I've verified works around the problem.
Comment 2 Maks Verver 2011-09-06 23:20:15 UTC
Created attachment 285737 [details, diff]
Remove #include <confing.h> from libunwind-x86_64.h
Comment 3 SpanKY gentoo-dev 2011-09-18 05:49:13 UTC
should be all set now in the tree; thanks for the report!

Commit message: Version bump which includes a fix from upstream for
http://sources.gentoo.org/sys-libs/libunwind/files/libunwind-1.0.1-disable-setjmp.patch?rev=1.1
http://sources.gentoo.org/sys-libs/libunwind/libunwind-1.0.1.ebuild?rev=1.1