[R] configure can't get readline to work

Liaw, Andy andy_liaw at merck.com
Tue Feb 11 22:40:22 CET 2003


Dear R-help,

I'm running into some strange problem compiling R 1.6.2 on Mandrake Linux
9.0.  When I do 

  ./configure --enable-R-shlib

I get the following in config.log:
===========================
configure:11366: checking for rl_callback_read_char in -lreadline
configure:11397: gcc -o conftest -g -O2  -L/usr/local/lib conftest.c
-lreadline  -ldl -lm  >&5
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../libreadline.so:
undefined reference to `tgetnum'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../libreadline.so:
undefined reference to `tgoto'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../libreadline.so:
undefined reference to `tgetflag'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../libreadline.so:
undefined reference to `BC'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../libreadline.so:
undefined reference to `tputs'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../libreadline.so:
undefined reference to `PC'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../libreadline.so:
undefined reference to `tgetent'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../libreadline.so:
undefined reference to `UP'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../libreadline.so:
undefined reference to `tgetstr'
collect2: ld returned 1 exit status
configure:11400: $? = 1
configure: failed program was:
| #line 11373 "configure"
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "R"
| #define PACKAGE_TARNAME "r"
| #define PACKAGE_VERSION "1.6.2"
| #define PACKAGE_STRING "R 1.6.2"
| #define PACKAGE_BUGREPORT "r-bugs at R-project.org"
| #define PACKAGE "R"
| #define VERSION "1.6.2"
| #define R_PLATFORM "i686-pc-linux-gnu"
| #define R_CPU "i686"
| #define R_VENDOR "pc"
| #define R_OS "linux-gnu"
| #define Unix 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| #include <stdlib.h>
| #endif
| #define HAVE_LIBM 1
| #define HAVE_LIBDL 1
| /* end confdefs.h.  */
| 
| /* Override any gcc2 internal prototype to avoid an error.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
|    builtin and then its argument prototype would still apply.  */
| char rl_callback_read_char ();
| int
| main ()
| {
| rl_callback_read_char ();
|   ;
|   return 0;
| }
configure:11418: result: no
=================================

Does this mean my readline installation is somehow defective?  I've tried
re-installing readline (and readline-devel) version 4.3-4, to no avail.  Can
someone give me some hints?

Regards,
Andy



Andy I. Liaw, PhD
Biometrics Research          Phone: (732) 594-0820
Merck & Co., Inc.              Fax: (732) 594-1565
P.O. Box 2000, RY84-16            Rahway, NJ 07065
mailto:andy_liaw at merck.com



------------------------------------------------------------------------------




More information about the R-help mailing list