gpsd-dev
[Top][All Lists]
Advanced

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

Re: [gpsd-dev] alloca


From: Hal Murray
Subject: Re: [gpsd-dev] alloca
Date: Tue, 16 Aug 2016 16:31:09 -0700

> Otherwise, how are the errors going on your end?

Lots of warnings.  Errors on FreeBSD.  Maybe others.  It's still building.

FreeBSD:
./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:60:
./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:274: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:274:11: note: please include the header <string.h> or explicitly 
provide
a declaration for 'strlcpy'
gpsd.c:372: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'
...



Debian (not newest), and CentOS:
gpsd.c:2000:2: warning: implicit declaration of function 'daemon' 
[-Wimplicit-function-declaration]
gpsd.c:2116:2: warning: implicit declaration of function 'setgroups' 
[-Wimplicit-function-declaration]


NetBSD:

gpsd.c:274:5: warning: implicit declaration of function 'strlcpy'
gpsd.c:1086:6: warning: implicit declaration of function 'strlcat'
gpsd.c:2000:2: warning: implicit declaration of function 'daemon'
gpsd.c:2116:2: warning: implicit declaration of function 'setgroups'
gpsd_json.c:141:5: warning: implicit declaration of function 'strlcpy'
gpsd_json.c:225:5: warning: implicit declaration of function 'strlcat'
libgpsd_core.c:178:2: warning: implicit declaration of function 'strlcpy'
libgpsd_core.c:179:2: warning: implicit declaration of function 'strlcat'
libgpsd_core.c:234:2: warning: implicit declaration of function 'alloca'
libgpsd_core.c:234:14: warning: incompatible implicit declaration of built-in 
function 'alloca'
timespec_str.c:52:6: warning: implicit declaration of function 'llabs'
timespec_str.c:52:17: warning: incompatible implicit declaration of built-in 
function 'llabs'
driver_ais.c:1017:7: warning: implicit declaration of function 'strlcpy'
gpsctl.c:104:2: warning: implicit declaration of function 'strlcat'
gpsctl.c:166:5: warning: implicit declaration of function 'strlcpy'

FreeBSD:
./strfuncs.h:28:12: warning: implicitly declaring library function 
'vsnprintf' with type 'int (char *, unsigned int, const char *, 
__builtin_va_list)'
gpsd.c:274:11: warning: implicitly declaring library function 'strlcpy' with 
type 'unsigned int (char *, const char *, unsigned int)'
gpsd.c:1086:12: warning: implicitly declaring library function 'strlcat' with 
type 'unsigned int (char *, const char *, unsigned int)'
gpsd.c:1136:9: warning: implicitly declaring library function 'snprintf' with 
type 'int (char *, unsigned int, const char *, ...)'
gpsd.c:2000:6: warning: implicit declaration of function 'daemon' is invalid 
in C99 [-Wimplicit-function-declaration]
gpsd.c:2116:6: warning: implicit declaration of function 'setgroups' is 
invalid in C99 [-Wimplicit-function-declaration]


-- 
These are my opinions.  I hate spam.






reply via email to

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