Can't compile 0.4.6.5 on Ubuntu 18.04

I went to upgrade a relay running on Ubuntu 18.04 to the new release (0.4.6.5) and to my surprise it didn't compile. Every other version has built without any trouble. Wading into the Gitlab site was rather confusing, so I thought I'd send this here, in the hopes it reaches the right people and someone else might be interested. I ran ./configure, then make, and pretty soon this happened: CC src/feature/dirclient/dirclient.o In file included from ./src/core/or/or.h:50:0, from src/feature/dirclient/dirclient.c:13: 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 #define RATELIM_INIT(r) { (r), 0, 0, 0 } ^ src/feature/dirclient/dirclient.c:1877:38: note: in expansion of macro ‘RATELIM_INIT’ static ratelim_t warning_limit = RATELIM_INIT(LOG_INTERVAL); ^~~~~~~~~~~~ ./src/lib/log/ratelim.h:55:27: note: (near initialization for ‘warning_limit.rate’) #define RATELIM_INIT(r) { (r), 0, 0, 0 } ^ src/feature/dirclient/dirclient.c:1877:38: note: in expansion of macro ‘RATELIM_INIT’ static ratelim_t warning_limit = RATELIM_INIT(LOG_INTERVAL); ^~~~~~~~~~~~ Makefile:12141: recipe for target 'src/feature/dirclient/dirclient.o' failed make[1]: *** [src/feature/dirclient/dirclient.o] Error 1 make[1]: Leaving directory '/usr/local/src/tor/tor-0.4.6.5' Thanks, Bill -- William Denton https://www.miskatonic.org/ Librarian, artist and licensed private investigator.

William Denton:
I went to upgrade a relay running on Ubuntu 18.04 to the new release (0.4.6.5) and to my surprise it didn't compile. Every other version has built without any trouble. Wading into the Gitlab site was rather confusing, so I thought I'd send this here, in the hopes it reaches the right people and someone else might be interested.
I ran ./configure, then make, and pretty soon this happened:
CC src/feature/dirclient/dirclient.o In file included from ./src/core/or/or.h:50:0, from src/feature/dirclient/dirclient.c:13: 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 #define RATELIM_INIT(r) { (r), 0, 0, 0 } ^ src/feature/dirclient/dirclient.c:1877:38: note: in expansion of macro ‘RATELIM_INIT’ static ratelim_t warning_limit = RATELIM_INIT(LOG_INTERVAL); ^~~~~~~~~~~~ ./src/lib/log/ratelim.h:55:27: note: (near initialization for ‘warning_limit.rate’) #define RATELIM_INIT(r) { (r), 0, 0, 0 } ^ src/feature/dirclient/dirclient.c:1877:38: note: in expansion of macro ‘RATELIM_INIT’ static ratelim_t warning_limit = RATELIM_INIT(LOG_INTERVAL); ^~~~~~~~~~~~ Makefile:12141: recipe for target 'src/feature/dirclient/dirclient.o' failed make[1]: *** [src/feature/dirclient/dirclient.o] Error 1 make[1]: Leaving directory '/usr/local/src/tor/tor-0.4.6.5'
Looks like a known issue: https://gitlab.torproject.org/tpo/core/tor/-/issues/40410 Georg
Thanks,
Bill
-- William Denton https://www.miskatonic.org/ Librarian, artist and licensed private investigator.
_______________________________________________ tor-relays mailing list tor-relays@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 I got the same error on CentOS 7 server. Any way to solve it? Or just wait for next release? Thanks. ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Tuesday, June 15th, 2021 at 8:12 AM, Georg Koppen <gk@torproject.org> wrote:
William Denton:
I went to upgrade a relay running on Ubuntu 18.04 to the new release
(0.4.6.5) and to my surprise it didn't compile. Every other version has
built without any trouble. Wading into the Gitlab site was rather
confusing, so I thought I'd send this here, in the hopes it reaches the
right people and someone else might be interested.
I ran ./configure, then make, and pretty soon this happened:
CC src/feature/dirclient/dirclient.o
In file included from ./src/core/or/or.h:50:0,
from src/feature/dirclient/dirclient.c:13:
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
#define RATELIM_INIT(r) { (r), 0, 0, 0 }
^
src/feature/dirclient/dirclient.c:1877:38: note: in expansion of macro
‘RATELIM_INIT’
static ratelim_t warning_limit = RATELIM_INIT(LOG_INTERVAL);
^~~~~~~~~~~~
./src/lib/log/ratelim.h:55:27: note: (near initialization for
‘warning_limit.rate’)
#define RATELIM_INIT(r) { (r), 0, 0, 0 }
^
src/feature/dirclient/dirclient.c:1877:38: note: in expansion of macro
‘RATELIM_INIT’
static ratelim_t warning_limit = RATELIM_INIT(LOG_INTERVAL);
^~~~~~~~~~~~
Makefile:12141: recipe for target 'src/feature/dirclient/dirclient.o'
failed
make[1]: *** [src/feature/dirclient/dirclient.o] Error 1
make[1]: Leaving directory '/usr/local/src/tor/tor-0.4.6.5'
Looks like a known issue:
https://gitlab.torproject.org/tpo/core/tor/-/issues/40410
Georg
Thanks,
Bill
--
William Denton
Librarian, artist and licensed private investigator.
tor-relays mailing list
tor-relays@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays
tor-relays mailing list
tor-relays@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays -----BEGIN PGP SIGNATURE----- Version: ProtonMail
wnUEARYKAAYFAmDIrLwAIQkQFvsEKTlj5D0WIQR+I/vVJwUWgPuoKoIW+wQp OWPkPSlEAQCcnNmvCj/HCHMORWL4IVJDHxZh9Jf+2GNX1XK0NY7b6gD/YW8M 9i6Iyj2AsZMbdc55KMj/aQhvcZ4rVIRLPLsl4gc= =qH0V -----END PGP SIGNATURE-----

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 After doing some research, this simple fix do the trick. https://gitlab.torproject.org/ahf/tor/-/commit/810c0616d59809b89f5144d4afdbf... I was able to compile to the lastest version 0.4.6.5 Hope it helps. Good Day! ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Tuesday, June 15th, 2021 at 4:36 PM, Pushbox <pushbox@pm.me> wrote:
I got the same error on CentOS 7 server.
Any way to solve it? Or just wait for next release?
Thanks.
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Tuesday, June 15th, 2021 at 8:12 AM, Georg Koppen gk@torproject.org wrote:
William Denton:
I went to upgrade a relay running on Ubuntu 18.04 to the new release
(0.4.6.5) and to my surprise it didn't compile. Every other version has
built without any trouble. Wading into the Gitlab site was rather
confusing, so I thought I'd send this here, in the hopes it reaches the
right people and someone else might be interested.
I ran ./configure, then make, and pretty soon this happened:
CC src/feature/dirclient/dirclient.o
In file included from ./src/core/or/or.h:50:0,
from src/feature/dirclient/dirclient.c:13:
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
#define RATELIM_INIT(r) { (r), 0, 0, 0 }
^
src/feature/dirclient/dirclient.c:1877:38: note: in expansion of macro
‘RATELIM_INIT’
static ratelim_t warning_limit = RATELIM_INIT(LOG_INTERVAL);
^~~~~~~~~~~~
./src/lib/log/ratelim.h:55:27: note: (near initialization for
‘warning_limit.rate’)
#define RATELIM_INIT(r) { (r), 0, 0, 0 }
^
src/feature/dirclient/dirclient.c:1877:38: note: in expansion of macro
‘RATELIM_INIT’
static ratelim_t warning_limit = RATELIM_INIT(LOG_INTERVAL);
^~~~~~~~~~~~
Makefile:12141: recipe for target 'src/feature/dirclient/dirclient.o'
failed
make[1]: *** [src/feature/dirclient/dirclient.o] Error 1
make[1]: Leaving directory '/usr/local/src/tor/tor-0.4.6.5'
Looks like a known issue:
https://gitlab.torproject.org/tpo/core/tor/-/issues/40410
Georg
Thanks,
Bill
--
William Denton
Librarian, artist and licensed private investigator.
tor-relays mailing list
tor-relays@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays
tor-relays mailing list
tor-relays@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays -----BEGIN PGP SIGNATURE----- Version: ProtonMail
wnUEARYKAAYFAmDItu0AIQkQFvsEKTlj5D0WIQR+I/vVJwUWgPuoKoIW+wQp OWPkPQWqAPwJyxnh8otdvZub8w5PW5wTl+5avPO0pe2O+UuJhpzYawD/Uy7U oZ+Meqk0g67041o6ksHTP7xVfeya2siuTH6/pwM= =zhNt -----END PGP SIGNATURE-----
participants (3)
-
Georg Koppen
-
Pushbox
-
William Denton