[Rd] AIX fails on startup with R-1.0.0

Thomas J Vogels Thomas Vogels <tov@ece.cmu.edu>
19 Mar 2000 19:01:45 -0500



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

Thanks,
  -tom


-- 
mailto:tov@ece.cmu.edu (Tom Vogels)   Tel: (412) 268-6638   FAX: -3204
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._