Skip to content
Prev 5930 / 63462 Next

Compiling R (1.3.0) on AIX (4.3) fails (PR#1034)

Argh.  After sinking some more time into this ... here's what happens.

Assuming that both tclConfig.sh and tkConfig.sh are found, we do

	TCLTL_LIBS="${TCL_LIB_SPEC} ${TK_LIB_SPEC} ${TK_LIBS}"

Using tcl8.4a1 and tk8.4a1 one gets for a shared build on AIX from the
TclTk configure code:

    if test "$using_gcc" = "yes" ; then
        TCL_BUILD_LIB_SPEC="-Wl,-bI:`pwd`/${TCL_BUILD_EXP_FILE} -L`pwd`"
        TCL_LIB_SPEC="-Wl,-bI:${exec_prefix}/lib/${TCL_EXP_FILE} -L`pwd`"    
    else
        TCL_BUILD_LIB_SPEC="-bI:`pwd`/${TCL_BUILD_EXP_FILE}"
        TCL_LIB_SPEC="-bI:${exec_prefix}/lib/${TCL_EXP_FILE}"    
    fi

    TK_LIB_SPEC="-bI:${exec_prefix}/lib/${TK_EXP_FILE}"

So the TclTk maintainers in their infinite wisdom have caught the gcc
case for tcl but not for tk.

I therefore suggest the following.

* Can you try replacing

      TCLTK_LIBS="${TCLTK_LIBS} ${TK_LIB_SPEC} ${TK_LIBS}"

  in m4/R.m4 by

      TCLTK_LIBS="${TCLTK_LIBS} ${wl}${TK_LIB_SPEC} ${TK_LIBS}"

  and see if that works?  (You will have to configure using
  --enable-maintainer-mode to get configure rebuilt.  Or, you could
  simply edit configure.)  By `works' I mean under both gcc and cc.

* If so, this is the short-term fix we could go for.  If not, we may
  need to infer wl for non-gcc from libtool, which is doable.

* It may be useful to report the discrepancy to the TclTk maintainers.

* Provided they fix the problem, we need to think about better
  strategies.  (Something like if wl is not the empty string and
  TK_LIB_SPEC does not start with it then add it as prefix.)  But let us
  not worry about this now.

-k
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._