‘rl_readline_state_t’ undeclared

Ken Brown <[email protected]>
Newsgroups gmane.lisp.clisp.devel
Message-ID <[email protected]>
Hi Bruno,

You introduced rl_readline_state_t in the following commit:

changeset:   15750:06790b3788cf
user:        Bruno Haible <[email protected]>
date:        Sun Feb 26 12:07:24 2017 +0100
files:       modules/readline/config.h.in modules/readline/configure 
modules/readline/configure.in modules/readline/readline.lisp src/configure
description:
readline: Update binding to avoid build failure with GNU readline 7.0.

I'm now getting errors like the following for several of the modules I 
build:

gcc 
-I/home/kbrown/src/cygclisp/clisp-2.49-1.20170303hg15769.i686/src/clisp/src 
-I/home/kbrown/src/cygclisp/clisp-2.49-1.20170303hg15769.i686/build/gllib 
-I/home/kbrown/src/cygclisp/clisp-2.49-1.20170303hg15769.i686/src/clisp/src/gllib 
-I/home/kbrown/src/cygclisp/clisp-2.49-1.20170303hg15769.i686/build/gllib 
-I/home/kbrown/src/cygclisp/clisp-2.49-1.20170303hg15769.i686/src/clisp/src/gllib 
  -ggdb -O2 -pipe -Wimplicit-function-declaration -W -Wswitch -Wcomment 
-Wpointer-arith -Wreturn-type -Wmissing-declarations -Wimplicit 
-Wno-sign-compare -Wno-format-nonliteral -O2 -fexpensive-optimizations 
-fno-strict-aliasing -DENABLE_UNICODE -DDYNAMIC_FFI -DDYNAMIC_MODULES 
-DDLL_EXPORT -DPIC 
-I/home/kbrown/src/cygclisp/clisp-2.49-1.20170303hg15769.i686/build/linkkit 
-c libsvm.c
libsvm.c:18:6: warning: no previous declaration for ‘svm_destroy_model’ 
[-Wmissing-declarations]
  void svm_destroy_model (struct svm_model *model){ 
svm_free_and_destroy_model(&model); }
       ^
libsvm.c: In function ‘module__libsvm__init_function_1’:
libsvm.c:44:57: error: ‘rl_readline_state_t’ undeclared (first use in 
this function)
 
register_foreign_inttype("rl_readline_state_t",sizeof(rl_readline_state_t),(rl_readline_state_t)-1<=(rl_readline_state_t)0);


This is on Cygwin.  I don't currently have access to a Linux system on 
which I can build clisp, so I don't know if the problem is Cygwin-specific.

My knowledge of how modules work is very limited, but shouldn't the 
typedef of rl_readline_state_t have been propagated to some header used 
in building other modules that rely on readline?

Ken

------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
clisp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.