[Rd] R on AIX
Kurt Hornik
Kurt.Hornik@wu-wien.ac.at
Sun, 24 Mar 2002 21:36:11 +0100
Two issues re R on AIX that came up in recent email exchange with Dan
Million <lio@hpss1.ccs.ornl.gov>:
* We currently use the Autoconf AC_AIX macro which essentially 'defines'
_ALL_SOURCE on AIX. According to Dan, on AIX one ends up with
#define _ALL_SOURCE 1
which follows Autoconf's general pattern, but causes a problem as the
system headers (unconditionally?) have
#define _ALL_SOURCE
which gives a redefinition error. Now the Autoconf source has
AC_DEFUN([AC_AIX],
[AH_VERBATIM([_ALL_SOURCE],
[/* Define to 1 if on AIX 3.
System headers sometimes define this.
We just want to avoid a redefinition error message. */
etc ... noting the 'AIX 3' part, I am wondering if we need the macro
at all. Does anyone know?
* Dan also pointed me to 'run-time linking' vs the usual AIX style
linking. Using run-time linking one could simply do
MAIN_LDFLAGS=-brtl
SHLIB_LDFLAGS="-G"
instead of the complicated import/export handling with AIX linking,
and apparently also no longer need an export file?
Dan says that run-time linking is available in AIX 4.2 or better, does
anyone know more about this? Should it perhaps be made the default if
available?
Note that I have no access to AIX, hence need help ...
-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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._