> Are you including linux/vt.h yourself? If you get it via a glibc header then > it's a SUSE issue, yes. Can you specify the SUSE version you are looking at? > Even for 12.1 I see 'newev' here though SLE11 seems to have 'new'.
I get the error with SUSE Linux Enterprise Server 11 (x86_64) VERSION = 11 PATCHLEVEL = 1 Regards Ganesh -----Original Message----- From: gcc-ow...@gcc.gnu.org [mailto:gcc-ow...@gcc.gnu.org] On Behalf Of Richard Biener Sent: Wednesday, November 06, 2013 4:16 PM To: Jonathan Wakely Cc: Iyer, Balaji V; gcc@gcc.gnu.org; konstantin.s.serebry...@gmail.com Subject: Re: Bootstrap issues in libsanitizer On Tue, Nov 5, 2013 at 4:41 PM, Jonathan Wakely <jwakely....@gmail.com> wrote: > On 5 November 2013 15:38, Jonathan Wakely wrote: >> On 5 November 2013 15:32, Jonathan Wakely wrote: >>> On 5 November 2013 15:27, Iyer, Balaji V wrote: >>>> In file included from /usr/include/sys/vt.h:1:0, >>>> from >>>> ../../../../trunk-gcc/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:49: >>>> /usr/include/linux/vt.h:74:15: error: expected unqualified-id before ânewâ >>>> unsigned int new; /* New console (if changing) */ >>>> ^ >>> >>> 'new' is a keyword in C++, so your linux/vt.h header is not usable in C++ >>> files. >>> >>> This is not a problem in libsanitizer. Have you recently updated a >>> kernel-headers package on your machine? >> >> With kernel 3.11.6 I see that field is called newev, so it looks as >> though newer kernels fix the problem. > > http://lkml.indiana.edu/hypermail/linux/kernel/0911.2/01720.html > implies the "new" field never made it into an actual release, so it > might be a problem for SuSE kernels only. Are you including linux/vt.h yourself? If you get it via a glibc header then it's a SUSE issue, yes. Can you specify the SUSE version you are looking at? Even for 12.1 I see 'newev' here though SLE11 seems to have 'new'. Richard.