libreadline and external references to ncurses/termcap
ams opened this issue · comments
In general, one should link against -ltermcap or -lncurses when using -lreadline, since that contains external references to various functions, which can lead to undefined symbols when linking. E.g., on OpenBSD:
sbcl:/usr/lib/libreadline.so.4.0: undefined symbol 'tgetnum'
sbcl:/usr/lib/libreadline.so.4.0: undefined symbol 'tgoto'
sbcl:/usr/lib/libreadline.so.4.0: undefined symbol 'tgetflag'
sbcl:/usr/lib/libreadline.so.4.0: undefined symbol 'tputs'
sbcl:/usr/lib/libreadline.so.4.0: undefined symbol 'tgetent'
sbcl:/usr/lib/libreadline.so.4.0: undefined symbol 'tgetstr'
I'm not entirely sure how to pass -ltinfo/-lncurses to CFFI so that this works.
I piped an email to the cffi-devel list in hope for a solution.
Thank you.