🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.chess
Article #3262

Gnuchess compiling errors

#3262
From: Vincent Musolino
Date: Mon, 24 Nov 1997 00:00
266 lines
13705 bytes
Hello.

I'm trying to compile gnuchess on an Indigo R4000 with IRIX5.3.

Here is the config output :

creating cache ./config.cache
checking for gcc... gcc
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /usr/local/bin/install -c
checking for -lm... no
checking for -ltermcap... yes
checking for -lcurses... yes
checking how to run the C preprocessor... gcc -E
checking whether cross-compiling... no
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

Please notice I'm using gcc, I do have the ANSI header files and I do
*not* need to use -traditional

Now the compilation messages :

        gcc -I. -O2 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1
        -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1
        -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1
        -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4
        -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1
        -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1
        -DHAVE_SETVBUF=1  -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64
        -DHISTORY  -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME
        -DECO -DHASHSTATS -DHASHFILE=\"/usr/local/lib/gnuchess.hash\"
        -DLANGFILE=\"/usr/local/lib/gnuchess.lang\"
        -DSRCLANGFILE=\"./../misc/gnuchess.lang\"
        -DBINBOOK=\"/usr/local/lib/gnuchess.data\" -c ./main.c
        mv main.o mainN.o
        gcc [snip] -c ./book.c 
        mv book.o bookN.o
        gcc [snip] -c ./genmoves.c
        mv genmoves.o genmovesN.o
        gcc [snip] -c ./ataks.c
        gcc [snip] -c ./util.c
        mv util.o utilN.o
        gcc [snip] -c ./eval.c
        mv eval.o evalN.o
        gcc [snip] -c ./init.c
        gcc [snip] -c ./search.c
        mv search.o searchN.o
        gcc [snip] -c ./dspcom.c
        mv dspcom.o dspcomN.o
        gcc [snip]-c ./uxdsp.c
        gcc -I. -O2 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1
        -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1
        -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1
        -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4
        -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1
        -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1
        -DHAVE_SETVBUF=1  -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64
        -DHISTORY  -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME
        -DECO -DHASHSTATS -DHASHFILE=\"/usr/local/lib/gnuchess.hash\"
        -DLANGFILE=\"/usr/local/lib/gnuchess.lang\"
        -DSRCLANGFILE=\"./../misc/gnuchess.lang\"  -o gnuchess mainN.o
        bookN.o genmovesN.o ataks.o utilN.o evalN.o init.o searchN.o
        dspcomN.o uxdsp.o  -lcurses -ltermcap  -lm /usr/bin/../lib/ld:
The shared object /usr/lib/libm.so did not resolve any symbols.
        You may want to remove it from your link line.
        gcc [snip] -c ./dspcom.c 
        mv dspcom.o dspcomR.o
        gcc [snip] -c ./nondsp.c 
        mv nondsp.o nondspR.o
        gcc -I. -O2 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1
        -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1
        -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1
        -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4
        -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1
        -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1
        -DHAVE_SETVBUF=1  -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64
        -DHISTORY  -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME
        -DECO -DHASHSTATS -DHASHFILE=\"/usr/local/lib/gnuchess.hash\"
        -DLANGFILE=\"/usr/local/lib/gnuchess.lang\"
        -DSRCLANGFILE=\"./../misc/gnuchess.lang\"  -o gnuchessr
        mainN.o bookN.o genmovesN.o ataks.o utilN.o evalN.o init.o
        searchN.o dspcomR.o nondspR.o -lcurses -ltermcap  -lm
        /usr/bin/../lib/ld:
The shared object /usr/lib/libm.so did not resolve any symbols.
        You may want to remove it from your link line.
        gcc -I. -O2 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1
        -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1
        -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1
        -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4
        -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1
        -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1
        -DHAVE_SETVBUF=1  -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64
        -DHISTORY  -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME
        -DECO -DHASHSTATS -DHASHFILE=\"/usr/local/lib/gnuchess.hash\"
        -DLANGFILE=\"/usr/local/lib/gnuchess.lang\"
        -DSRCLANGFILE=\"./../misc/gnuchess.lang\"  -c ./nuxdsp.c
        gcc -I. -O2 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1
        -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1
        -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1
        -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4
        -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1
        -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1
        -DHAVE_SETVBUF=1  -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64
        -DHISTORY  -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME
        -DECO -DHASHSTATS -DHASHFILE=\"/usr/local/lib/gnuchess.hash\"
        -DLANGFILE=\"/usr/local/lib/gnuchess.lang\"
        -DSRCLANGFILE=\"./../misc/gnuchess.lang\"  -o gnuchessn
        mainN.o bookN.o genmovesN.o ataks.o utilN.o evalN.o init.o
        searchN.o dspcomN.o nuxdsp.o  -lcurses -ltermcap  -lm
        /usr/bin/../lib/ld:
The shared object /usr/lib/libm.so did not resolve any symbols.
        You may want to remove it from your link line.
        gcc [snip] -c ./main.c
        mv main.o mainX.o
        gcc [snip] -c ./book.c
        mv book.o  bookX.o
        gcc [snip] -c ./genmoves.c
        mv genmoves.o  genmovesX.o
        gcc [snip] -c ./util.c
        mv util.o  utilX.o
        gcc [snip] -c ./eval.c
        mv eval.o evalX.o
        gcc [snip] -c ./search.c 
        mv search.o searchX.o
        gcc [snip] -c ./dspcom.c 
        mv dspcom.o dspcomX.o
        gcc [snip] -c ./nondsp.c 
        mv nondsp.o nondspX.o
        gcc -I. -O2 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1
        -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1
        -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1
        -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4
        -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1
        -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1
        -DHAVE_SETVBUF=1  -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64
        -DHISTORY  -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME
        -DECO -DHASHSTATS -DHASHFILE=\"/usr/local/lib/gnuchess.hash\"
        -DLANGFILE=\"/usr/local/lib/gnuchess.lang\"
        -DSRCLANGFILE=\"./../misc/gnuchess.lang\"  -o gnuchessx
        mainX.o bookX.o genmovesX.o ataks.o utilX.o evalX.o init.o
        searchX.o dspcomX.o nondspX.o -lcurses -ltermcap  -lm
        /usr/bin/../lib/ld:
The shared object /usr/lib/libm.so did not resolve any symbols.
        You may want to remove it from your link line.
        gcc [snip] -c ./main.c
        mv main.o mainC.o
        gcc [snip] -c ./book.c 
        mv book.o bookC.o
        gcc [snip] -c ./genmoves.c 
        mv genmoves.o genmovesC.o
        gcc [snip] -c ./util.c
        mv util.o  utilC.o
        gcc [snip] -c ./eval.c
        mv eval.o evalC.o
        gcc [snip] -c ./search.c 
        mv search.o searchC.o
        gcc [snip] -c ./dspcom.c 
        mv dspcom.o dspcomC.o
        gcc [snip] -c ./nondsp.c 
        mv nondsp.o nondspC.o
        gcc -I. -O2 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1
        -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1
        -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1
        -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4
        -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1
        -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1
        -DHAVE_SETVBUF=1  -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64
        -DHISTORY  -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME
        -DECO -DHASHSTATS -DHASHFILE=\"/usr/local/lib/gnuchess.hash\"
        -DLANGFILE=\"/usr/local/lib/gnuchess.lang\"
        -DSRCLANGFILE=\"./../misc/gnuchess.lang\"  -o gnuchessc
        mainC.o bookC.o genmovesC.o ataks.o utilC.o evalC.o init.o
        searchC.o dspcomC.o nondspC.o -lcurses -ltermcap  -lm
        /usr/bin/../lib/ld:
The shared object /usr/lib/libm.so did not resolve any symbols.
        You may want to remove it from your link line.
        gcc [snip] -c ./postprint.c
        gcc -I. -O2 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1
        -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1
        -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1
        -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4
        -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1
        -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1
        -DHAVE_SETVBUF=1  -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64
        -DHISTORY  -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME
        -DECO -DHASHSTATS -DHASHFILE=\"/usr/local/lib/gnuchess.hash\"
        -o postprint postprint.o
        gcc [snip] -c ./book.c 
        mv book.o bookG.o
        gcc [snip] -c ./search.c
        mv search.o searchG.o
        gcc [snip] -c ./gnuan.c
        gcc -I. -O2 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1
        -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1
        -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1
        -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4
        -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1
        -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1
        -DHAVE_SETVBUF=1  -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64
        -DHISTORY  -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME
        -DECO -DHASHSTATS -DHASHFILE=\"/usr/local/lib/gnuchess.hash\"
        -DLANGFILE=\"/usr/local/lib/gnuchess.lang\"
        -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -DIGNUAN  -o gnuan
        mainN.o bookG.o genmovesN.o ataks.o utilN.o evalN.o init.o
        searchG.o gnuan.o -lcurses -ltermcap  -lm /usr/bin/../lib/ld:
The shared object /usr/lib/libm.so did not resolve any symbols.
        You may want to remove it from your link line.
        gcc [snip] -c ./eco.c 
        gcc -I. -O2 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1
        -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1
        -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1
        -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4
        -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1
        -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1
        -DHAVE_SETVBUF=1  -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64
        -DHISTORY  -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME
        -DECO -DHASHSTATS -DHASHFILE=\"/usr/local/lib/gnuchess.hash\"
        -DLANGFILE=\"/usr/local/lib/gnuchess.lang\"
        -DSRCLANGFILE=\"./../misc/gnuchess.lang\"  -o ecor mainN.o
        eco.o genmovesN.o ataks.o utilN.o evalN.o init.o searchN.o
        dspcomR.o nondspR.o -lcurses -ltermcap  -lm
        /usr/bin/../lib/ld:
The shared object /usr/lib/libm.so did not resolve any symbols.
        You may want to remove it from your link line.
        rm -f gnuchess.eco step1.eco step2.eco
        echo 0 0 | ./ecor -b ./../book/eco.pgn -B step1.eco

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

In the README, it says I have this problem because I don't have an
ANSI C compiler. Well, it seems I do, and it also seems that I don't
need to run gcc with the -traditional flag (if I do, where do I put it
in the Makefile ?).

Thanks for your help.
-- 
Vincent Musolino, IRRMA-EPFL, PPH-Ecublens, 1015 Lausanne, Switzerland
Web : http://irrmawww.epfl.ch -> E-mail : Vincent.Musolino@xepfl.ch <-
Phone +41(21)693.46.00 Fax +41(21)693.66.55 (Work : epfl, *NOT* xepfl)
"If nothing ever sticks to TEFLON, how does TEFLON stick to the pan?"
Technical Details
Message-ID: <4svhxisgmw.fsf@irrmasg5.epfl.ch>
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,a7541026a59dc9b6,start
X-Google-Attributes: gid10d71d,public
From: Vincent Musolino <Vincent.Musolino@xepfl.ch>
Subject: Gnuchess compiling errors
Date: 1997/11/24
Message-ID: <4svhxisgmw.fsf@irrmasg5.epfl.ch>
X-Deja-AN: 292119489
Sender: musolino@irrmasg5.epfl.ch
X-Face: #O.AAavvG(K)fz6DEtA=T5DUJz9@\md<Tkt+vXBWs*&TBR^Iw+(n4iF}*6Jkg#wLvD,)8}D $`!LrU[oJ\iv,c;2(#xR@@:DE'e,4p#(||DoexvO3tbV3S?H"&wffD`u-)9cJe}"oO-{#XE6s=?l,( kA.MXfA[M-8bJ?%ljd[1L=/jZ:d40rq|:8b;krJH:oPb'/\HQK*NcU<>kXKAffNe\%*j3Fo*R=imy% 4/Y7RyjZ'/`<&H'`k(mMQ5i&;k>|
Organization: EPFL
Newsgroups: gnu.chess