[R] rl_callback_read_char error on Solaris 7

Don MacQueen macq at llnl.gov
Wed Feb 12 22:25:19 CET 2003


At 9:03 PM +0000 2/12/03, ripley at stats.ox.ac.uk wrote:
>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?

That is what I had to do.
I first tried a version from sunfreeware.com, without success.
(Also for png and jpeg support, though the pre-compiled versions may 
not have come from sunfreeware; I do not remember.)

>
>>
>>  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
>
>______________________________________________
>R-help at stat.math.ethz.ch mailing list
>http://www.stat.math.ethz.ch/mailman/listinfo/r-help


-- 
--------------------------------------
Don MacQueen
Environmental Protection Department
Lawrence Livermore National Laboratory
Livermore, CA, USA
--------------------------------------




More information about the R-help mailing list