[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-readline] libreadline.so has rl_sort_completion_matche instead
From: |
Volker Braun |
Subject: |
Re: [Bug-readline] libreadline.so has rl_sort_completion_matche instead of rl_sort_completion_matches |
Date: |
Mon, 7 Oct 2013 11:18:06 +0000 (UTC) |
User-agent: |
Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) |
On Thu, 25 Jul 2013 15:11:13 -0400, Sébastien Boisvert wrote:
> (4) a description of the bug
>
> libreadline.so has rl_sort_completion_matche instead of
> rl_sort_completion_matches
>
> $ readelf -s 1/lib/libreadline.so|grep rl_sort_completion_matche
> 511: 000000000023fca8 4 OBJECT GLOBAL DEFAULT 23
> rl_sort_completion_matche 488: 000000000023fca8 4 OBJECT GLOBAL
> DEFAULT 23 rl_sort_completion_matche
>
> The header has the correct name (with a s):
>
> $ grep rl_sort_completion_matche 1/include/readline/readline.h extern
> int rl_sort_completion_matches;
This is not a bug. Use --wide to get non-truncated output from readelf:
address@hidden:~/Sage/sage$ readelf -s local/lib/libreadline.so|grep
rl_sort_completion_matche
576: 00000000002425c8 4 OBJECT GLOBAL DEFAULT 22
rl_sort_completion_matche
966: 00000000002425c8 4 OBJECT GLOBAL DEFAULT 22
rl_sort_completion_matche
address@hidden:~/Sage/sage$ readelf -s --wide local/lib/libreadline.so|grep
rl_sort_completion_matche
576: 00000000002425c8 4 OBJECT GLOBAL DEFAULT 22
rl_sort_completion_matches
966: 00000000002425c8 4 OBJECT GLOBAL DEFAULT 22
rl_sort_completion_matches
> (6) A fix for the bug if you have one!
>
> To compile R 3.0.1, I removed the use of this symbol in the R code:
>
> sed -i 's>rl_sort_completion_matches = 0;>>g' src/unix/sys-std.c
This is a bug in R where R is using readline symbols without linking
against readline (-lreadline). Some older toolchains were more forgiving,
but nowadays this is an error.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Bug-readline] libreadline.so has rl_sort_completion_matche instead of rl_sort_completion_matches,
Volker Braun <=