Re: base64.h problems with rtorent port

From: Nuno Teixeira <eduardo_at_freebsd.org>
Date: Fri, 27 Dec 2024 12:48:54 UTC
Hello Baptiste,

Yes, this proves that my C skills are awesome :)

Upstream spotted it too, and in fact, base64.h is missing from tarball.
Now I'm waiting on upstream to find the best and fast way to include
missing file so I can test build.

Thanks very much,

Baptiste Daroussin <bapt@freebsd.org> escreveu (sexta, 27/12/2024 à(s)
12:35):

>
>
> 27 décembre 2024 à 13:13 "Nuno Teixeira" <eduardo@freebsd.org
> <eduardo@freebsd.org?to=%22Nuno%20Teixeira%22%20%3Ceduardo%40freebsd.org%3E>>
> a écrit:
>
> Hello,
>
> Looking for help to figure out a base64.h and tinyxml2:
> https://github.com/rakshasa/rtorrent/issues/1353
>
> Any help is welcome, thanks
>
> ```
> --- rpc/xmlrpc_tinyxml2.o ---
> rpc/xmlrpc_tinyxml2.cc:129:35: error: no member named 'decode_base64' in
> namespace 'utils'
>   129 |     return
> torrent::Object(utils::decode_base64(utils::remove_newlines(child_element->ToText()->Value())));
>       |                            ~~~~~~~^
> rpc/xmlrpc_tinyxml2.cc:129:56: error: no member named 'remove_newlines' in
> namespace 'utils'
>   129 |     return
> torrent::Object(utils::decode_base64(utils::remove_newlines(child_element->ToText()->Value())));
>       |                                                 ~~~~~~~^
> --- input/manager.o ---
> 3 warnings generated.
> --- display/window.o ---
> depbase=`echo display/window.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; c++
> -std=c++14 -DHAVE_CONFIG_H -I. -I..   -I. -I.. -isystem /usr/local/include
>  -O2 -pipe -fstack-protector-strong -isystem /usr/local/include
> -fno-strict-aliasing  -isystem /usr/local/include  -DNDEBUG -Wall -pthread
>  -I/usr/local/include -I/usr/local/include -MT display/window.o -MD -MP -MF
> $depbase.Tpo -c -o display/window.o display/window.cc && mv -f $depbase.Tpo
> $depbase.Po
> --- rpc/xmlrpc_tinyxml2.o ---
> 1 warning and 2 errors generated.
> *** [rpc/xmlrpc_tinyxml2.o] Error code 1
> ```
>
> --
> Nuno Teixeira
> FreeBSD UNIX:  <eduardo@FreeBSD.org>   Web:  https://FreeBSD.org
> <https://freebsd.org/>
>
>
> the utils/base64.h you are looking for is part of the rtorrent sources, it
> has nothing to do with include/base64.h
>
> https://github.com/rakshasa/rtorrent/blob/master/src/utils/base64.h
>
> The problem is to figure out why it is not found, not to change its path.
>
> Bapt
>


-- 
Nuno Teixeira
FreeBSD UNIX:  <eduardo@FreeBSD.org>   Web:  https://FreeBSD.org