Failure to compile with readline 6.3 #6000

Closed
vchuravy opened this Issue Mar 1, 2014 · 2 comments

3 participants

@vchuravy

After updating readline to 6.3 the build fails with:

CC ui/repl-basic.o
repl-readline.c: In function ‘jl_init_repl’:
repl-readline.c:838:24: error: ‘Function’ undeclared (first use in this function)
     rl_startup_hook = (Function*)init_rl;
                        ^
repl-readline.c:838:24: note: each undeclared identifier is reported only once for each function it appears in
repl-readline.c:838:33: error: expected expression before ‘)’ token
     rl_startup_hook = (Function*)init_rl;
                                 ^
repl-readline.c: At top level:
repl-readline.c:760:13: warning: ‘init_rl’ defined but not used [-Wunused-function]
 static void init_rl(void)
             ^
@octoploid
 diff --git a/ui/repl-readline.c b/ui/repl-readline.c
index 39fe1a84cf7d..a406cd4dfb2d 100644
--- a/ui/repl-readline.c
+++ b/ui/repl-readline.c
@@ -835,7 +835,7 @@ void jl_init_repl(int history)
     rl_instream = fopen("/dev/null","r");
     prompt_length = 7;  // == strlen("julia> ")
     init_history();
-    rl_startup_hook = (Function*)init_rl;
+    rl_startup_hook = (rl_hook_func_t*)init_rl;
 }

 static char *prompt_string=NULL;
@JeffBezanson JeffBezanson added the build label Mar 1, 2014
@JeffBezanson
The Julia Language member

fixed by #6046

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment