cl-readline icon indicating copy to clipboard operation
cl-readline copied to clipboard

libreadline and external references to ncurses/termcap

Open ams opened this issue 5 years ago • 2 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.

ams avatar May 15 '19 19:05 ams

I piped an email to the cffi-devel list in hope for a solution.

ams avatar May 15 '19 19:05 ams

Thank you.

vindarel avatar May 15 '19 19:05 vindarel