varnish/varnish-modules

Build fails on varnish:7.0.2 image

Closed this issue · 5 comments

Using official docker image for varnish:7.0.2:

#14 4.779   CC       vmod_bodyaccess.lo
#14 5.379 vmod_bodyaccess.c: In function 'vmod_rematch_req_body':
#14 5.379 vmod_bodyaccess.c:213:6: error: implicit declaration of function 'VRE_exec' [-Werror=implicit-function-declaration]
#14 5.379   213 |  i = VRE_exec(re, VSB_data(vsb), VSB_len(vsb), 0, 0, NULL,
#14 5.379       |      ^~~~~~~~
#14 5.379 vmod_bodyaccess.c:213:6: error: nested extern declaration of 'VRE_exec' [-Werror=nested-externs]
#14 5.785 cc1: all warnings being treated as errors
#14 5.811 make[2]: Leaving directory '/usr/src/varnish-modules/src'
#14 5.811 make[2]: *** [Makefile:936: vmod_bodyaccess.lo] Error 1
#14 5.819 make[1]: Leaving directory '/usr/src/varnish-modules'
#14 5.819 make[1]: *** [Makefile:542: all-recursive] Error 1
#14 5.821 make: *** [Makefile:453: all] Error 2

Dockerfile for reproducing:

works for me, did you use the 7.0 branch?

just saw the Dockerfile, let me check

the Dockerfile is using 0.18.0 which targets 6.6. Using 0.19.0 instead works as expected. (to be fair, it compiles but fails to install, you need to install python3-sphinx too)

Duh. silly. I updated comment to be 0.19.0, but not the actual VERSION. thanks for quick response!

no worries. For info, the next version of the docker image (in about 2 weeks) will include varnish-modules directly, that will save you that dance