<div dir="auto"><div>Hello Alfred,<div dir="auto"><br></div><div dir="auto">Have you tried explicitly loading the unlinked libraries beforehand with LOAD-FOREIGN-LIBRARY?</div><div dir="auto"><br></div><div dir="auto">Cheers, </div><div dir="auto">Luís </div><div dir="auto"><br></div>(sent from my phone) <br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 29, 2019, 9:57 PM Alfred M. Szmidt <<a href="mailto:ams@gnu.org">ams@gnu.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">[I sent this message on the 15th of May, 2018. But it got stuck in<br>
the moderation queue.]<br>
<br>
Hi,<br>
<br>
On OpenBSD when trying to load libreadline (or libereadline), one gets:<br>
<br>
* (cffi:load-foreign-library "libreadline.so")<br>
sbcl:/usr/lib/libreadline.so.4.0: undefined symbol 'tgetnum'<br>
sbcl:/usr/lib/libreadline.so.4.0: undefined symbol 'tgoto'<br>
sbcl:/usr/lib/libreadline.so.4.0: undefined symbol 'tgetflag'<br>
sbcl:/usr/lib/libreadline.so.4.0: undefined symbol 'tputs'<br>
sbcl:/usr/lib/libreadline.so.4.0: undefined symbol 'tgetent'<br>
sbcl:/usr/lib/libreadline.so.4.0: undefined symbol 'tgetstr'<br>
<br>
debugger invoked on a CFFI:LOAD-FOREIGN-LIBRARY-ERROR:<br>
Unable to load foreign library (LIBREADLINE.SO-431).<br>
Error opening shared object "libreadline.so":<br>
Cannot load specified object.<br>
<br>
This is since libreadline is sometimes not linked directly against<br>
ncurses or termcap (to allow the user to decide which of the two to<br>
use). On many GNU/Linux systems, libreadline is already linked<br>
against libtinfo which provides those functions; so on those systems<br>
this is not an issue. But on OpenBSD, libreadline is not linked<br>
against it, and one needs to explicitly pass -ltinfo (or similar).<br>
<br>
Is there some fancy way of passing the extra needed libraries in cffi?<br>
<br>
</blockquote></div></div></div>