Comment 6 for bug 1712668

Revision history for this message
Andreas Hasenack (ahasenack) wrote : Re: squid3: ftbfs with gcc7: dynamic exception specifications are deprecated

Ok, with these 4 commits applied, the build works on 64 bits:
https://github.com/squid-cache/squid/commit/85942de8e7b4f8a449d933657fc4a5324a4c5d58
https://github.com/squid-cache/squid/commit/93454e65b0f71ae6ff981fb74ac0ccc099078cb7
https://github.com/squid-cache/squid/commit/286c132b8c067449eefc842c72cdbbcf0a1c54df
https://github.com/squid-cache/squid/commit/6a41367f4985bf1b3fcd3aa32d1dc9d0108ba350

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
 ^~~~~~

The fix for that seems to be https://github.com/squid-cache/squid/commit/6d19fc4dbb47a9b6993057c8599cd57f29d1475a (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