🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.chess
Article #4267

Re: Need help compiling gnuchess-4.0.pl75

#4267
From: Dmitry Dakhnovsky
Date: Fri, 18 Aug 1995 00:00
150 lines
6739 bytes
Excerpts from netnews.gnu.chess: 17-Aug-95 Need help compiling gnuches..
Hans-Henrik Grand@daimi. (5547)

> Hi!

> I have tried to compile gnuchess-4.0.pl75 on to different machines without
> any luck.

> I follow the instructions in the INSTALL file locateded in the src directory.

> 1) Sun Sparc running SunOS pound 5.4 Generic_101945-27 sun4m sparc

> I write ./configure to make my Makefile.

> It generates this config.cache file:

> # This file is a shell script that caches the results of configure
> # tests run on this system so they can be shared between configure
> # scripts and configure runs.  It is not useful on other systems.
> # If it contains results you don't want to keep, you may remove or edit it.
> #
> # By default, configure uses ./config.cache as the cache file,.cache
> # creating it if it does not exist already.  You can give configure
> # the --cache-file=FILE option to use a different cache file; that is
> # what configure does when it calls configure scripts in
> # subdirectories, so they share the cache.
> # Giving --cache-file=/dev/null disables caching, for debugging configure.
> # config.status only pays attention to the cache file if you give it the
> # --recheck option to rerun configure.
> #
> ac_cv_c_const=${ac_cv_c_const='yes'}
> ac_cv_c_cross=${ac_cv_c_cross='no'}
> ac_cv_c_inline=${ac_cv_c_inline='inline'}
> ac_cv_func_gettimeofday=${ac_cv_func_gettimeofday='yes'}
> ac_cv_func_memset=${ac_cv_func_memset='yes'}
> ac_cv_func_strstr=${ac_cv_func_strstr='yes'}
> ac_cv_func_strtol=${ac_cv_func_strtol='yes'}
> ac_cv_func_strtoul=${ac_cv_func_strtoul='yes'}
> ac_cv_header_fcntl_h=${ac_cv_header_fcntl_h='yes'}
> ac_cv_header_stdc=${ac_cv_header_stdc='yes'}
> ac_cv_header_sys_file_h=${ac_cv_header_sys_file_h='yes'}
> ac_cv_header_sys_ioctl_h=${ac_cv_header_sys_ioctl_h='yes'}
> ac_cv_header_sys_time_h=${ac_cv_header_sys_time_h='yes'}
> ac_cv_header_time=${ac_cv_header_time='yes'}
> ac_cv_header_time_h=${ac_cv_header_time_h='yes'}
> ac_cv_header_unistd_h=${ac_cv_header_unistd_h='yes'}
> ac_cv_lib_curses=${ac_cv_lib_curses='yes'}
> ac_cv_lib_m=${ac_cv_lib_m='yes'}
> ac_cv_lib_termcap=${ac_cv_lib_termcap='yes'}
> ac_cv_path_install=${ac_cv_path_install='./install-sh -c'}
> ac_cv_prog_CC=${ac_cv_prog_CC='gcc'}
> ac_cv_prog_CPP=${ac_cv_prog_CPP='gcc -E'}
> ac_cv_prog_gcc=${ac_cv_prog_gcc='yes'}
> ac_cv_prog_gcc_g=${ac_cv_prog_gcc_g='yes'}
> ac_cv_prog_gcc_traditional=${ac_cv_prog_gcc_traditional='no'}
> ac_cv_type_signal=${ac_cv_type_signal='void'}
> ac_cv_type_size_t=${ac_cv_type_size_t='yes'}

> end of config.cache file.

> After typing make, I get this error:

> nondspX.o(.text+0x18): undefined reference to `setlinebuf'
> *** Error code 1
> make: Fatal error: Command failed for target `gnuchessx'

Find the line that calls setlinebuf and replace it with setvbuf, if your
system doesn't have
setlinebuf (which is odd)..  Do a "man setvbuf" and set stdout to line
buffering.

> I don't know what this means, but if you have suggestions abaut what I can do,
> please let me know.

> 2) Silicon Graphics running IRIX radon 5.3 11091812 IP22 mips

> I write ./configure to make my Makefile.

> My config.cache looks like this:

> # This file is a shell script that caches the results of configure
> # tests run on this system so they can be shared between configure
> # scripts and configure runs.  It is not useful on other systems.
> # If it contains results you don't want to keep, you may remove or edit it.
> #
> # By default, configure uses ./config.cache as the cache file,
> # creating it if it does not exist already.  You can give configure
> # the --cache-file=FILE option to use a different cache file; that is
> # what configure does when it calls configure scripts in
> # subdirectories, so they share the cache.
> # Giving --cache-file=/dev/null disables caching, for debugging configure.
> # config.status only pays attention to the cache file if you give it the
> # --recheck option to rerun configure.
> #
> ac_cv_c_const=${ac_cv_c_const='yes'}
> ac_cv_c_cross=${ac_cv_c_cross='no'}
> ac_cv_c_inline=${ac_cv_c_inline='inline'}
> ac_cv_func_gettimeofday=${ac_cv_func_gettimeofday='yes'}
> ac_cv_func_memset=${ac_cv_func_memset='yes'}
> ac_cv_func_strstr=${ac_cv_func_strstr='yes'}
> ac_cv_func_strtol=${ac_cv_func_strtol='yes'}
> ac_cv_func_strtoul=${ac_cv_func_strtoul='yes'}
> ac_cv_header_fcntl_h=${ac_cv_header_fcntl_h='yes'}
> ac_cv_header_stdc=${ac_cv_header_stdc='yes'}
> ac_cv_header_sys_file_h=${ac_cv_header_sys_file_h='yes'}
> ac_cv_header_sys_ioctl_h=${ac_cv_header_sys_ioctl_h='yes'}
> ac_cv_header_sys_time_h=${ac_cv_header_sys_time_h='yes'}
> ac_cv_header_time=${ac_cv_header_time='yes'}
> ac_cv_header_time_h=${ac_cv_header_time_h='yes'}
> ac_cv_header_unistd_h=${ac_cv_header_unistd_h='yes'}
> ac_cv_lib_curses=${ac_cv_lib_curses='yes'}
> ac_cv_lib_m=${ac_cv_lib_m='yes'}
> ac_cv_lib_termcap=${ac_cv_lib_termcap='yes'}
> ac_cv_path_install=${ac_cv_path_install='./install-sh -c'}
> ac_cv_prog_CC=${ac_cv_prog_CC='gcc'}
> ac_cv_prog_CPP=${ac_cv_prog_CPP='gcc -E'}
> ac_cv_prog_gcc=${ac_cv_prog_gcc='yes'}
> ac_cv_prog_gcc_g=${ac_cv_prog_gcc_g='yes'}
> ac_cv_prog_gcc_traditional=${ac_cv_prog_gcc_traditional='no'}
> ac_cv_type_signal=${ac_cv_type_signal='void'}
> ac_cv_type_size_t=${ac_cv_type_size_t='yes'}

> End of config.cache.

> After running make, I get this error:

> FIONREAD: Operation not applicable
> You probably have a non-ANSI <ioctl.h>; see README. -1 89 4004667f
> *** Error code 1 (bu21) 

> And I follow the instructions in the README and gnuchess-FAQ.txt. 
> I append the flag "-traditional-cpp" last to the  line that starts "CFLAGS="
> in the Makefile.
> I do 
>         rm dspcom*.o gnuan.o
> And then after typing make again, I get the exact same error as before.

> What can I do ?

> Regards
Hans-Henrik Grand

Comment out FIONREAD if you are going to use gnuchess with Xboard.
There is no FIONREAD on sgi's.

> --
> **************  Hans-Henrik  Grand  ****************
> **  **  **   Computer Science Department  **  **  **
> **  **  **       Aarhus University        **  **  **
> *********** email: hhg@daimi.aau.dk ****************
Technical Details
Message-ID: <wkB_rH200YUwI7IkZo@andrew.cmu.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <40v1mt$2ls@belfort.daimi.aau.dk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d71d,788ba1efc7d73595
X-Google-Attributes: gid10d71d,public
From: Dmitry Dakhnovsky <dima+@andrew.cmu.edu>
Subject: Re: Need help compiling gnuchess-4.0.pl75
Date: 1995/08/18
Message-ID: <wkB_rH200YUwI7IkZo@andrew.cmu.edu>
X-Deja-AN: 108439584
references: <40v1mt$2ls@belfort.daimi.aau.dk>
organization: Carnegie Mellon, Pittsburgh, PA
newsgroups: gnu.chess