I have been able to cross-compile gnuchess 5.05.


Version 5 was released in 1999:

Announce: https://www.tim-mann.org/gnuchess/5.00.txt



According to:

https://www.tim-mann.org/gnuchess.html

version 6 was released in 2011



So that version, 5.05 does not use pthread, and is easier to compile.



Mostly had done:



[I have also added libreadline from 
http://www.delorie.com/pub/djgpp/current/v2gnu/rdln80b.zip to my 
cross-compiler.]



./configure --host=i386-pc-msdosdjgpp


make



Seen the following error:



i386-pc-msdosdjgpp-gcc  -g -O2   -o gnuchess.exe  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 
players.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  -lreadline 

/home/paul/opt/cross/lib/gcc/i386-pc-msdosdjgpp/10.2.0/../../../../i386-pc-msdosdjgpp/bin/ld:
 cmd.o: in function `InputCmd':

/home/paul/Téléchargements/chess/src/cmd.c:95: undefined reference to 
`rpl_malloc'

/home/paul/opt/cross/lib/gcc/i386-pc-msdosdjgpp/10.2.0/../../../../i386-pc-msdosdjgpp/bin/ld:
 init.o: in function `InitHashTable':

/home/paul/Téléchargements/chess/src/init.c:753: undefined reference to 
`rpl_malloc'

/home/paul/opt/cross/lib/gcc/i386-pc-msdosdjgpp/10.2.0/../../../../i386-pc-msdosdjgpp/bin/ld:
 /home/paul/Téléchargements/chess/src/init.c:754: undefined reference to 
`rpl_malloc'

collect2: error: ld returned 1 exit status



Apply trick on:

https://github.com/maxmind/libmaxminddb/issues/144#issuecomment-757101861



that is:

ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes ./configure 
--with-gnu-ld --host=i386-pc-msdosdjgpp

where --with-gnu-ld was ignored I think

make



and there in src is:

paul@kasparno:~/Téléchargements/chess$ ls -lh src/gnuchess.exe 

-rwxrwxr-x 1 paul paul 2,0M jun 23 01:20 src/gnuchess.exe



So I transfer this simple file in DOSEMU2, played about 3 or 4 moves.

Works well... no escape codes.



Well, I remove my Linux gcc because at first I had forgot about using 
./configure --host=i386-pc-msdosdjgpp



If someone want to test... and or make a release file... I could rename it's 
extension to .xex and send it to you by email I think.



Does not react to ^C, but accept exit or quit command.

Or help command... that show among command show.

help show, indicate it is possible to show board
_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to