I guess I need to mention what I did before  and why:


Ok... I directly plugged 
http://www.delorie.com/pub/djgpp/current/v2gnu/pth207b.zip

inside: 

/home/paul/opt/cross/lib/gcc/i386-pc-msdosdjgpp/10.2.0/

which I feels is a bit wrong... but working cowboy approach.

[I now think /home/paul/opt/cross/lib/ and /home/paul/opt/cross/include/ would 
have

been the right place to put those]



I then did the same with: 
http://www.delorie.com/pub/djgpp/current/v2tk/ls080b.zip

(to have sys/socket.h)



And then later I followed advice from: 
https://www.freebasic.net/wiki/DevBuildDos

(without reading much):

The file pthread.h in C:\DJGPP\include must be modified, by removing the lines:

#include <sys/socket.h> /* for sockaddr */

#include <sys/wtime.h> /* for struct timespec */

#include <sys/select.h>



And I now get:

paul@kasparno:~/Téléchargements/gnuchess$ CLANG=C make

Making all in src

make[1] : on entre dans le répertoire « /home/paul/Téléchargements/gnuchess/src 
»

make  all-recursive

make[2] : on entre dans le répertoire « /home/paul/Téléchargements/gnuchess/src 
»

Making all in frontend

make[3] : on entre dans le répertoire « 
/home/paul/Téléchargements/gnuchess/src/frontend »

i386-pc-msdosdjgpp-g++ -DHAVE_CONFIG_H -I. -I../../src  -I../../src -I../../lib 
  -g -O2 -MT pgn.o -MD -MP -MF .deps/pgn.Tpo -c -o pgn.o pgn.cc

In file included from ../../lib/gettext.h:54,

                 from pgn.cc:38:

/home/paul/opt/cross/lib/gcc/i386-pc-msdosdjgpp/10.2.0/include/c++/cstdlib:151:11:
 error: 'malloc' has not been declared in '::'

  151 |   using ::malloc;

      |           ^~~~~~

/home/paul/opt/cross/lib/gcc/i386-pc-msdosdjgpp/10.2.0/include/c++/cstdlib:164:11:
 error: 'realloc' has not been declared in '::'

  164 |   using ::realloc;

      |           ^~~~~~~

/home/paul/opt/cross/lib/gcc/i386-pc-msdosdjgpp/10.2.0/include/c++/cstdlib:169:11:
 error: 'system' has not been declared in '::'

  169 |   using ::system;

      |           ^~~~~~

make[3]: *** [Makefile:421 : pgn.o] Erreur 1

make[3] : on quitte le répertoire « 
/home/paul/Téléchargements/gnuchess/src/frontend »

make[2]: *** [Makefile:576 : all-recursive] Erreur 1

make[2] : on quitte le répertoire « /home/paul/Téléchargements/gnuchess/src »

make[1]: *** [Makefile:416 : all] Erreur 2

make[1] : on quitte le répertoire « /home/paul/Téléchargements/gnuchess/src »

make: *** [Makefile:516 : all-recursive] Erreur 1

paul@kasparno:~/Téléchargements/gnuchess$ 



I was not expecting errors in cstdlib.
_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to