Eujean Snyman wrote:
Hi there

It seems Clisp 2.49 fails to build with readline 7.0 the extern variable
rl_readline_state from readline changed from int to unsigned long. This
breaks compilation of clisp-2.49 with readline enabled (as it is by
default) because the expected size/alignment does not match the actual one
(at least on NetBSD-7.99.38/amd64).

The simplest fix I could find:

--- modules/readline/readline.lisp.orig
+++ modules/readline/readline.lisp
@@ -424,7 +424,7 @@ name in ~/.inputrc.
"The version of this incarnation of the readline library, e.g., 0x0402."))
(def-c-var gnu-readline-p (:name "rl_gnu_readline_p") (:type int)
(:documentation "True if this is real GNU readline."))
-(def-c-var readline-state (:name "rl_readline_state") (:type int)
+(def-c-var readline-state (:name "rl_readline_state") (:type ulong)
(:documentation "Flags word encapsulating the current readline state."))
(def-c-var editing-mode (:name "rl_editing_mode") (:type int)
(:documentation "Says which editing mode readline is currently using.

I just rebuilt clisp on a system with readline 7 without any problems. Can you post the actual output of the build showing the error?

I do confirm that readline.h now has:

  extern unsigned long rl_readline_state;

so I suppose there could be a runtime issue, but I can't find a build problem.

  -- Bruce

--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to