ANSI Header Problems in Psys

Symptoms of ANSI header problems include mention of the stdlib.h and stddef.h header files in the error message, and mention of the _SIZE_T and _PTRDIFF_T defines in the error message. There are several possible solutions to this problem, depending on your machine configuration; they are listed in order of probability of working:

  1. Make a file stdlib.h in the directory psys/include, that contains one line: the string #include <sys/types.h>. This file may help for the compilation of some files but break the compilation of other files; if so, delete and re-make the file as needed.
  2. Undo the change described in 1. above, and add -D_SIZE_T -D_PTRDIFF_T to the CFLAGS definition in the Makefile.
  3. Undo the change described in 2. above, and add the empty files stddef.h and stdlib.h in the directory psys/include. These files may help for the compilation of some files but break the compilation of other files; if so, delete and re-make the files as needed.

Please send me email if you needed to use the information on this page. I'm pretty sure this particular bug never happens in the field anymore, it primarily affects SunOS users with early Sparcstations that have never had software upgrades.

Email
john [dot] lazzaro [at] gmail [dot] com