[R] rl_callback_read_char error on Solaris 7

ripley@stats.ox.ac.uk ripley at stats.ox.ac.uk
Wed Feb 12 22:04:03 CET 2003


On Wed, 12 Feb 2003, Yuelin Li wrote:

> This question is about compiling R-1.6.2 from source on a 
> Sparcstation-20 machine running Solaris 7, gcc-2.95.3 and 
> readline-4.2 (both gcc and readline from sunfreeware.com).  

This is not an R question, but one for the maintainers of sunfreeware.com.
There is no problem with those tools if compiled from the sources 
(although they are rather old versions).

> I searched the r-help archive and the FAQ.  The errors seem to be 
> related to the binary readline libraries, and I have 
> /usr/local/lib/libreadline.a,libreadline.so@, and 
> libreadline.so.4.
> 
> The attached errors are from config.log.  ./configure finds 
> readline header files in /usr/local/include/readline.  I can make 
> and install R, but command line editing and savehistory() do not 
> work.   
> 
> Suggestions are appreciated.

Compile libreadline yourself?

> 
> Yuelin Li.
> 
> --------
> configure:11366: checking for rl_callback_read_char in -lreadline
> configure:11397: gcc -o conftest -g -O2 -I/usr/local/include 
> -L/usr/local/lib conftest.c -lreadline  -ldl -lncurses -lm  >&5
> ld: fatal: symbol `_init' is multiply-defined:
>         (file 
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.3/crti.o and 
> file /usr/local/lib/libreadline.so);
> ld: fatal: symbol `_start' is multiply-defined:
>         (file 
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.3/crt1.o and 
> file /usr/local/lib/libreadline.so);
> ld: fatal: symbol `_fini' is multiply-defined:
>         (file 
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.3/crti.o and 
> file /usr/local/lib/libreadline.so);
> ld: fatal: symbol `_lib_version' is multiply-defined:
>         (file /usr/ccs/lib/values-Xa.o and file 
> /usr/local/lib/libreadline.so);

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list