Trouble compiling FileZilla Server on OpenSuse

Moderator: Project members

Post Reply
Message
Author
CuriousPenguin37
500 Command not understood
Posts: 4
Joined: 2022-02-15 02:00

Trouble compiling FileZilla Server on OpenSuse

#1 Post by CuriousPenguin37 » 2022-02-15 02:14

Hi, all -

As the subject says, I'm trying to compile FileZilla Server on OpenSuse, and it's not behaving...

I can successfully run

Code: Select all

./configure
, but when I run

Code: Select all

make
, I get several errors and the process tanks.

I created a "compile" directory and ran

Code: Select all

../configure
and

Code: Select all

make
from inside it.
I have tried all of the following:

Code: Select all

../configure --with-pugixml=builtin CC=/usr/bin/gcc-11

Code: Select all

../configure --with-pugixml=builtin CC=/usr/bin/gcc-10

Code: Select all

../configure --with-pugixml=builtin CC=/usr/bin/gcc-9

Code: Select all

../configure --with-pugixml=builtin CC=/usr/bin/gcc-8

Code: Select all

../configure --with-pugixml=builtin CC=/usr/bin/clang
But the error is consistent...

Any thoughts or words of wisdom on this? This is one of the first programs I have compiled from source, so it is very possible I'm doing something wrong, or that there's an easy fix... But I haven't been able to figure it out yet!

The errors I'm getting are

Code: Select all

In file included from ../../../src/filezilla/authentication/../serialization/types/../../tcp/binary_address_list.hpp:9:0,
                 from ../../../src/filezilla/authentication/../serialization/types/binary_address_list.hpp:4,
                 from ../../../src/filezilla/authentication/file_based_authenticator.hpp:12,
                 from ../../../src/filezilla/authentication/file_based_authenticator.cpp:4:
../../../src/filezilla/authentication/../serialization/types/../../tcp/../hostaddress.hpp: In constructor ‘constexpr fz::hostaddress::hostaddress(fz::hostaddress::host_t&&, uint16_t)’:
../../../src/filezilla/authentication/../serialization/types/../../tcp/../hostaddress.hpp:96:3: error: call to non-constexpr function ‘std::variant<_Types>::variant(std::variant<_Types>&&) [with _Types = {std::monostate, fz::hostaddress::ip<4, void>, fz::hostaddress::ip<6, void>, fz::hostaddress::unknown_host}]’
  {}
   ^
In file included from ../../../src/filezilla/authentication/../authentication/../authentication/../tvfs.hpp:5:0,
                 from ../../../src/filezilla/authentication/../authentication/../authentication/user.hpp:9,
                 from ../../../src/filezilla/authentication/../authentication/authenticator.hpp:8,
                 from ../../../src/filezilla/authentication/file_based_authenticator.hpp:8,
                 from ../../../src/filezilla/authentication/file_based_authenticator.cpp:4:
/usr/include/c++/7/variant:944:7: note: ‘std::variant<_Types>::variant(std::variant<_Types>&&) [with _Types = {std::monostate, fz::hostaddress::ip<4, void>, fz::hostaddress::ip<6, void>, fz::hostaddress::unknown_host}]’ is not usable as a constexpr function because:
       variant(variant&&)
       ^~~~~~~
/usr/include/c++/7/variant:418:7: note: defaulted constructor calls non-constexpr ‘std::__detail::__variant::_Variant_base<_Types>::_Variant_base(std::__detail::__variant::_Variant_base<_Types>&&) [with _Types = {std::monostate, fz::hostaddress::ip<4, void>, fz::hostaddress::ip<6, void>, fz::hostaddress::unknown_host}]’
       _Variant_base(_Variant_base&& __rhs)
       ^~~~~~~~~~~~~
In file included from ../../../src/filezilla/authentication/../serialization/types/../../tcp/binary_address_list.hpp:9:0,
                 from ../../../src/filezilla/authentication/../serialization/types/binary_address_list.hpp:4,
                 from ../../../src/filezilla/authentication/file_based_authenticator.hpp:12,
                 from ../../../src/filezilla/authentication/file_based_authenticator.cpp:4:
../../../src/filezilla/authentication/../serialization/types/../../tcp/../hostaddress.hpp: In constructor ‘constexpr fz::hostaddress::range<void>::range(fz::hostaddress::range<void>::range_t&&)’:
../../../src/filezilla/authentication/../serialization/types/../../tcp/../hostaddress.hpp:224:24: error: call to non-constexpr function ‘std::variant<_Types>::variant(std::variant<_Types>&&) [with _Types = {std::monostate, fz::hostaddress::range<fz::hostaddress::ip<4, void> >, fz::hostaddress::range<fz::hostaddress::ip<6, void> >}]’
   : range_(std::move(r))
                        ^
In file included from ../../../src/filezilla/authentication/../authentication/../authentication/../tvfs.hpp:5:0,
                 from ../../../src/filezilla/authentication/../authentication/../authentication/user.hpp:9,
                 from ../../../src/filezilla/authentication/../authentication/authenticator.hpp:8,
                 from ../../../src/filezilla/authentication/file_based_authenticator.hpp:8,
                 from ../../../src/filezilla/authentication/file_based_authenticator.cpp:4:
/usr/include/c++/7/variant:944:7: note: ‘std::variant<_Types>::variant(std::variant<_Types>&&) [with _Types = {std::monostate, fz::hostaddress::range<fz::hostaddress::ip<4, void> >, fz::hostaddress::range<fz::hostaddress::ip<6, void> >}]’ is not usable as a constexpr function because:
       variant(variant&&)
       ^~~~~~~
/usr/include/c++/7/variant:418:7: note: defaulted constructor calls non-constexpr ‘std::__detail::__variant::_Variant_base<_Types>::_Variant_base(std::__detail::__variant::_Variant_base<_Types>&&) [with _Types = {std::monostate, fz::hostaddress::range<fz::hostaddress::ip<4, void> >, fz::hostaddress::range<fz::hostaddress::ip<6, void> >}]’
       _Variant_base(_Variant_base&& __rhs)
       ^~~~~~~~~~~~~
make[3]: *** [Makefile:1067: authentication/libfilezilla_common_la-file_based_authenticator.lo] Error 1
Here's the full output of

Code: Select all

../configure --with-pugixml=builtin

Code: Select all

configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/x86_64-suse-linux/bin/ld
checking if the linker (/usr/x86_64-suse-linux/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/x86_64-suse-linux/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/x86_64-suse-linux/bin/ld -m elf_x86_64
checking if the linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for objdump... (cached) objdump
checking for strip... (cached) strip
checking whether g++ supports C++17 features with -std=c++17... yes
checking for whether we need -stdlib=libc++... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libfilezilla >= 0.36.0... yes
checking for CPU word size... 64 bits
checking for wx-config... /usr/bin/wx-config
checking for wxWidgets version >= 3.0.4 (--unicode=yes --universal=no)... yes (version 3.1.1)
checking for wxWidgets static library... no
checking positional printf argument support in wxWidgets... yes
checking GUI support in wxWidgets... yes
checking whether the linker accepts -Wl,--dynamicbase... no
checking whether the linker accepts -Wl,--high-entropy-va... no
checking whether the linker accepts -Wl,--nxcompat... no
checking for cppunit >= 1.13.0... no
checking for makensis... no
checking for dpkg-architecture... no
checking for dpkg-deb... no
checking whether we can build deb packages... no
configure: WARNING: Couldn't find the tools to build a debian package. This functionality will be disabled
checking whether to use windres... no
configure: Using builtin pugixml
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/filezilla/Makefile
config.status: creating src/server/Makefile
config.status: creating src/gui/Makefile
config.status: creating src/tools/Makefile
config.status: creating src/tools/configconverter/Makefile
config.status: creating src/tools/crypt/Makefile
config.status: creating src/tools/impersonator/Makefile
config.status: creating res/Makefile
config.status: creating res/filezilla-server-gui.manifest.xml
config.status: creating res/filezilla-server-gui.version.rc
config.status: creating res/filezilla-server.version.rc
config.status: creating pkg/Makefile
config.status: creating pkg/windows/Makefile
config.status: creating pkg/windows/install.nsi
config.status: creating pkg/unix/Makefile
config.status: creating pkg/unix/control
config.status: creating pkg/mac/Makefile
config.status: creating pkg/mac/Info.plist
config.status: creating pkg/mac/server.dist
config.status: creating demos/Makefile
config.status: creating tests/Makefile
config.status: creating src/config.hpp
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing determine-execobjdir commands
checking Which directory are executables built in... .

And here's the full output of

Code: Select all

make

Code: Select all

Making all in res
make[1]: Entering directory '/home/philip/Desktop/filezilla-server-1.3.0/compile/res'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/philip/Desktop/filezilla-server-1.3.0/compile/res'
Making all in src
make[1]: Entering directory '/home/philip/Desktop/filezilla-server-1.3.0/compile/src'
make  all-recursive
make[2]: Entering directory '/home/philip/Desktop/filezilla-server-1.3.0/compile/src'
Making all in filezilla
make[3]: Entering directory '/home/philip/Desktop/filezilla-server-1.3.0/compile/src/filezilla'
/bin/sh ../../libtool  --tag=CXX   --mode=compile g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../../src/filezilla -I../../src    -I/usr/local/include -I/usr/local/include/p11-kit-1 -fno-exceptions -g -O2 -MT acme/libfilezilla_common_la-cert_info.lo -MD -MP -MF acme/.deps/libfilezilla_common_la-cert_info.Tpo -c -o acme/libfilezilla_common_la-cert_info.lo `test -f 'acme/cert_info.cpp' || echo '../../../src/filezilla/'`acme/cert_info.cpp
libtool: compile:  g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../../src/filezilla -I../../src -I/usr/local/include -I/usr/local/include/p11-kit-1 -fno-exceptions -g -O2 -MT acme/libfilezilla_common_la-cert_info.lo -MD -MP -MF acme/.deps/libfilezilla_common_la-cert_info.Tpo -c ../../../src/filezilla/acme/cert_info.cpp  -fPIC -DPIC -o acme/.libs/libfilezilla_common_la-cert_info.o
libtool: compile:  g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../../src/filezilla -I../../src -I/usr/local/include -I/usr/local/include/p11-kit-1 -fno-exceptions -g -O2 -MT acme/libfilezilla_common_la-cert_info.lo -MD -MP -MF acme/.deps/libfilezilla_common_la-cert_info.Tpo -c ../../../src/filezilla/acme/cert_info.cpp -o acme/libfilezilla_common_la-cert_info.o >/dev/null 2>&1
mv -f acme/.deps/libfilezilla_common_la-cert_info.Tpo acme/.deps/libfilezilla_common_la-cert_info.Plo
/bin/sh ../../libtool  --tag=CXX   --mode=compile g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../../src/filezilla -I../../src    -I/usr/local/include -I/usr/local/include/p11-kit-1 -fno-exceptions -g -O2 -MT acme/libfilezilla_common_la-client.lo -MD -MP -MF acme/.deps/libfilezilla_common_la-client.Tpo -c -o acme/libfilezilla_common_la-client.lo `test -f 'acme/client.cpp' || echo '../../../src/filezilla/'`acme/client.cpp
libtool: compile:  g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../../src/filezilla -I../../src -I/usr/local/include -I/usr/local/include/p11-kit-1 -fno-exceptions -g -O2 -MT acme/libfilezilla_common_la-client.lo -MD -MP -MF acme/.deps/libfilezilla_common_la-client.Tpo -c ../../../src/filezilla/acme/client.cpp  -fPIC -DPIC -o acme/.libs/libfilezilla_common_la-client.o
libtool: compile:  g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../../src/filezilla -I../../src -I/usr/local/include -I/usr/local/include/p11-kit-1 -fno-exceptions -g -O2 -MT acme/libfilezilla_common_la-client.lo -MD -MP -MF acme/.deps/libfilezilla_common_la-client.Tpo -c ../../../src/filezilla/acme/client.cpp -o acme/libfilezilla_common_la-client.o >/dev/null 2>&1
mv -f acme/.deps/libfilezilla_common_la-client.Tpo acme/.deps/libfilezilla_common_la-client.Plo
/bin/sh ../../libtool  --tag=CXX   --mode=compile g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../../src/filezilla -I../../src    -I/usr/local/include -I/usr/local/include/p11-kit-1 -fno-exceptions -g -O2 -MT acme/client/libfilezilla_common_la-challenger.lo -MD -MP -MF acme/client/.deps/libfilezilla_common_la-challenger.Tpo -c -o acme/client/libfilezilla_common_la-challenger.lo `test -f 'acme/client/challenger.cpp' || echo '../../../src/filezilla/'`acme/client/challenger.cpp
libtool: compile:  g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../../src/filezilla -I../../src -I/usr/local/include -I/usr/local/include/p11-kit-1 -fno-exceptions -g -O2 -MT acme/client/libfilezilla_common_la-challenger.lo -MD -MP -MF acme/client/.deps/libfilezilla_common_la-challenger.Tpo -c ../../../src/filezilla/acme/client/challenger.cpp  -fPIC -DPIC -o acme/client/.libs/libfilezilla_common_la-challenger.o
libtool: compile:  g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../../src/filezilla -I../../src -I/usr/local/include -I/usr/local/include/p11-kit-1 -fno-exceptions -g -O2 -MT acme/client/libfilezilla_common_la-challenger.lo -MD -MP -MF acme/client/.deps/libfilezilla_common_la-challenger.Tpo -c ../../../src/filezilla/acme/client/challenger.cpp -o acme/client/libfilezilla_common_la-challenger.o >/dev/null 2>&1
mv -f acme/client/.deps/libfilezilla_common_la-challenger.Tpo acme/client/.deps/libfilezilla_common_la-challenger.Plo
/bin/sh ../../libtool  --tag=CXX   --mode=compile g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../../src/filezilla -I../../src    -I/usr/local/include -I/usr/local/include/p11-kit-1 -fno-exceptions -g -O2 -MT acme/libfilezilla_common_la-daemon.lo -MD -MP -MF acme/.deps/libfilezilla_common_la-daemon.Tpo -c -o acme/libfilezilla_common_la-daemon.lo `test -f 'acme/daemon.cpp' || echo '../../../src/filezilla/'`acme/daemon.cpp
libtool: compile:  g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../../src/filezilla -I../../src -I/usr/local/include -I/usr/local/include/p11-kit-1 -fno-exceptions -g -O2 -MT acme/libfilezilla_common_la-daemon.lo -MD -MP -MF acme/.deps/libfilezilla_common_la-daemon.Tpo -c ../../../src/filezilla/acme/daemon.cpp  -fPIC -DPIC -o acme/.libs/libfilezilla_common_la-daemon.o
libtool: compile:  g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../../src/filezilla -I../../src -I/usr/local/include -I/usr/local/include/p11-kit-1 -fno-exceptions -g -O2 -MT acme/libfilezilla_common_la-daemon.lo -MD -MP -MF acme/.deps/libfilezilla_common_la-daemon.Tpo -c ../../../src/filezilla/acme/daemon.cpp -o acme/libfilezilla_common_la-daemon.o >/dev/null 2>&1
mv -f acme/.deps/libfilezilla_common_la-daemon.Tpo acme/.deps/libfilezilla_common_la-daemon.Plo
/bin/sh ../../libtool  --tag=CXX   --mode=compile g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../../src/filezilla -I../../src    -I/usr/local/include -I/usr/local/include/p11-kit-1 -fno-exceptions -g -O2 -MT authentication/libfilezilla_common_la-authenticator_hub.lo -MD -MP -MF authentication/.deps/libfilezilla_common_la-authenticator_hub.Tpo -c -o authentication/libfilezilla_common_la-authenticator_hub.lo `test -f 'authentication/authenticator_hub.cpp' || echo '../../../src/filezilla/'`authentication/authenticator_hub.cpp
libtool: compile:  g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../../src/filezilla -I../../src -I/usr/local/include -I/usr/local/include/p11-kit-1 -fno-exceptions -g -O2 -MT authentication/libfilezilla_common_la-authenticator_hub.lo -MD -MP -MF authentication/.deps/libfilezilla_common_la-authenticator_hub.Tpo -c ../../../src/filezilla/authentication/authenticator_hub.cpp  -fPIC -DPIC -o authentication/.libs/libfilezilla_common_la-authenticator_hub.o
libtool: compile:  g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../../src/filezilla -I../../src -I/usr/local/include -I/usr/local/include/p11-kit-1 -fno-exceptions -g -O2 -MT authentication/libfilezilla_common_la-authenticator_hub.lo -MD -MP -MF authentication/.deps/libfilezilla_common_la-authenticator_hub.Tpo -c ../../../src/filezilla/authentication/authenticator_hub.cpp -o authentication/libfilezilla_common_la-authenticator_hub.o >/dev/null 2>&1
mv -f authentication/.deps/libfilezilla_common_la-authenticator_hub.Tpo authentication/.deps/libfilezilla_common_la-authenticator_hub.Plo
/bin/sh ../../libtool  --tag=CXX   --mode=compile g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../../src/filezilla -I../../src    -I/usr/local/include -I/usr/local/include/p11-kit-1 -fno-exceptions -g -O2 -MT authentication/libfilezilla_common_la-credentials.lo -MD -MP -MF authentication/.deps/libfilezilla_common_la-credentials.Tpo -c -o authentication/libfilezilla_common_la-credentials.lo `test -f 'authentication/credentials.cpp' || echo '../../../src/filezilla/'`authentication/credentials.cpp
libtool: compile:  g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../../src/filezilla -I../../src -I/usr/local/include -I/usr/local/include/p11-kit-1 -fno-exceptions -g -O2 -MT authentication/libfilezilla_common_la-credentials.lo -MD -MP -MF authentication/.deps/libfilezilla_common_la-credentials.Tpo -c ../../../src/filezilla/authentication/credentials.cpp  -fPIC -DPIC -o authentication/.libs/libfilezilla_common_la-credentials.o
libtool: compile:  g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../../src/filezilla -I../../src -I/usr/local/include -I/usr/local/include/p11-kit-1 -fno-exceptions -g -O2 -MT authentication/libfilezilla_common_la-credentials.lo -MD -MP -MF authentication/.deps/libfilezilla_common_la-credentials.Tpo -c ../../../src/filezilla/authentication/credentials.cpp -o authentication/libfilezilla_common_la-credentials.o >/dev/null 2>&1
mv -f authentication/.deps/libfilezilla_common_la-credentials.Tpo authentication/.deps/libfilezilla_common_la-credentials.Plo
/bin/sh ../../libtool  --tag=CXX   --mode=compile g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../../src/filezilla -I../../src    -I/usr/local/include -I/usr/local/include/p11-kit-1 -fno-exceptions -g -O2 -MT authentication/libfilezilla_common_la-file_based_authenticator.lo -MD -MP -MF authentication/.deps/libfilezilla_common_la-file_based_authenticator.Tpo -c -o authentication/libfilezilla_common_la-file_based_authenticator.lo `test -f 'authentication/file_based_authenticator.cpp' || echo '../../../src/filezilla/'`authentication/file_based_authenticator.cpp
libtool: compile:  g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../../src/filezilla -I../../src -I/usr/local/include -I/usr/local/include/p11-kit-1 -fno-exceptions -g -O2 -MT authentication/libfilezilla_common_la-file_based_authenticator.lo -MD -MP -MF authentication/.deps/libfilezilla_common_la-file_based_authenticator.Tpo -c ../../../src/filezilla/authentication/file_based_authenticator.cpp  -fPIC -DPIC -o authentication/.libs/libfilezilla_common_la-file_based_authenticator.o
In file included from ../../../src/filezilla/authentication/../serialization/types/../../tcp/binary_address_list.hpp:9:0,
                 from ../../../src/filezilla/authentication/../serialization/types/binary_address_list.hpp:4,
                 from ../../../src/filezilla/authentication/file_based_authenticator.hpp:12,
                 from ../../../src/filezilla/authentication/file_based_authenticator.cpp:4:
../../../src/filezilla/authentication/../serialization/types/../../tcp/../hostaddress.hpp: In constructor ‘constexpr fz::hostaddress::hostaddress(fz::hostaddress::host_t&&, uint16_t)’:
../../../src/filezilla/authentication/../serialization/types/../../tcp/../hostaddress.hpp:96:3: error: call to non-constexpr function ‘std::variant<_Types>::variant(std::variant<_Types>&&) [with _Types = {std::monostate, fz::hostaddress::ip<4, void>, fz::hostaddress::ip<6, void>, fz::hostaddress::unknown_host}]’
  {}
   ^
In file included from ../../../src/filezilla/authentication/../authentication/../authentication/../tvfs.hpp:5:0,
                 from ../../../src/filezilla/authentication/../authentication/../authentication/user.hpp:9,
                 from ../../../src/filezilla/authentication/../authentication/authenticator.hpp:8,
                 from ../../../src/filezilla/authentication/file_based_authenticator.hpp:8,
                 from ../../../src/filezilla/authentication/file_based_authenticator.cpp:4:
/usr/include/c++/7/variant:944:7: note: ‘std::variant<_Types>::variant(std::variant<_Types>&&) [with _Types = {std::monostate, fz::hostaddress::ip<4, void>, fz::hostaddress::ip<6, void>, fz::hostaddress::unknown_host}]’ is not usable as a constexpr function because:
       variant(variant&&)
       ^~~~~~~
/usr/include/c++/7/variant:418:7: note: defaulted constructor calls non-constexpr ‘std::__detail::__variant::_Variant_base<_Types>::_Variant_base(std::__detail::__variant::_Variant_base<_Types>&&) [with _Types = {std::monostate, fz::hostaddress::ip<4, void>, fz::hostaddress::ip<6, void>, fz::hostaddress::unknown_host}]’
       _Variant_base(_Variant_base&& __rhs)
       ^~~~~~~~~~~~~
In file included from ../../../src/filezilla/authentication/../serialization/types/../../tcp/binary_address_list.hpp:9:0,
                 from ../../../src/filezilla/authentication/../serialization/types/binary_address_list.hpp:4,
                 from ../../../src/filezilla/authentication/file_based_authenticator.hpp:12,
                 from ../../../src/filezilla/authentication/file_based_authenticator.cpp:4:
../../../src/filezilla/authentication/../serialization/types/../../tcp/../hostaddress.hpp: In constructor ‘constexpr fz::hostaddress::range<void>::range(fz::hostaddress::range<void>::range_t&&)’:
../../../src/filezilla/authentication/../serialization/types/../../tcp/../hostaddress.hpp:224:24: error: call to non-constexpr function ‘std::variant<_Types>::variant(std::variant<_Types>&&) [with _Types = {std::monostate, fz::hostaddress::range<fz::hostaddress::ip<4, void> >, fz::hostaddress::range<fz::hostaddress::ip<6, void> >}]’
   : range_(std::move(r))
                        ^
In file included from ../../../src/filezilla/authentication/../authentication/../authentication/../tvfs.hpp:5:0,
                 from ../../../src/filezilla/authentication/../authentication/../authentication/user.hpp:9,
                 from ../../../src/filezilla/authentication/../authentication/authenticator.hpp:8,
                 from ../../../src/filezilla/authentication/file_based_authenticator.hpp:8,
                 from ../../../src/filezilla/authentication/file_based_authenticator.cpp:4:
/usr/include/c++/7/variant:944:7: note: ‘std::variant<_Types>::variant(std::variant<_Types>&&) [with _Types = {std::monostate, fz::hostaddress::range<fz::hostaddress::ip<4, void> >, fz::hostaddress::range<fz::hostaddress::ip<6, void> >}]’ is not usable as a constexpr function because:
       variant(variant&&)
       ^~~~~~~
/usr/include/c++/7/variant:418:7: note: defaulted constructor calls non-constexpr ‘std::__detail::__variant::_Variant_base<_Types>::_Variant_base(std::__detail::__variant::_Variant_base<_Types>&&) [with _Types = {std::monostate, fz::hostaddress::range<fz::hostaddress::ip<4, void> >, fz::hostaddress::range<fz::hostaddress::ip<6, void> >}]’
       _Variant_base(_Variant_base&& __rhs)
       ^~~~~~~~~~~~~
make[3]: *** [Makefile:1067: authentication/libfilezilla_common_la-file_based_authenticator.lo] Error 1
make[3]: Leaving directory '/home/philip/Desktop/filezilla-server-1.3.0/compile/src/filezilla'
make[2]: *** [Makefile:419: all-recursive] Error 1
make[2]: Leaving directory '/home/philip/Desktop/filezilla-server-1.3.0/compile/src'
make[1]: *** [Makefile:358: all] Error 2
make[1]: Leaving directory '/home/philip/Desktop/filezilla-server-1.3.0/compile/src'
make: *** [Makefile:449: all-recursive] Error 1

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

Re: Trouble compiling FileZilla Server on OpenSuse

#2 Post by oibaf » 2022-02-15 07:05

Which compiler version are you using? I remember there's a g++-8 version which was bugged, but we didn't keep track of it. In any case, please update your compiler to the latest stable version and everything should work fine.

User avatar
botg
Site Admin
Posts: 35563
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Trouble compiling FileZilla Server on OpenSuse

#3 Post by botg » 2022-02-15 09:00

CuriousPenguin37 wrote:
2022-02-15 02:14

Code: Select all

../configure --with-pugixml=builtin CC=/usr/bin/gcc-11
CC is for the C compiler. FileZilla Server is written in C++.

CuriousPenguin37
500 Command not understood
Posts: 4
Joined: 2022-02-15 02:00

Re: Trouble compiling FileZilla Server on OpenSuse

#4 Post by CuriousPenguin37 » 2022-02-15 13:31

Awesome, thanks!!
That got me much closer.
I tried the following three, followed in each case by

Code: Select all

make
and then, as each one failed

Code: Select all

make distclean
These are the three compilers I tried...

Code: Select all

 ../configure --with-pugixml=builtin CXX=/usr/bin/gcc-11

Code: Select all

 ../configure --with-pugixml=builtin CXX=/usr/bin/gcc-10

Code: Select all

 ../configure --with-pugixml=builtin CXX=/usr/bin/gcc-9
And each time I get this error.

Code: Select all

/usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: /usr/lib64/libstdc++.so.6: error adding symbols: DSO missing from command line
What can I do to fix that one?

Thank much!

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

Re: Trouble compiling FileZilla Server on OpenSuse

#5 Post by oibaf » 2022-02-15 14:24

Try with:

Code: Select all

 ../configure --with-pugixml=builtin CXX=/usr/bin/g++-11
If you don't use g++, but gcc, lots of libraries and other things required by the C++ language won't be properly taken into consideration.

CuriousPenguin37
500 Command not understood
Posts: 4
Joined: 2022-02-15 02:00

Re: Trouble compiling FileZilla Server on OpenSuse

#6 Post by CuriousPenguin37 » 2022-02-15 23:42

:D Yeah, that kinda makes sense... Looks like a perfect example of a noob mistake! :D

I ran the command you suggested, but now I get a new error... I also tried g++-8, g++-9, and g++-10, but got an error each time...
Any thoughts or suggestions on this one?
Thanks!

Code: Select all

/usr/bin/g++-11 -std=c++17 -DHAVE_CONFIG_H -I. -I../../../src/gui -I../../src    -I/usr/local/include -I/usr/local/include/p11-kit-1 -I/usr/lib64/wx/include/gtk2-unicode-3.1 -I/usr/include/wx-3.1 -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0 -DWXUSINGDLL -D__WXGTK__ -pthread  -fno-exceptions -g -O2 -MT filezilla_server_gui-sessionlist.o -MD -MP -MF .deps/filezilla_server_gui-sessionlist.Tpo -c -o filezilla_server_gui-sessionlist.o `test -f 'sessionlist.cpp' || echo '../../../src/gui/'`sessionlist.cpp
In file included from ../../../src/gui/sessionlist.cpp:14:
../../../src/gui/sessionlist.cpp: In lambda function:
../../../src/gui/locale.hpp:12:31: error: cannot convert ‘const wxString’ to ‘const wchar_t*’ in assignment
   12 | #define _S(x) wxGetTranslation(wxS(x))
      |               ~~~~~~~~~~~~~~~~^~~~~~~~
      |                               |
      |                               const wxString
../../../src/gui/sessionlist.cpp:149:34: note: in expansion of macro ‘_S’
  149 |                         suffix = _S("B");
      |                                  ^~
../../../src/gui/locale.hpp:12:31: error: cannot convert ‘const wxString’ to ‘const wchar_t*’ in assignment
   12 | #define _S(x) wxGetTranslation(wxS(x))
      |               ~~~~~~~~~~~~~~~~^~~~~~~~
      |                               |
      |                               const wxString
../../../src/gui/sessionlist.cpp:154:34: note: in expansion of macro ‘_S’
  154 |                         suffix = _S("KiB");
      |                                  ^~
../../../src/gui/locale.hpp:12:31: error: cannot convert ‘const wxString’ to ‘const wchar_t*’ in assignment
   12 | #define _S(x) wxGetTranslation(wxS(x))
      |               ~~~~~~~~~~~~~~~~^~~~~~~~
      |                               |
      |                               const wxString
../../../src/gui/sessionlist.cpp:159:34: note: in expansion of macro ‘_S’
  159 |                         suffix = _S("MiB");
      |                                  ^~
../../../src/gui/locale.hpp:12:31: error: cannot convert ‘const wxString’ to ‘const wchar_t*’ in assignment
   12 | #define _S(x) wxGetTranslation(wxS(x))
      |               ~~~~~~~~~~~~~~~~^~~~~~~~
      |                               |
      |                               const wxString
../../../src/gui/sessionlist.cpp:163:34: note: in expansion of macro ‘_S’
  163 |                         suffix = _S("GiB");
      |                                  ^~
make[3]: *** [Makefile:955: filezilla_server_gui-sessionlist.o] Error 1
make[3]: Leaving directory '/home/philip/Desktop/filezilla-server-1.3.0/compile/src/gui'
make[2]: *** [Makefile:419: all-recursive] Error 1
make[2]: Leaving directory '/home/philip/Desktop/filezilla-server-1.3.0/compile/src'
make[1]: *** [Makefile:358: all] Error 2
make[1]: Leaving directory '/home/philip/Desktop/filezilla-server-1.3.0/compile/src'
make: *** [Makefile:449: all-recursive] Error 1

User avatar
boco
Contributor
Posts: 26938
Joined: 2006-05-01 03:28
Location: Germany

Re: Trouble compiling FileZilla Server on OpenSuse

#7 Post by boco » 2022-02-16 01:04

Mod note: I'll move this topic to the Development forum, as that is where it belongs to.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

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

Re: Trouble compiling FileZilla Server on OpenSuse

#8 Post by oibaf » 2022-02-16 04:55

CuriousPenguin37 wrote:
2022-02-15 23:42
:D Yeah, that kinda makes sense... Looks like a perfect example of a noob mistake! :D

I ran the command you suggested, but now I get a new error... I also tried g++-8, g++-9, and g++-10, but got an error each time...
Any thoughts or suggestions on this one?
Thanks!

Code: Select all

/usr/bin/g++-11 -std=c++17 -DHAVE_CONFIG_H -I. -I../../../src/gui -I../../src    -I/usr/local/include -I/usr/local/include/p11-kit-1 -I/usr/lib64/wx/include/gtk2-unicode-3.1 -I/usr/include/wx-3.1 -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0 -DWXUSINGDLL -D__WXGTK__ -pthread  -fno-exceptions -g -O2 -MT filezilla_server_gui-sessionlist.o -MD -MP -MF .deps/filezilla_server_gui-sessionlist.Tpo -c -o filezilla_server_gui-sessionlist.o `test -f 'sessionlist.cpp' || echo '../../../src/gui/'`sessionlist.cpp
In file included from ../../../src/gui/sessionlist.cpp:14:
../../../src/gui/sessionlist.cpp: In lambda function:
../../../src/gui/locale.hpp:12:31: error: cannot convert ‘const wxString’ to ‘const wchar_t*’ in assignment
   12 | #define _S(x) wxGetTranslation(wxS(x))
      |               ~~~~~~~~~~~~~~~~^~~~~~~~
      |                               |
      |                               const wxString
../../../src/gui/sessionlist.cpp:149:34: note: in expansion of macro ‘_S’
  149 |                         suffix = _S("B");
      |                                  ^~
../../../src/gui/locale.hpp:12:31: error: cannot convert ‘const wxString’ to ‘const wchar_t*’ in assignment
   12 | #define _S(x) wxGetTranslation(wxS(x))
      |               ~~~~~~~~~~~~~~~~^~~~~~~~
      |                               |
      |                               const wxString
../../../src/gui/sessionlist.cpp:154:34: note: in expansion of macro ‘_S’
  154 |                         suffix = _S("KiB");
      |                                  ^~
../../../src/gui/locale.hpp:12:31: error: cannot convert ‘const wxString’ to ‘const wchar_t*’ in assignment
   12 | #define _S(x) wxGetTranslation(wxS(x))
      |               ~~~~~~~~~~~~~~~~^~~~~~~~
      |                               |
      |                               const wxString
../../../src/gui/sessionlist.cpp:159:34: note: in expansion of macro ‘_S’
  159 |                         suffix = _S("MiB");
      |                                  ^~
../../../src/gui/locale.hpp:12:31: error: cannot convert ‘const wxString’ to ‘const wchar_t*’ in assignment
   12 | #define _S(x) wxGetTranslation(wxS(x))
      |               ~~~~~~~~~~~~~~~~^~~~~~~~
      |                               |
      |                               const wxString
../../../src/gui/sessionlist.cpp:163:34: note: in expansion of macro ‘_S’
  163 |                         suffix = _S("GiB");
      |                                  ^~
make[3]: *** [Makefile:955: filezilla_server_gui-sessionlist.o] Error 1
make[3]: Leaving directory '/home/philip/Desktop/filezilla-server-1.3.0/compile/src/gui'
make[2]: *** [Makefile:419: all-recursive] Error 1
make[2]: Leaving directory '/home/philip/Desktop/filezilla-server-1.3.0/compile/src'
make[1]: *** [Makefile:358: all] Error 2
make[1]: Leaving directory '/home/philip/Desktop/filezilla-server-1.3.0/compile/src'
make: *** [Makefile:449: all-recursive] Error 1
At line 145 in sessionlist.cpp, substitute

Code: Select all

auto suffix = wxS("");
with

Code: Select all

wxString suffix;
You're using wxWidgets 3.1, which is untested for, but that should get you forward.

CuriousPenguin37
500 Command not understood
Posts: 4
Joined: 2022-02-15 02:00

Re: Trouble compiling FileZilla Server on OpenSuse

#9 Post by CuriousPenguin37 » 2022-02-17 02:13

Worked like a charm!!

Thanks much for the help!!

Post Reply