diff options
author | Kai Kang <kai.kang@windriver.com> | 2013-08-13 17:57:49 +0800 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2013-08-13 10:13:20 -0700 |
commit | 7de61ecc3efc43c625dde9a66f5c05e980a82e34 (patch) | |
tree | b52f4daeb768e9ecc4fe32322fc87092a0d3d76b /meta/recipes-devtools/dpkg/dpkg_1.17.1.bb | |
parent | 1890783928dd1c73105fae32fb6c588afc287ff6 (diff) | |
download | openembedded-core-7de61ecc3efc43c625dde9a66f5c05e980a82e34.tar.gz |
dpkg: fix include header caused compile error
Build dpkg-native on Fedora 19, it fails with:
/usr/include/c++/4.8.1/cstdlib: In function ‘long long int std::abs(long long int)’:
/usr/include/c++/4.8.1/cstdlib:174:20: error: declaration of C function ‘long long int std::abs(long long int)’ conflicts with
abs(long long __x) { return __builtin_llabs (__x); }
^
/usr/include/c++/4.8.1/cstdlib:166:3: error: previous declaration ‘long int std::abs(long int)’ here
abs(long __i) { return __builtin_labs(__i); }
^
That because header cstdlib is included in a 'extern "C"' block that gcc
4.8 doesn't support. Fix it by move the header file out of the 'extern "C"'
block.
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-devtools/dpkg/dpkg_1.17.1.bb')
-rw-r--r-- | meta/recipes-devtools/dpkg/dpkg_1.17.1.bb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-devtools/dpkg/dpkg_1.17.1.bb b/meta/recipes-devtools/dpkg/dpkg_1.17.1.bb index 9ac2aa73c5..01027a037d 100644 --- a/meta/recipes-devtools/dpkg/dpkg_1.17.1.bb +++ b/meta/recipes-devtools/dpkg/dpkg_1.17.1.bb @@ -7,6 +7,7 @@ SRC_URI += "file://noman.patch \ file://preinst.patch \ file://fix-timestamps.patch \ file://remove-tar-no-timestamp.patch \ + file://fix-abs-redefine.patch \ " SRC_URI[md5sum] = "ece3ae87a099158c17bde95c0036c575" |