Announcing gmni, a line-mode gemini browser and curl-esque utility program

Magnus Wild magnus at kalasarn.se
Mon Sep 21 12:01:37 BST 2020


On Sun, Sep 20, 2020 at 10:12:26PM -0400, Drew DeVault wrote:
> Hiya! I felt that the Gemini space has a lot of cool browers, but was
> missing the basic works-everywhere client with few-to-no dependencies.

This is cool. I managed to build it on openbsd-current with a small
modification;

--- a/src/gmnlm.c
+++ b/src/gmnlm.c
@@ -10,6 +10,7 @@
 #include <sys/ioctl.h>
 #include <termios.h>
 #include <unistd.h>
+#include <limits.h>
 #include "gmni.h"
 #include "url.h"
 #include "util.h"

The error I got before this modification can be seen below.

openbsd-build$ make
CC      src/client.o
CC      src/escape.o
CC      src/gmni.o
CC      src/url.o
CCLD    gmni
CC      src/gmnlm.o
src/gmnlm.c:127:19: error: use of undeclared identifier 'PATH_MAX'
        static char path[PATH_MAX+1];
                         ^
src/gmnlm.c:155:19: error: use of undeclared identifier 'PATH_MAX'
        static char path[PATH_MAX+1];
                         ^
src/gmnlm.c:157:18: error: use of undeclared identifier 'PATH_MAX'
        static char url[PATH_MAX+1+7];
                        ^
3 errors generated.
*** Error 1 in /home/magnus/gmni/build (Makefile:25 'src/gmnlm.o': @cc -c -g  -std=c11  -D_XOPEN_SOURCE=700  -Wall  -Wextra  -Werror  -pedan...)

The program is really small and seems very useful. Thanks a lot for spending time on this and sharing it!

/Magnus


More information about the Gemini mailing list