lSM lICE: not found
04 May 1998 13:11:19 -0400
>>>>> "Peter" == Peter Dalgaard BSA <email@example.com> 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
>> 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> 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> ../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
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).
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: firstname.lastname@example.org