varnish / varnish-modules

Collection of Varnish Cache modules (vmods) by Varnish Software
Other
185 stars 86 forks source link

In Ubuntu: make causes SyntaxError: invalid syntax #162

Closed Kifsif closed 4 years ago

Kifsif commented 4 years ago

Ubuntu 18.04.4 LTS

I'm trying to install the modules according to the instruction here: https://github.com/varnish/varnish-modules#installation

./configure was Ok.

But make comand seems to fail:

michael@michael:~/Downloads/varnish-modules-0.15.0$ make
make  all-recursive
make[1]: Entering directory '/home/michael/Downloads/varnish-modules-0.15.0'
Making all in src
make[2]: Entering directory '/home/michael/Downloads/varnish-modules-0.15.0/src'
  VMODTOOL vcc_bodyaccess_if.c
  File "/usr/local/share/varnish/vmodtool.py", line 231
    print("ERROR: " + txt, file=sys.stderr)
                               ^
SyntaxError: invalid syntax
Makefile:1356: recipe for target 'vcc_bodyaccess_if.c' failed
make[2]: *** [vcc_bodyaccess_if.c] Error 1
make[2]: Leaving directory '/home/michael/Downloads/varnish-modules-0.15.0/src'
Makefile:537: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/michael/Downloads/varnish-modules-0.15.0'
Makefile:448: recipe for target 'all' failed
make: *** [all] Error 2
michael@michael:~/Downloads/varnish-modules-0.15.0$

Could you clarify whether this is a bug or my clumziness?

gquintard commented 4 years ago

what's your Varnish version? It's possibly too recent, in which case, try the 0.16 release

Kifsif commented 4 years ago

Thank you for your answer.

My version is:

michael@michael:~$ varnishd -V
varnishd (varnish-6.4.0 revision 13f137934ec1cf14af66baf7896311115ee35598)
Copyright (c) 2006 Verdens Gang AS
Copyright (c) 2006-2020 Varnish Software AS

If this is a bug, please, tell me is it supposed to be fixed? If yes, when?

gquintard commented 4 years ago

not a bug, as said, your Varnish version is too recent, use https://github.com/varnish/varnish-modules/releases/tag/varnish-modules-0.16.0 instead of 0.15

Kifsif commented 4 years ago

Thank you. I'll try.