From Thomas Vogels <tov@ece.cmu.edu>  Sat Mar 18 05:14:17 2000
From: Thomas Vogels <tov@ece.cmu.edu> (Thomas J Vogels)
Date: 18 Mar 2000 00:14:17 -0500
Subject: [Rd] AIX fails on startup with R-1.0.0
Message-ID: <87ln3g97x2.fsf@bavaria.ece.cmu.edu>


Hi,

this is not a bug report since this may not be a problem with R per se. 

The current release of R (1.1.0) will compile cleanly on an AIX box
(I have 4.3.2) but it will fail upon startup with an Illegal
Instruction.  I've located the problem to be in do_strsplit when R
calls regcomp.

This function is defined in regex.c.  However, the text from regex.o
doesn't find its way into the executable, R.X11, since there's also a
regcomp in /usr/lib/libc.a  Apparently, this confuses the system
enough to completely lose its mind.  When regcomp in libc.a gets
called, the stack is trashed which made this hard to debug.

A temporary fix is to remove the _first_ use of -lc from the linker
command line.  This will affect the way the export symbols are
defined.  Not sure yet whether this matters.

Why does this bug only show up on AIX?  Is this some weird posix trap?

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


[Rd] AIX fails on startup with R-1.0.0
Thomas J Vogels