From bhs2 at mevik.net  Wed Dec 14 13:12:10 2005
From: bhs2 at mevik.net (=?iso-8859-1?q?Bj=F8rn-Helge_Mevik?=)
Date: Wed, 14 Dec 2005 13:12:10 +0100
Subject: [Rd] R-beta: configure problem (tcltk) on 64 bit Red Hat EL
Message-ID: <m0irtryj1h.fsf@bar.nemo-project.org>

Dear developeRs,

I use Red Hat Enterprise Linux WS release 4 (Nahant Update 2) on an
x86_64 machine (two Intel P4 CPUs with 64 bit support), and
R-beta_2005-12-12_r36712.tar.gz.

If I run configure without any options, it does not list tcltk among
the supported interfaces:

./configure
[...]
R is now configured for x86_64-unknown-linux-gnu

  Source directory:          .
  Installation directory:    /usr/local

  C compiler:                gcc  -g -O2
  C++ compiler:              g++  -g -O2
  Fortran compiler:          g77  -g -O2

  Interfaces supported:      X11
  External libraries:        readline, BLAS(generic)
  Additional capabilities:   PNG, JPEG, iconv, MBCS, NLS
  Options enabled:           R profiling

  Recommended packages:      yes

It seems to find tcl and tk, but not be able to compile/link them:
[...]
checking /usr/include/tcl.h usability... yes
checking /usr/include/tcl.h presence... yes
checking for /usr/include/tcl.h... yes
[...]
checking /usr/include/tk.h usability... yes
checking /usr/include/tk.h presence... yes
checking for /usr/include/tk.h... yes
checking whether compiling/linking Tcl/Tk code works... no


Looking in config.log, it seems that even though libX11 has been found
in /usr/X11R6/lib64, it is not searched for in that directory when
testing compiling/linking Tcl/Tk:

configure:35654: checking for X
configure:35892: result: libraries /usr/X11R6/lib64, headers /usr/X11R6/include
configure:36088: gcc -o conftest -g -O2  -I/usr/local/include -L/usr/local/lib64 conftest.c -ldl -lm   -L/usr/X11R6/lib64 -lX11 >&5
configure:36094: $? = 0
configure:36098: test -z
                         || test ! -s conftest.err
configure:36101: $? = 0
configure:36104: test -s conftest
configure:36107: $? = 0
[...]
configure:38437: checking whether compiling/linking Tcl/Tk code works
configure:38480: gcc -o conftest -g -O2  -I/usr/local/include -I/usr/include -I/usr/include -I/usr/X11R6/include -L/usr/local/lib64 conftest.c -ldl -lm  -L/usr/lib -ltcl8.4 -L/usr/lib -ltk8.4 -L/usr/X11R6/lib -lX11 >&5
/usr/bin/ld: skipping incompatible /usr/lib/libtcl8.4.so when searching for -ltcl8.4
/usr/bin/ld: skipping incompatible /usr/lib/libtcl8.4.so when searching for -ltcl8.4
/usr/bin/ld: skipping incompatible /usr/lib/libtk8.4.so when searching for -ltk8.4
/usr/bin/ld: skipping incompatible /usr/lib/libtk8.4.so when searching for -ltk8.4
/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
configure:38486: $? = 1

Running ./configure LDFLAGS="-L/usr/local/lib64  -L/usr/X11R6/lib64"
solves/avoids the problem for me.

I thought I'd report the problem anyway, since I don't know if it is the
intended behaviour of configure.


-- 
Sincerely,
Bj?rn-Helge Mevik



[Rd] R-beta: configure problem (tcltk) on 64 bit Red Hat EL
=?iso-8859-1?q?Bj=F8rn-Helge_Mevik?=