For reference, compiling on OSX

Marcus Ramberg marcus at thefeed.no
Wed Sep 20 22:47:00 CEST 2006


I was talking to Dag Henning about compiling varnish on OSX earlier today at
the press conference. Just wanted to paste the current show stopper here for
reference:

if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include   -include
config.h-O2 -pipe -MT varnishd-cache_acceptor.o -MD -MP -MF
".deps/varnishd-cache_acceptor.Tpo" -c -o varnishd-cache_acceptor.o `test -f
'cache_acceptor.c' || echo './'`cache_acceptor.c; \
then mv -f ".deps/varnishd-cache_acceptor.Tpo"
".deps/varnishd-cache_acceptor.Po"; else rm -f
".deps/varnishd-cache_acceptor.Tpo"; exit 1; fi
cache_acceptor.c: In function 'vca_acct':
cache_acceptor.c:170: error: 'CLOCK_REALTIME' undeclared (first use in this
function)
cache_acceptor.c:170: error: (Each undeclared identifier is reported only
once
cache_acceptor.c:170: error: for each function it appears in.)
make[3]: *** [varnishd-cache_acceptor.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Dag Henning says this is because OSX does not have a clock_gettime system
call, and that gettimeofday aint monotonous enough or something like that...
:-) I will try to dig more into the issue.

Other first impressions from testing out Varnish:

We need more docs. Specially on making VCL policies.

varnish does not seem to set X-Forwarded-For ? (Maybe it's not common to do
it, but it's how my framework deals with  reverse proxies)

-- 
With regards
Marcus Ramberg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20060920/6dbc765e/attachment-0001.html>


More information about the varnish-dev mailing list