gnunet-developers
[Top][All Lists]
Advanced

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

Re: Debian 10 build warnings, wiki enhancements, Questions


From: Schanzenbach, Martin
Subject: Re: Debian 10 build warnings, wiki enhancements, Questions
Date: Thu, 12 Dec 2019 11:45:51 +0100


> On 12. Dec 2019, at 10:29, bo0od <address@hidden> wrote:
> 
> Debian 10 build warnings:
> 
> i tried to build GNUnet on debian 10, and i got some warnings (i dont know if 
> they are bad or not but thought about sharing that with you):
> 
> ### Compile and Install
> 
> 
> $ make -j$(nproc || echo -n 1)
> 
> 
> 
> digestauth.c:483:9: warning: ‘strncpy’ specified bound depends on the length 
> of the source argument [-Wstringop-overflow=]
>         strncpy (dest,
>         ^~~~~~~~~~~~~~
>                  q1,
>                  ~~~
>                  size);
>                  ~~~~~
> digestauth.c:479:15: note: length computed here
>         len = strlen (q1) + 1;
>               ^~~~~~~~~~~
> mv -f .deps/libmicrohttpd_la-postprocessor.Tpo 
> .deps/libmicrohttpd_la-postprocessor.Plo
> /bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. 
> -I../..  -I../../src/include -I../../src/microhttpd -I/usr/include/p11-kit-1 
> -DBUILDING_MHD_LIB=1  -fvisibility=hidden -pthread -I/usr/include/p11-kit-1 
> -g -O2 -fno-strict-aliasing -MT libmicrohttpd_la-md5.lo -MD -MP -MF 
> .deps/libmicrohttpd_la-md5.Tpo -c -o libmicrohttpd_la-md5.lo `test -f 'md5.c' 
> || echo './'`md5.c
> 
> 
> ### Option 1: GNUnet for testing / usage
> 
> $ make -j$(nproc || echo -n 1)
> 
> 
> 
> oidc_helper.c:286:1: warning: ‘url_decode’ defined but not used 
> [-Wunused-function]
> url_decode (const char *str)
> ^~~~~~~~~~
> 
> 
> $ sudo make install
> 
> 
> libtool: warning: relinking 'libgnunetscalarproduct.la'
> 
> libtool: warning: relinking 'libgnunetrevocation.la'
> 
> libtool: warning: relinking 'libgnunet_plugin_block_revocation.la'
> 
> libtool: warning: relinking 'libgnunetvpn.la'
> 
> libtool: warning: relinking 'libgnunetgns.la'
> 
> libtool: warning: relinking 'libgnunet_plugin_block_gns.la'
> 
> libtool: warning: relinking 'libgnunet_plugin_gnsrecord_gns.la'
> 
> libtool: warning: relinking 'libgnunet_plugin_rest_gns.la'
> 
> libtool: warning: relinking 'libgnunetmicrophone.la'
> 
> libtool: warning: relinking 'libgnunetspeaker.la'
> 
> libtool: warning: relinking 'libgnunetconversation.la'
> 
> libtool: warning: relinking 'libgnunet_plugin_gnsrecord_conversation.la'
> 
> libtool: warning: relinking 'libgnunetfs.la'
> 
> libtool: warning: relinking 'libgnunet_plugin_block_fs.la'
> 
> libtool: warning: relinking 'libgnunetsecretsharing.la'
> 
> libtool: warning: relinking 'libgnunetreclaimattribute.la'
> 
> libtool: warning: relinking 'libgnunet_plugin_reclaim_attribute_gnuid.la'
> 
> libtool: warning: relinking 'libgnunetreclaim.la'
> 
> libtool: warning: relinking 'libgnunet_plugin_gnsrecord_reclaim.la'
> 
> libtool: warning: relinking 'libgnunet_plugin_rest_openid_connect.la'
> 
> libtool: warning: relinking 'libgnunet_plugin_rest_reclaim.la'
> 
> 
> ### In Addition: gnunet-gtk
> 
> user@host:~/gnunet_installation/gnunet-gtk$ make -j$(nproc || echo -n 1)
> 
> make: *** No targets specified and no makefile found.  Stop.
> 
> ----------------------------------------------------------
> 
> Wiki Enhancements:
> 
> - Section "Requirements" instead of adding / / / for each new packages 
> section , why not adding all of them into single shot like this:
> 
> sudo apt install git libtool autoconf autopoint build-essential libgcrypt-dev 
> libidn11-dev zlib1g-dev libunistring-dev libglpk-dev miniupnpc 
> libextractor-dev libjansson-dev libcurl4-gnutls-dev gnutls-bin libsqlite3-dev 
> openssl libnss3-tools libopus-dev libpulse-dev libogg-dev
> 
> - Section "Compile and Install"
> 
> $ sudo apt install libgnutls28-dev <- Why not adding this package to Section 
> "Requirements" ?
> 
> 
> - Section "In Addition: gnunet-gtk"
> 
> $ sudo apt install libgtk-3-dev libgladeui-dev libunique-dev libqrencode-dev 
> $ cd ~/gnunet_installation/gnunet-gtk
> 
> 
> ^^^ Typo mistake, it should be like this:
> 
> $ sudo apt install libgtk-3-dev libgladeui-dev libunique-dev libqrencode-dev
> $ cd ~/gnunet_installation/gnunet-gtk
> 
> ----------------------------------------------------------
> 
> Questions:
> 
> - What do you think about having Appimage for GNUnet to work on every 
> GNU/Linux system without the need to install anything?
> 
> https://appimage.org
> 
> - What do you think about Rust programming language rather than using C?
> 
> https://www.rust-lang.org/

Thanks for the hints!

There is currently ongoing work to re-implement a subsystem of GNUnet in Go 
(GNS) [1].
In theory, due to GNUnet's modular architecture and socket-based messaging 
system, any new GNUnet component/service/tool could be written in Rust or any 
other language for that matter.
It is a lot easier though if the language allows you to re-use libgnunetutil, 
though (both Go and Rust have good C library integration).
No "templates" or the like exist for this (yet), though.

So if you or anybody wants to dive into this as well, then you are welcome to 
try. It is a very interesting aspect for future development.
Currently, bfix is working on the "gnunet-go" stuff [1].

[1] https://git.gnunet.org/gnunet-go.git/

AppImage: Heard about it before; might be worth looking into it.

BR

> 
> 
> ThX!
> 

Attachment: signature.asc
Description: Message signed with OpenPGP


reply via email to

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