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
On 2003-07-15 22:14:27 +0200, Thomas Esser wrote:
"/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...
I've changed the definition of pdftex_fail et.al to const char* -- hope it helps. Best regards Martin -- Martin Schröder, MS@ArtCom-GmbH.DE ArtCom GmbH, Lise-Meitner-Str 5, 28359 Bremen, Germany Voice +49 421 20419-44 / Fax +49 421 20419-10
On 2003-07-16 15:38:27 +0200, Martin Schröder wrote:
On 2003-07-15 22:14:27 +0200, Thomas Esser wrote:
"/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...
I've changed the definition of pdftex_fail et.al to const char* -- hope it helps.
I think I've removed the cause for all of these warnings (aside from some warnings in pdftoepdf.cc; xpdf would need major fixes for these). For the record: The gcc switches to use are -Wall -pedantic -Wwrite-strings Best regards Martin -- Martin Schröder, MS@ArtCom-GmbH.DE ArtCom GmbH, Lise-Meitner-Str 5, 28359 Bremen, Germany Voice +49 421 20419-44 / Fax +49 421 20419-10
participants (2)
-
Martin Schroeder
-
Thomas Esser