Page 1 of 1

error of custom compile filezilla server

Posted: 2022-06-09 07:45
by shenbuzhi
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

Re: error of custom compile filezilla server

Posted: 2022-06-09 13:01
by oibaf
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.

Re: error of custom compile filezilla server

Posted: 2022-07-01 15:20
by oibaf
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