ginsh compilation with gcc2.96 -- readline 4.2

Vladimir Dyadichev vlad at grg1.phys.msu.su
Sun Aug 12 09:32:21 CEST 2001


Hello

I would like to compile GiNaC on my Linux system
with gcc 2.96 . I have libreadline v 4.2 installed
on my system but it seems that g++ do not like 
readline header files. 

Consequently the ginsh  fails to compile (library itself
compiles OK).

Any suggestions ???

Thanks in advance.

Vladimir



Here is part of configure output:

checking for readline/readline.h... yes
checking for readline/history.h... yes
checking for tgetent... no
checking for tgetent in -lncurses... yes
checking for readline in -lreadline... yes
checking for version of libreadline... unknown

The part of config.log corresponding to that failure


configure:5993: c++ -o conftest -g -O0   conftest.C -lreadline  -lncurses  
1>&5
configure:6022: checking for version of libreadline
configure:6050: c++ -o conftest -g -O0   conftest.C -lreadline -lncurses  1>&5
In file included from /usr/include/readline/keymaps.h:37,
                 from /usr/include/readline/readline.h:36,
                 from configure:6038:
/usr/include/readline/rltypedefs.h:48: `rl_command_func_t' declared with an 
exception specification/usr/include/readline/rltypedefs.h:51: 
`rl_compentry_func_t' declared with an exception specificatio
/usr/include/readline/rltypedefs.h:52: `rl_completion_func_t' declared with 
an exception specificatin
/usr/include/readline/rltypedefs.h:54: `rl_quote_func_t' declared with an 
exception specification
/usr/include/readline/rltypedefs.h:55: `rl_dequote_func_t' declared with an 
exception specification/usr/include/readline/rltypedefs.h:57: 
`rl_compignore_func_t' declared with an exception specificatin
/usr/include/readline/rltypedefs.h:59: `rl_compdisp_func_t' declared with an 
exception specificationusr/include/readline/rltypedefs.h:62: `rl_hook_func_t' 
declared with an exception specification
/usr/include/readline/rltypedefs.h:65: `rl_getc_func_t' declared with an 
exception specification
/usr/include/readline/rltypedefs.h:70: `rl_linebuf_func_t' declared with an 
exception specification/usr/include/readline/rltypedefs.h:73: `rl_intfunc_t' 
declared with an exception specification
/usr/include/readline/rltypedefs.h:75: `rl_icpfunc_t' declared with an 
exception specification
/usr/include/readline/rltypedefs.h:76: `rl_icppfunc_t' declared with an 
exception specification
/usr/include/readline/rltypedefs.h:78: `rl_voidfunc_t' declared with an 
exception specification
/usr/include/readline/rltypedefs.h:79: `rl_vintfunc_t' declared with an 
exception specification
/usr/include/readline/rltypedefs.h:80: `rl_vcpfunc_t' declared with an 
exception specification
/usr/include/readline/rltypedefs.h:81: `rl_vcppfunc_t' declared with an 
exception specification
In file included from /usr/include/readline/readline.h:37,
                 from configure:6038:
/usr/include/readline/tilde.h:55: `tilde_hook_func_t' declared with an 
exception specification
configure: failed program was:
#line 6031 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit(int);
#endif
 
#include <stdio.h>
#include <sys/types.h>
#include <readline/readline.h>
 
main()
{
    FILE *fd;
    fd = fopen("conftest.out", "w");
    fprintf(fd, "%s\n", rl_library_version);
    fclose(fd);
    return 0;
}


The compilation of ginsh fails with exactly the same error messages:

make[2]: Вход в каталог `/home/vlad/src/GiNaC-0.9.2/ginsh'
sed -n -f ./ginsh_fcn_help.sed <ginsh.1 >ginsh_fcn_help.c
sed -n -f ./ginsh_op_help.sed <ginsh.1 >ginsh_op_help.c
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../ginac -I../ginac -DIN_GINAC    -g -O2 
-c ginsh_parser.cc
In file included from /usr/include/readline/keymaps.h:37,
                 from /usr/include/readline/readline.h:36,
                 from ginsh.h:36,
                 from ginsh_parser.yy:41:
/usr/include/readline/rltypedefs.h:48: `rl_command_func_t' declared with an 
exception specification/usr/include/readline/rltypedefs.h:51: 
`rl_compentry_func_t' declared with an exception specification

<etc>



More information about the GiNaC-list mailing list