varnish / libvmod-rtstatus

Varnish realtime status page.
Other
37 stars 16 forks source link

How does one install it inside docker ubuntu #31

Closed Puneeth-n closed 6 years ago

Puneeth-n commented 6 years ago
FROM ubuntu:latest

RUN curl -s https://packagecloud.io/install/repositories/varnishcache/varnish41/script.deb.sh | bash && \
    apt-get install -y varnish varnish-dev varnish-agent libtool automake build-essential git && \
    apt-get clean

WORKDIR /opt/tmp
RUN git clone https://github.com/varnish/libvmod-rtstatus.git

RUN cd libvmod-rtstatus && ./autogen.sh && ./configure && make

ERROR

make  all-recursive
make[1]: Entering directory '/opt/ct/libvmod-rtstatus'
Making all in src
make[2]: Entering directory '/opt/ct/libvmod-rtstatus/src'
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I/usr/include/varnish -Wall -Werror   -g -O2 -MT vmod_rtstatus.lo -MD -MP -MF .deps/vmod_rtstatus.Tpo -c -o vmod_rtstatus.lo vmod_rtstatus.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/varnish -Wall -Werror -g -O2 -MT vmod_rtstatus.lo -MD -MP -MF .deps/vmod_rtstatus.Tpo -c vmod_rtstatus.c  -fPIC -DPIC -o .libs/vmod_rtstatus.o
In file included from vmod_rtstatus.h:5:0,
                 from vmod_rtstatus.c:8:
/usr/include/varnish/vsb.h: In function 'VSB_printf':
/usr/include/varnish/vsb.h:67:2: error: expected declaration specifiers before '__v_printflike'
  __v_printflike(2, 3);
  ^
In file included from vmod_rtstatus.h:6:0,
                 from vmod_rtstatus.c:8:
/usr/include/varnish/vrt.h:52:1: error: empty declaration [-Werror]
 struct VCL_conf;
 ^
/usr/include/varnish/vrt.h:53:1: error: empty declaration [-Werror]
 struct vrt_acl;
 ^
/usr/include/varnish/vrt.h:54:1: error: empty declaration [-Werror]
 struct busyobj;
 ^
/usr/include/varnish/vrt.h:55:1: error: empty declaration [-Werror]
 struct director;
 ^
/usr/include/varnish/vrt.h:56:1: error: empty declaration [-Werror]
 struct http;
 ^
/usr/include/varnish/vrt.h:57:1: error: empty declaration [-Werror]
 struct req;
 ^
/usr/include/varnish/vrt.h:58:1: error: empty declaration [-Werror]
 struct suckaddr;
 ^
/usr/include/varnish/vrt.h:59:1: error: empty declaration [-Werror]
 struct vcl;
 ^
/usr/include/varnish/vrt.h:60:1: error: empty declaration [-Werror]
 struct vmod;
 ^
/usr/include/varnish/vrt.h:61:1: error: empty declaration [-Werror]
 struct vsb;
 ^
/usr/include/varnish/vrt.h:62:1: error: empty declaration [-Werror]
 struct vsl_log;
 ^
/usr/include/varnish/vrt.h:63:1: error: empty declaration [-Werror]
 struct ws;
 ^
/usr/include/varnish/vrt.h:71:34: error: storage class specified for parameter 'VCL_ACL'
 typedef const struct vrt_acl *   VCL_ACL;
                                  ^
/usr/include/varnish/vrt.h:72:35: error: storage class specified for parameter 'VCL_BACKEND'
 typedef const struct director *   VCL_BACKEND;
                                   ^
/usr/include/varnish/vrt.h:73:35: error: storage class specified for parameter 'VCL_BLOB'
 typedef const struct vmod_priv *  VCL_BLOB;
                                   ^
/usr/include/varnish/vrt.h:74:21: error: storage class specified for parameter 'VCL_BOOL'
 typedef unsigned    VCL_BOOL;
                     ^
/usr/include/varnish/vrt.h:75:20: error: storage class specified for parameter 'VCL_BYTES'
 typedef double     VCL_BYTES;
                    ^
/usr/include/varnish/vrt.h:76:20: error: storage class specified for parameter 'VCL_DURATION'
 typedef double     VCL_DURATION;
                    ^
/usr/include/varnish/vrt.h:77:25: error: storage class specified for parameter 'VCL_ENUM'
 typedef const char *    VCL_ENUM;
                         ^
/usr/include/varnish/vrt.h:78:35: error: storage class specified for parameter 'VCL_HEADER'
 typedef const struct gethdr_s *   VCL_HEADER;
                                   ^
/usr/include/varnish/vrt.h:79:26: error: storage class specified for parameter 'VCL_HTTP'
 typedef struct http *    VCL_HTTP;
                          ^
/usr/include/varnish/vrt.h:80:18: error: storage class specified for parameter 'VCL_INT'
 typedef long     VCL_INT;
                  ^
/usr/include/varnish/vrt.h:81:35: error: storage class specified for parameter 'VCL_IP'
 typedef const struct suckaddr *   VCL_IP;
                                   ^
/usr/include/varnish/vrt.h:82:42: error: storage class specified for parameter 'VCL_PROBE'
 typedef const struct vrt_backend_probe * VCL_PROBE;
                                          ^
/usr/include/varnish/vrt.h:83:20: error: storage class specified for parameter 'VCL_REAL'
 typedef double     VCL_REAL;
                    ^
/usr/include/varnish/vrt.h:84:25: error: storage class specified for parameter 'VCL_STRING'
 typedef const char *    VCL_STRING;
                         ^
/usr/include/varnish/vrt.h:85:20: error: storage class specified for parameter 'VCL_TIME'
 typedef double     VCL_TIME;
                    ^
/usr/include/varnish/vrt.h:86:18: error: storage class specified for parameter 'VCL_VOID'
 typedef void     VCL_VOID;
                  ^
/usr/include/varnish/vrt.h:93:1: error: empty declaration [-Werror]
 struct vrt_ctx {
 ^
/usr/include/varnish/vrt.h:128:1: error: empty declaration [-Werror]
 struct vmod_data {
 ^
/usr/include/varnish/vrt.h:144:1: error: empty declaration [-Werror]
 enum gethdr_e { HDR_REQ, HDR_REQ_TOP, HDR_RESP, HDR_OBJ, HDR_BEREQ,
 ^
/usr/include/varnish/vrt.h:147:1: error: empty declaration [-Werror]
 struct gethdr_s {
 ^
/usr/include/varnish/vrt.h:152:27: error: storage class specified for parameter 'vrt_magic_string_end'
 extern const void * const vrt_magic_string_end;
                           ^
/usr/include/varnish/vrt.h:153:27: error: storage class specified for parameter 'vrt_magic_string_unset'
 extern const void * const vrt_magic_string_unset;
                           ^
/usr/include/varnish/vrt.h:189:1: error: empty declaration [-Werror]
 struct vrt_backend {
 ^
/usr/include/varnish/vrt.h:216:1: error: empty declaration [-Werror]
 struct vrt_backend_probe {
 ^
/usr/include/varnish/vrt.h:231:1: error: empty declaration [-Werror]
 struct vrt_ref {
 ^
/usr/include/varnish/vrt.h:242:40: error: type defaults to 'int' in declaration of 'VCL_IP' [-Werror=implicit-int]
 typedef int acl_match_f(VRT_CTX, const VCL_IP);
                                        ^
/usr/include/varnish/vrt.h:242:13: error: storage class specified for parameter 'acl_match_f'
 typedef int acl_match_f(VRT_CTX, const VCL_IP);
             ^
/usr/include/varnish/vrt.h:247:2: error: expected specifier-qualifier-list before 'acl_match_f'
  acl_match_f *match;
  ^
/usr/include/varnish/vrt.h:244:1: error: empty declaration [-Werror]
 struct vrt_acl {
 ^
/usr/include/varnish/vrt.h:251:28: error: expected declaration specifiers or '...' before 'VCL_ACL'
 int VRT_acl_match(VRT_CTX, VCL_ACL, VCL_IP);
                            ^
/usr/include/varnish/vrt.h:251:37: error: expected declaration specifiers or '...' before 'VCL_IP'
 int VRT_acl_match(VRT_CTX, VCL_ACL, VCL_IP);
                                     ^
/usr/include/varnish/vrt.h:297:1: error: empty declaration [-Werror]
 struct vmod_priv;
 ^
/usr/include/varnish/vrt.h:298:14: error: storage class specified for parameter 'vmod_priv_free_f'
 typedef void vmod_priv_free_f(void *);
              ^
/usr/include/varnish/vrt.h:302:2: error: expected specifier-qualifier-list before 'vmod_priv_free_f'
  vmod_priv_free_f *free;
  ^
/usr/include/varnish/vrt.h:299:1: error: empty declaration [-Werror]
 struct vmod_priv {
 ^
/usr/include/varnish/vrt.h:309:1: error: empty declaration [-Werror]
 struct vclref;
 ^
/usr/include/varnish/vrt.h:322:30: error: expected declaration specifiers or '...' before 'VCL_IP'
 char *VRT_IP_string(VRT_CTX, VCL_IP);
                              ^
/usr/include/varnish/vrt.h:323:31: error: expected declaration specifiers or '...' before 'VCL_INT'
 char *VRT_INT_string(VRT_CTX, VCL_INT);
                               ^
/usr/include/varnish/vrt.h:324:32: error: expected declaration specifiers or '...' before 'VCL_REAL'
 char *VRT_REAL_string(VRT_CTX, VCL_REAL);
                                ^
/usr/include/varnish/vrt.h:325:32: error: expected declaration specifiers or '...' before 'VCL_TIME'
 char *VRT_TIME_string(VRT_CTX, VCL_TIME);
                                ^
/usr/include/varnish/vrt.h:326:1: error: parameter names (without types) in function declaration [-Werror]
 const char *VRT_BOOL_string(VCL_BOOL);
 ^
/usr/include/varnish/vrt.h:327:1: error: parameter names (without types) in function declaration [-Werror]
 const char *VRT_BACKEND_string(VCL_BACKEND);
 ^
In file included from vmod_rtstatus.h:7:0,
                 from vmod_rtstatus.c:8:
/usr/include/varnish/vrt_obj.h:7:1: error: expected declaration specifiers before 'VCL_HTTP'
 VCL_HTTP VRT_r_bereq(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:9:1: error: expected declaration specifiers before 'VCL_BACKEND'
 VCL_BACKEND VRT_r_bereq_backend(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:10:35: error: expected declaration specifiers or '...' before 'VCL_BACKEND'
 void VRT_l_bereq_backend(VRT_CTX, VCL_BACKEND);
                                   ^
/usr/include/varnish/vrt_obj.h:12:1: error: expected declaration specifiers before 'VCL_DURATION'
 VCL_DURATION VRT_r_bereq_between_bytes_timeout(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:13:49: error: expected declaration specifiers or '...' before 'VCL_DURATION'
 void VRT_l_bereq_between_bytes_timeout(VRT_CTX, VCL_DURATION);
                                                 ^
/usr/include/varnish/vrt_obj.h:15:1: error: expected declaration specifiers before 'VCL_DURATION'
 VCL_DURATION VRT_r_bereq_connect_timeout(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:16:43: error: expected declaration specifiers or '...' before 'VCL_DURATION'
 void VRT_l_bereq_connect_timeout(VRT_CTX, VCL_DURATION);
                                           ^
/usr/include/varnish/vrt_obj.h:18:1: error: expected declaration specifiers before 'VCL_DURATION'
 VCL_DURATION VRT_r_bereq_first_byte_timeout(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:19:46: error: expected declaration specifiers or '...' before 'VCL_DURATION'
 void VRT_l_bereq_first_byte_timeout(VRT_CTX, VCL_DURATION);
                                              ^
/usr/include/varnish/vrt_obj.h:22:1: error: expected declaration specifiers before 'VCL_BOOL'
 VCL_BOOL VRT_r_bereq_is_bgfetch(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:24:1: error: expected declaration specifiers before 'VCL_STRING'
 VCL_STRING VRT_r_bereq_method(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:27:1: error: expected declaration specifiers before 'VCL_STRING'
 VCL_STRING VRT_r_bereq_proto(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:30:1: error: expected declaration specifiers before 'VCL_INT'
 VCL_INT VRT_r_bereq_retries(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:32:1: error: expected declaration specifiers before 'VCL_BOOL'
 VCL_BOOL VRT_r_bereq_uncacheable(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:34:1: error: expected declaration specifiers before 'VCL_STRING'
 VCL_STRING VRT_r_bereq_url(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:37:1: error: expected declaration specifiers before 'VCL_STRING'
 VCL_STRING VRT_r_bereq_xid(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:39:1: error: expected declaration specifiers before 'VCL_HTTP'
 VCL_HTTP VRT_r_beresp(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:41:1: error: expected declaration specifiers before 'VCL_DURATION'
 VCL_DURATION VRT_r_beresp_age(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:43:1: error: expected declaration specifiers before 'VCL_BACKEND'
 VCL_BACKEND VRT_r_beresp_backend(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:45:1: error: expected declaration specifiers before 'VCL_IP'
 VCL_IP VRT_r_beresp_backend_ip(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:47:1: error: expected declaration specifiers before 'VCL_STRING'
 VCL_STRING VRT_r_beresp_backend_name(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:49:1: error: expected declaration specifiers before 'VCL_BOOL'
 VCL_BOOL VRT_r_beresp_do_esi(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:50:35: error: expected declaration specifiers or '...' before 'VCL_BOOL'
 void VRT_l_beresp_do_esi(VRT_CTX, VCL_BOOL);
                                   ^
/usr/include/varnish/vrt_obj.h:52:1: error: expected declaration specifiers before 'VCL_BOOL'
 VCL_BOOL VRT_r_beresp_do_gunzip(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:53:38: error: expected declaration specifiers or '...' before 'VCL_BOOL'
 void VRT_l_beresp_do_gunzip(VRT_CTX, VCL_BOOL);
                                      ^
/usr/include/varnish/vrt_obj.h:55:1: error: expected declaration specifiers before 'VCL_BOOL'
 VCL_BOOL VRT_r_beresp_do_gzip(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:56:36: error: expected declaration specifiers or '...' before 'VCL_BOOL'
 void VRT_l_beresp_do_gzip(VRT_CTX, VCL_BOOL);
                                    ^
/usr/include/varnish/vrt_obj.h:58:1: error: expected declaration specifiers before 'VCL_BOOL'
 VCL_BOOL VRT_r_beresp_do_stream(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:59:38: error: expected declaration specifiers or '...' before 'VCL_BOOL'
 void VRT_l_beresp_do_stream(VRT_CTX, VCL_BOOL);
                                      ^
/usr/include/varnish/vrt_obj.h:61:1: error: expected declaration specifiers before 'VCL_DURATION'
 VCL_DURATION VRT_r_beresp_grace(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:62:34: error: expected declaration specifiers or '...' before 'VCL_DURATION'
 void VRT_l_beresp_grace(VRT_CTX, VCL_DURATION);
                                  ^
/usr/include/varnish/vrt_obj.h:65:1: error: expected declaration specifiers before 'VCL_DURATION'
 VCL_DURATION VRT_r_beresp_keep(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:66:33: error: expected declaration specifiers or '...' before 'VCL_DURATION'
 void VRT_l_beresp_keep(VRT_CTX, VCL_DURATION);
                                 ^
/usr/include/varnish/vrt_obj.h:68:1: error: expected declaration specifiers before 'VCL_STRING'
 VCL_STRING VRT_r_beresp_proto(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:71:1: error: expected declaration specifiers before 'VCL_STRING'
 VCL_STRING VRT_r_beresp_reason(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:74:1: error: expected declaration specifiers before 'VCL_INT'
 VCL_INT VRT_r_beresp_status(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:75:35: error: expected declaration specifiers or '...' before 'VCL_INT'
 void VRT_l_beresp_status(VRT_CTX, VCL_INT);
                                   ^
/usr/include/varnish/vrt_obj.h:77:1: error: expected declaration specifiers before 'VCL_STRING'
 VCL_STRING VRT_r_beresp_storage_hint(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:80:1: error: expected declaration specifiers before 'VCL_DURATION'
 VCL_DURATION VRT_r_beresp_ttl(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:81:32: error: expected declaration specifiers or '...' before 'VCL_DURATION'
 void VRT_l_beresp_ttl(VRT_CTX, VCL_DURATION);
                                ^
/usr/include/varnish/vrt_obj.h:83:1: error: expected declaration specifiers before 'VCL_BOOL'
 VCL_BOOL VRT_r_beresp_uncacheable(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:84:40: error: expected declaration specifiers or '...' before 'VCL_BOOL'
 void VRT_l_beresp_uncacheable(VRT_CTX, VCL_BOOL);
                                        ^
/usr/include/varnish/vrt_obj.h:86:1: error: expected declaration specifiers before 'VCL_BOOL'
 VCL_BOOL VRT_r_beresp_was_304(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:88:1: error: expected declaration specifiers before 'VCL_STRING'
 VCL_STRING VRT_r_client_identity(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:91:1: error: expected declaration specifiers before 'VCL_IP'
 VCL_IP VRT_r_client_ip(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:93:1: error: expected declaration specifiers before 'VCL_IP'
 VCL_IP VRT_r_local_ip(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:95:1: error: expected declaration specifiers before 'VCL_TIME'
 VCL_TIME VRT_r_now(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:97:1: error: expected declaration specifiers before 'VCL_DURATION'
 VCL_DURATION VRT_r_obj_age(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:99:1: error: expected declaration specifiers before 'VCL_DURATION'
 VCL_DURATION VRT_r_obj_grace(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:101:1: error: expected declaration specifiers before 'VCL_INT'
 VCL_INT VRT_r_obj_hits(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:104:1: error: expected declaration specifiers before 'VCL_DURATION'
 VCL_DURATION VRT_r_obj_keep(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:106:1: error: expected declaration specifiers before 'VCL_STRING'
 VCL_STRING VRT_r_obj_proto(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:108:1: error: expected declaration specifiers before 'VCL_STRING'
 VCL_STRING VRT_r_obj_reason(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:110:1: error: expected declaration specifiers before 'VCL_INT'
 VCL_INT VRT_r_obj_status(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:112:1: error: expected declaration specifiers before 'VCL_DURATION'
 VCL_DURATION VRT_r_obj_ttl(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:114:1: error: expected declaration specifiers before 'VCL_BOOL'
 VCL_BOOL VRT_r_obj_uncacheable(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:116:1: error: expected declaration specifiers before 'VCL_IP'
 VCL_IP VRT_r_remote_ip(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:118:1: error: expected declaration specifiers before 'VCL_HTTP'
 VCL_HTTP VRT_r_req(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:120:1: error: expected declaration specifiers before 'VCL_BACKEND'
 VCL_BACKEND VRT_r_req_backend_hint(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:121:38: error: expected declaration specifiers or '...' before 'VCL_BACKEND'
 void VRT_l_req_backend_hint(VRT_CTX, VCL_BACKEND);
                                      ^
/usr/include/varnish/vrt_obj.h:123:1: error: expected declaration specifiers before 'VCL_BOOL'
 VCL_BOOL VRT_r_req_can_gzip(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:125:1: error: expected declaration specifiers before 'VCL_BOOL'
 VCL_BOOL VRT_r_req_esi(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:126:29: error: expected declaration specifiers or '...' before 'VCL_BOOL'
 void VRT_l_req_esi(VRT_CTX, VCL_BOOL);
                             ^
/usr/include/varnish/vrt_obj.h:128:1: error: expected declaration specifiers before 'VCL_INT'
 VCL_INT VRT_r_req_esi_level(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:130:1: error: expected declaration specifiers before 'VCL_BOOL'
 VCL_BOOL VRT_r_req_hash_always_miss(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:131:42: error: expected declaration specifiers or '...' before 'VCL_BOOL'
 void VRT_l_req_hash_always_miss(VRT_CTX, VCL_BOOL);
                                          ^
/usr/include/varnish/vrt_obj.h:133:1: error: expected declaration specifiers before 'VCL_BOOL'
 VCL_BOOL VRT_r_req_hash_ignore_busy(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:134:42: error: expected declaration specifiers or '...' before 'VCL_BOOL'
 void VRT_l_req_hash_ignore_busy(VRT_CTX, VCL_BOOL);
                                          ^
/usr/include/varnish/vrt_obj.h:137:1: error: expected declaration specifiers before 'VCL_STRING'
 VCL_STRING VRT_r_req_method(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:140:1: error: expected declaration specifiers before 'VCL_STRING'
 VCL_STRING VRT_r_req_proto(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:143:1: error: expected declaration specifiers before 'VCL_INT'
 VCL_INT VRT_r_req_restarts(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:145:1: error: expected declaration specifiers before 'VCL_DURATION'
 VCL_DURATION VRT_r_req_ttl(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:146:29: error: expected declaration specifiers or '...' before 'VCL_DURATION'
 void VRT_l_req_ttl(VRT_CTX, VCL_DURATION);
                             ^
/usr/include/varnish/vrt_obj.h:148:1: error: expected declaration specifiers before 'VCL_STRING'
 VCL_STRING VRT_r_req_url(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:151:1: error: expected declaration specifiers before 'VCL_STRING'
 VCL_STRING VRT_r_req_xid(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:154:1: error: expected declaration specifiers before 'VCL_STRING'
 VCL_STRING VRT_r_req_top_method(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:156:1: error: expected declaration specifiers before 'VCL_STRING'
 VCL_STRING VRT_r_req_top_proto(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:158:1: error: expected declaration specifiers before 'VCL_STRING'
 VCL_STRING VRT_r_req_top_url(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:160:1: error: expected declaration specifiers before 'VCL_HTTP'
 VCL_HTTP VRT_r_resp(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:163:1: error: expected declaration specifiers before 'VCL_BOOL'
 VCL_BOOL VRT_r_resp_is_streaming(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:165:1: error: expected declaration specifiers before 'VCL_STRING'
 VCL_STRING VRT_r_resp_proto(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:168:1: error: expected declaration specifiers before 'VCL_STRING'
 VCL_STRING VRT_r_resp_reason(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:171:1: error: expected declaration specifiers before 'VCL_INT'
 VCL_INT VRT_r_resp_status(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:172:33: error: expected declaration specifiers or '...' before 'VCL_INT'
 void VRT_l_resp_status(VRT_CTX, VCL_INT);
                                 ^
/usr/include/varnish/vrt_obj.h:174:1: error: expected declaration specifiers before 'VCL_STRING'
 VCL_STRING VRT_r_server_hostname(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:176:1: error: expected declaration specifiers before 'VCL_STRING'
 VCL_STRING VRT_r_server_identity(VRT_CTX);
 ^
/usr/include/varnish/vrt_obj.h:178:1: error: expected declaration specifiers before 'VCL_IP'
 VCL_IP VRT_r_server_ip(VRT_CTX);
 ^
In file included from vmod_rtstatus.h:8:0,
                 from vmod_rtstatus.c:8:
/usr/include/varnish/vapi/vsm.h:41:1: error: empty declaration [-Werror]
 struct VSM_chunk;
 ^
/usr/include/varnish/vapi/vsm.h:42:1: error: empty declaration [-Werror]
 struct VSM_data;
 ^
/usr/include/varnish/vapi/vsm.h:48:1: error: empty declaration [-Werror]
 struct VSM_fantom {
 ^
/usr/include/varnish/vapi/vsm.h:170:1: error: empty declaration [-Werror]
 enum VSM_valid_e {
 ^
In file included from vmod_rtstatus.c:8:0:
vmod_rtstatus.h:10:1: error: empty declaration [-Werror]
 struct iter_priv{
 ^
vmod_rtstatus.h:16:1: error: empty declaration [-Werror]
 struct counter {
 ^
vmod_rtstatus.h:21:1: error: empty declaration [-Werror]
 struct hitrate {
 ^
vmod_rtstatus.h:26:1: error: empty declaration [-Werror]
 struct load {
 ^
vmod_rtstatus.c:12:23: error: storage class specified for parameter 'hitrate'
 static struct hitrate hitrate;
                       ^
vmod_rtstatus.c:13:20: error: storage class specified for parameter 'load'
 static struct load load;
                    ^
vmod_rtstatus.c:18:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
 {
 ^
vmod_rtstatus.c:36:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
 {
 ^
vmod_rtstatus.c:48:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
 {
 ^
vmod_rtstatus.c:56:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
 {
 ^
vmod_rtstatus.c:102:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
 {
 ^
vmod_rtstatus.c:149:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
 {
 ^
vmod_rtstatus.c:192:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
 {
 ^
In file included from vmod_rtstatus.h:5:0,
                 from vmod_rtstatus.c:8:
/usr/include/varnish/vsb.h:66:7: error: old-style parameter declarations in prototyped function definition
 int   VSB_printf(struct vsb *, const char *, ...)
       ^
/usr/include/varnish/vsb.h:66:25: error: parameter name omitted
 int   VSB_printf(struct vsb *, const char *, ...)
                         ^
/usr/include/varnish/vsb.h:66:25: error: parameter name omitted
vmod_rtstatus.c:206:1: error: expected '{' at end of input
 }
 ^
vmod_rtstatus.c:206:1: error: control reaches end of non-void function [-Werror=return-type]
 }
 ^
cc1: all warnings being treated as errors
Makefile:471: recipe for target 'vmod_rtstatus.lo' failed
make[2]: *** [vmod_rtstatus.lo] Error 1
make[2]: Leaving directory '/opt/ct/libvmod-rtstatus/src'
Makefile:519: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/opt/ct/libvmod-rtstatus'
Makefile:387: recipe for target 'all' failed
make: *** [all] Error 2
Puneeth-n commented 6 years ago

4.1 compiles.

FROM ubuntu:latest

EXPOSE 80

RUN apt-get update && apt-get -y install curl && \
    apt-get clean

RUN curl -s https://packagecloud.io/install/repositories/varnishcache/varnish41/script.deb.sh | bash && \
    apt-get install -y varnish varnish-dev varnish-agent libtool automake build-essential git python-docutils && \
    apt-get clean

WORKDIR /opt/ct/
RUN git clone -b 4.1 --single-branch https://github.com/varnish/libvmod-rtstatus.git --depth 1 && \
    cd libvmod-rtstatus && ./autogen.sh && ./configure && make && make install