<div dir="ltr">Yes this worked. Thanks Eliezer.<div><br></div><div>This means some of these dependencies are required but not caught by the configure script.</div><div><br></div><div>I'll try to figure out which specific one was the culprit.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 13, 2022 at 4:36 PM Eliezer Croitoru <<a href="mailto:ngtech1ltd@gmail.com">ngtech1ltd@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-US" style="overflow-wrap: break-word;"><div class="gmail-m_-5427622536273335512WordSection1"><p class="MsoNormal">For CentOS 7 use the next:<u></u><u></u></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New"">RUN yum install -y epel-release \<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New""> && yum clean all \<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New""> && yum update -y \<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New""> && yum install -y gcc gcc-c++ libtool libtool-ltdl make cmake \<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New""> git pkgconfig sudo automake autoconf yum-utils rpm-build \<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New""> && yum install -y libxml2 expat-devel openssl-devel libcap ccache \<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New""> libtool-ltdl-devel cppunit cppunit-devel bzr git autoconf \<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New""> automake libtool gcc-c++ perl-Pod-MinimumVersion bzip2 ed \<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New""> make openldap-devel pam-devel db4-devel libxml2-devel \<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New""> libcap-devel screen vim nettle-devel redhat-lsb-core \<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New""> autoconf-archive libtdb-devel libtdb redhat-rpm-config rpm-build rpm-devel \<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New""> && yum install -y perl-libwww-perl ruby ruby-devel \<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New""> && yum clean all<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New""><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New"">RUN yum update -y \<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New""> && yum install -y systemd-units openldap-devel pam-devel \<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New""> openssl-devel krb5-devel db4-devel expat-devel \<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New""> libxml2-devel libcap-devel libtool libtool-ltdl-devel \<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New""> redhat-rpm-config libdb-devel libnetfilter_conntrack-devel \<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New""> gnutls-devel rpmdevtools wget \<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New""> && yum clean all<u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">For CentOS 8 Stream:<u></u><u></u></p><pre>RUN dnf install -y epel-release dnf-plugins-core \<u></u><u></u></pre><pre> && dnf config-manager --set-enabled powertools \<u></u><u></u></pre><pre> && dnf clean all \<u></u><u></u></pre><pre> && dnf update -y \<u></u><u></u></pre><pre> && dnf install -y gcc gcc-c++ libtool libtool-ltdl make cmake \<u></u><u></u></pre><pre> git pkgconfig sudo automake autoconf yum-utils rpm-build \<u></u><u></u></pre><pre> && dnf install -y libxml2 expat-devel openssl-devel libcap ccache \<u></u><u></u></pre><pre> libtool-ltdl-devel git autoconf \<u></u><u></u></pre><pre> automake libtool gcc-c++ bzip2 ed \<u></u><u></u></pre><pre> make openldap-devel pam-devel libxml2-devel \<u></u><u></u></pre><pre> libcap-devel screen vim nettle-devel redhat-lsb-core \<u></u><u></u></pre><pre> libtdb-devel libtdb redhat-rpm-config rpm-build rpm-devel \<u></u><u></u></pre><pre> libnetfilter_conntrack-devel \<u></u><u></u></pre><pre> && dnf install -y perl-libwww-perl ruby ruby-devel \<u></u><u></u></pre><pre> && dnf clean all<u></u><u></u></pre><pre><u></u> <u></u></pre><pre>RUN dnf update -y \<u></u><u></u></pre><pre> && dnf install -y systemd-units openldap-devel pam-devel \<u></u><u></u></pre><pre> openssl-devel krb5-devel expat-devel \<u></u><u></u></pre><pre> libxml2-devel libcap-devel libtool libtool-ltdl-devel \<u></u><u></u></pre><pre> redhat-rpm-config libdb-devel \<u></u><u></u></pre><pre> gnutls-devel rpmdevtools wget \<u></u><u></u></pre><pre> && dnf clean all<u></u><u></u></pre><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">----<u></u><u></u></p><p class="MsoNormal">Eliezer Croitoru<u></u><u></u></p><p class="MsoNormal">NgTech, Tech Support<u></u><u></u></p><p class="MsoNormal">Mobile: +972-5-28704261<u></u><u></u></p><p class="MsoNormal">Email: <a href="mailto:ngtech1ltd@gmail.com" target="_blank">ngtech1ltd@gmail.com</a><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0in 0in"><p class="MsoNormal"><b>From:</b> squid-users <<a href="mailto:squid-users-bounces@lists.squid-cache.org" target="_blank">squid-users-bounces@lists.squid-cache.org</a>> <b>On Behalf Of </b>Ivan Larionov<br><b>Sent:</b> Thursday, April 14, 2022 01:34<br><b>To:</b> <a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a><br><b>Subject:</b> [squid-users] squid compilation error in Docker<u></u><u></u></p></div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">Hi.<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">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:<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><a href="https://gist.github.com/xeron/5530fe9aa1f5bdcb6a72c6edd6476467" target="_blank">https://gist.github.com/xeron/5530fe9aa1f5bdcb6a72c6edd6476467</a><u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Example from that log:<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">cache_cf.o: In function `configFreeMemory()':<u></u><u></u></p></div><div><p class="MsoNormal">/root/build/src/cache_cf.cc:2982: undefined reference to `Adaptation::Icap::TheConfig'<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I can't figure out what exactly is wrong. Doesn't look like any dependencies are missing.<br clear="all"><u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Here's my build script:<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"> yum install -y autoconf automake file gcc72 gcc72-c++ libtool libtool-ltdl-devel pkgconfig diffutils \<br> libxml2-devel libcap-devel openssl-devel<br><br> autoreconf -ivf<br><br> ./configure --program-prefix= --prefix=/usr --exec-prefix=/usr \<br> --bindir=/usr/sbin --sbindir=/usr/sbin --sysconfdir=/etc/squid \<br> --libdir=/usr/lib --libexecdir=/usr/lib/squid \<br> --includedir=/usr/include --datadir=/usr/share/squid \<br> --sharedstatedir=/usr/com --localstatedir=/var \<br> --mandir=/usr/share/man --infodir=/usr/share/info \<br> --enable-epoll --enable-removal-policies=heap,lru \<br> --enable-storeio=aufs,rock \<br> --enable-delay-pools --with-pthreads --enable-cache-digests \<br> --with-large-files --with-filedescriptors=65536 \<br> --enable-htcp<br><br> make -j$(nproc) install DESTDIR=$PWD/_destroot<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Any ideas?<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal">-- <u></u><u></u></p><div><p class="MsoNormal">With best regards, Ivan Larionov.<u></u><u></u></p></div></div></div></div></div>_______________________________________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a><br>
<a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">With best regards, Ivan Larionov.</div>