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>
Hi, On Sun, 12 Aug 2001, Vladimir Dyadichev wrote:
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 ???
This is not a ginsh-Problem. The readline header files need fixing. Have a look at how the problem was solved in the Debian case: <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=95758>. If you didn't compile libreadline yourself but got it off from some distribution, please consider reporting this as a bug so they can fix it. Regards -richy. -- Richard B. Kreckel <Richard.Kreckel@Uni-Mainz.DE> <http://wwwthep.physik.uni-mainz.de/~kreckel/>
Hi, Thanks for the reply and advice. I fixed the readline headers and configure succeeded. But `ginsh` still don't want to compile producing following error message: c++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../ginac -I../ginac -DIN_GINAC -pipe -Wall -O2 -fexpensive-optimizations -march=i686 -c ginsh_parser.cc /usr/share/misc/bison.simple: In function `int yyparse ()': /usr/share/misc/bison.simple:614: warning: comparison between signed and unsigned integer expressions /usr/share/misc/bison.simple:626: warning: comparison between signed and unsigned integer expressions ginsh_parser.yy: In function `char **fcn_completion (char *, int, int)': ginsh_parser.yy:771: cannot convert `char *(*) ()' to `char *(*) (const char *, int)' for argument `2' to `rl_completion_matches (const char *, char *(*) (const char *, int))' ginsh_parser.yy:781: cannot convert `char *(*) ()' to `char *(*) (const char *, int)' for argument `2' to `rl_completion_matches (const char *, char *(*) (const char *, int))' ginsh_parser.yy: In function `int main (int, char **)': ginsh_parser.yy:824: cannot convert `char **(*) ()' to `char **(*) (const char *, int, int)' in assignment make: *** [ginsh_parser.o] Ошибка 1 However, I finally managed to build ginsh by using 2.95.3 compiler instead of 2.96 --- it gves just the first two warnings and no errors. Best regards, Vladimir On Sun, Aug 12, 2001 at 03:34:25PM +0200, Richard B. Kreckel wrote:
Hi,
On Sun, 12 Aug 2001, Vladimir Dyadichev wrote:
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 ???
This is not a ginsh-Problem. The readline header files need fixing. Have a look at how the problem was solved in the Debian case: <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=95758>.
If you didn't compile libreadline yourself but got it off from some distribution, please consider reporting this as a bug so they can fix it.
Regards -richy. -- Richard B. Kreckel <Richard.Kreckel@Uni-Mainz.DE> <http://wwwthep.physik.uni-mainz.de/~kreckel/>
participants (3)
-
Richard B. Kreckel
-
Vladimir Dyadichev
-
Vladimir Dyadichev