Closed yoloseem closed 10 years ago
I had the same issue. Finaly solved it by updating the apt repository list (/etc/apt/sources.list) to varnish-4.0 and apt-get update && apt-get dist-upgrade afterwards. It installed a new libvarnish library and then it worked.
@yoloseem the problem you are experiencing is due to aclocal not finding varnish.m4. This is clear by looking at the configure output:
./configure: line 12904: VARNISH_VMOD_INCLUDES: command not found ./configure: line 12905: VARNISH_VMOD_DIR: command not found ./configure: line 12906: VARNISH_VMODTOOL: command not found
If you have varnish installed under /usr/local copy varnish.m4 (/usr/local/share/aclocal/varnish.m4) to /usr/share/aclocal and re-run configure. Alternatively you could create a m4 directory inside the libvmod-header directory and copy the varnish.m4 file there before running autogen.sh.
@fgsch I come across the same issue and with the method you said, when I run autogen.sh after copying the varnish.m4 to /usr/share/aclocal or to the /libvmod-example-master/m4/, I got this error message:
+ aclocal -I m4
+ libtoolize --copy --force
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./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
+ autoconf
configure:13458: error: possibly undefined macro: AS_VAR_COPY
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
I am building the libvmod-example
with Varnish 4.0.1
under redhat el6, any clue?
This comes from an outdated Version of autonconf. The macro AS_VAR_COPY is available since autoconf 2.64 In my case i compiled and installed autoconf 2.64 and it worked afterwards. I suggest not installing a too new version (2.69) as this may cause more trouble.
@kuborgh-hgiesenow thanks for mention, I changed the version to autoconf 2.64 I can't make it as the libvmod-example can't find the head file of varnish, when I make, find another error:
make[2]: Entering directory `/home/linhua.tlh/downloads/libvmod-example-master/src'
/bin/sh ../libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I -I/usr/local/include/varnish -g -O2 -MT vcc_if.lo -MD -MP -MF .deps/vcc_if.Tpo -c -o vcc_if.lo vcc_if.c
libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I -I/usr/local/include/varnish -g -O2 -MT vcc_if.lo -MD -MP -MF .deps/vcc_if.Tpo -c vcc_if.c -fPIC -DPIC -o .libs/vcc_if.o
vcc_if.c:8:17: error: vrt.h: No such file or directory
In file included from vcc_if.c:9:
vcc_if.h:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘vmod_hello’
vcc_if.c:10:22: error: vmod_abi.h: No such file or directory
vcc_if.c:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘td_example_hello’
vcc_if.c:17: error: expected specifier-qualifier-list before ‘td_example_hello’
vcc_if.c:25: error: ‘vmod_hello’ undeclared here (not in a function)
Hi! I'm trying to install libvmods with Varnish 4.0 and I encountered below error:
Environment: Ubuntu 14.04 64bit Full log includes previous steps: https://gist.github.com/yoloseem/e41c2a2681080b4ecf53