varnish / varnish-modules

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

Install fails for 6.5 branch #171

Closed Bilge closed 4 years ago

Bilge commented 4 years ago

I was able to build the 6.5 modules from the 6.5 branch, but make install fails.

$ make install
Making install in src
make[1]: Entering directory '/home/bilge/varnish-modules-6.5/src'
  GEN      vmod_bodyaccess.3
  GEN      vmod_header.3
  GEN      vmod_saintmode.3
  GEN      vmod_tcp.3
  GEN      vmod_var.3
  GEN      vmod_vsthrottle.3
  GEN      vmod_xkey.3
make[2]: Entering directory '/home/bilge/varnish-modules-6.5/src'
make[2]: Nothing to be done for 'install-exec-am'.
  GEN      vmod_bodyaccess.3
  GEN      vmod_header.3
  GEN      vmod_saintmode.3
  GEN      vmod_tcp.3
  GEN      vmod_var.3
  GEN      vmod_vsthrottle.3
  GEN      vmod_xkey.3
 /bin/mkdir -p '/usr/share/man/man3'
 /usr/bin/install -c -m 644 ./vmod_bodyaccess.3 ./vmod_header.3 ./vmod_saintmode.3 ./vmod_tcp.3 ./vmod_var.3 ./vmod_vsthrottle.3 ./vmod_xkey.3 '/usr/share/man/man3'
/usr/bin/install: cannot stat './vmod_bodyaccess.3': No such file or directory
/usr/bin/install: cannot stat './vmod_header.3': No such file or directory
/usr/bin/install: cannot stat './vmod_saintmode.3': No such file or directory
/usr/bin/install: cannot stat './vmod_tcp.3': No such file or directory
/usr/bin/install: cannot stat './vmod_var.3': No such file or directory
/usr/bin/install: cannot stat './vmod_vsthrottle.3': No such file or directory
/usr/bin/install: cannot stat './vmod_xkey.3': No such file or directory
Makefile:879: recipe for target 'install-man3' failed
make[2]: *** [install-man3] Error 1
make[2]: Leaving directory '/home/bilge/varnish-modules-6.5/src'
Makefile:1175: recipe for target 'install-am' failed
make[1]: *** [install-am] Error 2
make[1]: Leaving directory '/home/bilge/varnish-modules-6.5/src'
Makefile:535: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
gquintard commented 4 years ago

it works here, can you make sure that you start from a clean state (git clean -dxf or something) and see if that's still an issue?

$ make
make  all-recursive
make[1]: Entering directory '/home/gquintard/work/varnish-modules'
Making all in src
make[2]: Entering directory '/home/gquintard/work/varnish-modules/src'
  VMODTOOL vcc_bodyaccess_if.c
  CC       vmod_bodyaccess.lo
  CC       vcc_bodyaccess_if.lo
  CCLD     libvmod_bodyaccess.la
  VMODTOOL vcc_header_if.c
  CC       vmod_header.lo
  CC       vcc_header_if.lo
  CCLD     libvmod_header.la
  VMODTOOL vcc_saintmode_if.c
  CC       vmod_saintmode.lo
  CC       vcc_saintmode_if.lo
  CCLD     libvmod_saintmode.la
  VMODTOOL vcc_tcp_if.c
  CC       vmod_tcp.lo
  CC       vcc_tcp_if.lo
  CCLD     libvmod_tcp.la
  VMODTOOL vcc_var_if.c
  CC       vmod_var.lo
  CC       vcc_var_if.lo
  CCLD     libvmod_var.la
  VMODTOOL vcc_vsthrottle_if.c
  CC       vmod_vsthrottle.lo
  CC       vcc_vsthrottle_if.lo
  CCLD     libvmod_vsthrottle.la
  VMODTOOL vcc_xkey_if.c
  VSCTOOL  VSC_xkey.c
  VSCTOOL  VSC_xkey.h
  CC       vmod_xkey.lo
  CC       vcc_xkey_if.lo
  CC       VSC_xkey.lo
  CCLD     libvmod_xkey.la
  GEN      vmod_bodyaccess.3
  GEN      vmod_header.3
  GEN      vmod_saintmode.3
  GEN      vmod_tcp.3
  GEN      vmod_var.3
  GEN      vmod_vsthrottle.3
  VSCTOOL  VSC_xkey.rst
  GEN      vmod_xkey.3
make[2]: Leaving directory '/home/gquintard/work/varnish-modules/src'
make[2]: Entering directory '/home/gquintard/work/varnish-modules'
make[2]: Leaving directory '/home/gquintard/work/varnish-modules'
make[1]: Leaving directory '/home/gquintard/work/varnish-modules'
$ make install
Making install in src
make[1]: Entering directory '/home/gquintard/work/varnish-modules/src'
make[2]: Entering directory '/home/gquintard/work/varnish-modules/src'
make[2]: Nothing to be done for 'install-exec-am'.
 /usr/bin/mkdir -p '/tmp/vm/share/man/man3'
 /usr/bin/install -c -m 644 vmod_bodyaccess.3 vmod_header.3 vmod_saintmode.3 vmod_tcp.3 vmod_var.3 vmod_vsthrottle.3 vmod_xkey.3 '/tmp/vm/share/man/man3'
 /usr/bin/mkdir -p '/tmp/vm/lib/varnish/vmods'
 /bin/sh ../libtool   --mode=install /usr/bin/install -c   libvmod_bodyaccess.la libvmod_header.la libvmod_saintmode.la libvmod_tcp.la libvmod_var.la libvmod_vsthrottle.la libvmod_xkey.la '/tmp/vm/lib/varnish/vmods'
libtool: install: /usr/bin/install -c .libs/libvmod_bodyaccess.so /tmp/vm/lib/varnish/vmods/libvmod_bodyaccess.so
libtool: install: /usr/bin/install -c .libs/libvmod_bodyaccess.lai /tmp/vm/lib/varnish/vmods/libvmod_bodyaccess.la
libtool: install: /usr/bin/install -c .libs/libvmod_header.so /tmp/vm/lib/varnish/vmods/libvmod_header.so
libtool: install: /usr/bin/install -c .libs/libvmod_header.lai /tmp/vm/lib/varnish/vmods/libvmod_header.la
libtool: install: /usr/bin/install -c .libs/libvmod_saintmode.so /tmp/vm/lib/varnish/vmods/libvmod_saintmode.so
libtool: install: /usr/bin/install -c .libs/libvmod_saintmode.lai /tmp/vm/lib/varnish/vmods/libvmod_saintmode.la
libtool: install: /usr/bin/install -c .libs/libvmod_tcp.so /tmp/vm/lib/varnish/vmods/libvmod_tcp.so
libtool: install: /usr/bin/install -c .libs/libvmod_tcp.lai /tmp/vm/lib/varnish/vmods/libvmod_tcp.la
libtool: install: /usr/bin/install -c .libs/libvmod_var.so /tmp/vm/lib/varnish/vmods/libvmod_var.so
libtool: install: /usr/bin/install -c .libs/libvmod_var.lai /tmp/vm/lib/varnish/vmods/libvmod_var.la
libtool: install: /usr/bin/install -c .libs/libvmod_vsthrottle.so /tmp/vm/lib/varnish/vmods/libvmod_vsthrottle.so
libtool: install: /usr/bin/install -c .libs/libvmod_vsthrottle.lai /tmp/vm/lib/varnish/vmods/libvmod_vsthrottle.la
libtool: install: /usr/bin/install -c .libs/libvmod_xkey.so /tmp/vm/lib/varnish/vmods/libvmod_xkey.so
libtool: install: /usr/bin/install -c .libs/libvmod_xkey.lai /tmp/vm/lib/varnish/vmods/libvmod_xkey.la
libtool: finish: PATH="/usr/local/bin:/usr/local/sbin:/usr/bin:/home/gquintard/.local/share/flatpak/exports/bin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/gquintard/go/bin/:/sbin" ldconfig -n /tmp/vm/lib/varnish/vmods
----------------------------------------------------------------------
Libraries have been installed in:
   /tmp/vm/lib/varnish/vmods

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the 'LD_RUN_PATH' environment variable
     during linking
   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make[2]: Leaving directory '/home/gquintard/work/varnish-modules/src'
make[1]: Leaving directory '/home/gquintard/work/varnish-modules/src'
make[1]: Entering directory '/home/gquintard/work/varnish-modules'
make[2]: Entering directory '/home/gquintard/work/varnish-modules'
make[2]: Nothing to be done for 'install-exec-am'.
 /usr/bin/mkdir -p '/tmp/vm/share/doc/varnish-modules'
 /usr/bin/install -c -m 644 README.rst LICENSE '/tmp/vm/share/doc/varnish-modules'
make[2]: Leaving directory '/home/gquintard/work/varnish-modules'
make[1]: Leaving directory '/home/gquintard/work/varnish-modules'
Bilge commented 4 years ago

Didn't check out using git, used the zip. Starting from a clean installation, it does work. Not really sure how it ended up in that bad state. I thought maybe it was because I tried without sudo the first time, but I can't reproduce that issue now.

gquintard commented 4 years ago

Unfortunate, but I'll assume this is autotools quirking up Thank you for the feedback, please let us know if that happens again