Ah, thanks for the catch.
Surprisingly, the requirements are higher on Ubuntu, now it wants >= 0.39.4 rather than >= 0.34 as on Debian 11. The package libfilezilla-dev installed 0.36.
I can compile from source successfully, so I uninstalled the package, and now it doesn't find it at all:
configure: error: libfilezilla not found: No package 'libfilezilla' found. You can download it from
https://lib.filezilla-project.org/
Here's what I ran to install libfilezilla:
Code: Select all
svn co https://svn.filezilla-project.org/svn/libfilezilla/trunk lfz
cd lfz
autoreconf -i
./configure --host=$TARGET_HOST --prefix="$HOME/prefix" --enable-shared --disable-static
make
make install
This succeeded with no errors. Here's the tail end of the output:
Code: Select all
Libraries have been installed in:
/root/prefix/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the 'LD_RUN_PATH' environment variable
during linking
- use the '-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to '/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/usr/bin/mkdir -p '/root/prefix/include'
/usr/bin/mkdir -p '/root/prefix/include/libfilezilla'
/usr/bin/install -c -m 644 libfilezilla/ascii_layer.hpp libfilezilla/apply.hpp libfilezilla/buffer.hpp libfilezilla/encode.hpp libfilezilla/encryption.hpp libfilezilla/event.hpp libfilezilla/event_handler.hpp libfilezilla/event_loop.hpp libfilezilla/file.hpp libfilezilla/format.hpp libfilezilla/fsresult.hpp libfilezilla/hash.hpp libfilezilla/hostname_lookup.hpp libfilezilla/impersonation.hpp libfilezilla/invoker.hpp libfilezilla/iputils.hpp libfilezilla/json.hpp libfilezilla/jws.hpp libfilezilla/libfilezilla.hpp libfilezilla/local_filesys.hpp libfilezilla/logger.hpp libfilezilla/mutex.hpp libfilezilla/nonowning_buffer.hpp libfilezilla/optional.hpp libfilezilla/process.hpp libfilezilla/rate_limiter.hpp libfilezilla/rate_limited_layer.hpp libfilezilla/recursive_remove.hpp libfilezilla/rwmutex.hpp libfilezilla/shared.hpp libfilezilla/signature.hpp libfilezilla/socket.hpp libfilezilla/string.hpp libfilezilla/thread.hpp libfilezilla/thread_pool.hpp libfilezilla/time.hpp libfilezilla/tls_info.hpp libfilezilla/tls_layer.hpp libfilezilla/tls_system_trust_store.hpp libfilezilla/translate.hpp '/root/prefix/include/libfilezilla'
/usr/bin/mkdir -p '/root/prefix/include/libfilezilla/aio'
/usr/bin/install -c -m 644 libfilezilla/aio/aio.hpp libfilezilla/aio/reader.hpp libfilezilla/aio/writer.hpp libfilezilla/aio/xml_writer.hpp '/root/prefix/include/libfilezilla/aio'
/usr/bin/mkdir -p '/root/prefix/include/libfilezilla'
/usr/bin/install -c -m 644 libfilezilla/uri.hpp libfilezilla/util.hpp libfilezilla/visibility_helper.hpp libfilezilla/xml.hpp '/root/prefix/include/libfilezilla'
/usr/bin/mkdir -p '/root/prefix/include/libfilezilla/private'
/usr/bin/install -c -m 644 libfilezilla/private/defs.hpp libfilezilla/private/visibility.hpp '/root/prefix/include/libfilezilla/private'
/usr/bin/mkdir -p '/root/prefix/include/libfilezilla/glue'
/usr/bin/install -c -m 644 libfilezilla/glue/wx.hpp libfilezilla/glue/wxinvoker.hpp libfilezilla/glue/unix.hpp '/root/prefix/include/libfilezilla/glue'
/usr/bin/mkdir -p '/root/prefix/include'
/usr/bin/mkdir -p '/root/prefix/include/libfilezilla'
/usr/bin/install -c -m 644 libfilezilla/version.hpp '/root/prefix/include/libfilezilla'
/usr/bin/mkdir -p '/root/prefix/lib/pkgconfig'
/usr/bin/install -c -m 644 libfilezilla.pc '/root/prefix/lib/pkgconfig'
make[2]: Leaving directory '/root/src/lfz/lib'
make[1]: Leaving directory '/root/src/lfz/lib'
Making install in demos
make[1]: Entering directory '/root/src/lfz/demos'
make[2]: Entering directory '/root/src/lfz/demos'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/root/src/lfz/demos'
make[1]: Leaving directory '/root/src/lfz/demos'
Making install in locales
make[1]: Entering directory '/root/src/lfz/locales'
make[2]: Entering directory '/root/src/lfz/locales'
make[2]: Nothing to be done for 'install-exec-am'.
for i in 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 ; do \
/bin/bash /root/src/lfz/config/install-sh -d /root/prefix/share/locale/$i/LC_MESSAGES ; \
/usr/bin/install -c -m 644 $i.mo /root/prefix/share/locale/$i/LC_MESSAGES/libfilezilla.mo ; \
done
make[2]: Leaving directory '/root/src/lfz/locales'
make[1]: Leaving directory '/root/src/lfz/locales'
Making install in doc
make[1]: Entering directory '/root/src/lfz/doc'
make[2]: Entering directory '/root/src/lfz/doc'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/root/src/lfz/doc'
make[1]: Leaving directory '/root/src/lfz/doc'
But with the filezilla configure, I get:
Code: Select all
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libfilezilla >= 0.39.2... no
configure: error: libfilezilla not found: No package 'libfilezilla' found. You can download it from https://lib.filezilla-project.org/
**2 hours later**: Okay, I forget what I did, but I was able to satisfy that somehow.
Next thing I've gotten stuck on is the filezilla configure scripts fails with:
```
checking positional printf argument support in wxWidgets... yes
checking GUI support in wxWidgets... no
configure: error: in `/root/src/fz':
configure: error: GUI support in wxWidgets is required by FileZilla. Please rebuild wxWidgets and pass --enable-gui to its configure script.
See `config.log' for more details
```
The widgets configure didn't have --enable-gui, so I added it and ran again.
configure succeeds, but compilation fails with stuff like this:
Code: Select all
/usr/bin/ld: netdll_socket.o:socket.cpp:(.text$_ZN12wxObjectListD0Ev[_ZN12wxObjectListD0Ev]+0x27): undefined reference to `operator delete(void*, unsigned long long)'
/usr/bin/ld: netdll_socket.o:socket.cpp:(.text$_ZN13wxSocketStateD0Ev[_ZN13wxSocketStateD0Ev]+0x2b): undefined reference to `operator delete(void*, unsigned long long)'
/usr/bin/ld: netdll_socket.o:socket.cpp:(.text$_ZN13wxSocketEventD0Ev[_ZN13wxSocketEventD0Ev]+0x2b): undefined reference to `operator delete(void*, unsigned long long)'
/usr/bin/ld: netdll_socket.o:socket.cpp:(.text$_ZNK13wxSocketEvent5CloneEv[_ZNK13wxSocketEvent5CloneEv]+0x12): undefined reference to `operator new(unsigned long long)'
/usr/bin/ld: netdll_socket.o:socket.cpp:(.text$_ZNK13wxSocketEvent5CloneEv[_ZNK13wxSocketEvent5CloneEv]+0x59): undefined reference to `operator delete(void*, unsigned long long)'
/usr/bin/ld: netdll_socket.o:socket.cpp:(.text$_ZN14wxSocketModuleD0Ev[_ZN14wxSocketModuleD0Ev]+0x50): undefined reference to `operator delete(void*, unsigned long long)'
/usr/bin/ld: netdll_socket.o:socket.cpp:(.text$_ZN14wxSocketClientD0Ev[_ZN14wxSocketClientD0Ev]+0x27): undefined reference to `operator delete(void*, unsigned long long)'
/usr/bin/ld: netdll_socket.o:socket.cpp:(.text$_ZN16wxDatagramSocketD0Ev[_ZN16wxDatagramSocketD0Ev]+0x27): undefined reference to `operator delete(void*, unsigned long long)'
/usr/bin/ld: netdll_socket.o:socket.cpp:(.text$_ZN14wxSocketServerD0Ev[_ZN14wxSocketServerD0Ev]+0x27): undefined reference to `operator delete(void*, unsigned long long)'
/usr/bin/ld: netdll_url.o:url.cpp:(.text$_ZN11wxURLModuleD0Ev[_ZN11wxURLModuleD0Ev]+0x50): more undefined references to `operator delete(void*, unsigned long long)' follow
/usr/bin/ld: BFD (GNU Binutils for Ubuntu) 2.38 assertion fail ../../bfd/reloc.c:8580
netdll_fs_inet.o:fs_inet.cpp:(.pdata$_ZN8wxThread8OnDeleteEv+0x0): dangerous relocation: collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core dumped
(There was a lot more beforehand, clipped for brevity)
This is the same type of thing I had an issue with GTK on Debian, that caused me to give up and try Ubuntu (where GTK worked, but now this doesn't).
Adding -lstdc++ as was suggested in a few places didn't make any difference with that.
Curious if people are doing this successfully on Debian 11 / Ubuntu, and if they are doing anything differently than I have been here.