🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.chess
Article #2441

compiling 5.0 under Red Hat

#2441
From: George Smith
Date: Tue, 25 Apr 2000 00:00
193 lines
10831 bytes
I can't get GNU Chess 5.0 to compile. I am running Red Hat Linux 6.0 on
a Pentium III machine. This is presumably due to lack of experience. I
don't program in C at all, but only compile source code which I download.

If I follow the directions in the README I receive the messages at the
end of this post (under 1.). If I change MACHINE=-DUNIX to MACHINE=-DIBMPC,
which it seems to me that I need to do, I still get warnings and the
install error (this transcript is listed at the end of this post under 2.)

It seems to me that at least the install error could be related to the
following

# make k2 - makes chess-playing program with xboard capability
#	    (run k2.exe afterwards, with "post" if you wish verbosity)
# make k2u - makes version that interfaces with Novag Universal Chess Board
#	    (run k2u.exe afterwards, set mode universal on, plug Universal
#	     into COM1 port on PC using Novag cable.)

If I uncomment 'make k2' I get yet another error referring to that line
(I do want to use xboard).


I find it strange that during 'make install' there seems to be an attempt
to copy a file 'k2.exe' to  '/winprg/winboard'. This seems like something
one would expect on a Windows PC.


I would be greatful for any help.


Thanks,

George Smith
smithg@rz.uni-potsdam.de
Institut fuer Germanistik
Universitaet Potsdam


-------------------------------
1. Transcript with unchanged Makefile


[george@bloomfield src]$ ./configure
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c
checking for sqrt in -lm... yes
checking for tgetent in -ltermcap... yes
checking for printw in -lcurses... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for fcntl.h... yes
checking for time.h... yes
checking for sys/file.h... yes
checking for sys/ioctl.h... yes
checking for sys/time.h... yes
checking for unistd.h... yes
checking for working const... yes
checking for inline... inline
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking size of long... 4
checking whether gcc needs -traditional... no
checking return type of signal handlers... void
checking for gettimeofday... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoul... yes
checking for memset... yes
checking for setvbuf... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
[george@bloomfield src]$ make
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DUNIX  atak.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DUNIX  book.c
book.c: In function `bookmove':
book.c:191: warning: passing arg 4 of `qsort' from incompatible pointer type
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DUNIX  cmd.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DUNIX  epd.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DUNIX  eval.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DUNIX  genmove.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DUNIX  hash.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DUNIX  hung.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DUNIX  init.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DUNIX  iterate.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DUNIX  main.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DUNIX  move.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DUNIX  null.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DUNIX  output.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DUNIX  pgn.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DUNIX  quiesce.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DUNIX  random.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DUNIX  repeat.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DUNIX  search.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DUNIX  solve.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DUNIX  sort.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DUNIX  swap.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DUNIX  test.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DUNIX  ttable.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DUNIX  util.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DUNIX  version.c
gcc -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DUNIX  -o gnuchess
atak.o book.o cmd.o epd.o eval.o genmove.o hash.o hung.o init.o iterate.o main.o move.o null.o
output.o pgn.o quiesce.o random.o repeat.o search.o solve.o sort.o swap.o test.o ttable.o
util.o version.o -lm
[george@bloomfield src]$ make install
cp k2.exe /winprg/winboard
cp: k2.exe: No such file or directory
make: *** [install] Error 1                                       



----------------------------------------
2. Makefile altered so that MACHINE=-DIBMPC


[george@bloomfield src]$ ./configure
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c
checking for sqrt in -lm... yes
checking for tgetent in -ltermcap... yes
checking for printw in -lcurses... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for fcntl.h... yes
checking for time.h... yes
checking for sys/file.h... yes
checking for sys/ioctl.h... yes
checking for sys/time.h... yes
checking for unistd.h... yes
checking for working const... yes
checking for inline... inline
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking size of long... 4
checking whether gcc needs -traditional... no
checking return type of signal handlers... void
checking for gettimeofday... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoul... yes
checking for memset... yes
checking for setvbuf... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
[george@bloomfield src]$ make
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DIBMPC  atak.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DIBMPC  book.c
book.c: In function `bookmove':
book.c:191: warning: passing arg 4 of `qsort' from incompatible pointer type
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DIBMPC  cmd.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DIBMPC  epd.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DIBMPC  eval.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DIBMPC  genmove.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DIBMPC  hash.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DIBMPC  hung.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DIBMPC  init.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DIBMPC  iterate.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DIBMPC  main.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DIBMPC  move.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DIBMPC  null.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DIBMPC  output.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DIBMPC  pgn.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DIBMPC  quiesce.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DIBMPC  random.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DIBMPC  repeat.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DIBMPC  search.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DIBMPC  solve.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DIBMPC  sort.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DIBMPC  swap.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DIBMPC  test.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DIBMPC  ttable.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DIBMPC  util.c
gcc -c -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DIBMPC  version.c
gcc -O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer -DIBMPC  -o gnuchess
atak.o book.o cmd.o epd.o eval.o genmove.o hash.o hung.o init.o iterate.o main.o move.o null.o
output.o pgn.o quiesce.o random.o repeat.o search.o solve.o sort.o swap.o test.o ttable.o
util.o version.o -lm
[george@bloomfield src]$ make install
cp k2.exe /winprg/winboard
cp: k2.exe: No such file or directory
make: *** [install] Error 1                                         
Technical Details
Message-ID: <m2wvlmtmvo.fsf@bloomfield.phil1.uni-potsdam.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d71d,28059c8359fec79f,start
X-Google-Attributes: gid10d71d,public
From: George Smith <smithg@rz.uni-potsdam.de>
Subject: compiling 5.0 under Red Hat
Date: 2000/04/25
Message-ID: <m2wvlmtmvo.fsf@bloomfield.phil1.uni-potsdam.de>
X-Deja-AN: 615432415
X-Complaints-To: usenet@zeppelin.rz.uni-potsdam.de
X-Trace: zeppelin.rz.uni-potsdam.de 956663795 7928 141.89.99.140 (25 Apr 2000 11:56:35 GMT)
Organization: University of Potsdam
NNTP-Posting-Date: 25 Apr 2000 11:56:35 GMT
Newsgroups: gnu.chess