Giter Club home page Giter Club logo

libvmod-softpurge's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

libvmod-softpurge's Issues

4.0 does not build with VCP4

Working on 1872e86, preparing a 1.0.0+4.0 version for VCP4:

+ make
make  all-recursive
make[1]: Entering directory '/home/lkarsten/work/libvmod-softpurge'
Making all in src
make[2]: Entering directory '/home/lkarsten/work/libvmod-softpurge/src'
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I/opt/vcp4/include/varnish-plus -I../src/foreign   -g -O2 -MT vmod_softpurge.lo -MD -MP -MF .deps/vmod_softpurge.Tpo -c -o vmod_softpurge.lo vmod_softpurge.c
libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I/opt/vcp4/include/varnish-plus -I../src/foreign -g -O2 -MT vmod_softpurge.lo -MD -MP -MF .deps/vmod_softpurge.Tpo -c vmod_softpurge.c  -fPIC -DPIC -o .libs/vmod_softpurge.o
vmod_softpurge.c: In function 'vmod_softpurge':
vmod_softpurge.c:81:26: warning: passing argument 2 of 'EXP_Ttl' from incompatible pointer type
       (EXP_Ttl(ctx->req, o) - now),
                          ^
In file included from vmod_softpurge.c:4:0:
/opt/vcp4/include/varnish-plus/cache/cache.h:1042:8: note: expected 'const struct objcore *' but argument is of type 'struct object *'
 double EXP_Ttl(const struct req *, const struct objcore *);
        ^
vmod_softpurge.c:82:26: warning: passing argument 2 of 'EXP_Ttl' from incompatible pointer type
       (EXP_Ttl(ctx->req, o) + o->exp.grace - now), n);
                          ^
In file included from vmod_softpurge.c:4:0:
/opt/vcp4/include/varnish-plus/cache/cache.h:1042:8: note: expected 'const struct objcore *' but argument is of type 'struct object *'
 double EXP_Ttl(const struct req *, const struct objcore *);
        ^
vmod_softpurge.c:82:32: error: 'struct object' has no member named 'exp'
       (EXP_Ttl(ctx->req, o) + o->exp.grace - now), n);
                                ^
vmod_softpurge.c:85:8: error: 'struct object' has no member named 'exp'
   if (o->exp.ttl > (now - o->exp.t_origin))
        ^
vmod_softpurge.c:85:28: error: 'struct object' has no member named 'exp'
   if (o->exp.ttl > (now - o->exp.t_origin))
                            ^
vmod_softpurge.c:86:26: error: 'struct object' has no member named 'exp'
    EXP_Rearm(o, now, 0, o->exp.grace, o->exp.keep);
                          ^
vmod_softpurge.c:86:40: error: 'struct object' has no member named 'exp'
    EXP_Rearm(o, now, 0, o->exp.grace, o->exp.keep);
                                        ^
vmod_softpurge.c:86:14: warning: passing argument 1 of 'EXP_Rearm' from incompatible pointer type
    EXP_Rearm(o, now, 0, o->exp.grace, o->exp.keep);
              ^
In file included from vmod_softpurge.c:4:0:
/opt/vcp4/include/varnish-plus/cache/cache.h:1046:6: note: expected 'struct objcore *' but argument is of type 'struct object *'
 void EXP_Rearm(struct objcore *oc, double now, double ttl, double grace,
      ^
vmod_softpurge.c:89:26: warning: passing argument 2 of 'EXP_Ttl' from incompatible pointer type
       (EXP_Ttl(ctx->req, o) - now),
                          ^
In file included from vmod_softpurge.c:4:0:
/opt/vcp4/include/varnish-plus/cache/cache.h:1042:8: note: expected 'const struct objcore *' but argument is of type 'struct object *'
 double EXP_Ttl(const struct req *, const struct objcore *);
        ^
vmod_softpurge.c:90:26: warning: passing argument 2 of 'EXP_Ttl' from incompatible pointer type
       (EXP_Ttl(ctx->req, o) + o->exp.grace - now), n);
                          ^
In file included from vmod_softpurge.c:4:0:
/opt/vcp4/include/varnish-plus/cache/cache.h:1042:8: note: expected 'const struct objcore *' but argument is of type 'struct object *'
 double EXP_Ttl(const struct req *, const struct objcore *);
        ^
vmod_softpurge.c:90:32: error: 'struct object' has no member named 'exp'
       (EXP_Ttl(ctx->req, o) + o->exp.grace - now), n);
                                ^
Makefile:439: recipe for target 'vmod_softpurge.lo' failed
make[2]: *** [vmod_softpurge.lo] Error 1
make[2]: Leaving directory '/home/lkarsten/work/libvmod-softpurge/src'
Makefile:503: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/lkarsten/work/libvmod-softpurge'
Makefile:370: recipe for target 'all' failed
make: *** [all] Error 2

4.0 docs are for 3.0

[13:34:19] < scn> install docs for softpurge 4.0 is for 3.0

VARNISHSRC and so on.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.