[Varnish] #1510: using "first" as the name of a director in V4.0

Varnish varnish-bugs at varnish-cache.org
Thu May 22 11:34:07 CEST 2014


#1510: using "first" as the name of a director in V4.0
----------------------+----------------------
 Reporter:  alanj     |       Owner:
     Type:  defect    |      Status:  new
 Priority:  normal    |   Milestone:
Component:  varnishd  |     Version:  unknown
 Severity:  normal    |  Resolution:
 Keywords:            |
----------------------+----------------------

Comment (by alanj):

 As an adjunct to this also discovered that a "director" of "default"
 causes an issue at compilation:

 };
 Message from C-compiler:
 ./vcl.pVnQ7Rk_.c:918:43: error: expected identifier or ‘(’ before
 ‘default’
  static struct vmod_directors_round_robin *default;
                                            ^
 ./vcl.pVnQ7Rk_.c: In function ‘VGC_function_vcl_recv’:
 ./vcl.pVnQ7Rk_.c:1119:54: error: expected expression before ‘default’
          Vmod_directors_Func.round_robin_backend(ctx, default)
                                                       ^
 ./vcl.pVnQ7Rk_.c: In function ‘VGC_function_vcl_init’:
 ./vcl.pVnQ7Rk_.c:4701:51: error: expected expression before ‘default’
        Vmod_directors_Func.round_robin__init(ctx, &default, "default");
 [24 lines truncated]
 Running C-compiler failed, exit 1

 VCL compilation failed

 Changing this to www_default allowed for completion of the compilation of
 the VCL.

 This relates the V4.

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1510#comment:1>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator



More information about the varnish-bugs mailing list