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 ------------------------------------------------------------------------------
"Liaw, Andy" <andy_liaw at merck.com> writes:> 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'...> 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?Those are ncurses routines, so if it were RedHat I'd point you towards the ncurses and ncurses-devel RPMs. Mandrake is usually similar. (Curiously, on RH, the readline RPM does not require ncurses, even though the library clearly has symbol references to it...) -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
Thanks very much to Prof. Dalgaard. The problem was missing ncurses and ncurses-devel. After installing those, configure now finds readline properly. Cheers, Andy> -----Original Message----- > From: Peter Dalgaard BSA [mailto:p.dalgaard at biostat.ku.dk] > Sent: Tuesday, February 11, 2003 5:44 PM > To: Liaw, Andy > Cc: 'r-help at stat.math.ethz.ch' > Subject: Re: [R] configure can't get readline to work > > > "Liaw, Andy" <andy_liaw at merck.com> writes: > > > 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' > ... > > 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? > > Those are ncurses routines, so if it were RedHat I'd point you towards > the ncurses and ncurses-devel RPMs. Mandrake is usually similar. > > (Curiously, on RH, the readline RPM does not require ncurses, even > though the library clearly has symbol references to it...) > > -- > O__ ---- Peter Dalgaard Blegdamsvej 3 > c/ /'_ --- Dept. of Biostatistics 2200 Cph. N > (*) \(*) -- University of Copenhagen Denmark Ph: > (+45) 35327918 > ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: > (+45) 35327907 >------------------------------------------------------------------------------