Re: gauche-c-wrapper's cwcompile stopped working: function is not found
Shiro Kawai <[email protected]> Mon, 29 Apr 2024 21:16:29 -1000
| Newsgroups | gmane.lisp.scheme.gauche |
|---|---|
| Message-ID | <CALN0JNG9tV1qpuhyR5Ye+_8DUHE2fGsrDACecrq0OSgQT084_g@mail.gmail.com> |
What's the output of `nm libhello.so`?
Could you also try the following patch to src/c-ffi.c? My take is that
the error is raised because dlsym returns NULL here, but I want to make
sure.
```
*** c-ffi.c.orig Sun Apr 28 22:32:10 2024
--- c-ffi.c Mon Apr 29 21:14:27 2024
***************
*** 624,630 ****
static void *lookup_symbol(const char *sym)
{
! return dlsym(RTLD_DEFAULT, sym);
}
#endif
--- 624,632 ----
static void *lookup_symbol(const char *sym)
{
! void *r = dlsym(RTLD_DEFAULT, sym);
! fprintf(stderr, "dlsym(%s) => %p\n", sym, r);
! return r;
}
#endif
```
On Mon, Apr 29, 2024 at 8:52 PM Jens Thiele <[email protected]> wrote:
> Jens Thiele <[email protected]> writes:
>
> > will have to dig further
>
> i repeated the test in a debian/bookworm chroot using official gauche
> 0.9.15 and for me it still fails with:
>
> ERROR: function add is not found.
>
>
> _______________________________________________
> Gauche-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/gauche-devel
>
_______________________________________________
Gauche-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gauche-devel