DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:41 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick