[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gpsd-dev] build problem probably because of reserved keyword "class"
From: |
Andreas Merz |
Subject: |
[gpsd-dev] build problem probably because of reserved keyword "class" |
Date: |
Sun, 6 Oct 2013 22:50:47 +0200 |
User-agent: |
SquirrelMail/1.4.23 [SVN] |
Hi,
unfortunately I can't build gpsd anymore. The problem seems to be the
introduction of
an integer variable in gps.h with the name "class". However I do not know, why
this obviously
does not seem to be a problem for others. I could not spot the root cause on my
system yet.
The problem was introduced with the following commit and jsongen.py.in
29490bea97ad271b842c235eefa99e8dd43ad854 (Implement handling of Inland AIS EMMA
warning.)
my compilation fails with the following message:
..
scons: Building targets ...
g++ -o libgpsmm.os -c -O2 -fPIC libgpsmm.cpp
In file included from libgpsmm.h:12:0,
from libgpsmm.cpp:11:
gps.h:1286:25: error: expected identifier before ';' token
gps.h:1286:25: error: multiple types in one declaration
gps.h:1286:25: error: declaration does not declare anything [-fpermissive]
scons: *** [libgpsmm.os] Error 1
scons: building terminated because of errors.
$ g++ --version
g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Does anybody else experience this problem? Is there already a fix?
Maybe we can avoid trouble with some tool chains and platforms if we change the
name of this variable?
kind regards
Andreas
-------------------
$ g++ -v
Es werden eingebaute Spezifikationen verwendet.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.6/lto-wrapper
Ziel: i686-linux-gnu
Konfiguriert mit: ../src/configure -v --with-pkgversion='Ubuntu/Linaro
4.6.3-1ubuntu5'
--with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.6 --enable-shared --enable-linker-build-id
--with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls
--with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug
--enable-libstdcxx-time=yes --enable-gnu-unique-object
--enable-plugin --enable-objc-gc --enable-targets=all --disable-werror
--with-arch-32=i686 --with-tune=generic
--enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu
--target=i686-linux-gnu
Thread-Modell: posix
gcc-Version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
- [gpsd-dev] build problem probably because of reserved keyword "class",
Andreas Merz <=