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)) works also.

Why do you reverted the sources ?
It works perfectly on Darwin (macOS Mojave 10.14.6) and Ubuntu Linux 18.04.5 
LTS.

Regards,
Andras



> On 2020. Nov 8., at 9:51, Alexander Burger <a...@software-lab.de> wrote:
> 
> 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 by dlsym() at runtime.
> 
> ☺/ A!ex
> 
> -- 
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to