[Rd] AIX fails on startup with R-1.0.0

Kurt Hornik Kurt.Hornik@ci.tuwien.ac.at
Wed, 22 Mar 2000 16:02:15 +0100 (CET)


>>>>> Thomas J Vogels writes:

> Thomas Lumley <thomas@biostat.washington.edu> writes:

> [snip]
>> It's actually a combination of a number of factors.  On most systems we
>> link with the C compiler, which knows what to do with libc automatically.  
>> In any case, many linkers can handle the problem as Peter points out.

> On AIX you have to build the export file, R.exp, which was the reason
> to force the use of ld, I believe.  Also, the libs must be on the
> command line for ldAIX to include exported symbols from libc.a in
> R.exp (which reduces the size of shared libs).

>> On AIX we were using ld rather than CC to link, and ld doesn't move -lc to
>> the end, and we were using a hardcoded set of linker options that some
>> helpful user had sent in a long time ago (no-one in R-core has very
>> convenient access to AIX). It worked fine until we added GNU regex to R.

> ok, now I understand why this problem didn't occur until 1.0.  I
> glanced at Makeconf.  There is the '-lc' (along with '-lm') in the
> DLLFLAGS but also in SHLIBLDFLAGS -- do you plan to export regexec and
> friends?  Because the creation of shared libs with an early -lc will
> create the same Illegal Instructions...

Can you have a look at the current r-devel snapshot?  The way I think my
code works is by adding to R_XTRA_LIBS, which should only be used when
linking the main binary, but not when creating shared libraries.

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