Compiling fails under fully updated Debian 11 + Varnish 7.0.2 + vsthrottle
8Protons opened this issue · 1 comments
8Protons commented
vmod_vsf.c:96:39: error: array type has incomplete element type ‘struct vmod_priv_methods’
96 | static const struct vmod_priv_methods vmod_body_methods[1] = {{
| ^~~~~~~~~~~~~~~~~
vmod_vsf.c:97:11: error: ‘VMOD_PRIV_METHODS_MAGIC’ undeclared here (not in a function); did you mean ‘VDI_METHODS_MAGIC’?
97 | .magic = VMOD_PRIV_METHODS_MAGIC,
| ^~~~~~~~~~~~~~~~~~~~~~~
| VDI_METHODS_MAGIC
vmod_vsf.c: In function ‘vmod_body’:
vmod_vsf.c:139:6: error: ‘struct vmod_priv’ has no member named ‘methods’
139 | priv->methods = vmod_body_methods;
| ^~
make[3]: *** [Makefile:671: libvmod_vsf_la-vmod_vsf.lo] Error 1
Also there is a problem since the dependencies require python-docutils which has been made obsolete by python3-docutils, and is no longer available for several Linux versions. Furthermore libvarnishapi-dev conflicts with varnish-dev, which is required for the OEM Varnish Modules package.
fgsch commented
Hi. The compilation error looks like a local issue. Perhaps multiple varnish versions installed?
Can you attach the config.log file?
I will take a look at the packages and update the documentation when I have time.