Re: Scotty compile on Solaris 2.4

Robert Premuz (rpremuz@srce.hr)
Sat, 6 Apr 1996 10:26:12 +0200 (MET DST)

On Fri, 5 Apr 1996, Mike Martone wrote:
>
> I am trying to install scotty 2.0.2 on a Solaris 2.4 SUN using the GNU
> compilers. Configure seems to be OK, but MAKE gives me the problems
> below. Any suggestions?
> Thanks
>
> # make
> gcc -Wall -o scotty scotty.o libscotty.a /usr/local/lib/libtk4.0.a -LNONE
> -lX11 /usr/local/lib/libtcl7.4.a -lsocket -lnsl -lrpcsvc -lresolv -lm
> ld: fatal: library -lX11: not found
> ld: fatal: File processing errors. No output written to scotty
> *** Error code 1
> make: Fatal error: Command failed for target `scotty'

It seems to me that your linker (ld) cannot find the X11 library file
on your system. In the Scotty Makefile file, generated automatically
from Makefile.in by configure, you can find the following lines:

# Linker switch(es) to use to link with the X11 library archive (the
# configure script will try to set this value automatically, but you
# can override it).
X11_LIBS = -L/usr/openwin/lib -lX11

So, find the directory which contains the X11 library file on your
system and set the above -L option accordingly. If you are not
familiar with the ld linker, have a look at the meaning of -L and -l
options in the ld(1) man page.

Hope this helps.
v
-- rpr. : Robert B. Premuz
Internet: rpremuz@malik.srce.hr * Voice at home: +385 (0)1 687564