Thread: LambdaNative
View Single Post
  #1   (View Single Post)  
Old 12th November 2017
gpatrick gpatrick is offline
Spam Deminer
 
Join Date: Nov 2009
Posts: 245
Default LambdaNative

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
Code:
make
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

Last edited by gpatrick; 12th November 2017 at 09:10 PM.
Reply With Quote