[NTG-pdftex] pdftex: compile errors/warnings

Thomas Esser te@dbs.uni-hannover.de
Tue, 15 Jul 2003 22:14:27 +0200


Today, I have compiled pdftex (today's version from the perforce tree)
on a Sparc Solaris machine using the system compilers.

First problem:
  texk/web2c/pdftexdir/utils.c
contains three comments written in C++ style which is not allowed:
"/share/gcc-te-remove-me/teTeX/tetex-src/texk/web2c/pdftexdir/utils.c", line 459: syntax error before or at: /
"/share/gcc-te-remove-me/teTeX/tetex-src/texk/web2c/pdftexdir/utils.c", line 465: syntax error before or at: /
"/share/gcc-te-remove-me/teTeX/tetex-src/texk/web2c/pdftexdir/utils.c", line 471: syntax error before or at: /

And I did get a few warnings:
"/share/gcc-te-remove-me/teTeX/tetex-src/texk/web2c/pdftexdir/utils.c", line 94: warning: assignment type mismatch:
        pointer to unsigned char "=" pointer to char
"/share/gcc-te-remove-me/teTeX/tetex-src/texk/web2c/pdftexdir/utils.c", line 125: warning: argument #2 is incompatible with prototype:
        prototype: pointer to const unsigned char : "/share/gcc-te-remove-me/teTeX/tetex-src/texk/web2c/pdftexdir/../../../libs/zlib/zlib.h", line 838
        argument : pointer to char
"/share/gcc-te-remove-me/teTeX/tetex-src/texk/web2c/pdftexdir/utils.c", line 289: warning: argument #2 is incompatible with prototype:
        prototype: pointer to const unsigned char : "/share/gcc-te-remove-me/teTeX/tetex-src/texk/web2c/pdftexdir/../../../libs/zlib/zlib.h", line 838
        argument : pointer to char

"/share/gcc-te-remove-me/teTeX/tetex-src/texk/web2c/pdftexdir/config.c", line 111: warning: assignment type mismatch:
        pointer to char "=" pointer to unsigned char

"/share/gcc-te-remove-me/teTeX/tetex-src/texk/web2c/pdftexdir/writet1.c", line 348: warning: assignment type mismatch:
        pointer to char "=" pointer to unsigned char
"/share/gcc-te-remove-me/teTeX/tetex-src/texk/web2c/pdftexdir/writet1.c", line 1000: warning: assignment type mismatch:
        pointer to char "=" pointer to unsigned char
"/share/gcc-te-remove-me/teTeX/tetex-src/texk/web2c/pdftexdir/writet1.c", line 1012: warning: assignment type mismatch:
        pointer to char "=" pointer to unsigned char
"/share/gcc-te-remove-me/teTeX/tetex-src/texk/web2c/pdftexdir/writet1.c", line 1033: warning: assignment type mismatch:
        pointer to char "=" pointer to unsigned char

"/share/gcc-te-remove-me/teTeX/tetex-src/texk/web2c/pdftexdir/writezip.c", line 55: warning: assignment type mismatch:
        pointer to unsigned char "=" pointer to char
"/share/gcc-te-remove-me/teTeX/tetex-src/texk/web2c/pdftexdir/writezip.c", line 63: warning: assignment type mismatch:
        pointer to unsigned char "=" pointer to char

"/share/gcc-te-remove-me/teTeX/tetex-src/texk/web2c/pdftexdir/writettf.c", line 720: warning: assignment type mismatch:
        pointer to unsigned char "=" pointer to char
"/share/gcc-te-remove-me/teTeX/tetex-src/texk/web2c/pdftexdir/writettf.c", line 1043: warning: assignment type mismatch:
        pointer to char "=" pointer to unsigned char
"/share/gcc-te-remove-me/teTeX/tetex-src/texk/web2c/pdftexdir/writettf.c", line 1097: warning: assignment type mismatch:
        pointer to char "=" pointer to unsigned char

"/share/gcc-te-remove-me/teTeX/tetex-src/texk/web2c/pdftexdir/pdftoepdf.cc", line 195: Warning: String literal converted to char* in formal argument fmt in call to pdftex_fail(char*, ...).
"/share/gcc-te-remove-me/teTeX/tetex-src/texk/web2c/pdftexdir/pdftoepdf.cc", line 266: Warning: String literal converted to char* in formal argument fmt in call to pdftex_fail(char*, ...).
"/share/gcc-te-remove-me/teTeX/tetex-src/texk/web2c/pdftexdir/pdftoepdf.cc", line 296: Warning: String literal converted to char* in formal argument 1 in call to pdf_puts(char*).
...and many more of warnings of this kind...

Thomas