Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building on OpenBSD error #9

Open
TheWanderer1983 opened this issue Nov 19, 2024 · 2 comments
Open

Building on OpenBSD error #9

TheWanderer1983 opened this issue Nov 19, 2024 · 2 comments

Comments

@TheWanderer1983
Copy link

TheWanderer1983 commented Nov 19, 2024

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)

@landryb
Copy link

landryb commented Nov 19, 2024

i guess you need gnu make.. try gmake ?

@TheWanderer1983
Copy link
Author

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'
#define stdin (&__sF[0])
^
gplaces.c:674:142: note: to match this '('
/usr/include/stdio.h:197:15: note: expanded from macro 'stdin'
#define stdin (&__sF[0])
^
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'
#define stdin (&__sF[0])
^
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: *** [: gplaces.o] Error 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants