On 4/13/22 20:07, Ivan Larionov wrote:
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.
And maybe find the earlier error in the make log? The errors you shared
did not look like a direct effect of some missing package, more like a
side effect of something that went wrong earlier...
Thank you both,
Alex.
On Wed, Apr 13, 2022 at 4:36 PM Eliezer Croitoru 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 <mailto:ngtech1ltd@xxxxxxxxx>____
__ __
*From:* squid-users <squid-users-bounces@xxxxxxxxxxxxxxxxxxxxx
<mailto:squid-users-bounces@xxxxxxxxxxxxxxxxxxxxx>> *On Behalf Of
*Ivan Larionov
*Sent:* Thursday, April 14, 2022 01:34
*To:* squid-users@xxxxxxxxxxxxxxxxxxxxx
<mailto: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:____
__ __
https://gist.github.com/xeron/5530fe9aa1f5bdcb6a72c6edd6476467
<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@xxxxxxxxxxxxxxxxxxxxx
<mailto:squid-users@xxxxxxxxxxxxxxxxxxxxx>
http://lists.squid-cache.org/listinfo/squid-users
<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
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users