varnish / varnish-modules

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

Fails to compile on Alpine Linux #144

Closed csandanov closed 4 years ago

csandanov commented 4 years ago

I've recently started to get the following error when compiling on Alpine Linux (3.9 and 3.10).

vmod_header.c:196:1: error: no previous prototype for 'vmod_event_function' [-Werror=missing-prototypes]
 vmod_event_function(VRT_CTX, struct vmod_priv *priv, enum vcl_event_e e)

Full log:

+ cd /tmp/varnish-modules
+ ./bootstrap
+ mkdir -p m4
+ aclocal -I m4 -I /usr/share/aclocal
+ libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: copying file 'build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
+ autoheader
+ automake --add-missing --copy --foreign
configure.ac:14: installing 'build-aux/compile'
configure.ac:14: installing 'build-aux/config.guess'
configure.ac:14: installing 'build-aux/config.sub'
configure.ac:10: installing 'build-aux/install-sh'
configure.ac:10: installing 'build-aux/missing'
src/Makefile.am: installing 'build-aux/depcomp'
parallel-tests: installing 'build-aux/test-driver'
+ autoconf
+ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/x86_64-alpine-linux-musl/bin/ld
checking if the linker (/usr/x86_64-alpine-linux-musl/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 98304
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/x86_64-alpine-linux-musl/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/x86_64-alpine-linux-musl/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking whether to build with code coverage support... no
checking for rst2man... rst2man
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.21... yes
checking for VARNISHAPI... yes
checking for explicit_bzero... yes
checking for Varnish... 6.0.5
checking vsha256.h usability... yes
checking vsha256.h presence... yes
checking for vsha256.h... yes
checking cache/cache.h usability... yes
checking cache/cache.h presence... yes
checking for cache/cache.h... yes
checking for a Python interpreter with version >= 2.7... python3.7
checking for python3.7... /usr/bin/python3.7
checking for python3.7 version... 3.7
checking for python3.7 platform... linux
checking for python3.7 script directory... ${prefix}/lib/python3.7/site-packages
checking for python3.7 extension module directory... ${exec_prefix}/lib/python3.7/site-packages
checking for gcc option to accept ISO C99... none needed
checking cache/cache_varnishd.h usability... yes
checking cache/cache_varnishd.h presence... yes
checking for cache/cache_varnishd.h... yes
checking for struct objcore.exp... no
checking for struct objcore.hsh_list... yes
checking for struct director.admin_health... yes
checking for req_body_iter_f... no
checking for objiterate_f... yes
checking for enum exp_event_e... no
checking for struct tcp_info... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
+ make
make  all-recursive
make[1]: Entering directory '/tmp/varnish-modules'
Making all in src
make[2]: Entering directory '/tmp/varnish-modules/src'
  VMODTOOL vcc_bodyaccess_if.c
  CC       vmod_bodyaccess.lo
  CC       vcc_bodyaccess_if.lo
  CCLD     libvmod_bodyaccess.la
  VMODTOOL vcc_cookie_if.c
  CC       vmod_cookie.lo
  CC       vcc_cookie_if.lo
  CCLD     libvmod_cookie.la
  VMODTOOL vcc_header_if.c
  CC       vmod_header.lo
vmod_header.c:196:1: error: no previous prototype for 'vmod_event_function' [-Werror=missing-prototypes]
 vmod_event_function(VRT_CTX, struct vmod_priv *priv, enum vcl_event_e e)
 ^~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: Leaving directory '/tmp/varnish-modules/src'
make[2]: *** [Makefile:933: vmod_header.lo] Error 1
make[1]: *** [Makefile:537: all-recursive] Error 1
make[1]: Leaving directory '/tmp/varnish-modules'
make: *** [Makefile:448: all] Error 2
gquintard commented 4 years ago

Hi,

Before we start digging too deep, what branch are you using, and what varnish version are you running? (varnishd -V)

csandanov commented 4 years ago

Varnish 6.0.5 (tried 6.0.4 which also fails).

I use master branch which I guess is the problem here. I tried 0.15.0 and it compiles without errors. The reason I didn't use the latest stable release because make check from releases (0.15.0) fails as I previously reported in https://github.com/varnish/varnish-modules/issues/115#issuecomment-446543425. And I've been using master branch for quite a while and it worked for me until recently.

Anyway, here's the failed make check:

================================================
   varnish-modules 0.15.0: src/test-suite.log
================================================

# TOTAL: 49
# PASS:  48
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: tests/tcp/02-congestion
=============================

**** top   0.0 extmacro def pwd=/tmp/varnish-modules-0.15.0/src
**** top   0.0 extmacro def vmod_builddir=/tmp/varnish-modules-0.15.0/src
**** top   0.0 extmacro def vmod_directors=directors from "/usr/lib/varnish/vmods/libvmod_directors.so"
**** top   0.0 extmacro def localhost=127.0.0.1
**** top   0.0 extmacro def bad_backend=127.0.0.1 34211
**** top   0.0 extmacro def bad_ip=192.0.2.255
**** top   0.0 macro def testdir=/tmp/varnish-modules-0.15.0/src/./tests/tcp
**** top   0.0 macro def tmpdir=/tmp/vtc.1914.6e3b3a08
*    top   0.0 TEST ./tests/tcp/02-congestion.vtc starting
**   top   0.0 === varnishtest "Test tcp vmod"
*    top   0.0 TEST Test tcp vmod
**   top   0.0 === feature cmd "uname | grep Linux"
**   top   0.0 === server s1 {
**   s1    0.0 Starting server
**** s1    0.0 macro def s1_addr=127.0.0.1
**** s1    0.0 macro def s1_port=43527
**** s1    0.0 macro def s1_sock=127.0.0.1 43527
*    s1    0.0 Listen on 127.0.0.1 43527
**   top   0.0 === varnish v1 -vcl+backend {
**   s1    0.0 Started on 127.0.0.1 43527 (1 iterations)
**   v1    0.0 Launch
***  v1    0.0 CMD: cd ${pwd} && exec varnishd  -d -n /tmp/vtc.1914.6e3b3a08/v1 -l 2m -p auto_restart=off -p syslog_cli_traffic=off -p sigsegv_handler=on -p thread_pool_min=10 -p debug=+vtc_mode -a '127.0.0.1:0' -M '127.0.0.1 35145' -P /tmp/vtc.1914.6e3b3a08/v1/varnishd.pid
***  v1    0.0 CMD: cd /tmp/varnish-modules-0.15.0/src && exec varnishd  -d -n /tmp/vtc.1914.6e3b3a08/v1 -l 2m -p auto_restart=off -p syslog_cli_traffic=off -p sigsegv_handler=on -p thread_pool_min=10 -p debug=+vtc_mode -a '127.0.0.1:0' -M '127.0.0.1 35145' -P /tmp/vtc.1914.6e3b3a08/v1/varnishd.pid
***  v1    0.0 PID: 1922
**** v1    0.0 macro def v1_pid=1922
**** v1    0.0 macro def v1_name=/tmp/vtc.1914.6e3b3a08/v1
***  v1    0.8 debug|Debug: Version: varnish-6.0.5 revision 3065ccaacc4bb537fb976a524bd808db42c5fe40
***  v1    0.8 debug|Debug: Platform: Linux,4.9.184-linuxkit,x86_64,-junix,-sdefault,-sdefault,-hcritbit
***  v1    0.8 debug|
***  v1    0.8 debug|200 317
***  v1    0.8 debug|-----------------------------
***  v1    0.8 debug|Varnish Cache CLI 1.0
***  v1    0.8 debug|-----------------------------
***  v1    0.8 debug|Linux,4.9.184-linuxkit,x86_64,-junix,-sdefault,-sdefault,-hcritbit
***  v1    0.8 debug|varnish-6.0.5 revision 3065ccaacc4bb537fb976a524bd808db42c5fe40
***  v1    0.8 debug|
***  v1    0.8 debug|Type 'help' for command list.
***  v1    0.8 debug|Type 'quit' to close CLI session.
***  v1    0.8 debug|Type 'start' to launch worker process.
***  v1    0.8 debug|
**** v1    0.9 CLIPOLL 1 0x1 0x0
***  v1    0.9 CLI connection fd = 7
***  v1    0.9 CLI RX  107
**** v1    0.9 CLI RX|dwfnnzvzwqylczsbnxnfbnebpgcqypce
**** v1    0.9 CLI RX|
**** v1    0.9 CLI RX|Authentication required.
**** v1    0.9 CLI TX|auth 175c3385ded143e2f124253b6f852e5f4c99572a672bea7879375d116b14d1bc
***  v1    0.9 CLI RX  200
**** v1    0.9 CLI RX|-----------------------------
**** v1    0.9 CLI RX|Varnish Cache CLI 1.0
**** v1    0.9 CLI RX|-----------------------------
**** v1    0.9 CLI RX|Linux,4.9.184-linuxkit,x86_64,-junix,-sdefault,-sdefault,-hcritbit
**** v1    0.9 CLI RX|varnish-6.0.5 revision 3065ccaacc4bb537fb976a524bd808db42c5fe40
**** v1    0.9 CLI RX|
**** v1    0.9 CLI RX|Type 'help' for command list.
**** v1    0.9 CLI RX|Type 'quit' to close CLI session.
**** v1    0.9 CLI RX|Type 'start' to launch worker process.
**** v1    0.9 CLI TX|vcl.inline vcl1 << %XJEIFLH|)Xspa8P
**** v1    0.9 CLI TX|vcl 4.1;
**** v1    0.9 CLI TX|backend s1 { .host = "127.0.0.1"; .port = "43527"; }
**** v1    0.9 CLI TX|
**** v1    0.9 CLI TX|
**** v1    0.9 CLI TX|\timport tcp from "/tmp/varnish-modules-0.15.0/src/.libs/libvmod_tcp.so";
**** v1    0.9 CLI TX|
**** v1    0.9 CLI TX|\tsub vcl_deliver {
**** v1    0.9 CLI TX|\t\tset resp.http.a = tcp.congestion_algorithm("reno");
**** v1    0.9 CLI TX|\t\tset resp.http.b = tcp.congestion_algorithm("slartibartfast");
**** v1    0.9 CLI TX|\t\tset resp.http.c = tcp.congestion_algorithm("cubic");
**** v1    0.9 CLI TX|\t}
**** v1    0.9 CLI TX|
**** v1    0.9 CLI TX|%XJEIFLH|)Xspa8P
***  v1    1.0 vsl|No VSL chunk found (child not started ?)
***  v1    1.1 vsl|No VSL chunk found (child not started ?)
***  v1    1.2 vsl|No VSL chunk found (child not started ?)
***  v1    1.3 vsl|No VSL chunk found (child not started ?)
***  v1    1.4 vsl|No VSL chunk found (child not started ?)
***  v1    1.5 vsl|No VSL chunk found (child not started ?)
***  v1    1.6 vsl|No VSL chunk found (child not started ?)
***  v1    1.7 vsl|No VSL chunk found (child not started ?)
***  v1    1.8 vsl|No VSL chunk found (child not started ?)
***  v1    1.9 vsl|No VSL chunk found (child not started ?)
***  v1    2.0 vsl|No VSL chunk found (child not started ?)
***  v1    2.1 vsl|No VSL chunk found (child not started ?)
***  v1    2.2 CLI RX  200
**** v1    2.2 CLI RX|VCL compiled.
**** v1    2.2 CLI TX|vcl.use vcl1
***  v1    2.2 CLI RX  200
**   v1    2.2 Start
**** v1    2.2 CLI TX|start
***  v1    2.2 vsl|No VSL chunk found (child not started ?)
***  v1    2.2 debug|Debug: Child (1934) Started
***  v1    2.3 debug|Info: Child (1934) said Child starts
***  v1    2.3 CLI RX  200
***  v1    2.3 wait-running
**** v1    2.3 CLI TX|status
**** v1    2.3 vsl|          0 CLI             - Rd vcl.load "vcl1" vcl_vcl1.1571803978.723166/vgc.so 1auto
**** v1    2.3 vsl|          0 CLI             - Wr 200 52 Loaded "vcl_vcl1.1571803978.723166/vgc.so" as "vcl1"
**** v1    2.3 vsl|          0 CLI             - Rd vcl.use "vcl1"
**** v1    2.3 vsl|          0 CLI             - Wr 200 0
**** v1    2.3 vsl|          0 CLI             - Rd start
**** v1    2.3 vsl|          0 CLI             - Wr 200 0
***  v1    2.3 CLI RX  200
**** v1    2.3 CLI RX|Child in state running
**** v1    2.3 CLI TX|debug.listen_address
***  v1    2.4 CLI RX  200
**** v1    2.4 CLI RX|127.0.0.1 38385
**** v1    2.4 CLI TX|debug.xid 999
**** v1    2.4 vsl|          0 CLI             - Rd debug.listen_address
**** v1    2.4 vsl|          0 CLI             - Wr 200 16 127.0.0.1 38385

***  v1    2.4 CLI RX  200
**** v1    2.4 CLI RX|XID is 999
**** v1    2.4 CLI TX|debug.listen_address
***  v1    2.5 CLI RX  200
**** v1    2.5 CLI RX|127.0.0.1 38385
**   v1    2.5 Listen on 127.0.0.1 38385
**** v1    2.5 macro def v1_addr=127.0.0.1
**** v1    2.5 macro def v1_port=38385
**** v1    2.5 macro def v1_sock=127.0.0.1 38385
**   top   2.5 === client c1 {
**   top   2.5 === client c1 -run
**   c1    2.5 Starting client
**   c1    2.5 Waiting for client
***  c1    2.5 Connect to 127.0.0.1 38385
***  c1    2.5 connected fd 17 from 127.0.0.1 39970 to 127.0.0.1 38385
**   c1    2.5 === txreq -url "/"
**** c1    2.5 txreq|GET / HTTP/1.1\r
**** c1    2.5 txreq|Host: 127.0.0.1\r
**** c1    2.5 txreq|\r
**   c1    2.5 === rxresp
***  s1    2.5 accepted fd 5 127.0.0.1 50156
**   s1    2.5 === rxreq
**** s1    2.5 rxhdr|GET / HTTP/1.1\r
**** s1    2.5 rxhdr|Host: 127.0.0.1\r
**** s1    2.5 rxhdr|X-Forwarded-For: 127.0.0.1\r
**** s1    2.5 rxhdr|Accept-Encoding: gzip\r
**** s1    2.5 rxhdr|X-Varnish: 1002\r
**** s1    2.5 rxhdr|\r
**** s1    2.5 rxhdrlen = 103
**** s1    2.5 http[ 0] |GET
**** s1    2.5 http[ 1] |/
**** s1    2.5 http[ 2] |HTTP/1.1
**** s1    2.5 http[ 3] |Host: 127.0.0.1
**** s1    2.5 http[ 4] |X-Forwarded-For: 127.0.0.1
**** s1    2.5 http[ 5] |Accept-Encoding: gzip
**** s1    2.5 http[ 6] |X-Varnish: 1002
**** s1    2.5 bodylen = 0
**   s1    2.5 === txresp
**** s1    2.5 txresp|HTTP/1.1 200 OK\r
**** s1    2.5 txresp|Content-Length: 0\r
**** s1    2.5 txresp|\r
***  s1    2.5 shutting fd 5
**   s1    2.5 Ending
**** c1    2.5 rxhdr|HTTP/1.1 200 OK\r
**** c1    2.5 rxhdr|Content-Length: 0\r
**** c1    2.5 rxhdr|Date: Wed, 23 Oct 2019 04:13:00 GMT\r
**** c1    2.5 rxhdr|X-Varnish: 1001\r
**** c1    2.5 rxhdr|Age: 0\r
**** c1    2.5 rxhdr|Via: 1.1 varnish (Varnish/6.0)\r
**** c1    2.5 rxhdr|a: -1\r
**** c1    2.5 rxhdr|b: -1\r
**** c1    2.5 rxhdr|c: -1\r
**** c1    2.5 rxhdr|Accept-Ranges: bytes\r
**** c1    2.5 rxhdr|Connection: keep-alive\r
**** c1    2.5 rxhdr|\r
**** c1    2.5 rxhdrlen = 199
**** c1    2.5 http[ 0] |HTTP/1.1
**** c1    2.5 http[ 1] |200
**** c1    2.5 http[ 2] |OK
**** c1    2.5 http[ 3] |Content-Length: 0
**** c1    2.5 http[ 4] |Date: Wed, 23 Oct 2019 04:13:00 GMT
**** c1    2.5 http[ 5] |X-Varnish: 1001
**** c1    2.5 http[ 6] |Age: 0
**** c1    2.5 http[ 7] |Via: 1.1 varnish (Varnish/6.0)
**** c1    2.5 http[ 8] |a: -1
**** c1    2.5 http[ 9] |b: -1
**** c1    2.5 http[10] |c: -1
**** c1    2.5 http[11] |Accept-Ranges: bytes
**** c1    2.5 http[12] |Connection: keep-alive
**** c1    2.5 bodylen = 0
**   c1    2.5 === expect resp.http.a == "0"
---- c1    2.5 EXPECT resp.http.a (-1) == "0" failed
*    top   2.5 RESETTING after ./tests/tcp/02-congestion.vtc
**   s1    2.5 Waiting for server (4/-1)
**   v1    2.5 Wait
**** v1    2.5 CLI TX|panic.clear
**** v1    2.5 vsl|          0 CLI             - Rd debug.xid 999
**** v1    2.5 vsl|          0 CLI             - Wr 200 10 XID is 999
**** v1    2.5 vsl|          0 CLI             - Rd debug.listen_address
**** v1    2.5 vsl|          0 CLI             - Wr 200 16 127.0.0.1 38385

**** v1    2.5 vsl|       1000 Begin           c sess 0 HTTP/1
**** v1    2.5 vsl|       1000 SessOpen        c 127.0.0.1 39970 a0 127.0.0.1 38385 1571803980.304330 22
**** v1    2.5 vsl|       1000 Link            c req 1001 rxreq
**** v1    2.5 vsl|          0 ExpKill         - EXP_Inbox flg=1e p=0x556d43aa73c0 e=0.000000 f=0x0
**** v1    2.5 vsl|          0 ExpKill         - EXP_When p=0x556d43aa73c0 e=1571804110.308686 f=0x1e
**** v1    2.5 vsl|          0 ExpKill         - EXP_expire p=0x556d43aa73c0 e=129.999741 f=0x0
**** v1    2.5 vsl|       1002 Begin           b bereq 1001 fetch
**** v1    2.5 vsl|       1002 VCL_use         b vcl1
**** v1    2.5 vsl|       1002 Timestamp       b Start: 1571803980.304728 0.000000 0.000000
**** v1    2.5 vsl|       1002 BereqMethod     b GET
**** v1    2.5 vsl|       1002 BereqURL        b /
**** v1    2.5 vsl|       1002 BereqProtocol   b HTTP/1.1
**** v1    2.5 vsl|       1002 BereqHeader     b Host: 127.0.0.1
**** v1    2.5 vsl|       1002 BereqHeader     b X-Forwarded-For: 127.0.0.1
**** v1    2.5 vsl|       1002 BereqHeader     b Accept-Encoding: gzip
**** v1    2.5 vsl|       1002 BereqHeader     b X-Varnish: 1002
**** v1    2.5 vsl|       1002 VCL_call        b BACKEND_FETCH
**** v1    2.5 vsl|       1002 VCL_return      b fetch
**** v1    2.5 vsl|       1002 BackendOpen     b 25 vcl1.s1 127.0.0.1 43527 127.0.0.1 50156
**** v1    2.5 vsl|       1002 BackendStart    b 127.0.0.1 43527
**** v1    2.5 vsl|       1002 Timestamp       b Bereq: 1571803980.305212 0.000484 0.000484
**** v1    2.5 vsl|       1002 Timestamp       b Beresp: 1571803980.308686 0.003958 0.003473
**** v1    2.5 vsl|       1002 BerespProtocol  b HTTP/1.1
**** v1    2.5 vsl|       1002 BerespStatus    b 200
**** v1    2.5 vsl|       1002 BerespReason    b OK
**** v1    2.5 vsl|       1002 BerespHeader    b Content-Length: 0
**** v1    2.5 vsl|       1002 BerespHeader    b Date: Wed, 23 Oct 2019 04:13:00 GMT
**** v1    2.5 vsl|       1002 TTL             b RFC 120 10 0 1571803980 1571803980 1571803980 0 0 cacheable
**** v1    2.5 vsl|       1002 VCL_call        b BACKEND_RESPONSE
**** v1    2.5 vsl|       1002 VCL_return      b deliver
**** v1    2.5 vsl|       1002 Storage         b malloc s0
**** v1    2.5 vsl|       1002 Fetch_Body      b 0 none -
**** v1    2.5 vsl|       1002 BackendReuse    b 25 vcl1.s1
**** v1    2.5 vsl|       1002 Timestamp       b BerespBody: 1571803980.320915 0.016188 0.012230
**** v1    2.5 vsl|       1002 Length          b 0
**** v1    2.5 vsl|       1002 BereqAcct       b 103 0 103 38 0 38
**** v1    2.5 vsl|       1002 End             b
**** v1    2.5 vsl|       1001 Begin           c req 1000 rxreq
**** v1    2.5 vsl|       1001 Timestamp       c Start: 1571803980.304627 0.000000 0.000000
**** v1    2.5 vsl|       1001 Timestamp       c Req: 1571803980.304627 0.000000 0.000000
**** v1    2.5 vsl|       1001 ReqStart        c 127.0.0.1 39970 a0
**** v1    2.5 vsl|       1001 ReqMethod       c GET
**** v1    2.5 vsl|       1001 ReqURL          c /
**** v1    2.5 vsl|       1001 ReqProtocol     c HTTP/1.1
**** v1    2.5 vsl|       1001 ReqHeader       c Host: 127.0.0.1
**** v1    2.5 vsl|       1001 ReqHeader       c X-Forwarded-For: 127.0.0.1
**** v1    2.5 vsl|       1001 VCL_call        c RECV
**** v1    2.5 vsl|       1001 VCL_return      c hash
**** v1    2.5 vsl|       1001 VCL_call        c HASH
**** v1    2.5 vsl|       1001 VCL_return      c lookup
**** v1    2.5 vsl|       1001 VCL_call        c MISS
**** v1    2.5 vsl|       1001 VCL_return      c fetch
**** v1    2.5 vsl|       1001 Link            c bereq 1002 fetch
**** v1    2.5 vsl|       1001 Timestamp       c Fetch: 1571803980.321101 0.016475 0.016475
**** v1    2.5 vsl|       1001 RespProtocol    c HTTP/1.1
**** v1    2.5 vsl|       1001 RespStatus      c 200
**** v1    2.5 vsl|       1001 RespReason      c OK
**** v1    2.5 vsl|       1001 RespHeader      c Content-Length: 0
**** v1    2.5 vsl|       1001 RespHeader      c Date: Wed, 23 Oct 2019 04:13:00 GMT
**** v1    2.5 vsl|       1001 RespHeader      c X-Varnish: 1001
**** v1    2.5 vsl|       1001 RespHeader      c Age: 0
**** v1    2.5 vsl|       1001 RespHeader      c Via: 1.1 varnish (Varnish/6.0)
**** v1    2.5 vsl|       1001 VCL_call        c DELIVER
**** v1    2.5 vsl|       1001 RespHeader      c a: -1
**** v1    2.5 vsl|       1001 RespHeader      c b: -1
**** v1    2.5 vsl|       1001 RespHeader      c c: -1
**** v1    2.5 vsl|       1001 VCL_return      c deliver
**** v1    2.5 vsl|       1001 Timestamp       c Process: 1571803980.321161 0.016534 0.000059
**** v1    2.5 vsl|       1001 RespHeader      c Accept-Ranges: bytes
**** v1    2.5 vsl|       1001 RespHeader      c Connection: keep-alive
**** v1    2.5 vsl|       1001 Timestamp       c Resp: 1571803980.321377 0.016750 0.000216
**** v1    2.5 vsl|       1001 ReqAcct         c 35 0 35 199 0 199
**** v1    2.5 vsl|       1001 End             c
***  v1    2.5 CLI RX  300
**** v1    2.5 CLI RX|No panic to clear
***  v1    2.5 debug|Info: manager stopping child
***  v1    2.5 debug|Debug: Stopping Child
**** v1    2.6 vsl|          0 CLI             - EOF on CLI connection, worker stops
***  v1    3.5 debug|Info: Child (1934) ended
***  v1    3.5 debug|Info: Child (1934) said Child dies
***  v1    3.5 debug|Debug: Child cleanup complete
***  v1    3.5 debug|Info: manager dies
**** v1    3.5 STDOUT poll 0x11
**   v1    3.6 WAIT4 pid=1922 status=0x0000 (user 1.220000 sys 0.840000)
*    top   3.6 TEST ./tests/tcp/02-congestion.vtc FAILED
*    diag  0.0 Linux
#    top  TEST ./tests/tcp/02-congestion.vtc FAILED (4.025) exit=2
FAIL tests/tcp/02-congestion.vtc (exit status: 2)

Also, I think there's a mistake in README that says you don't need to run bootstrap if using releases archives. You still do.

gquintard commented 4 years ago

can you try the 6.0 branch please? master tracks the varnish-cache master branch, and API have changed

csandanov commented 4 years ago

Thank you, it works on 6.0 branch. I see there are also 6.2, 6.2 and 6.0-lts branches. Should I by using LTS?

gquintard commented 4 years ago

You can, they're really the same. The idea is to have one branch for each supported package cloud version, but it would have been weird to have a 6.0-lts without a 6.0, so there's both.

On Tue, Oct 22, 2019, 22:32 Chingis notifications@github.com wrote:

Closed #144 https://github.com/varnish/varnish-modules/issues/144.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/varnish/varnish-modules/issues/144?email_source=notifications&email_token=AA42AKP6EAWP7QPIQDQPPJDQP7OX7A5CNFSM4JDMHYDKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOUMHQAKY#event-2735669291, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA42AKJABXAZUN7VKHVND3DQP7OX7ANCNFSM4JDMHYDA .