Hello *,

libreadline-6.3 no longer contains deprecated typedefs CPPFunction and friends, thus breaking compilation of gcl-2.6.10. The attached patch fixes the problem (it breaks nothing for users of older versions of libreadline).

Also, --enable-dynsysgmp is broken with the recent gmp-6.0. The reason is the line

#if __GNU_MP_VERSION == 4 || __GNU_MP_VERSION == 5

in configure.in; it should be replaced by

#if __GNU_MP_VERSION == 4 || __GNU_MP_VERSION == 5 || __GNU_MP_VERSION == 6

(I don't attach the patch, it is obvious).

Please commit these patches, or something equivalent; otherwise, users of recent versions of readline andor gmp are screwed.

Andrey
diff -r -U1 gcl.orig/o/gcl_readline.d gcl/o/gcl_readline.d
--- gcl.orig/o/gcl_readline.d   2013-11-11 21:55:48.000000000 +0700
+++ gcl/o/gcl_readline.d        2014-03-30 18:29:42.131967005 +0700
@@ -53,2 +53,9 @@
 
+/* Deprecated CPPFunction disappeared in libreadline-6.3 */
+#if defined(_RL_FUNCTION_TYPEDEF)
+#define RL_COMPLETION_FUNC_T rl_completion_func_t
+#else
+#define RL_COMPLETION_FUNC_T CPPFunction
+#endif
+
 int readline_on = 0;           /* On (1) or off (0) */
@@ -471,3 +478,3 @@
 #ifdef RL_COMPLETION
-  rl_attempted_completion_function = (CPPFunction *)rl_completion;
+  rl_attempted_completion_function = (RL_COMPLETION_FUNC_T *)rl_completion;
 #endif         
_______________________________________________
Gcl-devel mailing list
Gcl-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/gcl-devel

Reply via email to