[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-dev] ✘XCode works again
From: |
Hal Murray |
Subject: |
Re: [gpsd-dev] ✘XCode works again |
Date: |
Tue, 16 Aug 2016 14:43:47 -0700 |
Still horribly messed up.
timehint.c doesn't include time.h
That screws up horribly on NetBSD.
After fixing that, on NetBSD:
libgpsd_core.c:40:50: fatal error: alloca.h: No such file or directory
#include <alloca.h> /* for alloca(), not POSIX */
On NetBSD, it's in
#include <stdlib.h>
On FreeBSD:
In file included from gpsd.c:54:
./sockaddr.h:7:25: error: field has incomplete type 'struct sockaddr_in6'
struct sockaddr_in6 sa_in6;
^
./sockaddr.h:7:12: note: forward declaration of 'struct sockaddr_in6'
struct sockaddr_in6 sa_in6;
^
In file included from gpsd.c:57:
./strfuncs.h:28:12: warning: implicitly declaring library function
'vsnprintf' w
ith type 'int (char *, unsigned int, const char *, __builtin_va_list)'
(void) vsnprintf(str + strlen(str), alloc_size - strlen(str), format, ap);
^
./strfuncs.h:28:12: note: please include the header <stdio.h> or explicitly
prov
ide a declaration for 'vsnprintf'
gpsd.c:271:11: warning: implicitly declaring library function 'strlcpy' with
typ
e 'unsigned int (char *, const char *, unsigned int)'
(void)strlcpy(addr.sun_path, filename, sizeof(addr.sun_path));
^
gpsd.c:271:11: note: please include the header <string.h> or explicitly
provide
a declaration for 'strlcpy'
gpsd.c:369:40: error: use of undeclared identifier 'INADDR_LOOPBACK'
sat.sa_in.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
^
/usr/include/arpa/inet.h:170:26: note: expanded from macro 'htonl'
#define htonl(x) __htonl(x)
^
/usr/include/x86/endian.h:126:30: note: expanded from macro '__htonl'
#define __htonl(x) __bswap32(x)
^
/usr/include/x86/endian.h:77:24: note: expanded from macro '__bswap32'
(__builtin_constant_p(x) ? \
--
These are my opinions. I hate spam.