| Summary: | sys-libs/libsmbios fails to build tests | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Markus Meier <maekke> |
| Component: | Current packages | Assignee: | Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
sys-libs:libsmbios-2.2.28:20110905-191711.log
patch to expose set_basedir() in libsmbios_c so that tests can link to it |
||
|
Description
Markus Meier
2011-09-05 20:12:15 UTC
Created attachment 315931 [details, diff]
patch to expose set_basedir() in libsmbios_c so that tests can link to it
This fix works for me.
The issue seems to relate to -fvisibility=hidden being set when building libsmbios_c , which if I've read the gcc manpage properly means that anything not attributed with "default" aka public visibility will be invisible at link time. Since the tests are linking to libsmbios_c like any other lib, this function needs to be exposed with "default" availability.
Th above patch does that using the same #define as is used with the rest of the code.
+ 21 Jun 2012; Lars Wendler <polynomial-c@gentoo.org> libsmbios-2.2.28.ebuild, + +files/libsmbios-2.2.28-cppunit-tests.patch: + Fixed test runs. Thanks to Markus Meier for reporting this in bug #381975 and + big kudos to Ian Stakenvicius for looking into this problem and providing a + working patch. + |