Re: [squid-users] squid compilation error in Docker

2022-04-30 Thread Eliezer Croitoru
I assume that the findutils is not a dependency of libtool since the required 
utilities can be supplied from couple sources.

One of them is busybox but I assumed that RedHat or CentOS will make it a 
requirement.

 

A good catch!

 

Thanks,

Eliezer

 



Eliezer Croitoru

NgTech, Tech Support

Mobile: +972-5-28704261

Email: ngtech1...@gmail.com <mailto:ngtech1...@gmail.com> 

 

From: squid-users  On Behalf Of Ivan 
Larionov
Sent: Tuesday, April 26, 2022 23:24
To: Alex Rousskov 
Cc: Squid Users 
Subject: Re: [squid-users] squid compilation error in Docker

 

I think based on the compilation log that it's not used by squid directly but 
by libtool. I went through the whole log again and found the following errors 
which I missed originally:

 

"libtool: line 4251: find: command not found"

 

On Mon, Apr 25, 2022 at 1:08 PM Alex Rousskov mailto:rouss...@measurement-factory.com> > wrote:

On 4/25/22 15:41, Ivan Larionov wrote:
> Seems like "findutils" is the package which fixes the build.
> 
> Binsaries in this package:
> 
> # rpm -ql findutils | grep bin
> /bin/find
> /usr/bin/find
> /usr/bin/oldfind
> /usr/bin/xargs
> 
> If build depends on some of these then configure script should probably 
> check that they're available.


... and/or properly fail when their execution/use fails. I do not know 
whether this find/xargs dependency is inside Squid or inside something 
that Squid is using though, but I could not quickly find any direct uses 
by Squid sources (that would fail the build).


Alex.


> On Wed, Apr 13, 2022 at 9:38 PM Amos Jeffries wrote:
> 
> On 14/04/22 14:59, Ivan Larionov wrote:
>  > There were no errors earlier.
>  >
>  > Seems like installing openldap-devel fixes the issue.
>  >
>  > There were other dependencies installed together with it, not
> sure if
>  > they also affected the build or not.
> 
> 
> I suspect one or more of those other components is indeed the source of
> the change. Some of them are very low-level OS functionality updates
> (eg
> /proc and filesystem  utilities).
> 
> FWIW, The gist you posted looks suspiciously like reports we used to
> see
> when BSD people were having issues with the linker not receiving all
> the
> arguments passed to it. I would focus on the ones which interact
> with OS
> filesystem or the autotools / compiler/ linker.
> 
> 
> HTH
> Amos
> ___
> squid-users mailing list
> squid-users@lists.squid-cache.org 
> <mailto:squid-users@lists.squid-cache.org> 
> <mailto:squid-users@lists.squid-cache.org 
> <mailto:squid-users@lists.squid-cache.org> >
> 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@lists.squid-cache.org <mailto:squid-users@lists.squid-cache.org> 
> http://lists.squid-cache.org/listinfo/squid-users

___
squid-users mailing list
squid-users@lists.squid-cache.org <mailto:squid-users@lists.squid-cache.org> 
http://lists.squid-cache.org/listinfo/squid-users




 

-- 

With best regards, Ivan Larionov.

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] squid compilation error in Docker

2022-04-26 Thread Ivan Larionov
I think based on the compilation log that it's not used by squid directly
but by libtool. I went through the whole log again and found the following
errors which I missed originally:

"libtool: line 4251: find: command not found"

On Mon, Apr 25, 2022 at 1:08 PM Alex Rousskov <
rouss...@measurement-factory.com> wrote:

> On 4/25/22 15:41, Ivan Larionov wrote:
> > Seems like "findutils" is the package which fixes the build.
> >
> > Binsaries in this package:
> >
> > # rpm -ql findutils | grep bin
> > /bin/find
> > /usr/bin/find
> > /usr/bin/oldfind
> > /usr/bin/xargs
> >
> > If build depends on some of these then configure script should probably
> > check that they're available.
>
>
> ... and/or properly fail when their execution/use fails. I do not know
> whether this find/xargs dependency is inside Squid or inside something
> that Squid is using though, but I could not quickly find any direct uses
> by Squid sources (that would fail the build).
>
>
> Alex.
>
>
> > On Wed, Apr 13, 2022 at 9:38 PM Amos Jeffries wrote:
> >
> > On 14/04/22 14:59, Ivan Larionov wrote:
> >  > There were no errors earlier.
> >  >
> >  > Seems like installing openldap-devel fixes the issue.
> >  >
> >  > There were other dependencies installed together with it, not
> > sure if
> >  > they also affected the build or not.
> >
> >
> > I suspect one or more of those other components is indeed the source
> of
> > the change. Some of them are very low-level OS functionality updates
> > (eg
> > /proc and filesystem  utilities).
> >
> > FWIW, The gist you posted looks suspiciously like reports we used to
> > see
> > when BSD people were having issues with the linker not receiving all
> > the
> > arguments passed to it. I would focus on the ones which interact
> > with OS
> > filesystem or the autotools / compiler/ linker.
> >
> >
> > HTH
> > Amos
> > ___
> > squid-users mailing list
> > squid-users@lists.squid-cache.org
> > 
> > http://lists.squid-cache.org/listinfo/squid-users
> > 
> >
> >
> >
> > --
> > With best regards, Ivan Larionov.
> >
> > ___
> > squid-users mailing list
> > squid-users@lists.squid-cache.org
> > http://lists.squid-cache.org/listinfo/squid-users
>
> ___
> squid-users mailing list
> squid-users@lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
>


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


Re: [squid-users] squid compilation error in Docker

2022-04-25 Thread Alex Rousskov

On 4/25/22 15:41, Ivan Larionov wrote:

Seems like "findutils" is the package which fixes the build.

Binsaries in this package:

# rpm -ql findutils | grep bin
/bin/find
/usr/bin/find
/usr/bin/oldfind
/usr/bin/xargs

If build depends on some of these then configure script should probably 
check that they're available.



... and/or properly fail when their execution/use fails. I do not know 
whether this find/xargs dependency is inside Squid or inside something 
that Squid is using though, but I could not quickly find any direct uses 
by Squid sources (that would fail the build).



Alex.



On Wed, Apr 13, 2022 at 9:38 PM Amos Jeffries wrote:

On 14/04/22 14:59, Ivan Larionov wrote:
 > There were no errors earlier.
 >
 > Seems like installing openldap-devel fixes the issue.
 >
 > There were other dependencies installed together with it, not
sure if
 > they also affected the build or not.


I suspect one or more of those other components is indeed the source of
the change. Some of them are very low-level OS functionality updates
(eg
/proc and filesystem  utilities).

FWIW, The gist you posted looks suspiciously like reports we used to
see
when BSD people were having issues with the linker not receiving all
the
arguments passed to it. I would focus on the ones which interact
with OS
filesystem or the autotools / compiler/ linker.


HTH
Amos
___
squid-users mailing list
squid-users@lists.squid-cache.org

http://lists.squid-cache.org/listinfo/squid-users




--
With best regards, Ivan Larionov.

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] squid compilation error in Docker

2022-04-25 Thread Ivan Larionov
Seems like "findutils" is the package which fixes the build.

Binsaries in this package:

# rpm -ql findutils | grep bin
/bin/find
/usr/bin/find
/usr/bin/oldfind
/usr/bin/xargs

If build depends on some of these then configure script should probably
check that they're available.

On Wed, Apr 13, 2022 at 9:38 PM Amos Jeffries  wrote:

> On 14/04/22 14:59, Ivan Larionov wrote:
> > There were no errors earlier.
> >
> > Seems like installing openldap-devel fixes the issue.
> >
> > There were other dependencies installed together with it, not sure if
> > they also affected the build or not.
>
>
> I suspect one or more of those other components is indeed the source of
> the change. Some of them are very low-level OS functionality updates (eg
> /proc and filesystem  utilities).
>
> FWIW, The gist you posted looks suspiciously like reports we used to see
> when BSD people were having issues with the linker not receiving all the
> arguments passed to it. I would focus on the ones which interact with OS
> filesystem or the autotools / compiler/ linker.
>
>
> HTH
> Amos
> ___
> squid-users mailing list
> squid-users@lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
>


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


Re: [squid-users] squid compilation error in Docker

2022-04-13 Thread Amos Jeffries

On 14/04/22 14:59, Ivan Larionov wrote:

There were no errors earlier.

Seems like installing openldap-devel fixes the issue.

There were other dependencies installed together with it, not sure if 
they also affected the build or not.



I suspect one or more of those other components is indeed the source of 
the change. Some of them are very low-level OS functionality updates (eg 
/proc and filesystem  utilities).


FWIW, The gist you posted looks suspiciously like reports we used to see 
when BSD people were having issues with the linker not receiving all the 
arguments passed to it. I would focus on the ones which interact with OS 
filesystem or the autotools / compiler/ linker.



HTH
Amos
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] squid compilation error in Docker

2022-04-13 Thread Ivan Larionov
There were no errors earlier.

Seems like installing openldap-devel fixes the issue.

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:

cracklib
cracklib-dicts
libpwquality
pam
cpio
dbus-libs
libudev
libblkid
libmount
libnih
upstart
libuser
sysvinit
xz
libutempter
util-linux
net-tools
procps
ethtool
mingetty
psmisc
iptables
iproute
kmod-libs
kmod
hwdata
udev
findutils
iputils
initscripts
cyrus-sasl
cyrus-sasl-devel
openldap-devel

Basically this was enough for the build to succeed:

yum install -y gcc gcc-c++ libtool libtool-ltdl-devel make pkgconfig
automake autoconf wget diffutils file openldap-devel

but just removing openldap-devel from that line results in errors I posted.

On Wed, Apr 13, 2022 at 7:19 PM Alex Rousskov <
rouss...@measurement-factory.com> wrote:

> 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: ngtech1...@gmail.com 
> >
> > __ __
> >
> > *From:* squid-users  > > *On Behalf Of
> > *Ivan Larionov
> 

Re: [squid-users] squid compilation error in Docker

2022-04-13 Thread Alex Rousskov

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: ngtech1...@gmail.com 

__ __

*From:* squid-users mailto:squid-users-boun...@lists.squid-cache.org>> *On Behalf Of
*Ivan Larionov
*Sent:* Thursday, April 14, 2022 01:34
*To:* squid-users@lists.squid-cache.org

*Subject:* [squid-users] 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


__ __

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 

Re: [squid-users] squid compilation error in Docker

2022-04-13 Thread Ivan Larionov
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 
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: ngtech1...@gmail.com
>
>
>
> *From:* squid-users  *On
> Behalf Of *Ivan Larionov
> *Sent:* Thursday, April 14, 2022 01:34
> *To:* squid-users@lists.squid-cache.org
> *Subject:* [squid-users] 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
>
>
>
> 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@lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
>


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


Re: [squid-users] squid compilation error in Docker

2022-04-13 Thread Eliezer Croitoru
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: ngtech1...@gmail.com  

 

From: squid-users  On Behalf Of Ivan 
Larionov
Sent: Thursday, April 14, 2022 01:34
To: squid-users@lists.squid-cache.org
Subject: [squid-users] 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

 

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