3

I installed cl-ncurses through quicklisp but I am getting an error when I try to execute anything curses-based. I am not sure what is wrong but it appears that SBCL cannot find the external functions/libraries. Other curses-based programs work well in my system (Debian).

* (ql:quickload :cl-ncurses)
To load "cl-ncurses":
  Load 1 ASDF system:
    cl-ncurses
; Loading "cl-ncurses"

(:CL-NCURSES)
* (in-package :cl-ncurses)

#<PACKAGE "CL-NCURSES">
* (initscr)

debugger invoked on a SB-KERNEL::UNDEFINED-ALIEN-FUNCTION-ERROR in thread
#<THREAD "main thread" RUNNING {1002978CD3}>:
  Attempt to call an undefined alien function.
automaton
  • 1,091
  • 1
  • 9
  • 23
  • I have found an alternative ncurses binding that works for me: [cl-charms](http://http://quickdocs.org/cl-charms/api#package-CL-CHARMS) – automaton Mar 06 '15 at 22:34
  • I tried both but both return the same alien function error ... I use macOS and is that the issue. (Brew has install the ncurses.) – KWC May 17 '22 at 13:13
  • Finally get it. n-curses is one thread only. Hence it has to be the display thread you are using that access all your programs. (If you run macOS, it would be the swank thread usually). – KWC May 29 '22 at 02:41

1 Answers1

1

The "cl-ncurses" system tries to call an undefined function of a lib (most likely libncurses.so) Either there is a bug in the system or you use the wrong version of the lib (maybe 32 bit, while "cl-ncurses" needs 64bit)

cl-porky11
  • 339
  • 1
  • 11