[squid-users] squid compilation error in Docker

Ivan Larionov xeron.oskom at gmail.com
Thu Apr 14 00:07:11 UTC 2022


Yes this worked. Thanks Eliezer.

This means some of these dependencies are required but not caught by the
configure script.

I'll try to figure out which specific one was the culprit.

On Wed, Apr 13, 2022 at 4:36 PM Eliezer Croitoru <ngtech1ltd at gmail.com>
wrote:

> For CentOS 7 use the next:
>
> RUN yum install -y epel-release \
>
>    &&  yum clean all \
>
>    &&  yum update -y \
>
>    &&  yum install -y gcc gcc-c++ libtool libtool-ltdl make cmake \
>
>                git pkgconfig sudo automake autoconf yum-utils rpm-build \
>
>    &&  yum install -y libxml2 expat-devel openssl-devel libcap ccache \
>
>                libtool-ltdl-devel cppunit cppunit-devel bzr git autoconf \
>
>                automake libtool gcc-c++ perl-Pod-MinimumVersion bzip2 ed \
>
>                 make openldap-devel pam-devel db4-devel libxml2-devel \
>
>                libcap-devel screen vim nettle-devel redhat-lsb-core \
>
>                autoconf-archive libtdb-devel libtdb redhat-rpm-config
> rpm-build rpm-devel \
>
>    &&  yum install -y perl-libwww-perl ruby ruby-devel \
>
>    &&  yum clean all
>
>
>
> RUN yum update -y \
>
>    &&  yum install -y systemd-units openldap-devel pam-devel \
>
>                openssl-devel krb5-devel db4-devel expat-devel \
>
>                libxml2-devel libcap-devel libtool libtool-ltdl-devel \
>
>                redhat-rpm-config libdb-devel libnetfilter_conntrack-devel \
>
>                gnutls-devel rpmdevtools wget \
>
>    &&  yum clean all
>
>
>
>
>
> For CentOS 8 Stream:
>
> RUN dnf install -y epel-release dnf-plugins-core \
>
>    &&  dnf config-manager --set-enabled powertools \
>
>    &&  dnf clean all \
>
>    &&  dnf update -y \
>
>    &&  dnf install -y gcc gcc-c++ libtool libtool-ltdl make cmake \
>
>                git pkgconfig sudo automake autoconf yum-utils rpm-build \
>
>    &&  dnf install -y libxml2 expat-devel openssl-devel libcap ccache \
>
>                libtool-ltdl-devel git autoconf \
>
>                automake libtool gcc-c++ bzip2 ed \
>
>                make openldap-devel pam-devel libxml2-devel \
>
>                libcap-devel screen vim nettle-devel redhat-lsb-core \
>
>                libtdb-devel libtdb redhat-rpm-config rpm-build rpm-devel \
>
>                libnetfilter_conntrack-devel \
>
>    &&  dnf install -y perl-libwww-perl ruby ruby-devel \
>
>    &&  dnf clean all
>
>
>
> RUN dnf update -y \
>
>    &&  dnf install -y systemd-units openldap-devel pam-devel \
>
>                openssl-devel krb5-devel expat-devel \
>
>                libxml2-devel libcap-devel libtool libtool-ltdl-devel \
>
>                redhat-rpm-config libdb-devel \
>
>                gnutls-devel rpmdevtools wget \
>
>    &&  dnf clean all
>
>
>
>
>
> ----
>
> Eliezer Croitoru
>
> NgTech, Tech Support
>
> Mobile: +972-5-28704261
>
> Email: ngtech1ltd at gmail.com
>
>
>
> *From:* squid-users <squid-users-bounces at lists.squid-cache.org> *On
> Behalf Of *Ivan Larionov
> *Sent:* Thursday, April 14, 2022 01:34
> *To:* squid-users at lists.squid-cache.org
> *Subject:* [squid-users] squid compilation error in Docker
>
>
>
> Hi.
>
>
>
> I have no issues building squid normally, but when I try to do exactly the
> same steps in docker I'm getting the following errors:
>
>
>
> https://gist.github.com/xeron/5530fe9aa1f5bdcb6a72c6edd6476467
>
>
>
> Example from that log:
>
>
>
> cache_cf.o: In function `configFreeMemory()':
>
> /root/build/src/cache_cf.cc:2982: undefined reference to
> `Adaptation::Icap::TheConfig'
>
>
>
> I can't figure out what exactly is wrong. Doesn't look like any
> dependencies are missing.
>
>
>
> Here's my build script:
>
>
>
>       yum install -y autoconf automake file gcc72 gcc72-c++ libtool
> libtool-ltdl-devel pkgconfig diffutils \
>         libxml2-devel libcap-devel openssl-devel
>
>       autoreconf -ivf
>
>       ./configure --program-prefix= --prefix=/usr --exec-prefix=/usr \
>         --bindir=/usr/sbin --sbindir=/usr/sbin --sysconfdir=/etc/squid \
>         --libdir=/usr/lib --libexecdir=/usr/lib/squid \
>         --includedir=/usr/include --datadir=/usr/share/squid \
>         --sharedstatedir=/usr/com --localstatedir=/var \
>         --mandir=/usr/share/man --infodir=/usr/share/info \
>         --enable-epoll --enable-removal-policies=heap,lru \
>         --enable-storeio=aufs,rock \
>         --enable-delay-pools --with-pthreads --enable-cache-digests \
>         --with-large-files --with-filedescriptors=65536 \
>         --enable-htcp
>
>       make -j$(nproc) install DESTDIR=$PWD/_destroot
>
>
>
> Any ideas?
>
>
>
> --
>
> With best regards, Ivan Larionov.
> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
>


-- 
With best regards, Ivan Larionov.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20220413/3e383bec/attachment-0001.htm>


More information about the squid-users mailing list