[plt-scheme] 4.2.5.7 compilation error under SGI IRIX 6.

From: Valery Niamkovich (histfak at gmail.com)
Date: Tue May 18 19:40:27 EDT 2010

The problem was in the compiler options. "-O3" or "-O2" for some reason to
give an error. Now the ³make² going without problems. But "make install", I
received the following error:

mzschemecgc: pre-installing: plot
plot: compiling "src / all" -> "compiled / native / mips-irix /
libplplot.so" ... 
compile-extension: 
cc-1028 cc: ERROR File = gd_drv.c, Line = 280
  The expression used must have a constant value.

      DrvOpt gd_options [] = (("optimise", DRV_INT, & optimise, "Optimise
PNG palette when possible"),
                                                    ^

cc-1028 cc: ERROR File = gd_drv.c, Line = 281
  The expression used must have a constant value.

                                ("Def_black15", DRV_INT, & black15, "Define
idx 15 as black. If the background is \" whiteish \ "(from \"-bg \ "option),
force index 15 (traditionally white) to be \" black \ " ")
                                                          ^

cc-1028 cc: ERROR File = gd_drv.c, Line = 282
  The expression used must have a constant value.

                                ("Swp_red15", DRV_INT, & red15, "Swap index
a (usually red) and a (usually white); always done after \" black15 \ ";
quite useful for quick changes to web pages"),
                                                        ^

cc-1028 cc: ERROR File = gd_drv.c, Line = 284
  The expression used must have a constant value.

                                ("8bit", DRV_INT, & palette, "Palette (8
bit) mode"), 
                                                   ^

cc-1028 cc: ERROR File = gd_drv.c, Line = 285
  The expression used must have a constant value.

                                ("24bit", DRV_INT, & truecolour, "Truecolor
(24 bit) mode"), 
                                                    ^

cc-1174 cc: WARNING File = gd_drv.c, Line = 261
  The variable "i" was declared but never referenced.

      int i; 
          ^ 

cc-1174 cc: WARNING File = gd_drv.c, Line = 978
  The variable "i" was declared but never referenced.

  int i; 
      ^ 

5 errors detected in the compilation of "gd_drv.c".

The installation will continue and this does not bother me, but maybe you
can fix it faster way?

P.S. I did ".. /configure --prefix=my/dir && make $&& make install² and got
CGC build by default. And the documentation says that there should be 3m.
It's my mistake or how it should be?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20100519/d82c68f5/attachment.html>

Posted on the users mailing list.