[GiNaC-list] [PATCH] ginsh: really reject non-GNU readline [Was: Installation ginac(1.4) ...]

Sheplyakov Alexei varg at theor.jinr.ru
Tue Sep 11 09:10:31 CEST 2007


Hi!

On Mon, Sep 10, 2007 at 11:30:55PM +0200, Hans-Jürgen Greif wrote:
 
> I got some errors at the end of make procedure:

[Unbroke lines to make error messages readable]

> Making all in check
> make[2]: Nothing to be done for `all'.
> Making all in ginsh
> sed -n -f ./ginsh_fcn_help.sed <ginsh.1 >ginsh_fcn_help.h
> sed -n -f ./ginsh_op_help.sed <ginsh.1 >ginsh_op_help.h
> if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../ginac -I../ginac -DIN_GINAC  -I/usr/local/include -g -O2 -MT ginsh_parser.o -MD -MP -MF ".deps/ ginsh_parser.Tpo" -c -o ginsh_parser.o ginsh_parser.cc; \
> then mv -f ".deps/ginsh_parser.Tpo" ".deps/ginsh_parser.Po"; else rm -f ".deps/ginsh_parser.Tpo"; exit 1; fi
> ../../GiNaC/ginsh/ginsh_parser.yy:51:6: error: missing binary operator before token "wrapper" 
> ../../GiNaC/ginsh/ginsh_parser.yy:57:6: error: missing binary operator before token "wrapper"
> ../../GiNaC/ginsh/ginsh_parser.yy:863:6: error: missing binary operator before token "wrapper"
> ../../GiNaC/ginsh/ginsh_parser.yy:873:6: error: missing binary operator before token "wrapper"
> ../../GiNaC/ginsh/ginsh_parser.yy:927:6: error: missing binary operator before token "wrapper"
> ../../GiNaC/ginsh/ginsh_parser.yy: In function 'char** fcn_completion(const char *, int, int)':
> ../../GiNaC/ginsh/ginsh_parser.yy:861: error: invalid conversion from 'const char*' to 'char*'
> ../../GiNaC/ginsh/ginsh_parser.yy:866: error: 'rl_filename_completion_function' was not declared in this scope
> ../../GiNaC/ginsh/ginsh_parser.yy:866: error: 'rl_completion_matches' was not declared in this scope
> ../../GiNaC/ginsh/ginsh_parser.yy:876: error: 'rl_completion_matches' was not declared in this scope

Really, really reject non-GNU libreadline.

---
 acinclude.m4 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/acinclude.m4 b/acinclude.m4
index 11c8039..dd7299c 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -26,7 +26,7 @@ int main()
     return 0;
 }], [
 dnl Some non-GNU readline implementations have non-numeric rl_library_version
-ginac_cv_rlversion=`sed -e 's/[^0-9.]//g' 'conftest.out'`], [ ginac_cv_rlversion='unknown'], [ ginac_cv_rlversion='4.2'])])
+ginac_cv_rlversion=`sed -e 's/[[^0-9.]]//g' 'conftest.out'`], [ ginac_cv_rlversion='unknown'], [ ginac_cv_rlversion='4.2'])])
 if test -z "$ginac_cv_rlversion"; then
 	GINAC_WARNING([Unsupported version of libreadline.])
 	ginac_cv_rlversion='unknown'
-- 
1.4.4.4

Best regards,
	Alexei

-- 
All science is either physics or stamp collecting.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: Digital signature
Url : http://www.cebix.net/pipermail/ginac-list/attachments/20070911/1f5736b8/attachment.pgp


More information about the GiNaC-list mailing list