[tor-packagers] If you're running into compilation issues with Tor 0.4.6.5 on older GCC versions...

Nick Mathewson nickm at torproject.org
Fri Jun 18 12:48:19 UTC 2021


These versions of GCC have a bug where they don't accept non-literal
constants in static initializers.  This leads to the following
warning:

src/feature/dirclient/dirclient.c: In function
‘dir_client_decompress_response_body’:
./src/lib/log/ratelim.h:55:27: error: initializer element is not constant

If you're running into this issue, you can fix it with the attached
patch, which will also go into the next 0.4.6.x release.

References:
   https://gitlab.torproject.org/tpo/core/tor/-/issues/40410
   https://gitlab.torproject.org/tpo/core/tor/-/merge_requests/398/commits#note_2740025

-- 
Nick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-compilation-on-OpenSUSE.patch
Type: text/x-patch
Size: 1255 bytes
Desc: not available
URL: <http://lists.torproject.org/pipermail/tor-packagers/attachments/20210618/13fbb397/attachment.bin>


More information about the tor-packagers mailing list