<div dir="ltr">There were no errors earlier.<div><br></div><div>Seems like installing openldap-devel fixes the issue.</div><div><br></div><div>There were other dependencies installed together with it, not sure if they also affected the build or not. I assume the ldap one is the main reason:</div><div><br></div><div>cracklib<br>cracklib-dicts<br>libpwquality<br>pam<br>cpio<br>dbus-libs<br>libudev<br>libblkid<br>libmount<br>libnih<br>upstart<br>libuser<br>sysvinit<br>xz<br>libutempter<br>util-linux<br>net-tools<br>procps<br>ethtool<br>mingetty<br>psmisc<br>iptables<br>iproute<br>kmod-libs<br>kmod<br>hwdata<br>udev<br>findutils<br>iputils<br>initscripts<br>cyrus-sasl<br>cyrus-sasl-devel<br>openldap-devel</div><div><br></div><div>Basically this was enough for the build to succeed:</div><div><br></div><div>yum install -y gcc gcc-c++ libtool libtool-ltdl-devel make pkgconfig automake autoconf wget diffutils file openldap-devel<br></div><div><br></div><div>but just removing openldap-devel from that line results in errors I posted.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 13, 2022 at 7:19 PM Alex Rousskov <<a href="mailto:rousskov@measurement-factory.com">rousskov@measurement-factory.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">On 4/13/22 20:07, Ivan Larionov wrote:<br>
> Yes this worked. Thanks Eliezer.<br>
> <br>
> This means some of these dependencies are required but not caught by the <br>
> configure script.<br>
> <br>
> I'll try to figure out which specific one was the culprit.<br>
<br>
And maybe find the earlier error in the make log? The errors you shared <br>
did not look like a direct effect of some missing package, more like a <br>
side effect of something that went wrong earlier...<br>
<br>
<br>
Thank you both,<br>
<br>
Alex.<br>
<br>
<br>
> On Wed, Apr 13, 2022 at 4:36 PM Eliezer Croitoru wrote:<br>
> <br>
> For CentOS 7 use the next:____<br>
> <br>
> RUN yum install -y epel-release \____<br>
> <br>
> && yum clean all \____<br>
> <br>
> && yum update -y \____<br>
> <br>
> && yum install -y gcc gcc-c++ libtool libtool-ltdl make cmake \____<br>
> <br>
> git pkgconfig sudo automake autoconf yum-utils<br>
> rpm-build \____<br>
> <br>
> && yum install -y libxml2 expat-devel openssl-devel libcap<br>
> ccache \____<br>
> <br>
> libtool-ltdl-devel cppunit cppunit-devel bzr git<br>
> autoconf \____<br>
> <br>
> automake libtool gcc-c++ perl-Pod-MinimumVersion<br>
> bzip2 ed \____<br>
> <br>
> make openldap-devel pam-devel db4-devel<br>
> libxml2-devel \____<br>
> <br>
> libcap-devel screen vim nettle-devel redhat-lsb-core<br>
> \____<br>
> <br>
> autoconf-archive libtdb-devel libtdb<br>
> redhat-rpm-config rpm-build rpm-devel \____<br>
> <br>
> && yum install -y perl-libwww-perl ruby ruby-devel \____<br>
> <br>
> && yum clean all____<br>
> <br>
> __ __<br>
> <br>
> RUN yum update -y \____<br>
> <br>
> && yum install -y systemd-units openldap-devel pam-devel \____<br>
> <br>
> openssl-devel krb5-devel db4-devel expat-devel \____<br>
> <br>
> libxml2-devel libcap-devel libtool<br>
> libtool-ltdl-devel \____<br>
> <br>
> redhat-rpm-config libdb-devel<br>
> libnetfilter_conntrack-devel \____<br>
> <br>
> gnutls-devel rpmdevtools wget \____<br>
> <br>
> && yum clean all____<br>
> <br>
> __ __<br>
> <br>
> __ __<br>
> <br>
> For CentOS 8 Stream:____<br>
> <br>
> RUN dnf install -y epel-release dnf-plugins-core \____<br>
> <br>
> && dnf config-manager --set-enabled powertools \____<br>
> <br>
> && dnf clean all \____<br>
> <br>
> && dnf update -y \____<br>
> <br>
> && dnf install -y gcc gcc-c++ libtool libtool-ltdl make cmake \____<br>
> <br>
> git pkgconfig sudo automake autoconf yum-utils rpm-build \____<br>
> <br>
> && dnf install -y libxml2 expat-devel openssl-devel libcap ccache \____<br>
> <br>
> libtool-ltdl-devel git autoconf \____<br>
> <br>
> automake libtool gcc-c++ bzip2 ed \____<br>
> <br>
> make openldap-devel pam-devel libxml2-devel \____<br>
> <br>
> libcap-devel screen vim nettle-devel redhat-lsb-core \____<br>
> <br>
> libtdb-devel libtdb redhat-rpm-config rpm-build rpm-devel \____<br>
> <br>
> libnetfilter_conntrack-devel \____<br>
> <br>
> && dnf install -y perl-libwww-perl ruby ruby-devel \____<br>
> <br>
> && dnf clean all____<br>
> <br>
> __ __<br>
> <br>
> RUN dnf update -y \____<br>
> <br>
> && dnf install -y systemd-units openldap-devel pam-devel \____<br>
> <br>
> openssl-devel krb5-devel expat-devel \____<br>
> <br>
> libxml2-devel libcap-devel libtool libtool-ltdl-devel \____<br>
> <br>
> redhat-rpm-config libdb-devel \____<br>
> <br>
> gnutls-devel rpmdevtools wget \____<br>
> <br>
> && dnf clean all____<br>
> <br>
> __ __<br>
> <br>
> __ __<br>
> <br>
> ----____<br>
> <br>
> Eliezer Croitoru____<br>
> <br>
> NgTech, Tech Support____<br>
> <br>
> Mobile: +972-5-28704261____<br>
> <br>
> Email: <a href="mailto:ngtech1ltd@gmail.com" target="_blank">ngtech1ltd@gmail.com</a> <mailto:<a href="mailto:ngtech1ltd@gmail.com" target="_blank">ngtech1ltd@gmail.com</a>>____<br>
> <br>
> __ __<br>
> <br>
> *From:* squid-users <<a href="mailto:squid-users-bounces@lists.squid-cache.org" target="_blank">squid-users-bounces@lists.squid-cache.org</a><br>
> <mailto:<a href="mailto:squid-users-bounces@lists.squid-cache.org" target="_blank">squid-users-bounces@lists.squid-cache.org</a>>> *On Behalf Of<br>
> *Ivan Larionov<br>
> *Sent:* Thursday, April 14, 2022 01:34<br>
> *To:* <a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a><br>
> <mailto:<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a>><br>
> *Subject:* [squid-users] squid compilation error in Docker____<br>
> <br>
> __ __<br>
> <br>
> Hi.____<br>
> <br>
> __ __<br>
> <br>
> I have no issues building squid normally, but when I try to do<br>
> exactly the same steps in docker I'm getting the following errors:____<br>
> <br>
> __ __<br>
> <br>
> <a href="https://gist.github.com/xeron/5530fe9aa1f5bdcb6a72c6edd6476467" rel="noreferrer" target="_blank">https://gist.github.com/xeron/5530fe9aa1f5bdcb6a72c6edd6476467</a><br>
> <<a href="https://gist.github.com/xeron/5530fe9aa1f5bdcb6a72c6edd6476467" rel="noreferrer" target="_blank">https://gist.github.com/xeron/5530fe9aa1f5bdcb6a72c6edd6476467</a>>____<br>
> <br>
> __ __<br>
> <br>
> Example from that log:____<br>
> <br>
> __ __<br>
> <br>
> cache_cf.o: In function `configFreeMemory()':____<br>
> <br>
> /root/build/src/cache_cf.cc:2982: undefined reference to<br>
> `Adaptation::Icap::TheConfig'____<br>
> <br>
> __ __<br>
> <br>
> I can't figure out what exactly is wrong. Doesn't look like any<br>
> dependencies are missing.<br>
> ____<br>
> <br>
> __ __<br>
> <br>
> Here's my build script:____<br>
> <br>
> __ __<br>
> <br>
> yum install -y autoconf automake file gcc72 gcc72-c++ libtool<br>
> 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<br>
> --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____<br>
> <br>
> __ __<br>
> <br>
> Any ideas?____<br>
> <br>
> __ __<br>
> <br>
> -- ____<br>
> <br>
> With best regards, Ivan Larionov.____<br>
> <br>
> _______________________________________________<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>
> <mailto:<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>
> <<a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a>><br>
> <br>
> <br>
> <br>
> -- <br>
> With best regards, Ivan Larionov.<br>
> <br>
> _______________________________________________<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>
<br>
_______________________________________________<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>