Open TheWanderer1983 opened 3 days ago
i guess you need gnu make.. try gmake ?
cc -O2 -Wall -Wextra -Wno-unused-result -D_GNU_SOURCE -DPREFIX=\"/usr\" -DCONFDIR=\"/etc\" -DGPLACES_VERSION=\"0.19.7\" -I/usr/local/include -DGPLACES_WITH_TITAN -DGPLACES_WITH_GOPHER -DGPLACES_WITH_GOPHERS -DGPLACES_WITH_SPARTAN -DGPLACES_WITH_FINGER -DGPLACES_WITH_GUPPY -DGPLACES_USE_LIBIDN2 -I/usr/local/include -DGPLACES_USE_LIBMAGIC -I/usr/local/include -c -o gplaces.o gplaces.c gplaces.c:674:142: error: expected ')' static pid_t start_handler(const char handler, const char filename, char command, size_t length, const Selector sel, const URL *url, int stdin) { ^ /usr/include/stdio.h:197:16: note: expanded from macro 'stdin'
^
gplaces.c:674:142: note: to match this '(' /usr/include/stdio.h:197:15: note: expanded from macro 'stdin'
^
gplaces.c:674:142: warning: omitting the parameter name in a function definition is a C2x extension [-Wc2x-extensions] static pid_t start_handler(const char handler, const char filename, char command, size_t length, const Selector sel, const URL *url, int stdin) { ^ /usr/include/stdio.h:197:16: note: expanded from macro 'stdin'
^
gplaces.c:679:12: warning: comparison between pointer and integer ('FILE ' (aka 'struct __sFILE ') and 'int') [-Wpointer-integer-compare] if (stdin != -1) {
gplaces.c:680:39: warning: format specifies type 'int' but the argument has type 'FILE *' (aka 'struct __sFILE *') [-Wformat]
sprintf(buffer, "/proc/self/fd/%d", stdin);
~~ ^~~~~
/usr/include/stdio.h:197:15: note: expanded from macro 'stdin'
#define stdin (&__sF[0])
^~~~~~~~~~
In file included from gplaces.c:1143:
./titan.c:39:182: warning: format specifies type 'size_t' (aka 'unsigned long') but the argument has type 'off_t' (aka 'long long') [-Wformat]
len = snprintf(buffer, sizeof(buffer), params->token == NULL || *params->token == '\0' ? "%s;mime=%s;size=%zu\r\n" : "%s;mime=%s;size=%zu;token=%s\r\n", params->url, params->mime, params->stbuf.st_size, params->token);
~~~ ^~~~~~~~~~~~~~~~~~~~~
%lld
./titan.c:39:182: warning: format specifies type 'size_t' (aka 'unsigned long') but the argument has type 'off_t' (aka 'long long') [-Wformat]
len = snprintf(buffer, sizeof(buffer), params->token == NULL || *params->token == '\0' ? "%s;mime=%s;size=%zu\r\n" : "%s;mime=%s;size=%zu;token=%s\r\n", params->url, params->mime, params->stbuf.st_size, params->token);
~~~ ^~~~~~~~~~~~~~~~~~~~~
%lld
gplaces.c:1547:36: error: initializer element is not a compile-time constant
static URL url = {.url = feed_sel.rawurl};
~~~~~~~~~^~~~~~
5 warnings and 2 errors generated.
gmake: *** [<builtin>: gplaces.o] Error 1
OpenBSD 7.6-current. make PREFIX=/usr CONFDIR=/etc Parse error in gplaces: Missing dependency operator (Makefile:7) Parse error: Need an operator in 'endif' (Makefile:9) Parse error: Missing dependency operator (Makefile:16) Parse error: Need an operator in 'endif' (Makefile:20) Parse error: Missing dependency operator (Makefile:22) Parse error: Need an operator in 'endif' (Makefile:26) Parse error: Missing dependency operator (Makefile:28) Parse error: Need an operator in 'endif' (Makefile:32) Parse error: Missing dependency operator (Makefile:34) Parse error: Need an operator in 'endif' (Makefile:38) Parse error: Missing dependency operator (Makefile:40) Parse error: Need an operator in 'endif' (Makefile:44) Parse error: Missing dependency operator (Makefile:46) Parse error: Need an operator in 'endif' (Makefile:50) Parse error: Missing dependency operator (Makefile:52) Parse error: Need an operator in 'else' (Makefile:55) Parse error: Need an operator in 'endif' (Makefile:61) Parse error: Missing dependency operator (Makefile:63) Parse error: Need an operator in 'endif' (Makefile:66) Parse error: Missing dependency operator (Makefile:67) *** Parse error: Need an operator in 'endif' (Makefile:69)