Skip to content

Instantly share code, notes, and snippets.

@gi11es
Created January 19, 2016 12:53
Show Gist options
  • Save gi11es/5b55347a9888596fda74 to your computer and use it in GitHub Desktop.
Save gi11es/5b55347a9888596fda74 to your computer and use it in GitHub Desktop.
libvmod-xkey build failure on 4.0
vagrant@mediawiki-vagrant:/tmp/libvmod-xkey$ make
make all-recursive
make[1]: Entering directory `/tmp/libvmod-xkey'
Making all in src
make[2]: Entering directory `/tmp/libvmod-xkey/src'
/usr/share/varnish/vmodtool.py ../src/vmod_xkey.vcc
make all-am
make[3]: Entering directory `/tmp/libvmod-xkey/src'
/bin/bash ../libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I/usr/include/varnish -Wall -Werror -g -O2 -MT vcc_if.lo -MD -MP -MF .deps/vcc_if.Tpo -c -o vcc_if.lo vcc_if.c
libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I/usr/include/varnish -Wall -Werror -g -O2 -MT vcc_if.lo -MD -MP -MF .deps/vcc_if.Tpo -c vcc_if.c -fPIC -DPIC -o .libs/vcc_if.o
libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I/usr/include/varnish -Wall -Werror -g -O2 -MT vcc_if.lo -MD -MP -MF .deps/vcc_if.Tpo -c vcc_if.c -o vcc_if.o >/dev/null 2>&1
mv -f .deps/vcc_if.Tpo .deps/vcc_if.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I/usr/include/varnish -Wall -Werror -g -O2 -MT vmod_xkey.lo -MD -MP -MF .deps/vmod_xkey.Tpo -c -o vmod_xkey.lo vmod_xkey.c
libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I/usr/include/varnish -Wall -Werror -g -O2 -MT vmod_xkey.lo -MD -MP -MF .deps/vmod_xkey.Tpo -c vmod_xkey.c -fPIC -DPIC -o .libs/vmod_xkey.o
vmod_xkey.c: In function ‘xkey_cb_insert’:
vmod_xkey.c:410:2: error: implicit declaration of function ‘HTTP_FOREACH_PACK’ [-Werror=implicit-function-declaration]
HTTP_FOREACH_PACK(wrk, objcore, sp) {
^
vmod_xkey.c:410:38: error: expected ‘;’ before ‘{’ token
HTTP_FOREACH_PACK(wrk, objcore, sp) {
^
vmod_xkey.c:404:14: error: unused variable ‘ep’ [-Werror=unused-variable]
const char *ep, *sp;
^
vmod_xkey.c:403:13: error: unused variable ‘hdr_h2’ [-Werror=unused-variable]
const char hdr_h2[] = "X-HashTwo:";
^
vmod_xkey.c:402:13: error: unused variable ‘hdr_xkey’ [-Werror=unused-variable]
const char hdr_xkey[] = "xkey:";
^
vmod_xkey.c:401:16: error: unused variable ‘digest’ [-Werror=unused-variable]
unsigned char digest[DIGEST_LEN];
^
vmod_xkey.c:400:13: error: unused variable ‘sha_ctx’ [-Werror=unused-variable]
SHA256_CTX sha_ctx;
^
vmod_xkey.c: At top level:
vmod_xkey.c:455:10: error: ‘enum exp_event_e’ declared inside parameter list [-Werror]
enum exp_event_e event, void *priv)
^
vmod_xkey.c:455:10: error: its scope is only this definition or declaration, which is probably not what you want [-Werror]
vmod_xkey.c:455:22: error: parameter 3 (‘event’) has incomplete type
enum exp_event_e event, void *priv)
^
vmod_xkey.c: In function ‘xkey_cb’:
vmod_xkey.c:464:7: error: ‘EXP_INSERT’ undeclared (first use in this function)
case EXP_INSERT:
^
vmod_xkey.c:464:7: note: each undeclared identifier is reported only once for each function it appears in
vmod_xkey.c:465:7: error: ‘EXP_INJECT’ undeclared (first use in this function)
case EXP_INJECT:
^
vmod_xkey.c:468:7: error: ‘EXP_REMOVE’ undeclared (first use in this function)
case EXP_REMOVE:
^
vmod_xkey.c: In function ‘purge’:
vmod_xkey.c:508:18: error: ‘struct objcore’ has no member named ‘exp’
oc->objcore->exp.ttl <= (ctx->now - oc->objcore->exp.t_origin))
^
vmod_xkey.c:508:54: error: ‘struct objcore’ has no member named ‘exp’
oc->objcore->exp.ttl <= (ctx->now - oc->objcore->exp.t_origin))
^
vmod_xkey.c:512:19: error: ‘struct objcore’ has no member named ‘exp’
oc->objcore->exp.grace, oc->objcore->exp.keep);
^
vmod_xkey.c:512:43: error: ‘struct objcore’ has no member named ‘exp’
oc->objcore->exp.grace, oc->objcore->exp.keep);
^
vmod_xkey.c:512:8: error: passing argument 1 of ‘EXP_Rearm’ from incompatible pointer type [-Werror]
oc->objcore->exp.grace, oc->objcore->exp.keep);
^
In file included from vmod_xkey.c:35:0:
/usr/include/varnish/cache/cache.h:938:6: note: expected ‘struct object *’ but argument is of type ‘struct objcore *’
void EXP_Rearm(struct object *o, double now, double ttl, double grace,
^
vmod_xkey.c:514:38: error: ‘struct objcore’ has no member named ‘exp’
EXP_Rearm(oc->objcore, oc->objcore->exp.t_origin, 0,
^
vmod_xkey.c:515:8: error: passing argument 1 of ‘EXP_Rearm’ from incompatible pointer type [-Werror]
0, 0);
^
In file included from vmod_xkey.c:35:0:
/usr/include/varnish/cache/cache.h:938:6: note: expected ‘struct object *’ but argument is of type ‘struct objcore *’
void EXP_Rearm(struct object *o, double now, double ttl, double grace,
^
vmod_xkey.c: At top level:
vmod_xkey.c:535:50: error: ‘enum vcl_event_e’ declared inside parameter list [-Werror]
vmod_event(VRT_CTX, struct vmod_priv *priv, enum vcl_event_e e)
^
vmod_xkey.c:535:62: error: parameter 3 (‘e’) has incomplete type
vmod_event(VRT_CTX, struct vmod_priv *priv, enum vcl_event_e e)
^
vmod_xkey.c: In function ‘vmod_event’:
vmod_xkey.c:541:7: error: ‘VCL_EVENT_LOAD’ undeclared (first use in this function)
case VCL_EVENT_LOAD:
^
vmod_xkey.c:545:8: error: implicit declaration of function ‘EXP_Register_Callback’ [-Werror=implicit-function-declaration]
EXP_Register_Callback(xkey_cb, NULL);
^
vmod_xkey.c:551:7: error: ‘VCL_EVENT_DISCARD’ undeclared (first use in this function)
case VCL_EVENT_DISCARD:
^
vmod_xkey.c:558:4: error: implicit declaration of function ‘EXP_Deregister_Callback’ [-Werror=implicit-function-declaration]
EXP_Deregister_Callback(&xkey_cb_handle);
^
vmod_xkey.c: At top level:
vmod_xkey.c:300:1: error: ‘xkey_insert’ defined but not used [-Werror=unused-function]
xkey_insert(struct objcore *objcore, const unsigned char *digest,
^
cc1: all warnings being treated as errors
make[3]: *** [vmod_xkey.lo] Error 1
make[3]: Leaving directory `/tmp/libvmod-xkey/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tmp/libvmod-xkey/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/libvmod-xkey'
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment