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 <dlfcn.h>

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_DEF...
                                   ^
   1 error generated.


> 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.

Also on MacOS?


> Why do you reverted the sources ?

For the above reasons. And also, it smells bad to have an explicit
GNU-dependendy in the code.

☺/ A!ex

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

Reply via email to