diff options
author | Kai Kang <kai.kang@windriver.com> | 2013-08-13 17:57:49 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-16 11:18:07 +0100 |
commit | ecfe97741fc93dd856e424492d5ade4902671c7f (patch) | |
tree | 8c65747ff8532fe2a4e504a2ae8e8fad0344b07d /meta/recipes-connectivity/telepathy | |
parent | c46300e08cb483ae2acd6219edc79a614820fb6f (diff) | |
download | poky-ecfe97741fc93dd856e424492d5ade4902671c7f.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.
(From OE-Core master rev: 7de61ecc3efc43c625dde9a66f5c05e980a82e34)
(From OE-Core rev: 0e60a468c1a81642d4319c0831dafd2f6fa43d86)
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/telepathy')
0 files changed, 0 insertions, 0 deletions