<HTML>
<HEAD>
<TITLE>[plt-scheme] 4.2.5.7 compilation error under SGI IRIX 6.</TITLE>
</HEAD>
<BODY>
<FONT SIZE="2"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'>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: <BR>
<BR>
mzschemecgc: pre-installing: plot <BR>
plot: compiling "src / all" -> "compiled / native / mips-irix / libplplot.so" ... <BR>
compile-extension: <BR>
cc-1028 cc: ERROR File = gd_drv.c, Line = 280 <BR>
The expression used must have a constant value. <BR>
<BR>
DrvOpt gd_options [] = (("optimise", DRV_INT, & optimise, "Optimise PNG palette when possible"), <BR>
^ <BR>
<BR>
cc-1028 cc: ERROR File = gd_drv.c, Line = 281 <BR>
The expression used must have a constant value. <BR>
<BR>
("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 \ " ") <BR>
^ <BR>
<BR>
cc-1028 cc: ERROR File = gd_drv.c, Line = 282 <BR>
The expression used must have a constant value. <BR>
<BR>
("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"), <BR>
^ <BR>
<BR>
cc-1028 cc: ERROR File = gd_drv.c, Line = 284 <BR>
The expression used must have a constant value. <BR>
<BR>
("8bit", DRV_INT, & palette, "Palette (8 bit) mode"), <BR>
^ <BR>
<BR>
cc-1028 cc: ERROR File = gd_drv.c, Line = 285 <BR>
The expression used must have a constant value. <BR>
<BR>
("24bit", DRV_INT, & truecolour, "Truecolor (24 bit) mode"), <BR>
^ <BR>
<BR>
cc-1174 cc: WARNING File = gd_drv.c, Line = 261 <BR>
The variable "i" was declared but never referenced. <BR>
<BR>
int i; <BR>
^ <BR>
<BR>
cc-1174 cc: WARNING File = gd_drv.c, Line = 978 <BR>
The variable "i" was declared but never referenced. <BR>
<BR>
int i; <BR>
^ <BR>
<BR>
5 errors detected in the compilation of "gd_drv.c". <BR>
<BR>
The installation will continue and this does not bother me, but maybe you can fix it faster way? <BR>
<BR>
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?</SPAN></FONT></FONT>
</BODY>
</HTML>