Code Monkey home page Code Monkey logo

Comments (6)

glensc avatar glensc commented on June 3, 2024

Thanks for the patch! fffe758 fixes the build.

And a reminder to make new release ;)

from libvmod-querystring.

e2-robert avatar e2-robert commented on June 3, 2024

Seems to fail again with same error when building upon varnish 7.0.0 with patch from #49:

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'
configure.ac:30: installing 'build-aux/ar-lib'
configure.ac:33: installing 'build-aux/config.guess'
configure.ac:33: installing 'build-aux/config.sub'
configure.ac:29: installing 'build-aux/install-sh'
configure.ac:29: installing 'build-aux/missing'
src/Makefile.am:26: error: 'vmod_LTLIBRARIES' is used but 'vmoddir' is undefined
parallel-tests: installing 'build-aux/test-driver'
automake: warnings are treated as errors
src/Makefile.am:33: warning: variable 'nodist_libvmod_querystring_la_SOURCES' is defined but no program or
src/Makefile.am:33: library has 'libvmod_querystring_la' as canonical name (possible typo)
src/Makefile.am:30: warning: variable 'libvmod_querystring_la_SOURCES' is defined but no program or
src/Makefile.am:30: library has 'libvmod_querystring_la' as canonical name (possible typo)

from libvmod-querystring.

Dridi avatar Dridi commented on June 3, 2024

Is this fixed by the 2.0.3 release?

from libvmod-querystring.

glensc avatar glensc commented on June 3, 2024

@Dridi yes, if you read the release notes:

It has:

  • "Varnish 6.6 support"

from libvmod-querystring.

e2-robert avatar e2-robert commented on June 3, 2024

I failed to build it with Varnish 7.0.

I'm using this Dockerfile (excerpt):

FROM centos:7

# TODO: use stable version (non-master) of varnish-cache, modules and pesi
# TODO: clean up build dependencies, since image has got 1G

ENV VARNISH_SIZE 1G

RUN yum install -y python3 python-sphinx

# Install Varnish
# https://github.com/varnishcache/varnish-cache/releases
RUN fetchDeps=' \
        git \
	'; \
	buildDeps=' \
        make \
        autoconf \
        automake \
        libedit-devel \
        libtool \
        libunwind-devel \
        ncurses-devel \
        pcre2-devel \
	'; yum install -y $fetchDeps $buildDeps \
 && git clone --recursive --depth 1 --branch varnish-7.0.0 https://github.com/varnishcache/varnish-cache /usr/src/varnish-cache \
 && cd /usr/src/varnish-cache \
 && sh autogen.sh \
 && sh configure \
 && make \
 && make install \
 && mkdir /etc/varnish \
 && echo -e 'vcl 4.1;\nbackend default none;' > /etc/varnish/default.vcl



# VMOD querystring (https://github.com/Dridi/libvmod-querystring)
# https://github.com/Dridi/libvmod-querystring/releases (#v2.0.3)
ENV VMOD_QUERYSTRING_VERSION 'v2.0.3'
RUN fetchDeps=' \
        git \
    '; \
    buildDeps=' \
        make \
        autoconf \
        automake \
        libtool \
        patch \
        pkgconfig \
        python3-docutils \
    '; yum install -y $fetchDeps $buildDeps \
 && git clone --recursive --depth 1 --branch $VMOD_QUERYSTRING_VERSION https://github.com/Dridi/libvmod-querystring.git /usr/src/libvmod-querystring \
 && cd /usr/src/libvmod-querystring \
 && sh bootstrap \
 && make -j "$(nproc)" \
 && make check \
 && make install \
 && rm -rf /usr/src/libvmod-querystring

It fails with the very same error message, namely:

src/Makefile.am:26: error: 'vmod_LTLIBRARIES' is used but 'vmoddir' is undefined

from libvmod-querystring.

Dridi avatar Dridi commented on June 3, 2024

@e2-robert the answers were in the README.

You aren't installing Varnish in the /usr prefix so you need to tell pkg-config about that. For reasons that escape me you are cloning the git repositories instead of downloading already-bootstrapped release archives so you also need to bootstrap it. Again, you need to tell aclocal about the non-/usr prefix where Varnish was installed. The bootstrap script enables warnings and one of them is triggering with gcc on el7 so you need to disable them.

@@ -36,6 +36,8 @@
 # VMOD querystring (https://github.com/Dridi/libvmod-querystring)
 # https://github.com/Dridi/libvmod-querystring/releases (#v2.0.3)
 ENV VMOD_QUERYSTRING_VERSION 'v2.0.3'
+ENV ACLOCAL_PATH=/usr/local/share/aclocal
+ENV PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
 RUN fetchDeps=' \
         git \
     '; \
@@ -50,7 +52,7 @@
     '; yum install -y $fetchDeps $buildDeps \
  && git clone --recursive --depth 1 --branch $VMOD_QUERYSTRING_VERSION https://github.com/Dridi/libvmod-querystring.git /usr/src/libvmod-querystring \
  && cd /usr/src/libvmod-querystring \
- && sh bootstrap \
+ && sh bootstrap --disable-warnings \
  && make -j "$(nproc)" \
  && make check \
  && make install \

from libvmod-querystring.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.