Package: libhiredis-dev
Version: 0.14.1-1
Severity: normal
X-Debbugs-Cc: [email protected]

Dear Maintainer,

   * What led up to the situation?
I was trying to compile https://github.com/carlosabalde/libvmod-redis
using libhiredis-dev and hit this error :

checking for redisInitiateSSL in -lhiredis_ssl... configure: error: 
libvmod-redis requires libhiredis_ssl. Try --disable-tls

   * What exactly did you do (or not do) that was effective (or
     ineffective)?
The workaround is simple, disable SSL for redis connection and build the
code using --disable-tls as suggested by the error

   * What was the outcome of this action?
A reduction in data privacy since I can't use SSL on redis
instances used by the libvmod-redis code

   * What outcome did you expect instead?
I was expecting to have SSL available

Note : The Sysinfo below are not really relevant. This is the sysinfo
of the "host" but the fail occured inside a Docker image build. Here is
the Dockerfile to reproduce the problem ( with ARG VARNISH_VERSION=6.6.1 )

FROM debian:bullseye

ARG VARNISH_VERSION

RUN test -n "$VARNISH_VERSION" || ( echo "VARNISH_VERSION build argument is not 
defined" >&2 && exit 1 )

# Switch to user root for installation
USER root

# System tools
RUN apt-get update && apt-get install --no-install-recommends -y \
    bash git unzip locales build-essential ca-certificates \
    apt-transport-https lsb-release curl wget gnupg htop \
    lsof strace mtr-tiny gettext-base \
    && rm -rf /var/lib/apt/lists/*

RUN apt-get update && apt-get install --no-install-recommends -y \
        automake autotools-dev libedit-dev libjemalloc-dev git \
        libncurses-dev libpcre3-dev libtool pkg-config libev-dev libhiredis-dev 
\
        libssl-dev python3-docutils python3-sphinx libmhash-dev

RUN mkdir -p /tmp/varnish && \
    cd /tmp/varnish && \
    git clone -b varnish-${VARNISH_VERSION} 
https://github.com/varnishcache/varnish-cache.git . && \
    ./autogen.sh && \
    ./configure --prefix=/usr/local/varnish/${VARNISH_VERSION} && \
    make && \
    make install

RUN export PKG_CONFIG_PATH=/usr/local/varnish/${VARNISH_VERSION}/lib/pkgconfig 
&& \
    git clone https://github.com/carlosabalde/libvmod-redis.git && \
    cd libvmod-redis && \
    git checkout 6.6-13.0 && \
    ./autogen.sh && \
    ./configure && \
    make && \
    make install

RUN mkdir -p /etc/varnish/${VARNISH_VERSION}/ && \
    dd if=/dev/random of=/etc/varnish/${VARNISH_VERSION}/secret count=1

# Switch back to user app
USER app


-- System Information:
Debian Release: 11.0
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, mips, mips64

Kernel: Linux 5.10.0-8-amd64 (SMP w/12 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libhiredis-dev depends on:
pn  libhiredis0.14  <none>

libhiredis-dev recommends no packages.

libhiredis-dev suggests no packages.

Reply via email to