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.
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:
I'm not entirely sure how to pass -ltinfo/-lncurses to CFFI so that this works.