<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=us-ascii">
<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;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:318313998;
mso-list-type:hybrid;
mso-list-template-ids:-1323556090 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l1
{mso-list-id:1342659190;
mso-list-template-ids:798115558;}
@list l2
{mso-list-id:1861308879;
mso-list-template-ids:1575544314;}
@list l2:level1
{mso-level-start-at:3;
mso-level-tab-stop:.5in;
mso-level-number-position:left;
text-indent:-.25in;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></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="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi All<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m trying to compile and install deb package of squid 6.4, I am using the Ubuntu server 22.04.02 as my build machine.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">While running make command, I get the following error. Could you anyone help me, figure it out.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">lto-wrapper: warning: using serial compilation of 100 LTRANS jobs<o:p></o:p></p>
<p class="MsoNormal">acl/BoolOps.cc: In member function '__ct_base ':<o:p></o:p></p>
<p class="MsoNormal">acl/BoolOps.cc:20:5: error: '__builtin_strlen' reading 1 or more bytes from a region of size 0 [-Werror=stringop-overread]<o:p></o:p></p>
<p class="MsoNormal"> 20 | Must(strlen(acl->name) <= sizeof(name)-2);<o:p></o:p></p>
<p class="MsoNormal"> | ^<o:p></o:p></p>
<p class="MsoNormal">lto1: all warnings being treated as errors<o:p></o:p></p>
<p class="MsoNormal">lto-wrapper: fatal error: g++ returned 1 exit status<o:p></o:p></p>
<p class="MsoNormal">compilation terminated.<o:p></o:p></p>
<p class="MsoNormal">/usr/bin/ld: error: lto-wrapper failed<o:p></o:p></p>
<p class="MsoNormal">collect2: error: ld returned 1 exit status<o:p></o:p></p>
<p class="MsoNormal">libtool: link: rm -f ".libs/squidS.o"<o:p></o:p></p>
<p class="MsoNormal">make[3]: *** [Makefile:5220: squid] Error 1<o:p></o:p></p>
<p class="MsoNormal">make[3]: Leaving directory '/home/coeadmin/squid-6.4-build1/squid-6.4/src'<o:p></o:p></p>
<p class="MsoNormal">make[2]: *** [Makefile:6004: all-recursive] Error 1<o:p></o:p></p>
<p class="MsoNormal">make[2]: Leaving directory '/home/coeadmin/squid-6.4-build1/squid-6.4/src'<o:p></o:p></p>
<p class="MsoNormal">make[1]: *** [Makefile:5004: all] Error 2<o:p></o:p></p>
<p class="MsoNormal">make[1]: Leaving directory '/home/coeadmin/squid-6.4-build1/squid-6.4/src'<o:p></o:p></p>
<p class="MsoNormal">make: *** [Makefile:599: all-recursive] Error 1<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Steps I followed.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<ol style="margin-top:0in" start="1" type="1">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo3">Ran build dep to install build dependencies.<o:p></o:p></li><li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo3">Executed configure command with following options.<o:p></o:p></li></ol>
<p class="MsoListParagraph">--datadir=/usr/share/squid \<o:p></o:p></p>
<p class="MsoListParagraph"> --sysconfdir=/etc/squid \<o:p></o:p></p>
<p class="MsoListParagraph"> --libexecdir=/usr/lib/squid \<o:p></o:p></p>
<p class="MsoListParagraph"> --mandir=/usr/share/man \<o:p></o:p></p>
<p class="MsoListParagraph"> --enable-inline \<o:p></o:p></p>
<p class="MsoListParagraph"> --disable-arch-native \<o:p></o:p></p>
<p class="MsoListParagraph"> --enable-async-io=8 \<o:p></o:p></p>
<p class="MsoListParagraph"> --enable-storeio="ufs,aufs,diskd,rock" \<o:p></o:p></p>
<p class="MsoListParagraph"> --enable-removal-policies="lru,heap" \<o:p></o:p></p>
<p class="MsoListParagraph"> --enable-delay-pools \<o:p></o:p></p>
<p class="MsoListParagraph"> --enable-cache-digests \<o:p></o:p></p>
<p class="MsoListParagraph"> --enable-icap-client \<o:p></o:p></p>
<p class="MsoListParagraph"> --enable-follow-x-forwarded-for \<o:p></o:p></p>
<p class="MsoListParagraph"> --enable-auth-basic="DB,fake,getpwnam,LDAP,NCSA,PAM,POP3,RADIUS,SASL,SMB" \<o:p></o:p></p>
<p class="MsoListParagraph"> --enable-auth-digest="file,LDAP" \<o:p></o:p></p>
<p class="MsoListParagraph"> --enable-auth-negotiate="kerberos,wrapper" \<o:p></o:p></p>
<p class="MsoListParagraph"> --enable-auth-ntlm="fake,SMB_LM" \<o:p></o:p></p>
<p class="MsoListParagraph"> --enable-external-acl-helpers="file_userip,kerberos_ldap_group,LDAP_group,session,SQL_session,time_quota,unix_group,wbinfo_group" \<o:p></o:p></p>
<p class="MsoListParagraph"> --enable-security-cert-validators="fake" \<o:p></o:p></p>
<p class="MsoListParagraph"> --enable-storeid-rewrite-helpers="file" \<o:p></o:p></p>
<p class="MsoListParagraph"> --enable-url-rewrite-helpers="fake" \<o:p></o:p></p>
<p class="MsoListParagraph"> --enable-eui \<o:p></o:p></p>
<p class="MsoListParagraph"> --enable-esi \<o:p></o:p></p>
<p class="MsoListParagraph"> --enable-icmp \<o:p></o:p></p>
<p class="MsoListParagraph"> --enable-zph-qos \<o:p></o:p></p>
<p class="MsoListParagraph"> --enable-ecap \<o:p></o:p></p>
<p class="MsoListParagraph"> --disable-translation \<o:p></o:p></p>
<p class="MsoListParagraph"> --with-swapdir=/var/spool/squid \<o:p></o:p></p>
<p class="MsoListParagraph"> --with-logdir=/var/log/squid \<o:p></o:p></p>
<p class="MsoListParagraph"> --with-pidfile=/run/squid.pid \<o:p></o:p></p>
<p class="MsoListParagraph"> --with-filedescriptors=65536 \<o:p></o:p></p>
<p class="MsoListParagraph"> --with-large-files \<o:p></o:p></p>
<p class="MsoListParagraph"> --with-default-user=proxy \<o:p></o:p></p>
<p class="MsoListParagraph"> --enable-linux-netfilter --with-systemd \<o:p></o:p></p>
<p class="MsoListParagraph"> --with-openssl \<o:p></o:p></p>
<p class="MsoListParagraph"> --enable-ssl-crtd<o:p></o:p></p>
<p class="MsoListParagraph"><o:p> </o:p></p>
<ol style="margin-top:0in" start="3" type="1">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo3">executed make, which resulted in above error.<o:p></o:p></li></ol>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Please let me know if more information is required<o:p></o:p></p>
</div>
</body>
</html>