gpsd-dev
[Top][All Lists]
Advanced

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

Re: [gpsd-dev] The endianness check


From: Greg Troxel
Subject: Re: [gpsd-dev] The endianness check
Date: Fri, 01 Nov 2013 11:54:22 -0400
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/23.4 (berkeley-unix)

address@hidden (Eric S. Raymond) writes:

> I've reverted to the endianness check we were using befor Oct 26, with
> one key difference: the build environment now sets -I/usr/include/sys,
> so <endian.h> should pick up BSD-style sys/endian.h.
>
> This way of doing it should avoid cross-compilation breakage if the
> build host and the target machine have different endiannesses. 
>
> Greg, please test.

The -I/usr/include/sys is causing the wrong includes to be picked up,
resulting in a complete meltdown.

scons: Reading SConscript files ...
Checking if compiler accepts -Wextra ...(cached) no
Checking if compiler accepts -Wall ...(cached) no
Checking if compiler accepts -Wno-uninitialized ...(cached) no
Checking if compiler accepts -Wno-missing-field-initializers ...(cached) no
Checking if compiler accepts -Wcast-align ...(cached) no
Checking if compiler accepts -Wmissing-declarations ...(cached) no
Checking if compiler accepts -Wmissing-prototypes ...(cached) no
Checking if compiler accepts -Wstrict-prototypes ...(cached) no
Checking if compiler accepts -Wpointer-arith ...(cached) no
Checking if compiler accepts -Wreturn-type ...(cached) no
Checking for chrpath... (cached) yes
Checking whether the C++ compiler works(cached) no
Checking for ncurses... (cached) no
Checking for ncurses5-config... (cached) yes
Checking for libusb-1.0... (cached) yes
Checking for C library librt... (cached) no
Checking for C library libcap... (cached) no
Checking for bluez... (cached) no
Checking for C header file sys/timepps.h... (cached) no
You do not have kernel PPS available.
Checking for C header file linux/can.h... (cached) no
You do not have kernel CANbus available.
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 pselect()... (cached) yes
Checking if sys/ioctl.h supplies TIOCMIWAIT ...(cached) no
Forcing pps=no (TIOCMIWAIT not available)
Checking that xsltproc can make man pages... (cached) yes
Checking for QtNetwork... (cached) no
Altered configuration variables:
nmea2000 = False (default True): NMEA2000/CAN support
pps = False (default True): PPS time syncing support
bluez = False (default True): BlueZ support for Bluetooth devices
debug = True (default False): include debug information in build
prefix = /usr/pkg (default /usr/local): installation directory prefix
scons: done reading SConscript files.
scons: Building targets ...
gcc -o gpsutils.os -c -D_GNU_SOURCE -I/usr/include/sys -pthread 
-Wmissing-prototypes -Wmissing-declarations -g -O0 -fPIC gpsutils.c
In file included from gpsd.h:330:0,
                 from gpsutils.c:22:
gps.h:2052:40: warning: 'struct tm' declared inside parameter list
gps.h:2052:40: warning: its scope is only this definition or declaration, which 
is probably not what you want
In file included from gpsutils.c:22:0:
gpsd.h:822:16: error: field 'date' has incomplete type
gpsd.h:850:16: error: field 'date' has incomplete type
gpsutils.c: In function 'safe_atof':
gpsutils.c:214:2: error: 'errno' undeclared (first use in this function)
gpsutils.c:214:2: note: each undeclared identifier is reported only once for 
each function it appears in
gpsutils.c: At top level:
gpsutils.c:311:8: error: conflicting types for 'mkgmtime'
gps.h:2052:15: note: previous declaration of 'mkgmtime' was here
gpsutils.c: In function 'mkgmtime':
gpsutils.c:320:20: error: dereferencing pointer to incomplete type
gpsutils.c:320:33: error: dereferencing pointer to incomplete type
gpsutils.c:321:45: error: dereferencing pointer to incomplete type
gpsutils.c:326:4: error: dereferencing pointer to incomplete type
gpsutils.c:328:16: error: dereferencing pointer to incomplete type
gpsutils.c:330:16: error: dereferencing pointer to incomplete type
gpsutils.c:332:16: error: dereferencing pointer to incomplete type
gpsutils.c:334:16: error: dereferencing pointer to incomplete type
gpsutils.c: In function 'iso8601_to_unix':
gpsutils.c:345:15: error: storage size of 'tm' isn't known
gpsutils.c: In function 'unix_to_iso8601':
gpsutils.c:371:15: error: storage size of 'when' isn't known
gpsutils.c:381:11: warning: incompatible implicit declaration of built-in 
function 'strftime'
scons: *** [gpsutils.os] Error 1
scons: building terminated because of errors.

Attachment: pgpTvihtM6ST2.pgp
Description: PGP signature


reply via email to

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