running varnish-2.0.2 on Sun

Rob Ayres quasirob at googlemail.com
Tue Feb 10 13:48:02 CET 2009


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!

We have built varnish, but upon running it get the following messages :

sbin/varnishd -a :8080 -b localhost:8081
C-compiler said: "./vcl.ORk8t3RP.c", line 38: warning: const is a keyword in
ANSI C
C-compiler said: "./vcl.ORk8t3RP.c", line 38: syntax error before or at:
const
C-compiler said: "./vcl.ORk8t3RP.c", line 39: syntax error before or at:
const
C-compiler said: "./vcl.ORk8t3RP.c", line 109: syntax error before or at:
const
C-compiler said: "./vcl.ORk8t3RP.c", line 110: syntax error before or at:
const
C-compiler said: "./vcl.ORk8t3RP.c", line 121: syntax error before or at:
const
C-compiler said: "./vcl.ORk8t3RP.c", line 122: syntax error before or at:
const
C-compiler said: "./vcl.ORk8t3RP.c", line 124: syntax error before or at:
const
C-compiler said: "./vcl.ORk8t3RP.c", line 126: syntax error before or at:
const
C-compiler said: "./vcl.ORk8t3RP.c", line 127: syntax error before or at:
const
C-compiler said: "./vcl.ORk8t3RP.c", line 139: syntax error before or at:
const
C-compiler said: "./vcl.ORk8t3RP.c", line 140: syntax error before or at:
const
C-compiler said: "./vcl.ORk8t3RP.c", line 148: syntax error before or at:
const
C-compiler said: "./vcl.ORk8t3RP.c", line 153: syntax error before or at:
const
C-compiler said: "./vcl.ORk8t3RP.c", line 156: syntax error before or at:
const
C-compiler said: "./vcl.ORk8t3RP.c", line 164: syntax error before or at:
const
C-compiler said: "./vcl.ORk8t3RP.c", line 168: syntax error before or at:
const
C-compiler said: "./vcl.ORk8t3RP.c", line 170: syntax error before or at:
const
C-compiler said: "./vcl.ORk8t3RP.c", line 185: syntax error before or at:
const
C-compiler said: "./vcl.ORk8t3RP.c", line 191: syntax error before or at:
struct
C-compiler said: "./vcl.ORk8t3RP.c", line 191: warning: undefined or missing
type for: struct
C-compiler said: "./vcl.ORk8t3RP.c", line 191: parameter redeclared: const
C-compiler said: "./vcl.ORk8t3RP.c", line 191: warning: undefined or missing
type for: char
C-compiler said: "./vcl.ORk8t3RP.c", line 194: syntax error before or at:
const
C-compiler said: "./vcl.ORk8t3RP.c", line 194: warning: undefined or missing
type for: const
C-compiler said: "./vcl.ORk8t3RP.c", line 194: warning: undefined or missing
type for: int
C-compiler said: "./vcl.ORk8t3RP.c", line 196: syntax error before or at:
char
C-compiler said: "./vcl.ORk8t3RP.c", line 196: warning: undefined or missing
type for: char
C-compiler said: "./vcl.ORk8t3RP.c", line 196: warning: undefined or missing
type for: void
....much more of this.....
C-compiler said: "./vcl.ORk8t3RP.c", line 880: warning: improper
pointer/integer combination: op "="
C-compiler said: "./vcl.ORk8t3RP.c", line 886: too many struct/union
initializers
C-compiler said: cc: acomp failed for ./vcl.ORk8t3RP.c
mgt_run_cc(): Compiler failed, exit 2
VCL compilation failed

Does anyone have an idea what has caused this?
The VCC_CC in config.h is set to:
#define VCC_CC "cc -Kpic -G -o %o %s"

$ cc -V
cc: Sun C 5.9 SunOS_sparc Patch 124867-01 2007/07/12

We also got NaN errors during "make" which were fixed by inserting the
following into config.h

#ifndef NAN
#define NAN 0.0/0.0
#endif

Thanks for any help!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20090210/73e9890a/attachment-0002.html>


More information about the varnish-misc mailing list