Closed ssm closed 8 years ago
Hi @ssm, thanks for the report. I haven't tested this, but I believe this collection hasn't been adjusted to varnish 5.0 yet.
I'll get back to you when I know more.
Quick glance:
Code was refactored, breaking things hard. Good thing we bumped the VRT ABI major just in case.
The EXP_*
symbols are now called OC_EF_*
and belong in (struct objcore).exp_flags
.
I think that (struct objcore).list
was renamed to hsh_list
.
OC_EF_DYING
is now in (struct objcore).flags
: OC_F_DYING
.
No time to look at the rest, may resume later.
@ssm please find attached a patch that should be enough for your debian build. Tests pass on my Fedora box.
Others: this patch doesn't deal with Varnish Plus differences.
@Dridi Thanks, adding that patch to the Debian package worked fine.
A new version of varnish-modules has been uploaded to Debian unstable (https://tracker.debian.org/news/799024).
@ssm thanks for confirming.
@aondio you can assign it to me if you want, I'll produce a sustainable fix.
@Dridi, it's all yours :)
Reopening to point out that everything should work on Varnish Plus except the use of resp.msg
in test cases.
See varnishcache/varnish-cache#2097 for a back-portable fix.
Oh, and it breaks on Travis CI because Varnish 4.1 is installed, but we don't have packages for Varnish 5 yet. Please let me know how to proceed with Travis, I can build Varnish from source or wait until a 5.0 repo pops up.
Hey folks, you're doing duplicate work. I've been maintaining a master version of this repo for quite some time: https://github.com/nigoroll/varnish-modules It's even mentioned in the readme
FYI I somehow just remembered that @nigoroll has a fork building against varnish-master.
I've just committed some changes that should cover 4.1 and master as of today, and hopefully also 5.0. @ssm can you give it a try and let me know if anything else needs attention?
I can confirm that this also fixes the build against 5.0.0. For the records, this has been compiled and tested with the follow branches/repositories:
varnish-4.1
varnish-4.1.3
varnish-4.1-plus
varnish-5.0.0
varnish-master
Fixed in 29923f976bb737a81a855a13b0acbdcac26440d5.
The last tag 0.9.1, and the current master (b8c0060b51b0130960e3fb8b67c3a30d26cfe296) does not build against Varnish 5.0.0.
Originally reported to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=838114
vmod_xkey fails with:
In addition, vmod_softpurge fails with:
I guess varnishcache/varnish-cache@4ded44b6c9633d483de1609a97c99fa0b6db153a, is one of the related changes in Varnish Cache.