I've recently started learning Scheme and my ultimate goal (someday) is to build a mobile app with Scheme using
LamdaNative which says OpenBSD is supported.
I have OpenBSD 6.2 and installed a number of prerequisite packages such as
Code:
freetype
autoconf
automake
gmake
latex
wget
netpbm
ps2eps
ghostscript
wget
cmake
tgif
Running
Code:
./configure Calculator
is successful, but when I run
It runs for a while then stops with
Code:
gcc -DOPENBSD -I/usr/X11R6/include -fPIC -c *.c -I/home/ilc/.cache/lambdanative/openbsd/include
system.c: In function 'find_directories':
system.c:113: error: 'PATH_MAX' undeclared (first use in this function)
system.c:113: error: (Each undeclared identifier is reported only once
system.c:113: error: for each function it appears in.)
ERROR: failed with exit code 1
>> compilation failed
BUILD FAILED - configure with verbose option for more information
*** Error 1 in /home/ilc/lambdanative (Makefile:2 'all': @ ./make.sh all)
$
system.c contains this beginning on line 112:
Code:
#if defined(OPENBSD) || defined(NETBSD) || defined(FREEBSD)
char buf[PATH_MAX]
if (realpath(cmd_argv[0],buf)) {
int i = strlen(buf)-1;
while (i>0&&buf[i]!='/') {i--;}
if (i>0) buf[i]=0;
// check if directory exists?
sys_appdir=strdup(buf);
sys_dir=strdup(buf);
}
#endif