$ make
[ 34%] Building CXX object CMakeFiles/proxy_thr.dir/perf/proxy_thr.cpp.o
[ 34%] Linking CXX executable bin/proxy_thr
[ 34%] Built target proxy_thr
[ 34%] Building CXX object CMakeFiles/benchmark_radix_tree.dir/perf/benchmark_radix_tree.cpp.o
[ 34%] Linking CXX executable bin/benchmark_radix_tree
[ 34%] Built target benchmark_radix_tree
[ 34%] Building C object tests/CMakeFiles/unity.dir/__/external/unity/unity.c.o
[ 35%] Linking C static library ../lib/libunity.a
[ 35%] Built target unity
[ 36%] Building CXX object tests/CMakeFiles/testutil-static.dir/testutil.cpp.o
In file included from /home/esotericwarfare/lokinet/build/libzmq/src/libzmq_external/tests/testutil.cpp:29:
/home/esotericwarfare/lokinet/build/libzmq/src/libzmq_external/tests/testutil.hpp:221:38: error: 'AF_INET' was not declared in this scope
221 | const int af_ = AF_INET,
| ^~~~~~~
/home/esotericwarfare/lokinet/build/libzmq/src/libzmq_external/tests/testutil.hpp:221:38: note: the macro 'AF_INET' had not yet been defined
In file included from /home/esotericwarfare/lokinet/build/libzmq/src/libzmq_external/tests/testutil.cpp:56:
/usr/include/sys/socket.h:224: note: it was later defined here
224 | #define AF_INET 2 /* internetwork: UDP, TCP, etc. */
|
/home/esotericwarfare/lokinet/build/libzmq/src/libzmq_external/tests/testutil.hpp:222:44: error: 'IPPROTO_TCP' was not declared in this scope
222 | const int protocol_ = IPPROTO_TCP);
| ^~~~~~~~~~~
/home/esotericwarfare/lokinet/build/libzmq/src/libzmq_external/tests/testutil.hpp:222:44: note: the macro 'IPPROTO_TCP' had not yet been defined
In file included from /home/esotericwarfare/lokinet/build/libzmq/src/libzmq_external/tests/testutil.cpp:58:
/usr/include/netinet/in.h:45: note: it was later defined here
45 | #define IPPROTO_TCP 6 /* tcp */
|
/home/esotericwarfare/lokinet/build/libzmq/src/libzmq_external/tests/testutil.hpp:232:48: error: 'AF_INET' was not declared in this scope
232 | const int af_ = AF_INET,
| ^~~~~~~
/home/esotericwarfare/lokinet/build/libzmq/src/libzmq_external/tests/testutil.hpp:232:48: note: the macro 'AF_INET' had not yet been defined
/usr/include/sys/socket.h:224: note: it was later defined here
224 | #define AF_INET 2 /* internetwork: UDP, TCP, etc. */
|
/home/esotericwarfare/lokinet/build/libzmq/src/libzmq_external/tests/testutil.hpp:233:54: error: 'IPPROTO_TCP' was not declared in this scope
233 | const int protocol_ = IPPROTO_TCP);
| ^~~~~~~~~~~
/home/esotericwarfare/lokinet/build/libzmq/src/libzmq_external/tests/testutil.hpp:233:54: note: the macro 'IPPROTO_TCP' had not yet been defined
/usr/include/netinet/in.h:45: note: it was later defined here
45 | #define IPPROTO_TCP 6 /* tcp */
|
cc1plus: note: unrecognized command-line option '-Wno-tautological-constant-compare' may have been intended to silence earlier diagnostics
*** Error code 1
Stop.
make[5]: stopped in /usr/home/esotericwarfare/lokinet/build/libzmq/src/libzmq_external-build
*** Error code 1
Stop.
make[4]: stopped in /usr/home/esotericwarfare/lokinet/build/libzmq/src/libzmq_external-build
*** Error code 1
Stop.
make[3]: stopped in /usr/home/esotericwarfare/lokinet/build/libzmq/src/libzmq_external-build
*** Error code 1
Stop.
make[2]: stopped in /usr/home/esotericwarfare/lokinet/build
*** Error code 1
Stop.
make[1]: stopped in /usr/home/esotericwarfare/lokinet/build
*** Error code 1
Stop.
make: stopped in /usr/home/esotericwarfare/lokinet/build
If I change the zlib mirror url in cmakecache.txt gives me this output:
Those errors go away if I build it using this command
but it still fails at 91% with
undefined llarp::sys::service_manager
errorAnd if I tried with gcc and g++ with this command I get this error: