varnish / varnish-modules

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

Unable to finish configure #61

Closed ghost closed 7 years ago

ghost commented 7 years ago
./configure: line 12511: syntax error near unexpected token `4.1.4'
./configure: line 12511: `VARNISH_PREREQ(4.1.4)'

On Debian Jesse

dridi commented 7 years ago

What are the steps before ./configure?

ghost commented 7 years ago

Extracted tar gz 0.10.2, cd to that folder then: apt-get install libvarnishapi1 apt-get install libvarnishapi-dev ./bootstrap

Output:


+ 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_DIR, `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:27: error: 'vmod_LTLIBRARIES' is used but 'vmoddir' is undefined
parallel-tests: installing 'build-aux/test-driver'
src/Makefile.am:49: warning: variable 'libvmod_cookie_la_SOURCES' is defined but no program or
src/Makefile.am:49: library has 'libvmod_cookie_la' as canonical name (possible typo)
src/Makefile.am:50: warning: variable 'libvmod_header_la_SOURCES' is defined but no program or
src/Makefile.am:50: library has 'libvmod_header_la' as canonical name (possible typo)
src/Makefile.am:52: warning: variable 'libvmod_saintmode_la_SOURCES' is defined but no program or
src/Makefile.am:52: library has 'libvmod_saintmode_la' as canonical name (possible typo)
src/Makefile.am:53: warning: variable 'libvmod_softpurge_la_SOURCES' is defined but no program or
src/Makefile.am:53: library has 'libvmod_softpurge_la' as canonical name (possible typo)
src/Makefile.am:54: warning: variable 'libvmod_tcp_la_SOURCES' is defined but no program or
src/Makefile.am:54: library has 'libvmod_tcp_la' as canonical name (possible typo)
src/Makefile.am:55: warning: variable 'libvmod_var_la_SOURCES' is defined but no program or
src/Makefile.am:55: library has 'libvmod_var_la' as canonical name (possible typo)
src/Makefile.am:51: warning: variable 'libvmod_vsthrottle_la_SOURCES' is defined but no program or
src/Makefile.am:51: library has 'libvmod_vsthrottle_la' as canonical name (possible typo)
src/Makefile.am:56: warning: variable 'libvmod_xkey_la_SOURCES' is defined but no program or
src/Makefile.am:56: library has 'libvmod_xkey_la' as canonical name (possible typo)
src/Makefile.am:58: warning: variable 'nodist_libvmod_cookie_la_SOURCES' is defined but no program or
src/Makefile.am:58: library has 'libvmod_cookie_la' as canonical name (possible typo)
src/Makefile.am:59: warning: variable 'nodist_libvmod_header_la_SOURCES' is defined but no program or
src/Makefile.am:59: library has 'libvmod_header_la' as canonical name (possible typo)
src/Makefile.am:61: warning: variable 'nodist_libvmod_saintmode_la_SOURCES' is defined but no program or
src/Makefile.am:61: library has 'libvmod_saintmode_la' as canonical name (possible typo)
src/Makefile.am:62: warning: variable 'nodist_libvmod_softpurge_la_SOURCES' is defined but no program or
src/Makefile.am:62: library has 'libvmod_softpurge_la' as canonical name (possible typo)
src/Makefile.am:63: warning: variable 'nodist_libvmod_tcp_la_SOURCES' is defined but no program or
src/Makefile.am:63: library has 'libvmod_tcp_la' as canonical name (possible typo)
src/Makefile.am:64: warning: variable 'nodist_libvmod_var_la_SOURCES' is defined but no program or
src/Makefile.am:64: library has 'libvmod_var_la' as canonical name (possible typo)
src/Makefile.am:60: warning: variable 'nodist_libvmod_vsthrottle_la_SOURCES' is defined but no program or
src/Makefile.am:60: library has 'libvmod_vsthrottle_la' as canonical name (possible typo)
src/Makefile.am:65: warning: variable 'nodist_libvmod_xkey_la_SOURCES' is defined but no program or
src/Makefile.am:65: library has 'libvmod_xkey_la' as canonical name (possible typo)
ghost commented 7 years ago

Update: apt-get install varnish-dev (varnish-dev_4.1.5-1~jessie_amd64.deb) seems to fix problem, i had dist 4.1.5 installed. Suggestion: check should be added

ghost commented 7 years ago

Compilation successful, Tests passed 47/47

dridi commented 7 years ago

You shouldn't need to run the bootstrap script at all, and there is already a check for the Varnish version. As described in the README, you should grab releases from our archive:

https://download.varnish-software.com/varnish-modules/

Please note that the latest release is actually 0.11.0 so I encourage you to use that one instead.

FYI, here is the check in your configure output:

checking for VARNISHAPI... yes
checking for Varnish... 5.0.0

On my system Varnish 5 is installed.

You shouldn't run into any autoconf or automake problem if you build from a release from our archive. Please try again and confirm that our latest release build fine.

ghost commented 7 years ago

Thank you for updating releases I've been looking for those! Installed without problems, all tests passed. Installed 0.10.2 version

dridi commented 7 years ago

Thank you for letting us know, I'm glad to see everything back in order.