gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-dev] Pre-release heads-up


From: Greg Troxel
Subject: Re: [gpsd-dev] Pre-release heads-up
Date: Thu, 21 Aug 2014 14:05:12 -0400
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/23.4 (berkeley-unix)

"Eric S. Raymond" <address@hidden> writes:

> Greg Troxel <address@hidden>:
>> So I would say to rename the option to qt, and have libQgpsmm be a
>> (perhaps deprecated) synonym.
>
> Done.

thanks.

>> The actual problem with QT seems to be that gpsutils.c is built as a C++
>> program, and there are include files that aren't marked 'extern "C"'.
>> On my system it blows up in <sys/timepps.h>, which is a C header, not a
>> C++ header.  I wasn't able to quickly figure out how to put extern
>> wrappers in.
>
> Hm.  That should be fixed; that code is pure C.

From "scons" again after it failed.  Note gpsutils.c being compiled with
g++, and the complaint about -Wmissing-prototypes.

I at first thought this was about older vs newer gcc, but now I think
it's just about  compiling the NetBSD timepps.h C header as C++, or
something like that.


scons: Reading SConscript files ...
Checking if compiler accepts -Wextra ...(cached) yes
Checking if compiler accepts -Wall ...(cached) yes
Checking if compiler accepts -Wno-uninitialized ...(cached) yes
Checking if compiler accepts -Wno-missing-field-initializers ...(cached) yes
Checking if compiler accepts -Wcast-align ...(cached) yes
Checking if compiler accepts -Wmissing-declarations ...(cached) yes
Checking if compiler accepts -Wmissing-prototypes ...(cached) yes
Checking if compiler accepts -Wstrict-prototypes ...(cached) yes
Checking if compiler accepts -Wpointer-arith ...(cached) yes
Checking if compiler accepts -Wreturn-type ...(cached) yes
Checking whether the C++ compiler works... (cached) yes
Checking for ncurses... (cached) no
Checking for libusb-1.0... (cached) yes
Checking for C library librt... (cached) yes
Checking for bluez... (cached) no
Checking for C type in_port_t... (cached) yes
Checking whether SUN_LEN is declared... (cached) yes
Checking for C header file linux/can.h... (cached) no
You do not have kernel CANbus available.
Checking if compiler supplies __ORDER_BIG_ENDIAN__ ...(cached) no
Checking for C header file endian.h... (cached) no
Checking for C header file sys/endian.h... (cached) yes
Checking for C function daemon()... (cached) yes
Checking for C function strlcpy()... (cached) yes
Checking for C function strlcat()... (cached) yes
Checking for C function clock_gettime()... (cached) yes
Checking for C function getsid()... (cached) yes
Checking for C function pselect()... (cached) yes
Checking for C header file sys/timepps.h... (cached) yes
Checking if sys/ioctl.h supplies TIOCMIWAIT ...(cached) no
Checking that xsltproc can make man pages... (cached) yes
Checking for QtNetwork... (cached) yes
Altered configuration variables:
nmea2000 = False (default True): NMEA2000/CAN support
bluez = False (default True): BlueZ support for Bluetooth devices
debug = True (default False): include debug information in build
prefix = /usr/y0 (default /usr/local): installation directory prefix
scons: done reading SConscript files.
scons: Building targets ...
leapseconds_cache_rebuild(["leapseconds.cache"], ["leapsecond.py"])
timebase_h(["timebase.h"], ["leapseconds.cache"])
g++ -o gpsutils-qt.os -c -D_GNU_SOURCE -Wextra -Wall -Wno-uninitialized 
-Wno-missing-field-initializers -Wcast-align -Wmissing-declarations 
-Wpointer-arith -Wreturn-type -pthread -Wmissing-prototypes 
-Wmissing-declarations -g -O0 -fPIC -DUSE_QT -DQT_SHARED -I/usr/pkg/qt4/include 
-I/usr/pkg/qt4/include/QtNetwork -I/usr/pkg/qt4/include/QtCore gpsutils.c
cc1plus: warning: command line option "-Wmissing-prototypes" is valid for 
C/ObjC but not for C++
In file included from gpsd.h:363:0,
                 from gpsutils.c:22:
/usr/include/sys/timepps.h:180:17: error: 'time_pps_create' declared as an 
'inline' variable
/usr/include/sys/timepps.h:180:17: error: 'int time_pps_create' redeclared as 
different kind of symbol
/usr/include/sys/timepps.h:164:21: error: previous declaration of 'int 
time_pps_create(int, pps_handle_t*)'
/usr/include/sys/timepps.h:180:17: error: 'filedes' was not declared in this 
scope
/usr/include/sys/timepps.h:180:26: error: 'handle' was not declared in this 
scope
/usr/include/sys/timepps.h:183:1: error: expected unqualified-id before '{' 
token
/usr/include/sys/timepps.h:190:18: error: 'time_pps_destroy' declared as an 
'inline' variable
/usr/include/sys/timepps.h:190:18: error: 'int time_pps_destroy' redeclared as 
different kind of symbol
/usr/include/sys/timepps.h:165:21: error: previous declaration of 'int 
time_pps_destroy(pps_handle_t)'
/usr/include/sys/timepps.h:192:1: error: expected unqualified-id before '{' 
token
/usr/include/sys/timepps.h:198:20: error: 'time_pps_setparams' declared as an 
'inline' variable
/usr/include/sys/timepps.h:198:20: error: 'int time_pps_setparams' redeclared 
as different kind of symbol
/usr/include/sys/timepps.h:166:21: error: previous declaration of 'int 
time_pps_setparams(pps_handle_t, const pps_params_t*)'
/usr/include/sys/timepps.h:198:28: error: 'ppsparams' was not declared in this 
scope
/usr/include/sys/timepps.h:201:1: error: expected unqualified-id before '{' 
token
/usr/include/sys/timepps.h:207:20: error: 'time_pps_getparams' declared as an 
'inline' variable
/usr/include/sys/timepps.h:207:20: error: 'int time_pps_getparams' redeclared 
as different kind of symbol
/usr/include/sys/timepps.h:167:21: error: previous declaration of 'int 
time_pps_getparams(pps_handle_t, pps_params_t*)'
/usr/include/sys/timepps.h:209:16: error: conflicting declaration 
'pps_params_t* ppsparams'
/usr/include/sys/timepps.h:200:22: error: 'ppsparams' has a previous 
declaration as 'const pps_params_t* ppsparams'
/usr/include/sys/timepps.h:210:1: error: expected unqualified-id before '{' 
token
/usr/include/sys/timepps.h:216:17: error: 'time_pps_getcap' declared as an 
'inline' variable
/usr/include/sys/timepps.h:216:17: error: 'int time_pps_getcap' redeclared as 
different kind of symbol
/usr/include/sys/timepps.h:168:21: error: previous declaration of 'int 
time_pps_getcap(pps_handle_t, int*)'
/usr/include/sys/timepps.h:216:25: error: 'mode' was not declared in this scope
/usr/include/sys/timepps.h:219:1: error: expected unqualified-id before '{' 
token
/usr/include/sys/timepps.h:225:16: error: 'time_pps_fetch' declared as an 
'inline' variable
/usr/include/sys/timepps.h:225:16: error: 'int time_pps_fetch' redeclared as 
different kind of symbol
/usr/include/sys/timepps.h:169:21: error: previous declaration of 'int 
time_pps_fetch(pps_handle_t, int, pps_info_t*, const timespec*)'
/usr/include/sys/timepps.h:225:24: error: 'tsformat' was not declared in this 
scope
/usr/include/sys/timepps.h:225:34: error: 'ppsinfobuf' was not declared in this 
scope
/usr/include/sys/timepps.h:225:46: error: 'timeout' was not declared in this 
scope
/usr/include/sys/timepps.h:227:12: error: uninitialized const 'tsformat'
/usr/include/sys/timepps.h:230:1: error: expected unqualified-id before '{' 
token
/usr/include/sys/timepps.h:236:17: error: 'time_pps_kcbind' declared as an 
'inline' variable
/usr/include/sys/timepps.h:236:17: error: 'int time_pps_kcbind' redeclared as 
different kind of symbol
/usr/include/sys/timepps.h:176:21: error: previous declaration of 'int 
time_pps_kcbind(pps_handle_t, int, int, int)'
/usr/include/sys/timepps.h:236:25: error: 'kernel_consumer' was not declared in 
this scope
/usr/include/sys/timepps.h:236:42: error: 'edge' was not declared in this scope
/usr/include/sys/timepps.h:238:12: error: uninitialized const 'kernel_consumer'
/usr/include/sys/timepps.h:239:12: error: uninitialized const 'edge'
/usr/include/sys/timepps.h:240:12: error: redefinition of 'const int tsformat'
/usr/include/sys/timepps.h:227:12: error: 'const int tsformat' previously 
declared here
/usr/include/sys/timepps.h:241:1: error: expected unqualified-id before '{' 
token
In file included from /usr/include/g++/new:42:0,
                 from /usr/include/g++/bits/stl_construct.h:60,
                 from /usr/include/g++/bits/stl_tempbuf.h:61,
                 from /usr/include/g++/bits/stl_algo.h:63,
                 from /usr/include/g++/algorithm:63,
                 from /usr/pkg/qt4/include/QtCore/qglobal.h:68,
                 from /usr/pkg/qt4/include/QtCore/qchar.h:45,
                 from /usr/pkg/qt4/include/QtCore/qstring.h:45,
                 from /usr/pkg/qt4/include/QtCore/qdatetime.h:45,
                 from /usr/pkg/qt4/include/QtCore/QDateTime:1,
                 from gpsutils.c:26:
/usr/include/g++/exception:37:37: error: expected declaration before end of line
scons: *** [gpsutils-qt.os] Error 1
scons: building terminated because of errors.

Attachment: pgpqU08AcFhj8.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]