Hi, hope this is a good place to post this. I have been trying to build Varnish on a Sun (SunOS 5.10 Generic_127111-03 sun4u sparc SUNW,Sun-Fire-V490, gcc version 4.2.1 ) and are experiencing many problems, if anyone has any hints please help. Have built it on freebsd and linux with no problems, unfortunately we need it on the Sun machines!<br>
<br>We have built varnish, but upon running it get the following messages :<br><br>sbin/varnishd -a :8080 -b localhost:8081<br>C-compiler said: "./vcl.ORk8t3RP.c", line 38: warning: const is a keyword in ANSI C<br>
C-compiler said: "./vcl.ORk8t3RP.c", line 38: syntax error before or at: const<br>C-compiler said: "./vcl.ORk8t3RP.c", line 39: syntax error before or at: const<br>C-compiler said: "./vcl.ORk8t3RP.c", line 109: syntax error before or at: const<br>
C-compiler said: "./vcl.ORk8t3RP.c", line 110: syntax error before or at: const<br>C-compiler said: "./vcl.ORk8t3RP.c", line 121: syntax error before or at: const<br>C-compiler said: "./vcl.ORk8t3RP.c", line 122: syntax error before or at: const<br>
C-compiler said: "./vcl.ORk8t3RP.c", line 124: syntax error before or at: const<br>C-compiler said: "./vcl.ORk8t3RP.c", line 126: syntax error before or at: const<br>C-compiler said: "./vcl.ORk8t3RP.c", line 127: syntax error before or at: const<br>
C-compiler said: "./vcl.ORk8t3RP.c", line 139: syntax error before or at: const<br>C-compiler said: "./vcl.ORk8t3RP.c", line 140: syntax error before or at: const<br>C-compiler said: "./vcl.ORk8t3RP.c", line 148: syntax error before or at: const<br>
C-compiler said: "./vcl.ORk8t3RP.c", line 153: syntax error before or at: const<br>C-compiler said: "./vcl.ORk8t3RP.c", line 156: syntax error before or at: const<br>C-compiler said: "./vcl.ORk8t3RP.c", line 164: syntax error before or at: const<br>
C-compiler said: "./vcl.ORk8t3RP.c", line 168: syntax error before or at: const<br>C-compiler said: "./vcl.ORk8t3RP.c", line 170: syntax error before or at: const<br>C-compiler said: "./vcl.ORk8t3RP.c", line 185: syntax error before or at: const<br>
C-compiler said: "./vcl.ORk8t3RP.c", line 191: syntax error before or at: struct<br>C-compiler said: "./vcl.ORk8t3RP.c", line 191: warning: undefined or missing type for: struct<br>C-compiler said: "./vcl.ORk8t3RP.c", line 191: parameter redeclared: const<br>
C-compiler said: "./vcl.ORk8t3RP.c", line 191: warning: undefined or missing type for: char<br>C-compiler said: "./vcl.ORk8t3RP.c", line 194: syntax error before or at: const<br>C-compiler said: "./vcl.ORk8t3RP.c", line 194: warning: undefined or missing type for: const<br>
C-compiler said: "./vcl.ORk8t3RP.c", line 194: warning: undefined or missing type for: int<br>C-compiler said: "./vcl.ORk8t3RP.c", line 196: syntax error before or at: char<br>C-compiler said: "./vcl.ORk8t3RP.c", line 196: warning: undefined or missing type for: char<br>
C-compiler said: "./vcl.ORk8t3RP.c", line 196: warning: undefined or missing type for: void<br>....much more of this.....<br>C-compiler said: "./vcl.ORk8t3RP.c", line 880: warning: improper pointer/integer combination: op "="<br>
C-compiler said: "./vcl.ORk8t3RP.c", line 886: too many struct/union initializers<br>C-compiler said: cc: acomp failed for ./vcl.ORk8t3RP.c<br>mgt_run_cc(): Compiler failed, exit 2<br>VCL compilation failed<br><br>
Does anyone have an idea what has caused this?<br>The VCC_CC in config.h is set to:<br>#define VCC_CC "cc -Kpic -G -o %o %s"<br><br>$ cc -V<br>cc: Sun C 5.9 SunOS_sparc Patch 124867-01 2007/07/12<br><br>We also got NaN errors during "make" which were fixed by inserting the following into config.h<br>
<br>#ifndef NAN<br>#define NAN 0.0/0.0<br>#endif<br><br>Thanks for any help!<br><br><br>