Skip to content
Prev 5931 / 63462 Next

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

Excerpt from email by Kurt Hornik:
I think you're right with this assumption, but sadly, the current devel
release for tcl/tk 8.4a2 is broken--even the maintainers of tcl/tk don't
know how they want to handle TK_LIB_SPEC, TK_LIBS and friends!  When I tried
to compile Tk it failed for 'wish'.  I'll check out how to file bug reports
against tcl/tk...
... which is wrong, BTW:  TCL_LIB_SPEC should refer to ${exec_prefix}/lib
not `pwd` ...
That would explain why Tcl/Tk compiles with Aix's cc but not gcc.
I changed configure since I don't have autoconf etc. installed.
Your solution works when compiling with gcc! I haven't tried cc yet but will
do so tomorrow.
I'll try to compile tcl and tk with gcc and send in reports.
Do you really want to go this way?  Is AIX the only OS where you can run
into this kind of trouble?  If so, why not add a compilation of a little
test program  in configure in case you have os==AIX, that would use the same
flags that you'll use in library/src/tcltk.c?  If that fails, it's flagged
early on and directly points to the tcl/tk installation (and not to R).

Thanks,
  -tom

--
Email: vogels@cmu.edu

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._