filezilla-3.48.1 compilation error

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

Moderator: Project members

Post Reply
Message
Author
fzuzer
504 Command not implemented
Posts: 9
Joined: 2019-10-09 00:07

filezilla-3.48.1 compilation error

#1 Post by fzuzer » 2020-05-30 01:15

System: Kubuntu 18.04

I built and installed libfilezilla-0.22.0 without errors. Then I tried building filezilla-3.48.1. This is the tail of the output beginning with the first warning/
error reported:

Code: Select all

g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../../src/interface -I../../src/include  -I../../../src/interface/../include -I/usr/local/include -I/usr/local/include/p11-kit-1 -I/usr/local/lib/wx/include/gtk2-unicode-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__  -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -fpch-preprocess  -g -O2 -Wall -MT filezilla-LocalListView.o -MD -MP -MF .deps/filezilla-LocalListView.Tpo -c -o filezilla-LocalListView.o `test -f 'LocalListView.cpp' || echo '../../../src/interface/'`LocalListView.cpp
In file included from ../../../src/interface/filelistctrl.h:638:0,
                 from ../../../src/interface/LocalListView.h:4,
                 from ../../../src/interface/LocalListView.cpp:6:
../../../src/interface/filelistctrl.cpp: In instantiation of ‘void CFileListCtrl<CFileData>::OnProcessFocusChange(wxCommandEvent&) [with CFileData = CLocalFileData]’:
../../../src/interface/filelistctrl.cpp:37:1:   required from ‘const wxEventTableEntry CFileListCtrl<CLocalFileData>::sm_eventTableEntries [10]’
../../../src/interface/filelistctrl.cpp:30:1:   required from ‘const wxEventTable CFileListCtrl<CLocalFileData>::sm_eventTable’
../../../src/interface/LocalListView.cpp:252:1:   required from here
../../../src/interface/filelistctrl.cpp:938:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if (!selected && old_focus < m_selections.size() && m_selections[old_focus]) {
                    ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
mv -f .deps/filezilla-LocalListView.Tpo .deps/filezilla-LocalListView.Po
g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../../src/interface -I../../src/include  -I../../../src/interface/../include -I/usr/local/include -I/usr/local/include/p11-kit-1 -I/usr/local/lib/wx/include/gtk2-unicode-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__  -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -fpch-preprocess  -g -O2 -Wall -MT filezilla-LocalTreeView.o -MD -MP -MF .deps/filezilla-LocalTreeView.Tpo -c -o filezilla-LocalTreeView.o `test -f 'LocalTreeView.cpp' || echo '../../../src/interface/'`LocalTreeView.cpp
mv -f .deps/filezilla-LocalTreeView.Tpo .deps/filezilla-LocalTreeView.Po
g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../../src/interface -I../../src/include  -I../../../src/interface/../include -I/usr/local/include -I/usr/local/include/p11-kit-1 -I/usr/local/lib/wx/include/gtk2-unicode-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__  -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -fpch-preprocess  -g -O2 -Wall -MT filezilla-loginmanager.o -MD -MP -MF .deps/filezilla-loginmanager.Tpo -c -o filezilla-loginmanager.o `test -f 'loginmanager.cpp' || echo '../../../src/interface/'`loginmanager.cpp
mv -f .deps/filezilla-loginmanager.Tpo .deps/filezilla-loginmanager.Po
g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../../src/interface -I../../src/include  -I../../../src/interface/../include -I/usr/local/include -I/usr/local/include/p11-kit-1 -I/usr/local/lib/wx/include/gtk2-unicode-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__  -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -fpch-preprocess  -g -O2 -Wall -MT filezilla-Mainfrm.o -MD -MP -MF .deps/filezilla-Mainfrm.Tpo -c -o filezilla-Mainfrm.o `test -f 'Mainfrm.cpp' || echo '../../../src/interface/'`Mainfrm.cpp
mv -f .deps/filezilla-Mainfrm.Tpo .deps/filezilla-Mainfrm.Po
g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../../src/interface -I../../src/include  -I../../../src/interface/../include -I/usr/local/include -I/usr/local/include/p11-kit-1 -I/usr/local/lib/wx/include/gtk2-unicode-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__  -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -fpch-preprocess  -g -O2 -Wall -MT filezilla-manual_transfer.o -MD -MP -MF .deps/filezilla-manual_transfer.Tpo -c -o filezilla-manual_transfer.o `test -f 'manual_transfer.cpp' || echo '../../../src/interface/'`manual_transfer.cpp
mv -f .deps/filezilla-manual_transfer.Tpo .deps/filezilla-manual_transfer.Po
g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../../src/interface -I../../src/include  -I../../../src/interface/../include -I/usr/local/include -I/usr/local/include/p11-kit-1 -I/usr/local/lib/wx/include/gtk2-unicode-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__  -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -fpch-preprocess  -g -O2 -Wall -MT filezilla-menu_bar.o -MD -MP -MF .deps/filezilla-menu_bar.Tpo -c -o filezilla-menu_bar.o `test -f 'menu_bar.cpp' || echo '../../../src/interface/'`menu_bar.cpp
mv -f .deps/filezilla-menu_bar.Tpo .deps/filezilla-menu_bar.Po
g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../../src/interface -I../../src/include  -I../../../src/interface/../include -I/usr/local/include -I/usr/local/include/p11-kit-1 -I/usr/local/lib/wx/include/gtk2-unicode-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__  -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -fpch-preprocess  -g -O2 -Wall -MT filezilla-msgbox.o -MD -MP -MF .deps/filezilla-msgbox.Tpo -c -o filezilla-msgbox.o `test -f 'msgbox.cpp' || echo '../../../src/interface/'`msgbox.cpp
mv -f .deps/filezilla-msgbox.Tpo .deps/filezilla-msgbox.Po
g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../../src/interface -I../../src/include  -I../../../src/interface/../include -I/usr/local/include -I/usr/local/include/p11-kit-1 -I/usr/local/lib/wx/include/gtk2-unicode-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__  -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -fpch-preprocess  -g -O2 -Wall -MT filezilla-netconfwizard.o -MD -MP -MF .deps/filezilla-netconfwizard.Tpo -c -o filezilla-netconfwizard.o `test -f 'netconfwizard.cpp' || echo '../../../src/interface/'`netconfwizard.cpp
mv -f .deps/filezilla-netconfwizard.Tpo .deps/filezilla-netconfwizard.Po
g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../../src/interface -I../../src/include  -I../../../src/interface/../include -I/usr/local/include -I/usr/local/include/p11-kit-1 -I/usr/local/lib/wx/include/gtk2-unicode-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__  -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -fpch-preprocess  -g -O2 -Wall -MT filezilla-Options.o -MD -MP -MF .deps/filezilla-Options.Tpo -c -o filezilla-Options.o `test -f 'Options.cpp' || echo '../../../src/interface/'`Options.cpp
../../../src/interface/Options.cpp: In member function ‘t_OptionsCache& t_OptionsCache::operator=(pugi::xml_document&&)’:
../../../src/interface/Options.cpp:272:24: error: ‘pugi::xml_document& pugi::xml_document::operator=(const pugi::xml_document&)’ is private within this context
  xmlValue = std::move(v);
                        ^
In file included from ../../../src/interface/xmlfunctions.h:10:0,
                 from ../../../src/interface/Options.h:12,
                 from ../../../src/interface/Options.cpp:2:
/usr/include/pugixml.hpp:982:17: note: declared private here
   xml_document& operator=(const xml_document&);
                 ^~~~~~~~
../../../src/interface/Options.cpp: In member function ‘virtual pugi::xml_document COptions::GetOptionXml(unsigned int)’:
../../../src/interface/Options.cpp:351:9: error: ‘pugi::xml_document::xml_document(const pugi::xml_document&)’ is private within this context
  return ret;
         ^~~
In file included from ../../../src/interface/xmlfunctions.h:10:0,
                 from ../../../src/interface/Options.h:12,
                 from ../../../src/interface/Options.cpp:2:
/usr/include/pugixml.hpp:981:3: note: declared private here
   xml_document(const xml_document&);
   ^~~~~~~~~~~~
../../../src/interface/Options.cpp: In member function ‘pugi::xml_document COptions::Validate(unsigned int, const pugi::xml_document&)’:
../../../src/interface/Options.cpp:720:9: error: ‘pugi::xml_document::xml_document(const pugi::xml_document&)’ is private within this context
  return res;
         ^~~
In file included from ../../../src/interface/xmlfunctions.h:10:0,
                 from ../../../src/interface/Options.h:12,
                 from ../../../src/interface/Options.cpp:2:
/usr/include/pugixml.hpp:981:3: note: declared private here
   xml_document(const xml_document&);
   ^~~~~~~~~~~~
Makefile:1995: recipe for target 'filezilla-Options.o' failed
make[4]: *** [filezilla-Options.o] Error 1
make[4]: Leaving directory '/path/to/filezilla-3.48.1/compile/src/interface'
Makefile:3123: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/path/to/filezilla-3.48.1/compile/src/interface'
Makefile:970: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/path/to/filezilla-3.48.1/compile/src/interface'
Makefile:436: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/path/to/filezilla-3.48.1/compile/src'
Makefile:617: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
g++ info:

Code: Select all

$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.5.0-3ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04) 

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

Re: filezilla-3.48.1 compilation error

#2 Post by botg » 2020-05-30 07:58

Which version of pugixml do you use? Should be at least 1.9 or higher.

fzuzer
504 Command not implemented
Posts: 9
Joined: 2019-10-09 00:07

Re: filezilla-3.48.1 compilation error

#3 Post by fzuzer » 2020-05-30 20:36

botg wrote:
2020-05-30 07:58
Which version of pugixml do you use? Should be at least 1.9 or higher.
Ubuntu 18.04LTS (Bionic) has pugixml 1.8, and neither bionic-updates nor bionic-backports has a newer version.

What do I need to do to compile with pugixml >=1.9? I noticed that pugixml 1.9 source code is bundled with the filezilla-3.48.1 source code.

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

Re: filezilla-3.48.1 compilation error

#4 Post by botg » 2020-06-01 09:28

You can configure FileZilla with --with-included-tinyxml

fzuzer
504 Command not implemented
Posts: 9
Joined: 2019-10-09 00:07

Re: filezilla-3.48.1 compilation error

#5 Post by fzuzer » 2020-06-03 20:58

botg wrote:
2020-06-01 09:28
You can configure FileZilla with --with-included-tinyxml
The build succeeded after I configured it as follows:

Code: Select all

../configure --with-pugixml=builtin

Post Reply