Error compiling libfilezilla on ubuntu 18.04

Everything related to libfilezilla

Moderator: Project members

Post Reply
Message
Author
user352
500 Command not understood
Posts: 1
Joined: 2020-10-16 15:35
First name: User

Error compiling libfilezilla on ubuntu 18.04

#1 Post by user352 » 2020-10-16 15:41

Hi there, the Ubuntu apt repositories don't keep filezilla up-to-date so when I get sick of the update pop-ups, I eventually break down and try recompiling.

I'm currently working on libfilezilla-0.25.0. Here are reports from apt on which libraries I have:

automake is already the newest version (1:1.15.1-3ubuntu2).
libgnutls28-dev is already the newest version (3.5.18-1ubuntu1.4).
nettle-dev is already the newest version (3.4-1).
gcc is already the newest version (4:7.4.0-1ubuntu2.3).
make is already the newest version (4.1-9.1ubuntu1).
gettext is already the newest version (0.19.8.1-6ubuntu0.3).

I followed the INSTALL file:
mkdir compile
cd compile
../configure

configure's output:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /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 how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/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/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 ar... ar
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... /bin/dd
checking how to truncate binary pipes... /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... yes
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/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/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/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... yes
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/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 whether C compiler accepts -Werror=partial-availability... no
checking whether the linker accepts -Wl,-no_weak_imports... no
checking whether g++ supports C++17 features with -std=c++17... yes
checking for whether we need -stdlib=libc++... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking whether std::chrono::steady_clock is steady... yes
checking for thread_local... yes
checking whether CLOCK_MONOTONIC is declared... yes
checking for posix_fadvise... yes
checking for poll... yes
checking for pipe2... yes
checking for accept4... yes
checking for eventfd... yes
checking for d_type member in directory struct... yes
checking for localtime_r... yes
checking for gmtime_r... yes
checking for timegm... yes
checking for clock_gettime... yes
checking whether pthread_condattr_setclock is declared... yes
checking whether iconv can be used without link library... yes
checking for TCP_INFO... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for nettle >= 3.3... yes
checking for hogweed >= 3.3... yes
checking for gnutls >= 3.5.8... yes
checking whether to use windres... no
checking whether the linker accepts -Wl,--dynamicbase... no
checking whether the linker accepts -Wl,--nxcompat... no
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for cppunit >= 1.13.0... no
checking for doxygen... /usr/bin/doxygen
checking for perl... /usr/bin/perl
checking for pdflatex... /usr/bin/pdflatex
checking for makeindex... /usr/bin/makeindex
checking for egrep... /bin/egrep
checking for xgettext... /usr/bin/xgettext
checking for msgfmt... /usr/bin/msgfmt
checking for msgmerge... /usr/bin/msgmerge
checking whether msgmerge version >= 0.11.0... yes, 0.19.8.1
checking available libfilezilla message catalogs... an ar az bg_BG ca ca_ES@valencia co cs_CZ cy da de el es et eu fa_IR fi_FI fr gl_ES he_IL hr hu_HU hy id_ID is it ja_JP kab ko_KR ky lo_LA lt_LT lv_LV mk_MK nb_NO ne nl nn_NO oc pl_PL pt_BR pt_PT ro_RO ru sk_SK sl_SI sr sv th_TH tr uk_UA vi_VN zh_CN zh_TW
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating lib/libfilezilla.pc
config.status: creating lib/libfilezilla/version.hpp
config.status: creating lib/windows/version.rc
config.status: creating demos/Makefile
config.status: creating doc/Doxyfile
config.status: creating doc/Makefile
config.status: creating locales/Makefile
config.status: creating tests/Makefile
config.status: creating config/config.hpp
config.status: executing depfiles commands
config.status: executing libtool commands




make (error below:)

libtool: compile: g++ -std=c++17 -DHAVE_CONFIG_H -I../config -DBUILDING_LIBFILEZILLA -I/usr/local/include -I/usr/local/include -I/usr/include/p11-kit-1 -I. -I../../lib/libfilezilla -fvisibility=hidden -g -O2 -Wall -MT libfilezilla_la-invoker.lo -MD -MP -MF .deps/libfilezilla_la-invoker.Tpo -c ../../lib/invoker.cpp -fPIC -DPIC -o .libs/libfilezilla_la-invoker.o
../../lib/invoker.cpp: In function ‘fz::invoker_factory fz::get_invoker_factory(fz::event_loop&)’:
../../lib/invoker.cpp:28:54: error: ‘loop’ was not declared in this scope
return [handler = std::optional<thread_invoker>(), &loop](std::function<void()> const& cb) mutable {
^~~~
../../lib/invoker.cpp: In lambda function:
../../lib/invoker.cpp:30:20: error: ‘loop’ is not captured
handler.emplace(loop);
^~~~
../../lib/invoker.cpp:28:58: note: the lambda has no capture-default
return [handler = std::optional<thread_invoker>(), &loop](std::function<void()> const& cb) mutable {
^
../../lib/invoker.cpp:28:54: note: ‘<typeprefixerror>loop’ declared here
return [handler = std::optional<thread_invoker>(), &loop](std::function<void()> const& cb) mutable {
^~~~
Makefile:762: recipe for target 'libfilezilla_la-invoker.lo' failed
make[1]: *** [libfilezilla_la-invoker.lo] Error 1
make[1]: Leaving directory '/media/truecrypt1/Personal/Downloads/libfilezilla-0.25.0/compile/lib'
Makefile:487: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1


Any tips on things to try would be great. Thanks!

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

Re: Error compiling libfilezilla on ubuntu 18.04

#2 Post by botg » 2020-10-19 08:11

Looks like a compiler bug. Can you please try with a more recent compiler?

The bug in question: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71546

axpa
500 Command not understood
Posts: 1
Joined: 2021-01-21 18:38
First name: Axel
Last name: Paetzke

Re: Error compiling libfilezilla on ubuntu 18.04

#3 Post by axpa » 2021-01-22 17:17

I've run into the same issue these days.
And of course, I 've done as suggested: to compile it with a newer version of the compiler (c++ (Ubuntu 7.5.0-3ubuntu1~18.04)).
I didn't found a newer one, though.
Unfortunately the solution is quite the same:
make doesn't work:

/Downloads/libfilezilla-0.26.0$ sudo make
Making all in .
make[1]: Verzeichnis „/home/axpa/Downloads/libfilezilla-0.26.0“ wird betreten
make[1]: Für das Ziel „all-am“ ist nichts zu tun.
make[1]: Verzeichnis „/home/axpa/Downloads/libfilezilla-0.26.0“ wird verlassen
Making all in lib
make[1]: Verzeichnis „/home/axpa/Downloads/libfilezilla-0.26.0/lib“ wird betreten
/bin/bash ../libtool --tag=CXX --mode=compile g++ -std=c++17 -DHAVE_CONFIG_H -I../config -DBUILDING_LIBFILEZILLA -I/usr/include/p11-kit-1 -I. -I./libfilezilla -fvisibility=hidden -g -O2 -Wall -MT libfilezilla_la-invoker.lo -MD -MP -MF .deps/libfilezilla_la-invoker.Tpo -c -o libfilezilla_la-invoker.lo `test -f 'invoker.cpp' || echo './'`invoker.cpp
libtool: compile: g++ -std=c++17 -DHAVE_CONFIG_H -I../config -DBUILDING_LIBFILEZILLA -I/usr/include/p11-kit-1 -I. -I./libfilezilla -fvisibility=hidden -g -O2 -Wall -MT libfilezilla_la-invoker.lo -MD -MP -MF .deps/libfilezilla_la-invoker.Tpo -c invoker.cpp -fPIC -DPIC -o .libs/libfilezilla_la-invoker.o
invoker.cpp: In function ‘fz::invoker_factory fz::get_invoker_factory(fz::event_loop&)’:
invoker.cpp:28:54: error: ‘loop’ was not declared in this scope
return [handler = std::optional<thread_invoker>(), &loop](std::function<void()> const& cb) mutable {
^~~~
invoker.cpp: In lambda function:
invoker.cpp:30:20: error: ‘loop’ is not captured
handler.emplace(loop);
^~~~
invoker.cpp:28:58: note: the lambda has no capture-default
return [handler = std::optional<thread_invoker>(), &loop](std::function<void()> const& cb) mutable {
^
invoker.cpp:28:54: note: ‘<typeprefixerror>loop’ declared here
return [handler = std::optional<thread_invoker>(), &loop](std::function<void()> const& cb) mutable {
^~~~
Makefile:766: recipe for target 'libfilezilla_la-invoker.lo' failed
make[1]: *** [libfilezilla_la-invoker.lo] Error 1
make[1]: Verzeichnis „/home/axpa/Downloads/libfilezilla-0.26.0/lib“ wird verlassen
Makefile:487: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
___________________________
So, I don't know how to get out of this, I am not firm in programming that deep in compiler issues.
May somebody can give me a hint, please ?

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

Re: Error compiling libfilezilla on ubuntu 18.04

#4 Post by botg » 2021-01-22 18:42

You're using a LTS distribution, contact your distribution's support. If it truly is LTS, they'll fix the issue. If it isn't truly LTS, update to a newer version.

Post Reply