Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libreadline and external references to ncurses/termcap #15

Open
ams opened this issue May 15, 2019 · 2 comments
Open

libreadline and external references to ncurses/termcap #15

ams opened this issue May 15, 2019 · 2 comments

Comments

@ams
Copy link

ams commented May 15, 2019

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
Copy link
Author

ams commented May 15, 2019

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

@vindarel
Copy link
Owner

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants