help-gnunet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Arch GNU/Linux 6.11.4 build error


From: Martin Schanzenbach
Subject: Re: Arch GNU/Linux 6.11.4 build error
Date: Wed, 23 Oct 2024 13:13:15 +0200
User-agent: Evolution 3.52.4 (3.52.4-1.fc40)

Hello,

it seems to me that our quic implementation does not work with recent
API changes in quiche.
We currently do not have version detection logic for quiche so this is
always a problem if you have quiche (and headers) installed but the
version is too new.

We will have to either detect the quiche version in gnunet in future
releases or port to a more recent quiche version.

On your side you can currently only patch the quiche detection logic
out of configure.ac or uninstall quiche.

Best
Martin

On Wed, 2024-10-23 at 10:34 +0000, fusionkeychain wrote:
> Hello everyone, I have encountered build failures in building gnunet
> on my installation of Arch.
> I am running glibc 2.40, the entire system is up to date, including
> make and gcc, not using anything outside of the standard GNU
> toolchain.
> However, I have tested both gnunet 0.22.1 and the older version,
> 0.21.2, and both result in a build error.
> 
> For those who are smarter than me, here is the portion of the build
> log where the error occurs:
> 
> ==> WARNING: Using existing $srcdir/ tree
> configure: WARNING: GnuTLS lacks DANE support; validation using it
> will not be possible
> configure: WARNING: Your version of Python is not supported, you
> might see issues
> In file included from ../../../src/include/platform.h:37,
>                  from gnsrecord_crypto.h:28,
>                  from gnsrecord_pow.c:31:
> ../../../gnunet_private_config.h:26:9: warning: "ENABLE_NLS"
> redefined
>    26 | #define ENABLE_NLS 1
>       |         ^~~~~~~~~~
> In file included from ../../../src/include/gnunet_common.h:85,
>                  from gnsrecord_pow.c:26:
> ../../../src/include/gettext.h:24:9: note: this is the location of
> the previous definition
>    24 | #define ENABLE_NLS 0
>       |         ^~~~~~~~~~
> ../../../gnunet_private_config.h:47:9: warning:
> "GNUNET_EXTRA_LOGGING" redefined
>    47 | #define GNUNET_EXTRA_LOGGING GNUNET_NO
>       |         ^~~~~~~~~~~~~~~~~~~~
> ../../../src/include/gnunet_common.h:156:9: note: this is the
> location of the previous definition
>   156 | #define GNUNET_EXTRA_LOGGING 1
>       |         ^~~~~~~~~~~~~~~~~~~~
> ../../../gnunet_private_config.h:453:9: warning: "HAVE_SYSCONF"
> redefined
>   453 | #define HAVE_SYSCONF 1
>       |         ^~~~~~~~~~~~
> In file included from ../../../src/include/gnunet_util_lib.h:83,
>                  from gnsrecord_pow.c:27:
> ../../../src/include/gnunet_os_lib.h:407:9: note: this is the
> location of the previous definition
>   407 | #define HAVE_SYSCONF 0
>       |         ^~~~~~~~~~~~
> In file included from ../../../src/include/platform.h:37,
>                  from testing_api_topology.c:33:
> ../../../gnunet_private_config.h:26:9: warning: "ENABLE_NLS"
> redefined
>    26 | #define ENABLE_NLS 1
>       |         ^~~~~~~~~~
> In file included from ../../../src/include/gnunet_common.h:85,
>                  from testing_api_topology.c:32:
> ../../../src/include/gettext.h:24:9: note: this is the location of
> the previous definition
>    24 | #define ENABLE_NLS 0
>       |         ^~~~~~~~~~
> ../../../gnunet_private_config.h:47:9: warning:
> "GNUNET_EXTRA_LOGGING" redefined
>    47 | #define GNUNET_EXTRA_LOGGING GNUNET_NO
>       |         ^~~~~~~~~~~~~~~~~~~~
> ../../../src/include/gnunet_common.h:156:9: note: this is the
> location of the previous definition
>   156 | #define GNUNET_EXTRA_LOGGING 1
>       |         ^~~~~~~~~~~~~~~~~~~~
> In file included from ../../../src/include/platform.h:37,
>                  from gnunet-communicator-quic.c:41:
> ../../../gnunet_private_config.h:26:9: warning: "ENABLE_NLS"
> redefined
>    26 | #define ENABLE_NLS 1
>       |         ^~~~~~~~~~
> In file included from ../../../src/include/gnunet_common.h:85,
>                  from gnunet-communicator-quic.c:37:
> ../../../src/include/gettext.h:24:9: note: this is the location of
> the previous definition
>    24 | #define ENABLE_NLS 0
>       |         ^~~~~~~~~~
> ../../../gnunet_private_config.h:47:9: warning:
> "GNUNET_EXTRA_LOGGING" redefined
>    47 | #define GNUNET_EXTRA_LOGGING GNUNET_NO
>       |         ^~~~~~~~~~~~~~~~~~~~
> ../../../src/include/gnunet_common.h:156:9: note: this is the
> location of the previous definition
>   156 | #define GNUNET_EXTRA_LOGGING 1
>       |         ^~~~~~~~~~~~~~~~~~~~
> ../../../gnunet_private_config.h:453:9: warning: "HAVE_SYSCONF"
> redefined
>   453 | #define HAVE_SYSCONF 1
>       |         ^~~~~~~~~~~~
> In file included from ../../../src/include/gnunet_util_lib.h:83,
>                  from gnunet-communicator-quic.c:38:
> ../../../src/include/gnunet_os_lib.h:407:9: note: this is the
> location of the previous definition
>   407 | #define HAVE_SYSCONF 0
>       |         ^~~~~~~~~~~~
> gnunet-communicator-quic.c: In function ‘recv_from_streams’:
> gnunet-communicator-quic.c:320:16: error: too few arguments to
> function ‘quiche_conn_stream_recv’
>   320 |     recv_len = quiche_conn_stream_recv (peer->conn->conn, s,
>       |                ^~~~~~~~~~~~~~~~~~~~~~~
> In file included from gnunet-communicator-quic.c:40:
> /usr/include/quiche.h:386:9: note: declared here
>   386 | ssize_t quiche_conn_stream_recv(quiche_conn *conn, uint64_t
> stream_id,
>       |         ^~~~~~~~~~~~~~~~~~~~~~~
> gnunet-communicator-quic.c: In function ‘mq_send_d’:
> gnunet-communicator-quic.c:650:14: error: too few arguments to
> function ‘quiche_conn_stream_send’
>   650 |   send_len = quiche_conn_stream_send (peer->conn->conn, 4,
> (uint8_t *) msg,
>       |              ^~~~~~~~~~~~~~~~~~~~~~~
> /usr/include/quiche.h:393:9: note: declared here
>   393 | ssize_t quiche_conn_stream_send(quiche_conn *conn, uint64_t
> stream_id,
>       |         ^~~~~~~~~~~~~~~~~~~~~~~
> gnunet-communicator-quic.c: In function ‘sock_read’:
> gnunet-communicator-quic.c:1345:18: warning: passing argument 1 of
> ‘GNUNET_xfree_’ discards ‘const’ qualifier from pointer target type
> [-Wdiscarded-qualifiers]
>  1345 |     GNUNET_free (addr_string);
>       |                  ^~~~~~~~~~~
> ../../../src/include/gnunet_common.h:1461:26: note: in definition of
> macro ‘GNUNET_free’
>  1461 |           GNUNET_xfree_ (ptr, __FILE__, __LINE__); \
>       |                          ^~~
> ../../../src/include/gnunet_common.h:1745:22: note: expected ‘void *’
> but argument is of type ‘const char *’
>  1745 | GNUNET_xfree_ (void *ptr,
>       |                ~~~~~~^~~
> gnunet-communicator-quic.c:1517:18: error: too few arguments to
> function ‘quiche_conn_stream_send’
>  1517 |       send_len = quiche_conn_stream_send (peer->conn->conn,
> STREAMID_BI,
>       |                  ^~~~~~~~~~~~~~~~~~~~~~~
> /usr/include/quiche.h:393:9: note: declared here
>   393 | ssize_t quiche_conn_stream_send(quiche_conn *conn, uint64_t
> stream_id,
>       |         ^~~~~~~~~~~~~~~~~~~~~~~
> gnunet-communicator-quic.c: In function ‘run’:
> gnunet-communicator-quic.c:1727:8: error: too few arguments to
> function ‘GNUNET_TRANSPORT_communicator_connect’
>  1727 |   ch = GNUNET_TRANSPORT_communicator_connect (cfg,
>       |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from gnunet-communicator-quic.c:47:
> ../../../src/include/gnunet_transport_communication_service.h:165:1:
> note: declared here
>   165 | GNUNET_TRANSPORT_communicator_connect (
>       | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> make[4]: *** [Makefile:1716: gnunet-communicator-quic.o] Error 1
> make[3]: *** [Makefile:504: all-recursive] Error 1
> make[2]: *** [Makefile:479: all-recursive] Error 1
> make[1]: *** [Makefile:606: all-recursive] Error 1
> make: *** [Makefile:517: all] Error 2
> ==> ERROR: A failure occurred in build().
>     Aborting...
> error: failed to build 'gnunet-0.22.1-1': 
>     shell-completions ... Skipped
>     shell-completions ... Skipped
> Cloning into 'shell-completions'...
> done.
> warning: zig-completion-git-g8d3db71-1 is up to date -- reinstalling
> error: packages failed to build: gnunet-0.22.1-1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]