From rossini@math.sc.edu  Mon May  4 18:11:19 1998
From: rossini@math.sc.edu (Anthony Rossini)
Date: 04 May 1998 13:11:19 -0400
Subject: lSM  lICE: not found
In-Reply-To: Peter Dalgaard BSA's message of "04 May 1998 18:35:50 +0200"
References: <98May4.123424edt.13454@mailgate.bank-banque-canada.ca> <x267jmhu3d.fsf@blueberry.kubism.ku.dk>
Message-ID: <wnc1zua2c7c.fsf@fhat.stat.sc.edu>


>>>>> "Peter" == Peter Dalgaard BSA <p.dalgaard@biostat.ku.dk> writes:

    >> I'm trying to compile R 0.61.3 on Solaris and I get the
    >> following error. Does anyone know where I should find these
    >> libraries?
    >> 
    >> ld: fatal: library -lSM: not found
    >> ld: fatal: library -lICE: not found
    >> ld: fatal: File processing errors.  No output written to R.binary
    >> *** Error code 1
    >> make: Fatal error: Command failed for target `R.binary'

    Peter> Huh?

    Peter> bash$ uname -a
    Peter> SunOS stat 5.5.1 Generic_103640-05 sun4m sparc SUNW,SPARCstation-10

    Peter> <output from make>
    Peter> cd main; make
    Peter> gcc -o R.binary arithmetic.o array.o attrib.o bind.o builtin.o
    Peter>  ....
    Peter>  ../lib/libunix.a ../lib/libappl.a ../lib/libmath.a -L/usr/openwin/lib
    Peter>  -R/usr/openwin/lib -lX11 -lsocket -lnsl -ldl -lreadline -ltermcap -lm

    Peter> ..no mention of libSM or libICE.

    Peter> Why is it requiring those libraries in the first place??
    Peter> Are you installing from scratch or might there be some
    Peter> leftovers from a previous compile. The -lSM -lICE line
    Peter> seems to come from some generic X11 stuff in configure and
    Peter> are not mentioned in configure.in, which I suppose means:
    Peter> if R doesn't configure and compile, no other X program does
    Peter> either....

To clarify Peter's point, -lICE -lSM are from the X11R6 distribution,
but last I checked, OpenWindows (which is what Sun shipped with the
2.5 distribution, I've got my hands on a machine running 2.6), uses
X11R5, which doesn't have those two libraries.

If you've got a confused X set up (like a local version of The Open
Group's (was MIT's) X11R6 build, this could be the result.

You should determine the version of X, and link accordingly.

The only other thought is that Sun "forgot" to ship the SM and ICE
libs; they did that with a different library a few OS distributions
ago (Slowaris 2.3?).

Or it might be some confusion (XlispStat's configure once had a
similar problem a long time ago).

best,
-tony
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


lSM lICE: not found
Anthony Rossini