Re: pil21 on Mac, some errors

2020-11-08 Thread Alexander Burger
On Sun, Nov 08, 2020 at 08:46:23AM +0100, Andras Pahi wrote: > SHARED = -dynamiclib -undefined dynamic_lookup > ... Yes? And does now (native "@" ...) and (%@ ...) work with it? BTW, if '%@' does not work, we should notice immediately, as all network access depends on it now (@lib/net.l). ☺/ A!e

Re: pil21 on Mac, some errors

2020-11-08 Thread Alexander Burger
On Sun, Nov 08, 2020 at 08:46:23AM +0100, Andras Pahi wrote: > SHARED = -dynamiclib -undefined dynamic_lookup Also, SHARED does not address the problem. It is used for linking the *libraries* ext.so and ht.so The problem with native is that symbols in the *executable* bin/picolisp are not found

Re: pil21 on Mac, some errors

2020-11-08 Thread Andras Pahi
Hi Alex, I’ve checked pil21.tgz which you reverted yesterday on Ubuntu Linux with llvm-10. I need to define _GNU_SOURCE to get the definition of RTLD_DEFAULT to compile lib.c. It passes the pil21 tests with ./pil @lib/test.l + (%@ “cos” 1.0 (1.0 . 1.0)) and (native “@“ “cos” 1.0 (1.0 . 1.0)) wor

Re: pil21 on Mac, some errors

2020-11-08 Thread Alexander Burger
Hi Andras, > I’ve checked pil21.tgz which you reverted yesterday on Ubuntu Linux with > llvm-10. > I need to define _GNU_SOURCE to get the definition of RTLD_DEFAULT to compile > lib.c. Yes, I did #define _GNU_SOURCE #include This works here on Termux, but on Debian I get lib.c:493

Re: pil21 on Mac, some errors

2020-11-08 Thread Alexander Burger
On Sun, Nov 08, 2020 at 01:15:00PM +0100, Alexander Burger wrote: > Yes, I did > >#define _GNU_SOURCE >#include > > This works here on Termux, but on Debian I get > >lib.c:493:33: error: use of undeclared > identifier 'RTLD_DEFAULT' > (p->fun = dlsym(lib ?: RTLD

Re: pil21 on Mac, some errors

2020-11-08 Thread Alexander Burger
On Sun, Nov 08, 2020 at 01:48:16PM +0100, Alexander Burger wrote: > Should we really do that? How portable are we then? Anyway, I released it. Though I don't like it. -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: pil21 on Mac, some errors

2020-11-08 Thread Andras Pahi
Hi Alex, On Ubuntu only -D_GNU_SOURCE helps, -D__USE_GNU is not enough. It seems that the portability of the glibc API is gone as well… Regards, Andras PS: I found the following on stackoverflow: _GNU_SOURCE is the only one you should ever define yourself. __USE_GNU is defined internally throu

Re: pil21 on Mac, some errors

2020-11-08 Thread Alexander Burger
Hi Andras, > On Ubuntu only -D_GNU_SOURCE helps, -D__USE_GNU is not enough. On plain Debian, only _GNU_SOURCE still gives an error. So I've defined both now (in @src/lib.c, to keep it local). ☺/ A!ex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: pil21 on Mac, some errors

2020-11-08 Thread Jon Kleiser
Hi all, I now installed a fresh pil21 from https://software-lab.de/pil21.tgz , followed the build instructions at https://git.envs.net/mpech/pil21-tests/src/branch/master/INSTALL-.md , and