From Thomas Vogels <tov@ece.cmu.edu>  Thu Mar 23 06:00:09 2000
From: Thomas Vogels <tov@ece.cmu.edu> (Thomas J Vogels)
Date: 23 Mar 2000 01:00:09 -0500
Subject: [Rd] AIX fails on startup with R-1.0.0
In-Reply-To: Kurt Hornik's message of "Wed, 22 Mar 2000 16:02:15 +0100 (CET)"
References: <Pine.GSO.4.21.0003181111590.11158-100000@mail.biostat.washington.edu> <871z561pcm.fsf@bavaria.ece.cmu.edu> <14552.57463.552150.382635@aragorn.ci.tuwien.ac.at>
Message-ID: <8766uens46.fsf@bavaria.ece.cmu.edu>


Hi,

ok, the main binary builds, but not ctest.so.  Here is the head of the
linker output:

$ ld -bM:SRE -H512 -T512 -bnoentry -bexpall       -bI:../../../../etc/R.exp  -o ct
est.so ansari.o fexact.o kendall.o ks.o prho.o swilk.o  -L/usr/local/lib -L/afs/
ece/usr/tov/opt/arch -lblas  -lxlf90 -lxlf -lxlomp_ser -lm
ld: 0711-317 ERROR: Undefined symbol: .sprintf
ld: 0711-317 ERROR: Undefined symbol: .itrunc

... and so on.  It's dearly missing -lc.  I've tried adding -lc and
that allowed at least ctest.so to link.  But where should -lc be added
for shared libs to link with?

Thanks,
  -tom

(I used rsync to get r-devel (date-stamp is 2000/March/22).)


Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at> writes:

[snip]
> 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

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