bug-gnu-chess
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re:


From: Stuart Cracraft
Subject: Re:
Date: Sat, 06 Jan 2001 19:50:14 -0800

At 02:53 PM 1/3/2001 -0800, Sean Power wrote:
>I must be doing something wrong again ... :|
>Script started on Wed Jan  3 17:28:58 2001
>address@hidden:/usr/local# mkdir chess-5.03
>address@hidden:/usr/local# cp 503.zip
>/usr/local/chess-5.03
>address@hidden:/usr/local# cd chess-5.03
>address@hidden:/usr/local/chess-5.03# unzip 503.zip
>Archive:  503.zip
>  inflating: book.h
>  inflating: common.h
>  inflating: svasync.h
>  inflating: univ.h
>  inflating: version.h
>  inflating: eval.h
>  inflating: atak.c
>  inflating: book.c
>  inflating: cmd.c
>  inflating: epd.c
>  inflating: genmove.c
>  inflating: hash.c
>  inflating: hung.c
>  inflating: init.c
>  inflating: iterate.c
>  inflating: main.c
>  inflating: move.c
>  inflating: null.c
>  inflating: output.c
>  inflating: pgn.c
>  inflating: players.c
>  inflating: random.c
>  inflating: search.c
>  inflating: solve.c
>  inflating: sort.c
>  inflating: svasync.c
>  inflating: quiesce.c
>  inflating: term1.c
>  inflating: test.c
>  inflating: ttable.c
>  inflating: univ.c
>  inflating: util.c
>  inflating: version.c
>  inflating: eval.c
>  inflating: repeat.c
>  inflating: swap.c
>  inflating: configure
>  inflating: configure.in
>  inflating: isr.s
>  inflating: Makefile.in
>  inflating: Makefile
>  inflating: install-sh
>address@hidden:/usr/local/chess-5.03# autoconf
>
>configure.in:32: warning: AC_TRY_RUN called without
>default to allow cross comp$
>address@hidden:/usr/local/chess-5.03# ./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/ginstall -c
>checking for sqrt in -lm... 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


** I suspect some of your problem might be from doing the above in a directory 
that
had anything else. Suggest a clean, empty directory to start off in.


>address@hidden:/usr/local/chess-5.03# make
>gcc -c -O3 -Winline -Wmissing-prototypes
>-funroll-loops -fomit-frame-pointer -D$In file


The point of the -D in this case is to defined IBMPC or UNIX depending on
what you are doing. Suggest checking the Makefile to see what is being
substituted after the -D. Just trace back and you'll see. Make it -DIBMPC or 
-DUNIX
and recompile. If you do not know which. Do one and if it fails to run and play
a chess move in response to "go", then recompile all modules with the other.

>included from atak.c:29:
>common.h:103: `sq' undeclared here (not in a function)
>common.h:103: `board' undeclared here (not in a
>function)
>common.h:103: `Shift45' undeclared here (not in a
>function)
>common.h:103: `sq' undeclared here (not in a function)
>common.h:103: `Mask45' undeclared here (not in a
>function)
>common.h:103: `sq' undeclared here (not in a function)
>common.h:103: parse error before `|'
>common.h:103: stray '\' in program
>common.h:106: stray '\' in program
>common.h:109: stray '\' in program
>common.h:109: stray '\' in program


Take a look in the code at these lines. Make sure there is no ^M
at the end of the line. If there is and you are on Linux, do:

   tr d '\015' < module.c > module.new
   mv module.c module.old
   mv module.new module.c

for each such occurrence.

>atak.c: In function `GenAtaks':
>atak.c:120: stray '\' in program
>atak.c:120: parse error before `;'
>atak.c:130: stray '\' in program
>atak.c:130: parse error before `;'
>atak.c:140: stray '\' in program
>atak.c:140: parse error before `;'
>atak.c: In function `AttackFrom':
>atak.c:293: stray '\' in program
>atak.c:293: parse error before `)'
>atak.c:295: stray '\' in program
>atak.c:295: parse error before `)'
>atak.c:297: stray '\' in program
>atak.c:297: parse error before `)'
>atak.c: In function `MateScan':
>atak.c:516: stray '\' in program
>atak.c:516: warning: assignment makes integer from
>pointer without a cast
>make: *** [atak.o] Error 1

What kind of system are you running on anyway? 
Seems like your GNU C compile is getting a bit too strict.


>address@hidden:/usr/local/chess-5.03# :(
>bash: syntax error near unexpected token `:('
>address@hidden:/usr/local/chess-5.03# exit
>exit
>
>Script done on Wed Jan  3 17:30:02 2001




reply via email to

[Prev in Thread] Current Thread [Next in Thread]