[squid-users] Trying to recompile squid 4.13 with ./configure CXXFLAGS="-DMAXTCPLISTENPORTS=256"

ngtech1ltd at gmail.com ngtech1ltd at gmail.com
Fri Aug 5 14:26:31 UTC 2022


Hey Marcelo,

What OS are you using? Debian? Ubuntu?
The `which squid` command will show you where squid binary of squid -v is being take/used from.
And also, just wondering why 4.13? and not 4.17?

Eliezer

----
Eliezer Croitoru
NgTech, Tech Support
Mobile: +972-5-28704261
Email: ngtech1ltd at gmail.com
Web: https://ngtech.co.il/
My-Tube: https://tube.ngtech.co.il/

-----Original Message-----
From: squid-users <squid-users-bounces at lists.squid-cache.org> On Behalf Of marcelorodrigo at graminsta.com.br
Sent: Thursday, 4 August 2022 1:17
To: squid-users at lists.squid-cache.org
Subject: Re: [squid-users] Trying to recompile squid 4.13 with ./configure CXXFLAGS="-DMAXTCPLISTENPORTS=256"

Some important information.

I am trying to recompile using:

./configure CXXFLAGS="-DMAXTCPLISTENPORTS=10000 -g -O2 -fPIE 
-fstack-protector-strong -Wformat -Werror=format-security" 
--build="x86_64-linux-gnu" --prefix="/usr" 
--includedir="${prefix}/include" --mandir="${prefix}/share/man" 
--infodir="${prefix}/share/info" --sysconfdir="/etc" 
--localstatedir="/var" --libexecdir="${prefix}/lib/squid3" --srcdir="." 
--disable-maintainer-mode --disable-dependency-tracking 
--disable-silent-rules BUILDCXXFLAGS="-g -O2 -fPIE 
-fstack-protector-strong -Wformat -Werror=format-security 
-Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now" 
--datadir="/usr/share/squid" --sysconfdir="/etc/squid" 
--libexecdir="/usr/lib/squid" --mandir="/usr/share/man" --enable-inline 
--disable-arch-native --enable-async-io="8" 
--enable-storeio="ufs,aufs,diskd,rock" 
--enable-removal-policies="lru,heap" --enable-delay-pools 
--enable-cache-digests --enable-icap-client 
--enable-follow-x-forwarded-for 
--enable-auth-basic="DB,fake,getpwnam,LDAP,NCSA,NIS,PAM,POP3,RADIUS,SASL,SMB" 
--enable-auth-digest="file,LDAP" 
--enable-auth-negotiate="kerberos,wrapper" 
--enable-auth-ntlm="fake,smb_lm" 
--enable-external-acl-helpers="file_userip,kerberos_ldap_group,LDAP_group,session,SQL_session,unix_group,wbinfo_group" 
--enable-url-rewrite-helpers="fake" --enable-eui --enable-esi 
--enable-icmp --enable-zph-qos --enable-ecap --disable-translation 
--with-swapdir="/var/spool/squid" --with-logdir="/var/log/squid" 
--with-pidfile="/var/run/squid.pid" --with-filedescriptors="65536" 
--with-large-files --with-default-user="proxy" 
--enable-build-info="Ubuntu linux" --enable-linux-netfilter 
build_alias="x86_64-linux-gnu" CFLAGS="-g -O2 -fPIE 
-fstack-protector-strong -Wformat -Werror=format-security -Wall" 
LDFLAGS="-Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now" 
CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2" --with-openssl 
--enable-ssl-crtd

Then make and make install from /build/squid/squid-4.13/ folder, but 
nothin seems to change when squid -v is used.

I also tryied do recompile with this example:

./configure --build="x86_64-linux-gnu" --prefix="/usr" 
--includedir="${prefix}/include" --mandir="${prefix}/share/man" 
--infodir="${prefix}/share/info" --sysconfdir="/etc" 
--localstatedir="/var" --libexecdir="${prefix}/lib/squid3" --srcdir="." 
--disable-maintainer-mode --disable-dependency-tracking 
--disable-silent-rules BUILDCXXFLAGS="-g -O2 -fPIE 
-fstack-protector-strong -Wformat -Werror=format-security 
-Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now" 
--datadir="/usr/share/squid" --sysconfdir="/etc/squid" 
--libexecdir="/usr/lib/squid" --mandir="/usr/share/man" --enable-inline 
--disable-arch-native --enable-async-io="8" 
--enable-storeio="ufs,aufs,diskd,rock" 
--enable-removal-policies="lru,heap" --enable-delay-pools 
--enable-cache-digests --enable-icap-client 
--enable-follow-x-forwarded-for 
--enable-auth-basic="DB,fake,getpwnam,LDAP,NCSA,NIS,PAM,POP3,RADIUS,SASL,SMB" 
--enable-auth-digest="file,LDAP" 
--enable-auth-negotiate="kerberos,wrapper" 
--enable-auth-ntlm="fake,smb_lm" 
--enable-external-acl-helpers="file_userip,kerberos_ldap_group,LDAP_group,session,SQL_session,unix_group,wbinfo_group" 
--enable-url-rewrite-helpers="fake" --enable-eui --enable-esi 
--enable-icmp --enable-zph-qos --enable-ecap --disable-translation 
--with-swapdir="/var/spool/squid" --with-logdir="/var/log/squid" 
--with-pidfile="/var/run/squid.pid" --with-filedescriptors="65536" 
--with-large-files --with-default-user="proxy" 
--enable-build-info="Ubuntu linux" --enable-linux-netfilter 
build_alias="x86_64-linux-gnu" CFLAGS="-g -O2 -fPIE 
-fstack-protector-strong -Wformat -Werror=format-security -Wall" 
LDFLAGS="-Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now" 
CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2" 
CXXFLAGS="-DMAXTCPLISTENPORTS=450 -g -O2 -fPIE -fstack-protector-strong 
-Wformat -Werror=format-security"

I used several virtualserver sessions and clones, but the 
CXXFLAGS="-DMAXTCPLISTENPORTS=" dont appears in the squid -v

What is wrong in this rebuilding?


On 2022-08-03 11:12, marcelorodrigo at graminsta.com.br wrote:
> Hi,
> 
> I am trying to recompile squid 4.13 using ./configure
> CXXFLAGS="-DMAXTCPLISTENPORTS=256".
> It runs the recompile but the CXXFLAGS= does not even appears in the 
> squid -v.
> 
> Is there a way to include this feature in the squid instalation?
> 
> Tks.
> Marcelo.
_______________________________________________
squid-users mailing list
squid-users at lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users



More information about the squid-users mailing list