Closed thanhdat9526 closed 5 years ago
Can you please detail how are you trying to build it?
The build has been broken using libvmod-digest@master with Varnish 4.1.9, however the tag 1.0.2 is working. I'll try to add more details soon.
Hi all! My varnish version is 4.1.9 When I run make from master branch I get a such result
make all-recursive
make[1]: Entering directory '/libvmod-digest'
Making all in src
make[2]: Entering directory '/libvmod-digest/src'
/usr/share/varnish/vmodtool.py ../src/vmod_digest.vcc
/bin/sh ../libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I/usr/include/varnish -Wall -Wextra -Werror -g -O2 -MT vmod_digest.lo -MD -MP -MF .deps/vmod_digest.Tpo -c -o vmod_digest.lo vmod_digest.c
libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I/usr/include/varnish -Wall -Wextra -Werror -g -O2 -MT vmod_digest.lo -MD -MP -MF .deps/vmod_digest.Tpo -c vmod_digest.c -fPIC -DPIC -o .libs/vmod_digest.o
In file included from vmod_digest.c:53:
vcc_if.h:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hmac_sha256'
vcc_if.h:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hmac_sha1'
vcc_if.h:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hmac_md5'
vcc_if.h:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_base64'
vcc_if.h:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_base64_hex'
vcc_if.h:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_base64_decode'
vcc_if.h:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_base64url'
vcc_if.h:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_base64url_hex'
vcc_if.h:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_base64url_decode'
vcc_if.h:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_base64url_nopad'
vcc_if.h:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_base64url_nopad_hex'
vcc_if.h:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_base64url_nopad_decode'
vcc_if.h:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_sha1'
vcc_if.h:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_sha224'
vcc_if.h:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_sha256'
vcc_if.h:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_sha384'
vcc_if.h:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_sha512'
vcc_if.h:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_gost'
vcc_if.h:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_md2'
vcc_if.h:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_md4'
vcc_if.h:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_md5'
vcc_if.h:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_crc32'
vcc_if.h:34: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_crc32b'
vcc_if.h:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_adler32'
vcc_if.h:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_haval128'
vcc_if.h:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_haval160'
vcc_if.h:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_haval192'
vcc_if.h:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_haval224'
vcc_if.h:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_haval256'
vcc_if.h:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_ripemd128'
vcc_if.h:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_ripemd160'
vcc_if.h:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_ripemd256'
vcc_if.h:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_ripemd320'
vcc_if.h:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_tiger'
vcc_if.h:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_tiger128'
vcc_if.h:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_tiger160'
vcc_if.h:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_snefru128'
vcc_if.h:49: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_snefru256'
vcc_if.h:50: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_whirlpool'
vcc_if.h:51: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_version'
vcc_if.h:54: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'event_function'
vmod_digest.c:291: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hmac_generic'
vmod_digest.c:340: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_base64_generic'
vmod_digest.c:364: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_base64_decode_generic'
vmod_digest.c:389: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_generic'
vmod_digest.c:423: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_sha1'
vmod_digest.c:424: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_sha224'
vmod_digest.c:425: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_sha256'
vmod_digest.c:426: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_sha384'
vmod_digest.c:427: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_sha512'
vmod_digest.c:428: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_gost'
vmod_digest.c:429: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_md2'
vmod_digest.c:430: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_md4'
vmod_digest.c:431: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_md5'
vmod_digest.c:432: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_crc32'
vmod_digest.c:433: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_crc32b'
vmod_digest.c:434: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_adler32'
vmod_digest.c:435: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_haval128'
vmod_digest.c:436: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_haval160'
vmod_digest.c:437: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_haval192'
vmod_digest.c:438: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_haval224'
vmod_digest.c:439: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_haval256'
vmod_digest.c:440: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_ripemd128'
vmod_digest.c:441: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_ripemd160'
vmod_digest.c:442: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_ripemd256'
vmod_digest.c:443: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_ripemd320'
vmod_digest.c:444: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_tiger'
vmod_digest.c:445: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_tiger128'
vmod_digest.c:446: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_tiger160'
vmod_digest.c:447: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_snefru128'
vmod_digest.c:448: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_snefru256'
vmod_digest.c:449: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hash_whirlpool'
vmod_digest.c:476: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_base64'
vmod_digest.c:476: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_base64_hex'
cc1: warnings being treated as errors
vmod_digest.c: In function 'vmod_base64_decode':
vmod_digest.c:476: error: implicit declaration of function 'vmod_base64_decode_generic'
vmod_digest.c:476: error: return makes pointer from integer without a cast
vmod_digest.c: At top level:
vmod_digest.c:477: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_base64url'
vmod_digest.c:477: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_base64url_hex'
vmod_digest.c: In function 'vmod_base64url_decode':
vmod_digest.c:477: error: return makes pointer from integer without a cast
vmod_digest.c: At top level:
vmod_digest.c:478: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_base64url_nopad'
vmod_digest.c:478: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_base64url_nopad_hex'
vmod_digest.c: In function 'vmod_base64url_nopad_decode':
vmod_digest.c:478: error: return makes pointer from integer without a cast
vmod_digest.c: At top level:
vmod_digest.c:497: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hmac_sha256'
vmod_digest.c:498: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hmac_sha1'
vmod_digest.c:499: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_hmac_md5'
vmod_digest.c:503: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vmod_version'
make[2]: *** [vmod_digest.lo] Error 1
make[2]: Leaving directory '/libvmod-digest/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/libvmod-digest'
make: *** [all] Error 2
I've tried to use tag 1.0.2 and it works!
Hi all,
Can anybody help me, libvmod-digest can be make? Varnish version: varnish (modified varnish-4.1.11 61367ed17d08a9ef80a2d42dc84caef79cdeee7a) Copyright (c) 2006 Verdens Gang AS Copyright (c) Varnish Software 2006-2019 AS