[Varnish] #710: check_varnish.c fails to compile against varnish 2.1.x

Varnish varnish-bugs at varnish-cache.org
Tue Jun 1 10:50:53 CEST 2010


#710: check_varnish.c fails to compile against varnish 2.1.x
--------------------+-------------------------------------------------------
 Reporter:  netmax  |        Type:  defect
   Status:  new     |    Priority:  normal
Milestone:          |   Component:  nagios
  Version:  2.1.2   |    Severity:  normal
 Keywords:          |  
--------------------+-------------------------------------------------------

Comment(by netmax):

 {{{
 make[1]: Entering directory `/usr/src/packages/BUILD/nagios-varnish-
 plugin-1.0'
 gcc -DHAVE_CONFIG_H -I.    -include config.h -I/usr/include/varnish   -g
 -O2 -MT check_varnish-check_varnish.o -MD -MP -MF .deps/check_varnish-
 check_varnish.Tpo -c -o check_varnish-check_varnish.o `test -f
 'check_varnish.c' || echo './'`check_varnish.c
 In file included from check_varnish.c:112:
 /usr/include/varnish/stat_field.h:35:71: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:36:75: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 In file included from check_varnish.c:112:
 /usr/include/varnish/stat_field.h: In function 'check_stats':
 /usr/include/varnish/stat_field.h:35: error: 'MAC_STAT' undeclared (first
 use in this function)
 /usr/include/varnish/stat_field.h:35: error: (Each undeclared identifier
 is reported only once
 /usr/include/varnish/stat_field.h:35: error: for each function it appears
 in.)
 /usr/include/varnish/stat_field.h:36: error: expected ';' before
 'MAC_STAT'
 /usr/include/varnish/stat_field.h:37:67: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:39:52: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:40:65: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:41:55: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:43:66: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:44:76: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:45:67: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:46:67: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:47:66: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:48:71: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:49:69: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:50:66: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:52:53: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:53:62: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:54:59: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:55:51: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:56:63: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:57:62: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:58:71: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:59:57: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:60:57: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:63:60: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:64:52: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:65:56: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:66:70: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:67:64: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:68:64: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:69:51: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:70:59: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:71:60: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:72:60: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:73:55: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:74:69: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:76:36: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:77:66: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:78:66: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:79:72: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:80:66: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:81:52: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:83:59: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:84:63: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:85:63: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:86:63: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:87:64: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:89:61: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:91:72: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:92:66: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:94:37: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:96:53: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:97:53: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:98:49: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:99:49: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:100:51: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:101:61: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:102:60: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:104:58: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:105:62: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:106:64: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:107:58: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:108:54: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:110:55: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:111:53: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:112:71: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:113:59: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:114:68: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:116:58: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:117:63: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:118:57: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:119:51: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:121:63: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:122:68: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:123:64: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:124:62: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:125:56: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:127:63: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:128:68: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:129:64: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:130:62: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:131:57: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:133:65: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:135:50: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:136:59: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:137:61: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:139:61: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:140:62: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:141:66: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:142:64: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:143:71: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:144:71: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:146:67: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:147:62: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:148:54: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:150:69: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:151:68: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:152:59: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:153:71: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 /usr/include/varnish/stat_field.h:154:52: error: macro "MAC_STAT" passed 5
 arguments, but takes just 4
 make[1]: *** [check_varnish-check_varnish.o] Error 1
 make[1]: Leaving directory `/usr/src/packages/BUILD/nagios-varnish-
 plugin-1.0'
 make: *** [all] Error 2

 }}}

-- 
Ticket URL: <http://varnish-cache.org/ticket/710#comment:1>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list