On Fri, Nov 14, 2014 at 03:11:16PM +0100, Uros Bizjak wrote: > The missing definition in system's /usr/include/linux/types.h is protected > with: > > typedef __u16 __bitwise __le16; > typedef __u16 __bitwise __be16; > typedef __u32 __bitwise __le32; > typedef __u32 __bitwise __be32; > #if defined(__GNUC__) && !defined(__STRICT_ANSI__) > typedef __u64 __bitwise __le64; > typedef __u64 __bitwise __be64; > #endif > > which doesn't work with -std=c++11, but works without problems with > -std=gnu++11. > > As proposed by Jakub at [1], -std=gnu++11 fixes the problem with old > kernels. Attached patch implements this proposal. > > 2014-11-14 Uros Bizjak <ubiz...@gmail.com> > > * sanitizer_common/Makefile.am (AM_CXXFLAGS): Use -std=gnu++11. > * asan/Makefile.am (AM_CXXFLAGS): Ditto. > * lsan/Makefile.am (AM_CXXFLAGS): Ditto. > * interception/Makefile.am (AM_CXXFLAGS): Ditto. > * tsan/Makefile.am (AM_CXXFLAGS): Ditto. > * libbacktrace/Makefile.am (AM_CXXFLAGS): Ditto. > * ubsan/Makefile.am (AM_CXXFLAGS): Ditto. > * sanitizer_common/Makefile.in: Regenerate. > * asan/Makefile.in: Ditto. > * lsan/Makefile.in: Ditto. > * interception/Makefile.in: Ditto. > * tsan/Makefile.in: Ditto. > * libbacktrace/Makefile.in: Ditto. > * ubsan/Makefile.in: Ditto.
Ok, thanks. Really no reason for pedantic checking. Jakub