Search squid archive

Re: squid compilation error in Docker

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> 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@xxxxxxxxx

 

From: squid-users <squid-users-bounces@xxxxxxxxxxxxxxxxxxxxx> On Behalf Of Ivan Larionov
Sent: Thursday, April 14, 2022 01:34
To: squid-users@xxxxxxxxxxxxxxxxxxxxx
Subject: 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:

 

 

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@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users


--
With best regards, Ivan Larionov.
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux