Recent posts

#31
newLISP newS / newlisp.org website down
Last post by libz - February 26, 2025, 01:57:23 PM
Hi,

I'd like to try newLISP but the website has been down for me all day.
#32
newLISP in the real world / Re: fuzzylisp
Last post by vashushpanov - January 29, 2025, 02:22:43 AM
Thank you very match.
#33
newLISP in the real world / Re: fuzzylisp
Last post by marchildmann - January 27, 2025, 11:04:13 PM
I sent you an email including the book. Maybe it helps.
#34
newLISP in the real world / Re: Can't load sqlite library ...
Last post by vetelko - January 22, 2025, 09:10:31 AM
Solved, libz and libpthread were missing. This is because these two needs libsqlite3 itself.

#35
newLISP in the real world / Re: Can't load sqlite library ...
Last post by vetelko - January 21, 2025, 12:11:41 AM
All required libs are available :( I can (import ...) any of them except libsqlite3 while newlisp runs in chroot

gringo: ~ $: ls /var/www/usr/lib/
total 31968
drwxr-xr-x  2 root  daemon   512B Jan 20 20:32 ./
drwxr-xr-x  7 root  daemon   512B Apr 10  2023 ../
-r--r--r--  1 root  daemon   3.6M Jan 15 10:24 libc.so.100.3
-r--r--r--  1 root  daemon   1.8M Jan 15 10:31 libcurses.so.15.0
-r--r--r--  1 root  daemon  43.1K Jan 15 10:24 libffi.so.2.1
-r--r--r--  1 root  daemon   584K Jan 15 10:22 libm.so.10.1
-r--r--r--  1 root  daemon   597K Jan 15 10:22 libreadline.so.5.0
-r--r--r--  1 root  daemon   7.0M Jan 20 18:51 libsqlite3.so.8.6
#36
newLISP in the real world / Re: Can't load sqlite library ...
Last post by rrq - January 20, 2025, 02:16:04 PM
At a guess libm is missing in the chroot. Check library dependencies with ldd.
#37
newLISP in the real world / Can't load sqlite library in c...
Last post by vetelko - January 20, 2025, 11:53:00 AM
Hi guys,

I can load libsqlite3 in normal environment but NOT while in chroot. It is interesting that other libraries like libc can be loaded as you can see in the following example:

gringo: ~ $: newlisp
newLISP v.10.7.6 64-bit on BSD IPv4/6 UTF-8 libffi, options: newlisp -h

> (import "/var/www/usr/lib/libsqlite3.so.8.6")
true

Now chroot, the same library file with different path of course:

gringo: ~ $: doas chroot -u www -g www /var/www /usr/bin/newlisp
newLISP v.10.7.6 64-bit on BSD IPv4/6 UTF-8 libffi, options: newlisp -h

> (import "/usr/lib/libsqlite3.so.8.6")

ERR: problem loading library in function import : "Cannot load specified object"

> (import "/usr/lib/libc.so.100.3" "printf")
printf@D5CDE4B7A40
>
gringo: ~ $:

ANY idea?
#38
newLISP in the real world / fuzzylisp
Last post by vashushpanov - January 19, 2025, 08:04:15 PM
At 2006 was alive site http://www.fuzzylisp.com where I may find file fuzzylisp.lsp. It was written on newlisp. And now it not working. I was search this file on internet, but find nothing. Anybody may help me? And send fuzzylisp.zip to vashushpanov@gmail.com. Thanks!
#39
newLISP in the real world / Re: How to compile static sing...
Last post by vetelko - January 17, 2025, 12:04:23 AM
Thank you rrq .. will try it :)
#40
newLISP in the real world / Re: How to compile static sing...
Last post by rrq - January 15, 2025, 02:22:19 AM
The steps I take are basically to
1. first create the makefile_build the normal way and then
2. copy that to a makefile_static file which I hand-edit:
3. remove -DFFI -DREADLINE (see below) from the CFLAGS setup
4. change the "default:" target action to be the two steps
  $(CC) $(OBJS) -m64 -o newlisp -static -Wl,-Bstatic -lm -lc
  strip newlisp

That's with gcc on a linux amd64 (devuan). I've got libc.a and libm.a from the libc6-dev package, and I don't include the FFI and READLINE options for it. Thoug I think you can find .a libraries for them too (libreadline-dev and libffi-dev packages)

EDIT: digging up that old project, I realized it needed musl-gcc as well; gcc doesn't seem to be capable of static binaries.

EDIT: maybe I confused myself; it seems gcc does it well too, and then you may also include ffi and readline (+termcap).