You are not logged in.

#1 2021-12-19 13:30:33

Archytino
Member
Registered: 2021-10-23
Posts: 25

Cannot install libtd-git

Hi, I'm trying to install libtd-git because is a Tok's dependency, but while it is installing I get the following error

In file included from /home/valentino/.cache/paru/clone/libtd-git/src/libtd/td/telegram/Account.cpp:9:
/home/valentino/.cache/paru/clone/libtd-git/src/libtd/td/telegram/ContactsManager.h:1479:50: error: extra qualification ‘td::ContactsManager::’ on member ‘get_chat_administrators_object’ [-fpermissive]
 1479 |   td_api::object_ptr<td_api::chatAdministrators> ContactsManager::get_chat_administrators_object(
      |                                                  ^~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/tdcore.dir/build.make:342: CMakeFiles/tdcore.dir/td/telegram/Account.cpp.o] Errore 1
make[1]: *** [CMakeFiles/Makefile2:463: CMakeFiles/tdcore.dir/all] Errore 2
make: *** [Makefile:146: all] Errore 2
==> ERRORE: Si è verificato un errore in build().
    L'operazione sta per essere interrotta...
errore: compilazione fallita per 'libtd-git-1.7.0.r760.g445183e5-1': 
errore: compilazione fallita per i seguenti pacchetti: libtd-git-1.7.0.r760.g445183e5-1

Someone knows how to solve it?

My computer has 16GB RAM

Offline

#2 2021-12-19 13:52:20

loqs
Member
Registered: 2014-03-06
Posts: 18,987

Re: Cannot install libtd-git

-fpermissive needs to be added to CXXFLAGS to allow the code.

CXXFLAGS+=' -fpermissive'

Please consider reporting the issue to the upstream project.

Offline

#3 2021-12-19 16:46:34

Archytino
Member
Registered: 2021-10-23
Posts: 25

Re: Cannot install libtd-git

loqs wrote:

-fpermissive needs to be added to CXXFLAGS to allow the code.

CXXFLAGS+=' -fpermissive'

Please consider reporting the issue to the upstream project.

Thank you!
So it's an issue that needs to be solved by the project team, right?

Offline

#4 2021-12-19 20:00:44

loqs
Member
Registered: 2014-03-06
Posts: 18,987

Re: Cannot install libtd-git

With -fpermissive added to CXXFLAGS the package built for me.  The project team could change the code so it builds without -fpermissive or adds the option automatically.
Edit:
PKGBUILD has been updated to fix the issue:
https://aur.archlinux.org/cgit/aur.git/ … 29845524a3

Last edited by loqs (2021-12-19 20:39:33)

Offline

Board footer

Powered by FluxBB