<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal>For CentOS 7 use the next:<o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>RUN yum install -y epel-release \<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> && yum clean all \<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> && yum update -y \<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> && yum install -y gcc gcc-c++ libtool libtool-ltdl make cmake \<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> git pkgconfig sudo automake autoconf yum-utils rpm-build \<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> && yum install -y libxml2 expat-devel openssl-devel libcap ccache \<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> libtool-ltdl-devel cppunit cppunit-devel bzr git autoconf \<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> automake libtool gcc-c++ perl-Pod-MinimumVersion bzip2 ed \<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> make openldap-devel pam-devel db4-devel libxml2-devel \<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> libcap-devel screen vim nettle-devel redhat-lsb-core \<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> autoconf-archive libtdb-devel libtdb redhat-rpm-config rpm-build rpm-devel \<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> && yum install -y perl-libwww-perl ruby ruby-devel \<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> && yum clean all<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>RUN yum update -y \<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> && yum install -y systemd-units openldap-devel pam-devel \<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> openssl-devel krb5-devel db4-devel expat-devel \<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> libxml2-devel libcap-devel libtool libtool-ltdl-devel \<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> redhat-rpm-config libdb-devel libnetfilter_conntrack-devel \<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> gnutls-devel rpmdevtools wget \<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> && yum clean all<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>For CentOS 8 Stream:<o:p></o:p></p><pre>RUN dnf install -y epel-release dnf-plugins-core \<o:p></o:p></pre><pre> && dnf config-manager --set-enabled powertools \<o:p></o:p></pre><pre> && dnf clean all \<o:p></o:p></pre><pre> && dnf update -y \<o:p></o:p></pre><pre> && dnf install -y gcc gcc-c++ libtool libtool-ltdl make cmake \<o:p></o:p></pre><pre> git pkgconfig sudo automake autoconf yum-utils rpm-build \<o:p></o:p></pre><pre> && dnf install -y libxml2 expat-devel openssl-devel libcap ccache \<o:p></o:p></pre><pre> libtool-ltdl-devel git autoconf \<o:p></o:p></pre><pre> automake libtool gcc-c++ bzip2 ed \<o:p></o:p></pre><pre> make openldap-devel pam-devel libxml2-devel \<o:p></o:p></pre><pre> libcap-devel screen vim nettle-devel redhat-lsb-core \<o:p></o:p></pre><pre> libtdb-devel libtdb redhat-rpm-config rpm-build rpm-devel \<o:p></o:p></pre><pre> libnetfilter_conntrack-devel \<o:p></o:p></pre><pre> && dnf install -y perl-libwww-perl ruby ruby-devel \<o:p></o:p></pre><pre> && dnf clean all<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>RUN dnf update -y \<o:p></o:p></pre><pre> && dnf install -y systemd-units openldap-devel pam-devel \<o:p></o:p></pre><pre> openssl-devel krb5-devel expat-devel \<o:p></o:p></pre><pre> libxml2-devel libcap-devel libtool libtool-ltdl-devel \<o:p></o:p></pre><pre> redhat-rpm-config libdb-devel \<o:p></o:p></pre><pre> gnutls-devel rpmdevtools wget \<o:p></o:p></pre><pre> && dnf clean all<o:p></o:p></pre><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>----<o:p></o:p></p><p class=MsoNormal>Eliezer Croitoru<o:p></o:p></p><p class=MsoNormal>NgTech, Tech Support<o:p></o:p></p><p class=MsoNormal>Mobile: +972-5-28704261<o:p></o:p></p><p class=MsoNormal>Email: <a href="mailto:ngtech1ltd@gmail.com">ngtech1ltd@gmail.com</a><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b>From:</b> squid-users <squid-users-bounces@lists.squid-cache.org> <b>On Behalf Of </b>Ivan Larionov<br><b>Sent:</b> Thursday, April 14, 2022 01:34<br><b>To:</b> squid-users@lists.squid-cache.org<br><b>Subject:</b> [squid-users] squid compilation error in Docker<o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Hi.<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></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:<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><a href="https://gist.github.com/xeron/5530fe9aa1f5bdcb6a72c6edd6476467">https://gist.github.com/xeron/5530fe9aa1f5bdcb6a72c6edd6476467</a><o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Example from that log:<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>cache_cf.o: In function `configFreeMemory()':<o:p></o:p></p></div><div><p class=MsoNormal>/root/build/src/cache_cf.cc:2982: undefined reference to `Adaptation::Icap::TheConfig'<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></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><o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Here's my build script:<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></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<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Any ideas?<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><p class=MsoNormal>-- <o:p></o:p></p><div><p class=MsoNormal>With best regards, Ivan Larionov.<o:p></o:p></p></div></div></div></div></body></html>