newLISP on Raspberry Pi with Readline and FFI

Machine-specific discussion
Unix, Linux, OS X, OS/2, Windows, ..?
Locked
crms1496
Posts: 6
Joined: Mon Jan 06, 2014 12:29 am

newLISP on Raspberry Pi with Readline and FFI

Post by crms1496 »

Is it possible to build newLISP on my Pi, which is running Raspbian Testing, with Readline and FFI? I edited the raspberrypi_utf8 make file to have the readline lines uncommented, and the other lines commented, but I always get errors during make. Also, the version of libffi-dev in testing doesn't match the version I saw in the linux_utf8_ffi file. Should I have libffi5-dev installed instead?

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Re: newLISP on Raspberry Pi with Readline and FFI

Post by Lutz »

If I remember well, the minimum version is libffi-3.0.11, current is libffi-3.0.13. You could just try compiling and then run the file: newlisp-10.6.0/qa-specific-tests/qa-libc-libffi to test. You also could try running newlisp-10.6.0/qa-specific-tests/qa-libffi, but you would need to compile newlisp-10.6.0/util/ffitest.c for that.

I don't thing you need libffi-dev, but you need the header files ffi.h and ffitarget.h.

crms1496
Posts: 6
Joined: Mon Jan 06, 2014 12:29 am

Re: newLISP on Raspberry Pi with Readline and FFI

Post by crms1496 »

So, do I have to edit the makefile to build with FFI support? I see that there are linux_utf8 and linux_utf8_ffi makefiles, but only raspberrypi and raspberrypi_utf8.

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Re: newLISP on Raspberry Pi with Readline and FFI

Post by Lutz »

There is a simple, built in FFI interface which doesn’t need any special libraries. Then there is an extended FFI interface for which you need a special library ‘libffi’ and the makefile has to be edited for it.

For the READLINE flavor - editing of the command line - you too need a special library and edit the makefile.

newLISP source only ships with makefiles which have been proven to work on their hardware platform and OS. This is why not for all platforms and OSs all makefiles are available.

Locked