[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-dev] ✘XCode works again
From: |
Gary E. Miller |
Subject: |
Re: [gpsd-dev] ✘XCode works again |
Date: |
Tue, 16 Aug 2016 15:01:22 -0700 |
Yo Hal!
On Tue, 16 Aug 2016 14:43:47 -0700
Hal Murray <address@hidden> wrote:
> Still horribly messed up.
>
> timehint.c doesn't include time.h
For the comments, which function needs time.h?
> 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>
Ah, if I set __USE_MISC, then glibc stdlib.h includes alloca.h.
I just pushed the above, for NetBSD should be good.
> On FreeBSD:
Do you have any idea what defines these need to get included?
These are similar to the XCode errors, they needed the secret code
to unlock.
> 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) ? \
>
>
RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
address@hidden Tel:+1 541 382 8588
pgpR8oh0MCe7M.pgp
Description: OpenPGP digital signature