-
Notifications
You must be signed in to change notification settings - Fork 321
Closed
Labels
Description
OS: Alpine Linux 3.7
gcc-6.4.0-r5
linux-headers-4.4.6-r2
alsa-lib-dev-1.1.4.1-r2
...
direwolf-1.5-beta2
Same error on both x86_64 and armv6l (raspberry pi)
/tmp/direwolf-1.5-beta2 # make
gcc -O3 -pthread -Igeotranz -D_XOPEN_SOURCE=600 -D_DEFAULT_SOURCE=1 -Wall -D_BSD_SOURCE -ffast-math -DUSE_ALSA -c -o direwolf.o direwolf.c
/usr/include/string.h:83:45: error: expected declaration specifiers or '...' before string constant
size_t strlcat (char *, const char *, size_t);
^
In file included from direwolf.c:41:0:
direwolf.h:294:65: error: expected declaration specifiers or '...' before '__func__'
#define strlcat(dst,src,siz) strlcat_debug(dst,src,siz,__FILE__,__func__,__LINE__)
^
/usr/include/string.h:83:45: error: expected declaration specifiers or '...' before numeric constant
size_t strlcat (char *, const char *, size_t);
^
/usr/include/string.h:84:45: error: expected declaration specifiers or '...' before string constant
size_t strlcpy (char *, const char *, size_t);
^
direwolf.h:293:65: error: expected declaration specifiers or '...' before '__func__'
#define strlcpy(dst,src,siz) strlcpy_debug(dst,src,siz,__FILE__,__func__,__LINE__)
^
/usr/include/string.h:84:45: error: expected declaration specifiers or '...' before numeric constant
size_t strlcpy (char *, const char *, size_t);
^
In file included from /usr/include/fortify/stdio.h:23:0,
from direwolf.c:45:
/usr/include/fortify/string.h:156:1: error: 'strlcat' undeclared here (not in a function)
_FORTIFY_FN(strlcat) size_t strlcat(char *__d, const char *__s, size_t __n)
^
In file included from direwolf.c:50:0:
/usr/include/fortify/string.h: In function 'strlcat':
/usr/include/fortify/string.h:162:9: error: called object '__orig_strlcat' is not a function or function pointer
return __orig_strlcat(__d, __s, __n);
^~~~~~~~~~~~~~
In file included from /usr/include/fortify/stdio.h:23:0,
from direwolf.c:45:
/usr/include/fortify/string.h:156:1: note: declared here
_FORTIFY_FN(strlcat) size_t strlcat(char *__d, const char *__s, size_t __n)
^
/usr/include/fortify/string.h: At top level:
/usr/include/fortify/string.h:165:1: error: 'strlcpy' undeclared here (not in a function)
_FORTIFY_FN(strlcpy) size_t strlcpy(char *__d, const char *__s, size_t __n)
^
In file included from direwolf.c:50:0:
/usr/include/fortify/string.h: In function 'strlcpy':
/usr/include/fortify/string.h:171:9: error: called object '__orig_strlcpy' is not a function or function pointer
return __orig_strlcpy(__d, __s, __n);
^~~~~~~~~~~~~~
In file included from /usr/include/fortify/stdio.h:23:0,
from direwolf.c:45:
/usr/include/fortify/string.h:165:1: note: declared here
_FORTIFY_FN(strlcpy) size_t strlcpy(char *__d, const char *__s, size_t __n)
^
make: *** [<builtin>: direwolf.o] Error 1