Tor 0.4.8.1 and 0.4.8.2 do not build on FreeBSD release
To build Tor 0.4.8.1 and 0.4.8.2 on Freebsd 12.x and 13.x, some manual fixes need to be applied. That seems to be a general issue because there are no other FreeBSD relay besides mine.
After succes Tor notice log shows:
FreeBSD 13.0 relay: [notice] Tor 0.4.8.2-alpha running on FreeBSD with Libevent 2.1.12-stable, OpenSSL LibreSSL 3.6.2, Zlib 1.2.11, Liblzma 5.2.5, Libzstd 1.5.5 and BSD 1300139 as libc.
FreeBSD 12.4 relay: [notice] Tor 0.4.8.2-alpha running on FreeBSD with Libevent 2.1.12-stable, OpenSSL LibreSSL 3.6.2, Zlib 1.2.12, Liblzma 5.2.5, Libzstd 1.5.5 and BSD 1204000 as libc.
1. libc.c leads to error (complete see BACKLOG 1)
It can be solved if the #include is moved outside of the function code:
#define STR_IMPL(x) #x
#define STR(x) STR_IMPL(x)
/* --- my new ----------------------------------------- */
#if defined(__BSD_VISIBLE) || defined(__NETBSD_SOURCE)
#include
#endif /* defined(__BSD_VISIBLE) || defined(__NETBSD_SOURCE) */
/* ---------------------------------------------------- */
/** Return the name of the compile time libc. Returns NULL if we
* cannot identify the libc. */
2. A lot of warnings are generated (complete see BACKLOG 2) ./src/core/or/conflux_pool.h:39:26: warning: redefinition of typedef 'conflux_t' is a C11 feature [-Wtypedef-redefinition] The temporary work around is to build accepting warnings # setenv ALLOW_UNSUPPORTED_SYSTEM YES. It would be great if the warnings could be removed.
- Possibly due to (1.) and (2.) the https://www.freshports.org/security/tor-devel port is still on 4.7.6-release.
BACKLOG 1, stderr:
Click to expand
In file included from src/lib/osinfo/libc.c:50:
In file included from /usr/include/sys/param.h:96:
In file included from /usr/include/sys/types.h:46:
In file included from /usr/include/machine/endian.h:6:
/usr/include/x86/endian.h:95:1: error: function definition is not allowed here
{
^
/usr/include/x86/endian.h:102:1: error: function definition is not allowed here
{
^
/usr/include/x86/endian.h:114:1: error: function definition is not allowed here
{
^
In file included from src/lib/osinfo/libc.c:50:
In file included from /usr/include/sys/param.h:96:
/usr/include/sys/types.h:325:1: error: function definition is not allowed here
{
^
/usr/include/sys/types.h:336:1: error: function definition is not allowed here
{
^
/usr/include/sys/types.h:349:1: error: function definition is not allowed here
{
^
/usr/include/sys/types.h:392:1: error: function definition is not allowed here
{
^
/usr/include/sys/types.h:398:1: error: function definition is not allowed here
{
^
/usr/include/sys/types.h:404:1: error: function definition is not allowed here
{
^
9 errors generated.
gmake[3]: *** [Makefile:13005: src/lib/osinfo/libc.o] Error 1
gmake[2]: *** [Makefile:7661: all] Error 2
BACKLOG 2, warnings
Click to expand
In file included from src/core/or/circuitlist.c:66:
./src/core/or/conflux_pool.h:39:26: warning: redefinition of typedef 'conflux_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct conflux_t conflux_t;
^
./src/core/or/conflux.h:15:26: note: previous definition is here
typedef struct conflux_t conflux_t;
^
In file included from src/core/or/circuitlist.c:123:
./src/core/or/conflux_util.h:13:34: warning: redefinition of typedef 'edge_connection_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct edge_connection_t edge_connection_t;
^
./src/core/or/or.h:606:34: note: previous definition is here
typedef struct edge_connection_t edge_connection_t;
^
In file included from src/core/or/circuitlist.c:123:
./src/core/or/conflux_util.h:14:29: warning: redefinition of typedef 'crypt_path_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct crypt_path_t crypt_path_t;
^
./src/core/or/or.h:809:29: note: previous definition is here
typedef struct crypt_path_t crypt_path_t;
^
In file included from src/core/or/circuitlist.c:123:
./src/core/or/conflux_util.h:15:33: warning: redefinition of typedef 'origin_circuit_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct origin_circuit_t origin_circuit_t;
^
./src/core/or/or.h:832:33: note: previous definition is here
typedef struct origin_circuit_t origin_circuit_t;
^
In file included from src/core/or/circuitlist.c:123:
./src/core/or/conflux_util.h:16:26: warning: redefinition of typedef 'conflux_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct conflux_t conflux_t;
^
./src/core/or/conflux_pool.h:39:26: note: previous definition is here
typedef struct conflux_t conflux_t;
^
5 warnings generated.
In file included from src/core/or/circuitpadding.c:81:
./src/core/or/conflux_util.h:13:34: warning: redefinition of typedef 'edge_connection_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct edge_connection_t edge_connection_t;
^
./src/core/or/or.h:606:34: note: previous definition is here
typedef struct edge_connection_t edge_connection_t;
^
In file included from src/core/or/circuitpadding.c:81:
./src/core/or/conflux_util.h:14:29: warning: redefinition of typedef 'crypt_path_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct crypt_path_t crypt_path_t;
^
./src/core/or/or.h:809:29: note: previous definition is here
typedef struct crypt_path_t crypt_path_t;
^
In file included from src/core/or/circuitpadding.c:81:
./src/core/or/conflux_util.h:15:33: warning: redefinition of typedef 'origin_circuit_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct origin_circuit_t origin_circuit_t;
^
./src/core/or/or.h:832:33: note: previous definition is here
typedef struct origin_circuit_t origin_circuit_t;
^
3 warnings generated.
In file included from src/core/or/circuituse.c:68:
./src/core/or/conflux.h:15:26: warning: redefinition of typedef 'conflux_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct conflux_t conflux_t;
^
./src/core/or/conflux_pool.h:39:26: note: previous definition is here
typedef struct conflux_t conflux_t;
^
In file included from src/core/or/circuituse.c:78:
./src/core/or/conflux_util.h:13:34: warning: redefinition of typedef 'edge_connection_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct edge_connection_t edge_connection_t;
^
./src/core/or/or.h:606:34: note: previous definition is here
typedef struct edge_connection_t edge_connection_t;
^
In file included from src/core/or/circuituse.c:78:
./src/core/or/conflux_util.h:14:29: warning: redefinition of typedef 'crypt_path_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct crypt_path_t crypt_path_t;
^
./src/core/or/or.h:809:29: note: previous definition is here
typedef struct crypt_path_t crypt_path_t;
^
In file included from src/core/or/circuituse.c:78:
./src/core/or/conflux_util.h:15:33: warning: redefinition of typedef 'origin_circuit_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct origin_circuit_t origin_circuit_t;
^
./src/core/or/or.h:832:33: note: previous definition is here
typedef struct origin_circuit_t origin_circuit_t;
^
In file included from src/core/or/circuituse.c:78:
./src/core/or/conflux_util.h:16:26: warning: redefinition of typedef 'conflux_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct conflux_t conflux_t;
^
./src/core/or/conflux.h:15:26: note: previous definition is here
typedef struct conflux_t conflux_t;
^
5 warnings generated.
In file included from src/core/or/connection_edge.c:73:
./src/core/or/conflux_util.h:13:34: warning: redefinition of typedef 'edge_connection_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct edge_connection_t edge_connection_t;
^
./src/core/or/or.h:606:34: note: previous definition is here
typedef struct edge_connection_t edge_connection_t;
^
In file included from src/core/or/connection_edge.c:73:
./src/core/or/conflux_util.h:14:29: warning: redefinition of typedef 'crypt_path_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct crypt_path_t crypt_path_t;
^
./src/core/or/or.h:809:29: note: previous definition is here
typedef struct crypt_path_t crypt_path_t;
^
In file included from src/core/or/connection_edge.c:73:
./src/core/or/conflux_util.h:15:33: warning: redefinition of typedef 'origin_circuit_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct origin_circuit_t origin_circuit_t;
^
./src/core/or/or.h:832:33: note: previous definition is here
typedef struct origin_circuit_t origin_circuit_t;
^
3 warnings generated.
In file included from src/core/or/relay.c:103:
./src/core/or/conflux_util.h:13:34: warning: redefinition of typedef 'edge_connection_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct edge_connection_t edge_connection_t;
^
./src/core/or/or.h:606:34: note: previous definition is here
typedef struct edge_connection_t edge_connection_t;
^
In file included from src/core/or/relay.c:103:
./src/core/or/conflux_util.h:14:29: warning: redefinition of typedef 'crypt_path_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct crypt_path_t crypt_path_t;
^
./src/core/or/or.h:809:29: note: previous definition is here
typedef struct crypt_path_t crypt_path_t;
^
In file included from src/core/or/relay.c:103:
./src/core/or/conflux_util.h:15:33: warning: redefinition of typedef 'origin_circuit_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct origin_circuit_t origin_circuit_t;
^
./src/core/or/or.h:832:33: note: previous definition is here
typedef struct origin_circuit_t origin_circuit_t;
^
In file included from src/core/or/relay.c:103:
./src/core/or/conflux_util.h:16:26: warning: redefinition of typedef 'conflux_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct conflux_t conflux_t;
^
./src/core/or/conflux.h:15:26: note: previous definition is here
typedef struct conflux_t conflux_t;
^
In file included from src/core/or/relay.c:104:
./src/core/or/conflux_pool.h:39:26: warning: redefinition of typedef 'conflux_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct conflux_t conflux_t;
^
./src/core/or/conflux_util.h:16:26: note: previous definition is here
typedef struct conflux_t conflux_t;
^
5 warnings generated.
In file included from src/core/or/congestion_control_common.c:27:
./src/core/or/conflux_util.h:13:34: warning: redefinition of typedef 'edge_connection_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct edge_connection_t edge_connection_t;
^
./src/core/or/or.h:606:34: note: previous definition is here
typedef struct edge_connection_t edge_connection_t;
^
In file included from src/core/or/congestion_control_common.c:27:
./src/core/or/conflux_util.h:14:29: warning: redefinition of typedef 'crypt_path_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct crypt_path_t crypt_path_t;
^
./src/core/or/or.h:809:29: note: previous definition is here
typedef struct crypt_path_t crypt_path_t;
^
In file included from src/core/or/congestion_control_common.c:27:
./src/core/or/conflux_util.h:15:33: warning: redefinition of typedef 'origin_circuit_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct origin_circuit_t origin_circuit_t;
^
./src/core/or/or.h:832:33: note: previous definition is here
typedef struct origin_circuit_t origin_circuit_t;
^
In file included from src/core/or/congestion_control_common.c:27:
./src/core/or/conflux_util.h:16:26: warning: redefinition of typedef 'conflux_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct conflux_t conflux_t;
^
./src/core/or/conflux.h:15:26: note: previous definition is here
typedef struct conflux_t conflux_t;
^
4 warnings generated.
In file included from src/core/or/congestion_control_flow.c:31:
./src/core/or/conflux_util.h:13:34: warning: redefinition of typedef 'edge_connection_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct edge_connection_t edge_connection_t;
^
./src/core/or/or.h:606:34: note: previous definition is here
typedef struct edge_connection_t edge_connection_t;
^
In file included from src/core/or/congestion_control_flow.c:31:
./src/core/or/conflux_util.h:14:29: warning: redefinition of typedef 'crypt_path_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct crypt_path_t crypt_path_t;
^
./src/core/or/or.h:809:29: note: previous definition is here
typedef struct crypt_path_t crypt_path_t;
^
In file included from src/core/or/congestion_control_flow.c:31:
./src/core/or/conflux_util.h:15:33: warning: redefinition of typedef 'origin_circuit_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct origin_circuit_t origin_circuit_t;
^
./src/core/or/or.h:832:33: note: previous definition is here
typedef struct origin_circuit_t origin_circuit_t;
^
3 warnings generated.
In file included from src/core/or/conflux.c:23:
./src/core/or/conflux_util.h:13:34: warning: redefinition of typedef 'edge_connection_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct edge_connection_t edge_connection_t;
^
./src/core/or/or.h:606:34: note: previous definition is here
typedef struct edge_connection_t edge_connection_t;
^
In file included from src/core/or/conflux.c:23:
./src/core/or/conflux_util.h:14:29: warning: redefinition of typedef 'crypt_path_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct crypt_path_t crypt_path_t;
^
./src/core/or/or.h:809:29: note: previous definition is here
typedef struct crypt_path_t crypt_path_t;
^
In file included from src/core/or/conflux.c:23:
./src/core/or/conflux_util.h:15:33: warning: redefinition of typedef 'origin_circuit_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct origin_circuit_t origin_circuit_t;
^
./src/core/or/or.h:832:33: note: previous definition is here
typedef struct origin_circuit_t origin_circuit_t;
^
In file included from src/core/or/conflux.c:23:
./src/core/or/conflux_util.h:16:26: warning: redefinition of typedef 'conflux_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct conflux_t conflux_t;
^
./src/core/or/conflux.h:15:26: note: previous definition is here
typedef struct conflux_t conflux_t;
^
In file included from src/core/or/conflux.c:24:
./src/core/or/conflux_pool.h:39:26: warning: redefinition of typedef 'conflux_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct conflux_t conflux_t;
^
./src/core/or/conflux_util.h:16:26: note: previous definition is here
typedef struct conflux_t conflux_t;
^
5 warnings generated.
In file included from src/core/or/conflux_pool.c:25:
./src/core/or/conflux_pool.h:39:26: warning: redefinition of typedef 'conflux_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct conflux_t conflux_t;
^
./src/core/or/conflux.h:15:26: note: previous definition is here
typedef struct conflux_t conflux_t;
^
In file included from src/core/or/conflux_pool.c:26:
./src/core/or/conflux_util.h:13:34: warning: redefinition of typedef 'edge_connection_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct edge_connection_t edge_connection_t;
^
./src/core/or/or.h:606:34: note: previous definition is here
typedef struct edge_connection_t edge_connection_t;
^
In file included from src/core/or/conflux_pool.c:26:
./src/core/or/conflux_util.h:14:29: warning: redefinition of typedef 'crypt_path_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct crypt_path_t crypt_path_t;
^
./src/core/or/or.h:809:29: note: previous definition is here
typedef struct crypt_path_t crypt_path_t;
^
In file included from src/core/or/conflux_pool.c:26:
./src/core/or/conflux_util.h:15:33: warning: redefinition of typedef 'origin_circuit_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct origin_circuit_t origin_circuit_t;
^
./src/core/or/or.h:832:33: note: previous definition is here
typedef struct origin_circuit_t origin_circuit_t;
^
In file included from src/core/or/conflux_pool.c:26:
./src/core/or/conflux_util.h:16:26: warning: redefinition of typedef 'conflux_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct conflux_t conflux_t;
^
./src/core/or/conflux_pool.h:39:26: note: previous definition is here
typedef struct conflux_t conflux_t;
^
5 warnings generated.
In file included from src/core/or/conflux_util.c:22:
./src/core/or/conflux_util.h:13:34: warning: redefinition of typedef 'edge_connection_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct edge_connection_t edge_connection_t;
^
./src/core/or/or.h:606:34: note: previous definition is here
typedef struct edge_connection_t edge_connection_t;
^
In file included from src/core/or/conflux_util.c:22:
./src/core/or/conflux_util.h:14:29: warning: redefinition of typedef 'crypt_path_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct crypt_path_t crypt_path_t;
^
./src/core/or/or.h:809:29: note: previous definition is here
typedef struct crypt_path_t crypt_path_t;
^
In file included from src/core/or/conflux_util.c:22:
./src/core/or/conflux_util.h:15:33: warning: redefinition of typedef 'origin_circuit_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct origin_circuit_t origin_circuit_t;
^
./src/core/or/or.h:832:33: note: previous definition is here
typedef struct origin_circuit_t origin_circuit_t;
^
In file included from src/core/or/conflux_util.c:22:
./src/core/or/conflux_util.h:16:26: warning: redefinition of typedef 'conflux_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct conflux_t conflux_t;
^
./src/core/or/conflux.h:15:26: note: previous definition is here
typedef struct conflux_t conflux_t;
^
In file included from src/core/or/conflux_util.c:23:
./src/core/or/conflux_pool.h:39:26: warning: redefinition of typedef 'conflux_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct conflux_t conflux_t;
^
./src/core/or/conflux_util.h:16:26: note: previous definition is here
typedef struct conflux_t conflux_t;
^
5 warnings generated.
In file included from src/feature/client/entrynodes.c:156:
./src/core/or/conflux_util.h:13:34: warning: redefinition of typedef 'edge_connection_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct edge_connection_t edge_connection_t;
^
./src/core/or/or.h:606:34: note: previous definition is here
typedef struct edge_connection_t edge_connection_t;
^
In file included from src/feature/client/entrynodes.c:156:
./src/core/or/conflux_util.h:14:29: warning: redefinition of typedef 'crypt_path_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct crypt_path_t crypt_path_t;
^
./src/core/or/or.h:809:29: note: previous definition is here
typedef struct crypt_path_t crypt_path_t;
^
In file included from src/feature/client/entrynodes.c:156:
./src/core/or/conflux_util.h:15:33: warning: redefinition of typedef 'origin_circuit_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct origin_circuit_t origin_circuit_t;
^
./src/core/or/or.h:832:33: note: previous definition is here
typedef struct origin_circuit_t origin_circuit_t;
^
In file included from src/feature/client/entrynodes.c:156:
./src/core/or/conflux_util.h:16:26: warning: redefinition of typedef 'conflux_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct conflux_t conflux_t;
^
./src/core/or/conflux_pool.h:39:26: note: previous definition is here
typedef struct conflux_t conflux_t;
^
4 warnings generated.
In file included from src/feature/relay/dns.c:74:
./src/core/or/conflux_util.h:13:34: warning: redefinition of typedef 'edge_connection_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct edge_connection_t edge_connection_t;
^
./src/core/or/or.h:606:34: note: previous definition is here
typedef struct edge_connection_t edge_connection_t;
^
In file included from src/feature/relay/dns.c:74:
./src/core/or/conflux_util.h:14:29: warning: redefinition of typedef 'crypt_path_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct crypt_path_t crypt_path_t;
^
./src/core/or/or.h:809:29: note: previous definition is here
typedef struct crypt_path_t crypt_path_t;
^
In file included from src/feature/relay/dns.c:74:
./src/core/or/conflux_util.h:15:33: warning: redefinition of typedef 'origin_circuit_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct origin_circuit_t origin_circuit_t;
^
./src/core/or/or.h:832:33: note: previous definition is here
typedef struct origin_circuit_t origin_circuit_t;
^
3 warnings generated.
src/lib/wallclock/tor_gettimeofday.c:50:7: warning: unused variable 'mypatch' [-Wunused-variable]
int mypatch = clock_gettime(CLOCK_REALTIME_FAST, &ts);
^
1 warning generated.
In file included from src/test/fakecircs.c:22:
./src/core/or/conflux.h:15:26: warning: redefinition of typedef 'conflux_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct conflux_t conflux_t;
^
./src/core/or/conflux_pool.h:39:26: note: previous definition is here
typedef struct conflux_t conflux_t;
^
1 warning generated.
In file included from src/test/test_conflux_pool.c:53:
./src/core/or/conflux_util.h:13:34: warning: redefinition of typedef 'edge_connection_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct edge_connection_t edge_connection_t;
^
./src/core/or/or.h:606:34: note: previous definition is here
typedef struct edge_connection_t edge_connection_t;
^
In file included from src/test/test_conflux_pool.c:53:
./src/core/or/conflux_util.h:14:29: warning: redefinition of typedef 'crypt_path_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct crypt_path_t crypt_path_t;
^
./src/core/or/or.h:809:29: note: previous definition is here
typedef struct crypt_path_t crypt_path_t;
^
In file included from src/test/test_conflux_pool.c:53:
./src/core/or/conflux_util.h:15:33: warning: redefinition of typedef 'origin_circuit_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct origin_circuit_t origin_circuit_t;
^
./src/core/or/or.h:832:33: note: previous definition is here
typedef struct origin_circuit_t origin_circuit_t;
^
In file included from src/test/test_conflux_pool.c:53:
./src/core/or/conflux_util.h:16:26: warning: redefinition of typedef 'conflux_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct conflux_t conflux_t;
^
./src/core/or/conflux_pool.h:39:26: note: previous definition is here
typedef struct conflux_t conflux_t;
^
In file included from src/test/test_conflux_pool.c:55:
./src/core/or/conflux.h:15:26: warning: redefinition of typedef 'conflux_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct conflux_t conflux_t;
^
./src/core/or/conflux_util.h:16:26: note: previous definition is here
typedef struct conflux_t conflux_t;
^
5 warnings generated.
In file included from src/core/or/circuitlist.c:66:
./src/core/or/conflux_pool.h:39:26: warning: redefinition of typedef 'conflux_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct conflux_t conflux_t;
^
./src/core/or/conflux.h:15:26: note: previous definition is here
typedef struct conflux_t conflux_t;
^
In file included from src/core/or/circuitlist.c:123:
./src/core/or/conflux_util.h:13:34: warning: redefinition of typedef 'edge_connection_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct edge_connection_t edge_connection_t;
^
./src/core/or/or.h:606:34: note: previous definition is here
typedef struct edge_connection_t edge_connection_t;
^
In file included from src/core/or/circuitlist.c:123:
./src/core/or/conflux_util.h:14:29: warning: redefinition of typedef 'crypt_path_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct crypt_path_t crypt_path_t;
^
./src/core/or/or.h:809:29: note: previous definition is here
typedef struct crypt_path_t crypt_path_t;
^
In file included from src/core/or/circuitlist.c:123:
./src/core/or/conflux_util.h:15:33: warning: redefinition of typedef 'origin_circuit_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct origin_circuit_t origin_circuit_t;
^
./src/core/or/or.h:832:33: note: previous definition is here
typedef struct origin_circuit_t origin_circuit_t;
^
In file included from src/core/or/circuitlist.c:123:
./src/core/or/conflux_util.h:16:26: warning: redefinition of typedef 'conflux_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct conflux_t conflux_t;
^
./src/core/or/conflux_pool.h:39:26: note: previous definition is here
typedef struct conflux_t conflux_t;
^
5 warnings generated.
In file included from src/core/or/circuitpadding.c:81:
./src/core/or/conflux_util.h:13:34: warning: redefinition of typedef 'edge_connection_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct edge_connection_t edge_connection_t;
^
./src/core/or/or.h:606:34: note: previous definition is here
typedef struct edge_connection_t edge_connection_t;
^
In file included from src/core/or/circuitpadding.c:81:
./src/core/or/conflux_util.h:14:29: warning: redefinition of typedef 'crypt_path_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct crypt_path_t crypt_path_t;
^
./src/core/or/or.h:809:29: note: previous definition is here
typedef struct crypt_path_t crypt_path_t;
^
In file included from src/core/or/circuitpadding.c:81:
./src/core/or/conflux_util.h:15:33: warning: redefinition of typedef 'origin_circuit_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct origin_circuit_t origin_circuit_t;
^
./src/core/or/or.h:832:33: note: previous definition is here
typedef struct origin_circuit_t origin_circuit_t;
^
3 warnings generated.
In file included from src/core/or/circuituse.c:68:
./src/core/or/conflux.h:15:26: warning: redefinition of typedef 'conflux_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct conflux_t conflux_t;
^
./src/core/or/conflux_pool.h:39:26: note: previous definition is here
typedef struct conflux_t conflux_t;
^
In file included from src/core/or/circuituse.c:78:
./src/core/or/conflux_util.h:13:34: warning: redefinition of typedef 'edge_connection_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct edge_connection_t edge_connection_t;
^
./src/core/or/or.h:606:34: note: previous definition is here
typedef struct edge_connection_t edge_connection_t;
^
In file included from src/core/or/circuituse.c:78:
./src/core/or/conflux_util.h:14:29: warning: redefinition of typedef 'crypt_path_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct crypt_path_t crypt_path_t;
^
./src/core/or/or.h:809:29: note: previous definition is here
typedef struct crypt_path_t crypt_path_t;
^
In file included from src/core/or/circuituse.c:78:
./src/core/or/conflux_util.h:15:33: warning: redefinition of typedef 'origin_circuit_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct origin_circuit_t origin_circuit_t;
^
./src/core/or/or.h:832:33: note: previous definition is here
typedef struct origin_circuit_t origin_circuit_t;
^
In file included from src/core/or/circuituse.c:78:
./src/core/or/conflux_util.h:16:26: warning: redefinition of typedef 'conflux_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct conflux_t conflux_t;
^
./src/core/or/conflux.h:15:26: note: previous definition is here
typedef struct conflux_t conflux_t;
^
5 warnings generated.
In file included from src/core/or/connection_edge.c:73:
./src/core/or/conflux_util.h:13:34: warning: redefinition of typedef 'edge_connection_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct edge_connection_t edge_connection_t;
^
./src/core/or/or.h:606:34: note: previous definition is here
typedef struct edge_connection_t edge_connection_t;
^
In file included from src/core/or/connection_edge.c:73:
./src/core/or/conflux_util.h:14:29: warning: redefinition of typedef 'crypt_path_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct crypt_path_t crypt_path_t;
^
./src/core/or/or.h:809:29: note: previous definition is here
typedef struct crypt_path_t crypt_path_t;
^
In file included from src/core/or/connection_edge.c:73:
./src/core/or/conflux_util.h:15:33: warning: redefinition of typedef 'origin_circuit_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct origin_circuit_t origin_circuit_t;
^
./src/core/or/or.h:832:33: note: previous definition is here
typedef struct origin_circuit_t origin_circuit_t;
^
3 warnings generated.
In file included from src/core/or/relay.c:103:
./src/core/or/conflux_util.h:13:34: warning: redefinition of typedef 'edge_connection_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct edge_connection_t edge_connection_t;
^
./src/core/or/or.h:606:34: note: previous definition is here
typedef struct edge_connection_t edge_connection_t;
^
In file included from src/core/or/relay.c:103:
./src/core/or/conflux_util.h:14:29: warning: redefinition of typedef 'crypt_path_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct crypt_path_t crypt_path_t;
^
./src/core/or/or.h:809:29: note: previous definition is here
typedef struct crypt_path_t crypt_path_t;
^
In file included from src/core/or/relay.c:103:
./src/core/or/conflux_util.h:15:33: warning: redefinition of typedef 'origin_circuit_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct origin_circuit_t origin_circuit_t;
^
./src/core/or/or.h:832:33: note: previous definition is here
typedef struct origin_circuit_t origin_circuit_t;
^
In file included from src/core/or/relay.c:103:
./src/core/or/conflux_util.h:16:26: warning: redefinition of typedef 'conflux_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct conflux_t conflux_t;
^
./src/core/or/conflux.h:15:26: note: previous definition is here
typedef struct conflux_t conflux_t;
^
In file included from src/core/or/relay.c:104:
./src/core/or/conflux_pool.h:39:26: warning: redefinition of typedef 'conflux_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct conflux_t conflux_t;
^
./src/core/or/conflux_util.h:16:26: note: previous definition is here
typedef struct conflux_t conflux_t;
^
5 warnings generated.
In file included from src/core/or/congestion_control_common.c:27:
./src/core/or/conflux_util.h:13:34: warning: redefinition of typedef 'edge_connection_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct edge_connection_t edge_connection_t;
^
./src/core/or/or.h:606:34: note: previous definition is here
typedef struct edge_connection_t edge_connection_t;
^
In file included from src/core/or/congestion_control_common.c:27:
./src/core/or/conflux_util.h:14:29: warning: redefinition of typedef 'crypt_path_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct crypt_path_t crypt_path_t;
^
./src/core/or/or.h:809:29: note: previous definition is here
typedef struct crypt_path_t crypt_path_t;
^
In file included from src/core/or/congestion_control_common.c:27:
./src/core/or/conflux_util.h:15:33: warning: redefinition of typedef 'origin_circuit_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct origin_circuit_t origin_circuit_t;
^
./src/core/or/or.h:832:33: note: previous definition is here
typedef struct origin_circuit_t origin_circuit_t;
^
In file included from src/core/or/congestion_control_common.c:27:
./src/core/or/conflux_util.h:16:26: warning: redefinition of typedef 'conflux_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct conflux_t conflux_t;
^
./src/core/or/conflux.h:15:26: note: previous definition is here
typedef struct conflux_t conflux_t;
^
4 warnings generated.
In file included from src/core/or/congestion_control_flow.c:31:
./src/core/or/conflux_util.h:13:34: warning: redefinition of typedef 'edge_connection_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct edge_connection_t edge_connection_t;
^
./src/core/or/or.h:606:34: note: previous definition is here
typedef struct edge_connection_t edge_connection_t;
^
In file included from src/core/or/congestion_control_flow.c:31:
./src/core/or/conflux_util.h:14:29: warning: redefinition of typedef 'crypt_path_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct crypt_path_t crypt_path_t;
^
./src/core/or/or.h:809:29: note: previous definition is here
typedef struct crypt_path_t crypt_path_t;
^
In file included from src/core/or/congestion_control_flow.c:31:
./src/core/or/conflux_util.h:15:33: warning: redefinition of typedef 'origin_circuit_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct origin_circuit_t origin_circuit_t;
^
./src/core/or/or.h:832:33: note: previous definition is here
typedef struct origin_circuit_t origin_circuit_t;
^
3 warnings generated.
In file included from src/core/or/conflux.c:23:
./src/core/or/conflux_util.h:13:34: warning: redefinition of typedef 'edge_connection_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct edge_connection_t edge_connection_t;
^
./src/core/or/or.h:606:34: note: previous definition is here
typedef struct edge_connection_t edge_connection_t;
^
In file included from src/core/or/conflux.c:23:
./src/core/or/conflux_util.h:14:29: warning: redefinition of typedef 'crypt_path_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct crypt_path_t crypt_path_t;
^
./src/core/or/or.h:809:29: note: previous definition is here
typedef struct crypt_path_t crypt_path_t;
^
In file included from src/core/or/conflux.c:23:
./src/core/or/conflux_util.h:15:33: warning: redefinition of typedef 'origin_circuit_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct origin_circuit_t origin_circuit_t;
^
./src/core/or/or.h:832:33: note: previous definition is here
typedef struct origin_circuit_t origin_circuit_t;
^
In file included from src/core/or/conflux.c:23:
./src/core/or/conflux_util.h:16:26: warning: redefinition of typedef 'conflux_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct conflux_t conflux_t;
^
./src/core/or/conflux.h:15:26: note: previous definition is here
typedef struct conflux_t conflux_t;
^
In file included from src/core/or/conflux.c:24:
./src/core/or/conflux_pool.h:39:26: warning: redefinition of typedef 'conflux_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct conflux_t conflux_t;
^
./src/core/or/conflux_util.h:16:26: note: previous definition is here
typedef struct conflux_t conflux_t;
^
5 warnings generated.
In file included from src/core/or/conflux_pool.c:25:
./src/core/or/conflux_pool.h:39:26: warning: redefinition of typedef 'conflux_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct conflux_t conflux_t;
^
./src/core/or/conflux.h:15:26: note: previous definition is here
typedef struct conflux_t conflux_t;
^
In file included from src/core/or/conflux_pool.c:26:
./src/core/or/conflux_util.h:13:34: warning: redefinition of typedef 'edge_connection_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct edge_connection_t edge_connection_t;
^
./src/core/or/or.h:606:34: note: previous definition is here
typedef struct edge_connection_t edge_connection_t;
^
In file included from src/core/or/conflux_pool.c:26:
./src/core/or/conflux_util.h:14:29: warning: redefinition of typedef 'crypt_path_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct crypt_path_t crypt_path_t;
^
./src/core/or/or.h:809:29: note: previous definition is here
typedef struct crypt_path_t crypt_path_t;
^
In file included from src/core/or/conflux_pool.c:26:
./src/core/or/conflux_util.h:15:33: warning: redefinition of typedef 'origin_circuit_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct origin_circuit_t origin_circuit_t;
^
./src/core/or/or.h:832:33: note: previous definition is here
typedef struct origin_circuit_t origin_circuit_t;
^
In file included from src/core/or/conflux_pool.c:26:
./src/core/or/conflux_util.h:16:26: warning: redefinition of typedef 'conflux_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct conflux_t conflux_t;
^
./src/core/or/conflux_pool.h:39:26: note: previous definition is here
typedef struct conflux_t conflux_t;
^
5 warnings generated.
In file included from src/core/or/conflux_util.c:22:
./src/core/or/conflux_util.h:13:34: warning: redefinition of typedef 'edge_connection_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct edge_connection_t edge_connection_t;
^
./src/core/or/or.h:606:34: note: previous definition is here
typedef struct edge_connection_t edge_connection_t;
^
In file included from src/core/or/conflux_util.c:22:
./src/core/or/conflux_util.h:14:29: warning: redefinition of typedef 'crypt_path_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct crypt_path_t crypt_path_t;
^
./src/core/or/or.h:809:29: note: previous definition is here
typedef struct crypt_path_t crypt_path_t;
^
In file included from src/core/or/conflux_util.c:22:
./src/core/or/conflux_util.h:15:33: warning: redefinition of typedef 'origin_circuit_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct origin_circuit_t origin_circuit_t;
^
./src/core/or/or.h:832:33: note: previous definition is here
typedef struct origin_circuit_t origin_circuit_t;
^
In file included from src/core/or/conflux_util.c:22:
./src/core/or/conflux_util.h:16:26: warning: redefinition of typedef 'conflux_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct conflux_t conflux_t;
^
./src/core/or/conflux.h:15:26: note: previous definition is here
typedef struct conflux_t conflux_t;
^
In file included from src/core/or/conflux_util.c:23:
./src/core/or/conflux_pool.h:39:26: warning: redefinition of typedef 'conflux_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct conflux_t conflux_t;
^
./src/core/or/conflux_util.h:16:26: note: previous definition is here
typedef struct conflux_t conflux_t;
^
5 warnings generated.
In file included from src/feature/client/entrynodes.c:156:
./src/core/or/conflux_util.h:13:34: warning: redefinition of typedef 'edge_connection_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct edge_connection_t edge_connection_t;
^
./src/core/or/or.h:606:34: note: previous definition is here
typedef struct edge_connection_t edge_connection_t;
^
In file included from src/feature/client/entrynodes.c:156:
./src/core/or/conflux_util.h:14:29: warning: redefinition of typedef 'crypt_path_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct crypt_path_t crypt_path_t;
^
./src/core/or/or.h:809:29: note: previous definition is here
typedef struct crypt_path_t crypt_path_t;
^
In file included from src/feature/client/entrynodes.c:156:
./src/core/or/conflux_util.h:15:33: warning: redefinition of typedef 'origin_circuit_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct origin_circuit_t origin_circuit_t;
^
./src/core/or/or.h:832:33: note: previous definition is here
typedef struct origin_circuit_t origin_circuit_t;
^
In file included from src/feature/client/entrynodes.c:156:
./src/core/or/conflux_util.h:16:26: warning: redefinition of typedef 'conflux_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct conflux_t conflux_t;
^
./src/core/or/conflux_pool.h:39:26: note: previous definition is here
typedef struct conflux_t conflux_t;
^
4 warnings generated.
In file included from src/feature/relay/dns.c:74:
./src/core/or/conflux_util.h:13:34: warning: redefinition of typedef 'edge_connection_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct edge_connection_t edge_connection_t;
^
./src/core/or/or.h:606:34: note: previous definition is here
typedef struct edge_connection_t edge_connection_t;
^
In file included from src/feature/relay/dns.c:74:
./src/core/or/conflux_util.h:14:29: warning: redefinition of typedef 'crypt_path_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct crypt_path_t crypt_path_t;
^
./src/core/or/or.h:809:29: note: previous definition is here
typedef struct crypt_path_t crypt_path_t;
^
In file included from src/feature/relay/dns.c:74:
./src/core/or/conflux_util.h:15:33: warning: redefinition of typedef 'origin_circuit_t' is a C11 feature [-Wtypedef-redefinition]
typedef struct origin_circuit_t origin_circuit_t;
^
./src/core/or/or.h:832:33: note: previous definition is here
typedef struct origin_circuit_t origin_circuit_t;
^
3 warnings generated.
In file included from src/ext/equix/hashx/src/compiler.c:9:
./src/ext/equix/hashx/src/context.h:24:30: warning: redefinition of typedef 'hashx_program' is a C11 feature [-Wtypedef-redefinition]
typedef struct hashx_program hashx_program;
^
./src/ext/equix/hashx/src/program.h:32:3: note: previous definition is here
} hashx_program;
^
In file included from src/ext/equix/hashx/src/compiler.c:9:
./src/ext/equix/hashx/src/context.h:37:3: warning: redefinition of typedef 'hashx_ctx' is a C11 feature [-Wtypedef-redefinition]
} hashx_ctx;
^
./src/ext/equix/hashx/include/hashx.h:58:26: note: previous definition is here
typedef struct hashx_ctx hashx_ctx;
^
2 warnings generated.
In file included from src/ext/equix/hashx/src/context.c:8:
./src/ext/equix/hashx/src/context.h:24:30: warning: redefinition of typedef 'hashx_program' is a C11 feature [-Wtypedef-redefinition]
typedef struct hashx_program hashx_program;
^
./src/ext/equix/hashx/src/program.h:32:3: note: previous definition is here
} hashx_program;
^
In file included from src/ext/equix/hashx/src/context.c:8:
./src/ext/equix/hashx/src/context.h:37:3: warning: redefinition of typedef 'hashx_ctx' is a C11 feature [-Wtypedef-redefinition]
} hashx_ctx;
^
./src/ext/equix/hashx/include/hashx.h:58:26: note: previous definition is here
typedef struct hashx_ctx hashx_ctx;
^
2 warnings generated.
In file included from src/ext/equix/hashx/src/hashx.c:12:
./src/ext/equix/hashx/src/context.h:24:30: warning: redefinition of typedef 'hashx_program' is a C11 feature [-Wtypedef-redefinition]
typedef struct hashx_program hashx_program;
^
./src/ext/equix/hashx/src/program.h:32:3: note: previous definition is here
} hashx_program;
^
In file included from src/ext/equix/hashx/src/hashx.c:12:
./src/ext/equix/hashx/src/context.h:37:3: warning: redefinition of typedef 'hashx_ctx' is a C11 feature [-Wtypedef-redefinition]
} hashx_ctx;
^
./src/ext/equix/hashx/include/hashx.h:58:26: note: previous definition is here
typedef struct hashx_ctx hashx_ctx;
^
2 warnings generated.
In file included from src/ext/equix/src/context.c:7:
./src/ext/equix/src/context.h:16:3: warning: redefinition of typedef 'equix_ctx' is a C11 feature [-Wtypedef-redefinition]
} equix_ctx;
^
./src/ext/equix/include/equix.h:67:26: note: previous definition is here
typedef struct equix_ctx equix_ctx;
^
In file included from src/ext/equix/src/context.c:8:
./src/ext/equix/src/solver_heap.h:106:3: warning: redefinition of typedef 'solver_heap' is a C11 feature [-Wtypedef-redefinition]
} solver_heap; /* TOTAL: 1 897 088 bytes */
^
./src/ext/equix/src/context.h:10:28: note: previous definition is here
typedef struct solver_heap solver_heap;
^
2 warnings generated.
In file included from src/ext/equix/src/equix.c:11:
./src/ext/equix/src/context.h:16:3: warning: redefinition of typedef 'equix_ctx' is a C11 feature [-Wtypedef-redefinition]
} equix_ctx;
^
./src/ext/equix/include/equix.h:67:26: note: previous definition is here
typedef struct equix_ctx equix_ctx;
^
1 warning generated.
In file included from src/ext/equix/src/solver.c:4:
In file included from ./src/ext/equix/src/solver.h:10:
./src/ext/equix/src/context.h:16:3: warning: redefinition of typedef 'equix_ctx' is a C11 feature [-Wtypedef-redefinition]
} equix_ctx;
^
./src/ext/equix/include/equix.h:67:26: note: previous definition is here
typedef struct equix_ctx equix_ctx;
^
In file included from src/ext/equix/src/solver.c:6:
./src/ext/equix/src/solver_heap.h:106:3: warning: redefinition of typedef 'solver_heap' is a C11 feature [-Wtypedef-redefinition]
} solver_heap; /* TOTAL: 1 897 088 bytes */
^
./src/ext/equix/src/context.h:10:28: note: previous definition is here
typedef struct solver_heap solver_heap;
^
2 warnings generated.
src/lib/wallclock/tor_gettimeofday.c:50:7: warning: unused variable 'mypatch' [-Wunused-variable]
int mypatch = clock_gettime(CLOCK_REALTIME_FAST, &ts);
^
1 warning generated.
Not sure if the issues have already been reported or solved. Thanks for looking at it.