Article View: gnu.chess
Article #5400Re: Help running XBoard on Solaris/SunOS
From: Tim Mann
Date: Thu, 09 Sep 1993 23:17
Date: Thu, 09 Sep 1993 23:17
110 lines
4870 bytes
4870 bytes
Here is some information people sent me. I actually got a lot more
responses, but what I've included below seemed to be the most useful
stuff. If it doesn't work for you, let me know and I'll sift through
the other info I have to see if it contains what you need.
[Note: I'm told that SunOS and Solaris are actually names for
different parts of the same thing; Solaris is a bigger package that
includes SunOS. But Sun marketing began to stress the name Solaris at
some point, so I think the common perception is that Solaris 1.x/SunOS
4.x is "SunOS" while Solaris 2.x/SunOS 5.x is "Solaris".]
What's below will be in the INSTALL file for XBoard 3.0.pl9.
--Tim
********** Information for Sun users ****************************************
There are lots of different kinds of Suns with different operating
systems and window systems that run on them. I don't personally have
access to any of them, but xboard is known to work on at least some.
I would like to collect more information about what has to be put in
the Imakefile to build xboard for each type of Sun and each operating
system/window system.
** Solaris 2.x (SunOS 5.x) *************************
For Solaris 2.x you need to uncomment a line in the Imakefile, as
shown just below:
# Uncomment the next line for Sun's Solaris 2.x, per Mark Silver:
SYS_LIBRARIES = -lsocket -lnsl -lelf -lm -L/usr/ucblib -lucb
To run an xboard that is built this way, Solaris users also need to
add /usr/ucblib to their LD_LIBRARY_PATH environment variable. To do
this, add the following line (or something like it) to your .login
file, then log out and back in:
setenv LD_LIBRARY_PATH ${OPENWINHOME}/lib:/usr/lib:/usr/ucblib
Thanks to Arik Klingensmith for the "setenv" information.
Also, ignore any compiler messages you get that start with the word
"warning." I try to eliminate those, but there is only so much I can
do to accomodate the many different C compilers in the world. Sun's
ANSI C compiler is especially picky.
** SunOS 4.x (Solaris 1.x) ***************************
Here is a success story from a SunOS 4.1.3 user. The details of what
you have to do may vary, unfortunately. I am still collecting more
information from other users and may add to this in future.
From: Ed Hanway <jeh@raster.Kodak.COM>
Date: Wed, 8 Sep 1993 15:16:14 -0400
Here is the Imakefile that worked for me for 3.0pl4 on SunOS
4.1.3. Note: CC is defined to use Sun's unbundled ANSI C compiler.
Also, I have my own version of 'xmkmf' that basically does the
following:
imake -DStandardIncludes=-I/usr/openwin/include -DUseInstalled /usr/openwin/lib/config
Without it, the Makefile will not know about the include files and
libraries in /usr/openwin.
#
# Imakefile -- for instructions on generating a Makefile
# for xboard from this file, see the file INSTALL
#
SYS_LIBRARIES = -lm
LOCAL_LIBRARIES = XawClientLibs
DEPLIBS = XawClientDepLibs
DEFINES = -DHAS_GETTIMEOFDAY
CDEBUGFLAGS = -g
CCOPTIONS = -Dsun
CC = acc -fast
# CC = gcc -Wall -pedantic -ansi -Wno-implicit -Wno-comment
# CC = gcc -Wall -traditional
#ifdef HPArchitecture
CCOPTIONS = -Aa -D_HPUX_SOURCE
#endif
# Uncomment this for Sun's Solaris 2.x, per Mark Silver:
# SYS_LIBRARIES = -lsocket -lnsl -lelf -lm -L/usr/ucblib -lucb
# If you get the following linker error messages on SunOS, you have
# hit a known bug in the SunOS linker (ld).
# ld: Undefined symbol
# _get_wmShellWidgetClass
# _get_applicationShellWidgetClass
# To work around it, try uncommenting this:
XMULIB = -Bstatic -lXmu -Bdynamic
# Ask Sun for patches 100512-02 and 100573-03 to get the real fix.
# Try uncommenting this if you use gcc and xboard crashes in sscanf.
# Probably needed on VAX Ultrix 3.1 and on IBM PS/2 AIX.
# CCOPTIONS = -fwritable-strings
SRCS = parser.c xboard.c backend.c
OBJS = parser.o xboard.o backend.o
#SRCS = parser.c xboard.c backend.c zippy.c
#OBJS = parser.o xboard.o backend.o zippy.o
AllTarget(xboard)
depend:: parser.c
clean::
$(RM) parser.c chess.lst CLp*
ComplexProgramTarget(xboard)
Technical Details
Message-ID:
<26odhu$gud@src-news.pa.dec.com>Path:
arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!spool.mu.edu!olivea!hal.com!decwrl!src.dec.com!mannReferences:
<26l8pu$6ho@src-news.pa.dec.com> <26lbbt$8vc@src-news.pa.dec.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d71d,31b435102207cfa2 X-Google-Attributes: gid10d71d,public X-Google-ArrivalTime: 1993-09-09 16:27:50 PST Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!spool.mu.edu!olivea!hal.com!decwrl!src.dec.com!mann From: mann@src.dec.com (Tim Mann) Newsgroups: gnu.chess Subject: Re: Help running XBoard on Solaris/SunOS Date: 9 Sep 1993 23:17:18 GMT Organization: DEC Systems Research Center Lines: 111 Message-ID: <26odhu$gud@src-news.pa.dec.com> References: <26l8pu$6ho@src-news.pa.dec.com> <26lbbt$8vc@src-news.pa.dec.com> NNTP-Posting-Host: cypress.pa.dec.com