error of custom compile filezilla server

Need help with FileZilla Server? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
shenbuzhi
500 Command not understood
Posts: 1
Joined: 2022-06-09 07:08
First name: shenggui
Last name: wang

error of custom compile filezilla server

#1 Post by shenbuzhi » 2022-06-09 07:45

g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../src -I/usr/local/include -fno-exceptions -g -O2 -MT authentication/libfilezilla_common_a-file_based_authenticator.o -MD -MP -MF authentication/.deps/libfilezilla_common_a-file_based_authenticator.Tpo -c -o authentication/libfilezilla_common_a-file_based_authenticator.o `test -f 'authentication/file_based_authenticator.cpp' || echo './'`authentication/file_based_authenticator.cpp
In file included from authentication/../impersonator/client.hpp:10,
from authentication/file_based_authenticator.cpp:7:
authentication/../impersonator/channel.hpp:132:6: error:no declaration matches ‘decltype (((fz::impersonator::caller::response_retriever*)this)->then<T>(declval<void (&)(Vs& ...)>())) fz::impersonator::caller::response_retriever::tie_to(Vs& ...)’
132 | auto caller::response_retriever::tie_to(Vs &... vs) -> decltype(then<T>(std::declval<void(&)(Vs&...)>()))
| ^~~~~~

filezilla server source: FileZilla_Server_1.4.1_src.tar.bz2

gcc version: gcc-12.1.0

Dependent package:
gcc-12.1.0.tar.gz
gmp-6.2.1.tar.xz
gnutls-3.7.6.tar.xz
libfilezilla-0.37.2.tar.bz2
libtasn1-4.9.tar.gz
nettle-3.3.tar.gz
nettle-3.8.tar.gz
pugixml-1.12.tar.gz
wxWidgets-3.1.7.tar.bz2

User avatar
oibaf
Contributor
Posts: 396
Joined: 2021-07-16 21:02
First name: Fabio
Last name: Alemagna

Re: error of custom compile filezilla server

#2 Post by oibaf » 2022-06-09 13:01

Aside from some missing includes, it seems FileZilla Server v1.4.1 has triggered an unexpected behavior in g++12 which doesn't happen with previous versions. Unsure whether it's a bug now or it was a bug then, I've opened a bug report: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105908

That being said, the current development branch doesn't have this issue, and the next nightly build has the missing includes fixed.

If you don't want to work with the nightly for some reasons, attached there's patch for 1.4.1 that should fix compilation.
Attachments
1.4.1.patch
(13.54 KiB) Downloaded 34 times

User avatar
oibaf
Contributor
Posts: 396
Joined: 2021-07-16 21:02
First name: Fabio
Last name: Alemagna

Re: error of custom compile filezilla server

#3 Post by oibaf » 2022-07-01 15:20

It was a bug in gcc indeed, which has been fixed for gcc 12.2: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105908#c4

Post Reply