Summary: | sys-libs/libsmbios users -Werror during build (and will not compile against gcc-4.6.0) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Billy DeVincentis <billydv1> |
Component: | Current packages | Assignee: | Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | steeeeeveee |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 260867, 346809 | ||
Attachments: | build.log |
Description
Billy DeVincentis
2011-04-20 20:20:07 UTC
Created attachment 270719 [details]
build.log
A simple "sed -i -e "s:\-Werror[\t ]*::g" Makefile.am" src_configure() should work around this issue. Or simply patching that test for GCC 4.5.x to check for GCC 4.6.x: --- a/src/include/smbios_c/config/compiler/gcc.h 2010-06-11 17:31:01.000000000 +0200 +++ b/src/include/smbios_c/config/compiler/gcc.h 2011-05-28 10:28:16.706170622 +0200 @@ -24,7 +24,7 @@ # error "GCC versions < 2.90 not supported" #endif // -#if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 5)) +#if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 6)) # if defined(LIBSMBIOS_C_ASSERT_CONFIG) # error "Unknown compiler version - please run the configure tests and report the results" # else --- a/src/include/smbios/config/compiler/gcc.hpp 2009-03-24 08:21:54.000000000 +0100 +++ b/src/include/smbios/config/compiler/gcc.hpp 2011-05-28 10:28:32.076170630 +0200 @@ -113,7 +113,7 @@ # error "Compiler not configured - please reconfigure" #endif // -#if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 5)) +#if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 6)) # if defined(LIBSMBIOS_ASSERT_CONFIG) # error "Unknown compiler version - please run the configure tests and report the results" # else + 29 May 2011; Lars Wendler <polynomial-c@gentoo.org> libsmbios-2.2.26.ebuild, + +files/libsmbios-2.2.26-gcc46.patch: + Fixed building with >=gcc-4.6.0. Thanks to Billy DeVincentis for reporting + this issue in bug #364285 and to steveb for giving the right hints how to fix + this. + |