Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2012-11-28
09:58 • Ticket [3590483fff] tclZlib.c fails to compile with MIPSPro status still Clo... artifact: 79275fd341 user: dgp
07:07 • Closed ticket [3590483fff]. artifact: 21a87943c3 user: dkf
00:04
[3590483]: Some compilers cannot initialize with complex non-constants. check-in: 7d73c405e1 user: dkf tags: trunk
2012-11-27
21:40 • New ticket [3590483fff] tclZlib.c fails to compile with MIPSPro. artifact: c1a34fedc6 user: dgp

tclZlib.c fails to compile with MIPSPro

Closed / Fixed3590483fffffffffffffffffffffffffffffffffCreated 14 years agoUpdated 14 years ago
Descriptionplain2012-11-27 21:40:07
cc -version
MIPSpro Compilers: Version 7.3.1.3m

tclZlib.c
cc-1028 cc: ERROR File = /home/dgp/src/tcl8.6.0/generic/tclZlib.c, Line = 2188
  The expression used must have a constant value.

        { "-dictionary", &compDictObj },
                          ^

cc-1028 cc: ERROR File = /home/dgp/src/tcl8.6.0/generic/tclZlib.c, Line = 2189
  The expression used must have a constant value.

        { "-level", &levelObj },
                     ^

cc-1028 cc: ERROR File = /home/dgp/src/tcl8.6.0/generic/tclZlib.c, Line = 2193
  The expression used must have a constant value.

        { "-header", &gzipHeaderObj },
                      ^

cc-1028 cc: ERROR File = /home/dgp/src/tcl8.6.0/generic/tclZlib.c, Line = 2194
  The expression used must have a constant value.

        { "-level", &levelObj },
                     ^

cc-1028 cc: ERROR File = /home/dgp/src/tcl8.6.0/generic/tclZlib.c, Line = 2198
  The expression used must have a constant value.

        { "-dictionary", &compDictObj },
                          ^

5 errors detected in the compilation of "/home/dgp/src/tcl8.6.0/generic/tclZlib.c".
dkfplain2012-11-28 07:07:29
allow_comments - 1

Found a way to express that with constant tables and only... minimal macro magic.
dgpplain2012-11-28 09:58:22
Thanks!  It does now compile.

Now the less important remaining problem is
warnings like so:

tclZlib.c
cc-1185 cc: WARNING File = /home/dgp/src/tcl8.6.0/generic/tclZlib.c, Line = 2196
  An enumerated type is mixed with another type.

  { NULL, 0 }
Log in (anonymous is fine) to add a comment.