[Varnish] #504: syslog example is broken

Varnish varnish-bugs at projects.linpro.no
Sun May 3 17:48:16 CEST 2009

#504: syslog example is broken
 Reporter:  Sesse  |        Type:  documentation
   Status:  new    |    Priority:  normal       
Milestone:         |   Component:  documentation
  Version:  trunk  |    Severity:  normal       
 Keywords:         |  
 (Please let me know if I could change this myself; I cannot find a way to
 edit the wiki even though I am logged in.)

 http://varnish.projects.linpro.no/wiki/VCLExampleSyslog mentions that you
 should be able to run

                 #include <syslog.h>
                 syslog(LOG_INFO, "Something happened at VCL line XX.");

 However, if I dump that into vcl_fetch(), I get

     Message from C-compiler:
     ./vcl.1P9zoqAU.c: In function ‘VGC_function_vcl_fetch’:
     ./vcl.1P9zoqAU.c:705: error: incompatible implicit declaration of
 function ‘syslog’
     /usr/include/sys/syslog.h:190: error: previous implicit declaration of
 ‘syslog’ was here
     Running C-compiler failed, exit 1
     VCL compilation failed

 If I put the #include at the top of my VCL file, all is fine, though.

 The documentation also claims I'm supposed to get something from varnishd
 -C, but running that (as root) has exactly zero output.

Ticket URL: <http://varnish.projects.linpro.no/ticket/504>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator

More information about the varnish-bugs mailing list