bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-readline] libreadline.so has rl_sort_completion_matche instead of r


From: Sébastien Boisvert
Subject: [Bug-readline] libreadline.so has rl_sort_completion_matche instead of rl_sort_completion_matches
Date: Thu, 25 Jul 2013 15:11:13 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7

Hello,

This is a bug report for readline.


(1) The version number and release status of Readline (e.g., 4.2-release)

  6.2 from ftp://ftp.cwru.edu/pub/bash/readline-6.2.tar.gz


(2) The machine and OS that it is running on

  machine: Lenovo Thinkpad X230
  OS: Fedora 18 with Linux 3.9.9-201.fc18.x86_64


(3) A list of the compilation flags or the contents of `config.h', if 
appropriate

  command: ./configure --prefix=$(pwd)/1; make; make install


(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;



(5) A  recipe for recreating the bug reliably

  wget ftp://ftp.cwru.edu/pub/bash/readline-6.2.tar.gz
  tar -xzf readline-6.2.tar.gz
  cd readline-6.2
  ./configure --prefix=$(pwd)/1
  make
  make install  
  readelf -s 1/lib/libreadline.so|grep rl_sort_completion_matche

  expected: symbol has a s (like rl_sort_completion_matches)

  actual: no s at the end of symbol: rl_sort_completion_matche


(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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]