🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

3 total messages Started by Merlin Sat, 13 Oct 1990 01:13
gnuchess compiling
#6088
Author: Merlin
Date: Sat, 13 Oct 1990 01:13
102 lines
4047 bytes
I see to be having a problem with compiling gnuchess....  I had to remove
the usr and bin references, and tried compiling it like this, and it seems
like it compiles properly but then it core dumps...  i've gotten an earlier
version of gnuchess(1.55) i think to compile, but i would rather get 3.1
working...  I'm not sure if it's a problem with the makefile, but i would
appreciate any hints or comments, or any help that can be provided!

Thanks in advance...
Ian

P.S.  Please respond to my internet mbox..

iac1@ra.msstate.edu
#
# Makefile for CHESS
#
# Copyright (C) 1986, 1987, 1988, 1989, 1990 Free Software Foundation, Inc.
#
# This file is part of CHESS.
#
# CHESS is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY.  No author or distributor
# accepts responsibility to anyone for the consequences of using it
# or for whether it serves any particular purpose or works at all,
# unless he says so in writing.  Refer to the CHESS General Public
# License for full details.
#
# Everyone is granted permission to copy, modify and redistribute
# CHESS, but only under the conditions described in the
# CHESS General Public License.   A copy of this license is
# supposed to have been given to you along with CHESS so you
# can know your rights and responsibilities.  It should be in a
# file named COPYING.  Among other things, the copyright notice
# and this notice must be preserved on all copies.
#
# gnuchess  will be the curses-based chess.
# gnuchessn will be the fancy-display-curses-based chess.
# gnuchessr will be the xchess/chesstool based chess.
#		(/usr/games/chesstool gnuchessr)
#    for use with SUN's chesstool and X-window's xchess.
#    To use with latter, add -DCHESSTOOL to the nondsp.o
#    compilation lines (e.g. cc -O -DCHESSTOOL ...)
# If you want to use the persistent transpositon table add
# -DHASHFILE=\"$(LIBDIR)/gnuchess.hash\"
# to the gnuchess.o compilation line. You also have to run gnuchess -t
# To actually create the file. -t can also be used to report
# statistics about the file or to resize it.
#
VERS=	3.1
DIST=	README DOCUMENTATION Makefile Makefile.dos version.h\
	gnuchess.h gnuchess.c\
	uxdsp.c nondsp.c nuxdsp.c gnuchess.book Xchess
LCURSES=-lcurses -ltermcap
CC=	gcc -W
CFLAGS=	-O -finline-functions -fstrength-reduce

all : gnuchess gnuchessr gnuchessn

gnuchess: gnuchess.o uxdsp.o
	$(CC) $(CFLAGS) -o gnuchess gnuchess.o uxdsp.o $(LCURSES)

gnuchessr: gnuchess.o nondsp.o
	$(CC) $(CFLAGS) -o gnuchessr gnuchess.o nondsp.o

gnuchessn: gnuchess.o nuxdsp.o
	$(CC) $(CFLAGS) -o gnuchessn gnuchess.o nuxdsp.o $(LCURSES)

gnuchess.o: gnuchess.c
	$(CC) $(CFLAGS) -c gnuchess.c

uxdsp.o: uxdsp.c
	$(CC) $(CFLAGS) -c uxdsp.c

nuxdsp.o: nuxdsp.c
	$(CC) $(CFLAGS) -c nuxdsp.c

nondsp.o: nondsp.c
	$(CC) $(CFLAGS) -c nondsp.c

lint:
	lint gnuchess.c uxdsp.c nondsp.c nuxdsp.c

unprotoize:
	unprotoize -c gnuchess.c uxdsp.c nondsp.c nuxdsp.c

protoize:
	protoize -c gnuchess.c uxdsp.c nondsp.c nuxdsp.c

distribution:
	tar cf - $(DIST) > gnuchess.tar
	compress gnuchess.tar
	mv gnuchess.tar.Z gnuchess-$(VERS).tar.Z

install:
	cp gnuchessr /home0/ch/iac1/gchess/gnuchess.chesstool
	cp gnuchess /home0/ch/iac1/gchess/gnuchess
	cp gnuchess.book /home0/ch/iac1/gchess/gnuchess.book

(note /home0/ch/iac1/gchess was the directory i was using)

clean:
	-rm gnuchess gnuchessr gnuchessn *.o
Re: gnuchess compiling
#6087
Author: Merlin
Date: Sat, 13 Oct 1990 18:26
11 lines
1126 bytes
I have been reminded that some more information about the system, etc that
i'm running would be of help :)...i'm compiling on SunOS 4.1 on a Sun 
Sparcserver, using GNU C v 1.36 i think, and it's giving a segmentation
fault error on coredump (i know that's many things)...i've tried using dbx
but seems like the main routine wasn't compiled with the -g option so, i
don't know...

Thanks,
Ian

iac1@ra.msstate.edu
Re: gnuchess compiling
#6089
Author: Ken Wolman
Date: Sun, 14 Oct 1990 00:16
21 lines
1664 bytes
In article <742@ra.MsState.Edu>, iac1@ra.MsState.Edu (Merlin) writes:
> I have been reminded that some more information about the system, etc that
> i'm running would be of help :)...i'm compiling on SunOS 4.1 on a Sun 
> Sparcserver, using GNU C v 1.36 i think, and it's giving a segmentation
> fault error on coredump (i know that's many things)...i've tried using dbx
> but seems like the main routine wasn't compiled with the -g option so, i
> don't know...
> 

It would be a great help to those of us without significant
programming knowledge if people who have succeeded in compiling
gnuchess on different machines would post their methods, fixes to
Makefiles, etc.  I gather the fixes for various flavors of UNIX differ
from each other, from what one would do on a PC, etc.  

Many thanks.
-- 
       Kenneth Wolman   |  ``But poetry sings past even the sadness
       AT&T Bell Labs   |                      that begins it....''
       Short Hills, NJ  |
       (201) 564-2866   |     Galway Kinnell, "Last Holy Fragrance"
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads