Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to finish configure #61

Closed
ghost opened this issue Feb 27, 2017 · 7 comments
Closed

Unable to finish configure #61

ghost opened this issue Feb 27, 2017 · 7 comments
Assignees

Comments

@ghost
Copy link

ghost commented Feb 27, 2017

./configure: line 12511: syntax error near unexpected token `4.1.4'
./configure: line 12511: `VARNISH_PREREQ(4.1.4)'

On Debian Jesse

@Dridi
Copy link
Member

Dridi commented Feb 27, 2017

What are the steps before ./configure?

@ghost
Copy link
Author

ghost commented Feb 27, 2017

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
Copy link
Author

ghost commented Feb 27, 2017

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

@Dridi Dridi self-assigned this Feb 27, 2017
@ghost
Copy link
Author

ghost commented Feb 27, 2017

Compilation successful, Tests passed 47/47

@Dridi
Copy link
Member

Dridi commented Feb 27, 2017

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
Copy link
Author

ghost commented Feb 27, 2017

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

@Dridi
Copy link
Member

Dridi commented Feb 28, 2017

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

@Dridi Dridi closed this as completed Feb 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant