Closed rashidul0405 closed 7 years ago
I am also facing the same issue with the same version.
OS: REDHAT 6 Varnish: 4.1.8
autoconf version: 2.69 automake=1.12
cc1: warnings being treated as errors vmod_dynamic.c: In function ‘dynamic_get’: vmod_dynamic.c:698: error: passing argument 2 of ‘LckNew’ from incompatible pointer type /TMP/varnish/include/varnish/cache/cache.h:828: note: expected ‘struct VSC_C_lck ’ but argument is of type ‘struct VSC_lck ’ vmod_dynamic.c: In function ‘vmod_event’: vmod_dynamic.c:732: error: assignment from incompatible pointer type vmod_dynamic.c:733: error: assignment from incompatible pointer type vmod_dynamic.c:744: error: implicit declaration of function ‘Lck_DestroyClass’ vmod_dynamic.c: In function ‘dynamic_share_parse’: vmod_dynamic.c:782: error: implicit declaration of function ‘NEEDLESS’ vmod_dynamic.c:782: error: expected expression before ‘return’ vmod_dynamic.c: In function ‘vmod_directorinit’: vmod_dynamic.c:858: error: passing argument 2 of ‘Lck__New’ from incompatible pointer type /TMP/varnish/include/varnish/cache/cache.h:828: note: expected ‘struct VSC_C_lck ’ but argument is of type ‘struct VSC_lck ’ make[2]: [vmod_dynamic.lo] Error 1 make[2]: Leaving directory `/TMP/libvmod-dynamic-master/src' make[1]: [all-recursive] Error 1 make[1]: Leaving directory `/TMP/libvmod-dynamic-master' make: *** [all] Error 2
Same issue for me, if i use the default branch (master) with Varnish 5.1. Apparently the master branch is for Varnish 5.2 now (https://github.com/nigoroll/libvmod-dynamic/commit/89f489146f129a841ec91467178b28cea57236df)
There is no issue if i use the branch "5.1" with Varnish 5.1.3-1~xenial from https://packagecloud.io/varnishcache/varnish5
@jgarrouste thank you, exactly right: I had to make some incompatible changes for current master and decided to split off branches.
If I build using Apr 10, 2017 commit it works fine.
However, current latest version produces the following error:
varnish 4.1.8