But it fails on 32 bits:
Format.cc: In member function ‘void Format::Format::assemble(MemBuf&, const Pointer&, int) const’:
Format.cc:345:1: error: ‘%0*lld’ directive output may be truncated writing between 1 and 2147483646 bytes into a region of size 1024 [-Werror=format-truncation=]
Format::Format::assemble(MemBuf &mb, const AccessLogEntry::Pointer &al, int logSequenceNumber) const
^~~~~~
Ok, with these 4 commits applied, the build works on 64 bits: /github. com/squid- cache/squid/ commit/ 85942de8e7b4f8a 449d933657fc4a5 324a4c5d58 /github. com/squid- cache/squid/ commit/ 93454e65b0f71ae 6ff981fb74ac0cc c099078cb7 /github. com/squid- cache/squid/ commit/ 286c132b8c06744 9eefc842c72cdbb cf0a1c54df /github. com/squid- cache/squid/ commit/ 6a41367f4985bf1 b3fcd3aa32d1dc9 d0108ba350
https:/
https:/
https:/
https:/
But it fails on 32 bits: :Format: :assemble( MemBuf& , const Pointer&, int) const’: format- truncation= ] :Format: :assemble( MemBuf &mb, const AccessLogEntry: :Pointer &al, int logSequenceNumber) const
Format.cc: In member function ‘void Format:
Format.cc:345:1: error: ‘%0*lld’ directive output may be truncated writing between 1 and 2147483646 bytes into a region of size 1024 [-Werror=
Format:
^~~~~~
The fix for that seems to be https:/ /github. com/squid- cache/squid/ commit/ 6d19fc4dbb47a9b 6993057c8599cd5 7f29d1475a (thanks @paelzer for finding that one), but it was never applied to the v3.5 branch.
Even the new 3.5.27 upstream release fails to build on i386 with gcc7. I filed this upstream bug about it: <NONE>
Their bugzilla just times out, I can't open a bug. I managed to add a comment to the existing bug about gcc7 failures that is already closed: http:// bugs.squid- cache.org/ show_bug. cgi?id= 4671#c3