From Martin Maechler <maechler@stat.math.ethz.ch>  Thu Apr 22 14:04:30 1999
From: Martin Maechler <maechler@stat.math.ethz.ch> (Martin Maechler)
Date: Thu, 22 Apr 1999 15:04:30 +0200
Subject: R on AIX
In-Reply-To: <14111.7058.52732.38138@galadriel.ci.tuwien.ac.at> (message from
 Friedrich Leisch on Thu, 22 Apr 1999 14:52:34 +0200 (CEST))
References: <14111.7058.52732.38138@galadriel.ci.tuwien.ac.at>
Message-ID: <199904221304.PAA05194@sophie.ethz.ch>

>>>>> "FrL" == Friedrich Leisch <Friedrich.Leisch@ci.tuwien.ac.at> writes:

    FrL> I tried to build R on AIX and after 2 minor bugfixes everything
    FrL> seems to work fine except for dynamic loading of code.

    FrL> In a previous mail I found that Fabrizio Moro succeeded using

    FrL>   SHLIBLDFLAGS="-bM:S1L -bnoentry -bnogc -berok -lc -lm -lodm -lcfg"

    FrL> which compiles fine for me, I get also no error messages upon
    FrL> dynloading, but no symbols are available afterwards,
    FrL> i.e. is.loaded fails (I tried also with trailing underscores
    FrL> etc.).

Yes.  Unfortunately, Fabrizio (nor me) followed up on that mail telling you
that we (Fabrizio and me) ended up with the exact same symptomps as you
have.

I gave up at that time; Fabrizio continues to use S-plus on AIX
(and R on Linux, to some extentes at least)...
... yes a sad story,  but I think we both ended up with the impression that
AIX is half broken environment anyway 
 --- at least if you want to compile software that has no problems at all
     on other architectures...


    FrL> Has anybody some experience which flags to use?

    FrL> I use an rs6000-ibm-aix4.2.1.0 and the native cc, f77 and ld (gcc
    FrL> compiles but produces incorrect code, i.e., some computations are
    FrL> wrong).

    FrL> Make check succeeds until eda :-)

exactly. The first time, dyn.load is needed....

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


R on AIX
Martin Maechler