2 issues while compilation of FileZilla 3.48.1

Moderator: Project members

Post Reply
Message
Author
test
426 Connection timed out
Posts: 51
Joined: 2020-03-24 06:36

2 issues while compilation of FileZilla 3.48.1

#1 Post by test » 2020-07-02 09:06

Hi!

Thanks for the great product!

I am trying to compile the updated FileZilla 3.48.1 on Windows.

While running the ./configure command of filezilla in MSYS2-Mingw64 terminal, it showed the error:

Code: Select all

configure: error: libfilezilla not found: Requested 'libfilezilla >= 0.22.0' but version of libfilezilla is 0.21.0
You may find new versions of libfilezilla at https://lib.filezilla-project.org/. You can download it from https://lib.filezilla-project.org/
So, I deleted the libfilezilla (v 0.21.0) & installed the libfilezilla v 0.22.0.
1) However, while running the autoreconf -i command, I got the error:

Code: Select all

-bash: /usr/bin/autoreconf: /usr/bin/perl: bad interpreter: No such file or directory
So, I skipped that autoreconf -i step and proceeded to further steps and the libfilezilla was built

2) Now, while running the make command of FileZilla, I got the error:

Code: Select all

Making all in .
make[1]: Entering directory '/home/XYZ/filezilla'
make[1]: Nothing to be done for 'all-am'.
make[1]: Leaving directory '/home/XYZ/filezilla'
Making all in src
make[1]: Entering directory '/home/XYZ/filezilla/src'
Making all in include
make[2]: Entering directory '/home/XYZ/filezilla/src/include'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/XYZ/filezilla/src/include'
Making all in engine
make[2]: Entering directory '/home/XYZ/filezilla/src/engine'
if g++ -std=c++17 -DHAVE_CONFIG_H   -I../../config -IC:/msys64/home/XYZ/prefix/include -fpch-preprocess  -g -O2 -Wall -MT filezilla.h.gch -MD -MP -MF ".deps/filezilla.Tpo" -c -o filezilla.h.gch filezilla.h; \
then mv -f ".deps/filezilla.Tpo" ".deps/filezilla.Po"; else rm -f ".deps/filezilla.Tpo"; exit 1; fi
make  all-am
make[3]: Entering directory '/home/XYZ/filezilla/src/engine'
g++ -std=c++17 -DHAVE_CONFIG_H   -I../../config -IC:/msys64/home/XYZ/prefix/include -fpch-preprocess  -g -O2 -Wall -MT libengine_a-controlsocket.o -MD -MP -MF .deps/libengine_a-controlsocket.Tpo -c -o libengine_a-controlsocket.o `test -f 'controlsocket.cpp' || echo './'`controlsocket.cpp
In file included from engineprivate.h:6,
                 from logging_private.h:4,
                 from controlsocket.h:8,
                 from controlsocket.cpp:2:
../include/optionsbase.h:11:10: fatal error: libfilezilla/rwmutex.hpp: No such file or directory
   11 | #include <libfilezilla/rwmutex.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [Makefile:860: libengine_a-controlsocket.o] Error 1
make[3]: Leaving directory '/home/XYZ/filezilla/src/engine'
make[2]: *** [Makefile:598: all] Error 2
make[2]: Leaving directory '/home/XYZ/filezilla/src/engine'
make[1]: *** [Makefile:433: all-recursive] Error 1
make[1]: Leaving directory '/home/XYZ/filezilla/src'
make: *** [Makefile:630: all-recursive] Error 1
On further exploring, I found out that there is no such file rwmutex.hpp in the downloaded libfilezilla
(I had downloaded libfilezilla v0.22.0 from https://download.filezilla-project.org/ ... .0.tar.bz2, since I need to specify the version no. in my work, so I had not downloaded from the svn trunk website)

I have the confusion that why do the svn trunk version shows rwmutex.hpp file in libfilezilla/lib/libfilezilla, whereas the dowload-filezilla-project version does not have that file in corresponding libfilezilla/lib/libfilezilla folder.

Kindly help

test
426 Connection timed out
Posts: 51
Joined: 2020-03-24 06:36

Re: 2 issues while compilation of FileZilla 3.48.1

#2 Post by test » 2020-07-02 13:00

Issue No. 1) is not observed while libfilezilla 0.22.0 compilation in Mac

However, issue no. 2) (i.e. rwmutex.hpp file not found in libfilezilla 0.22.0) is also observed while FileZilla 3.48.1 compilation in Mac.
(The FileZilla-Mac compilation website states that we should use download.filezilla-project to download libfilezilla. So, I have followed that, but with version 0.22.0)

It probably means this issue no. 2 is not particular to my Windows system only as the same issue apears in Mac also.

Kindly check this
Last edited by test on 2020-07-02 13:05, edited 1 time in total.

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

Re: 2 issues while compilation of FileZilla 3.48.1

#3 Post by botg » 2020-07-02 13:03

As for the autoreconf issue, if it complains about missing perl, install perl.

If you want to compile the latest trunk revision of FileZilla you should also use the latest trunk revision of libfilezilla.

test
426 Connection timed out
Posts: 51
Joined: 2020-03-24 06:36

Re: 2 issues while compilation of FileZilla 3.48.1

#4 Post by test » 2020-07-02 16:04

Issue no. 1:
Have reinstalled perl in Msys2 and the following output is displayed:

Code: Select all

$ pacman -S perl
warning: perl-5.30.3-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) perl-5.30.3-1

Total Installed Size:  50.67 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] Y
(1/1) checking keys in keyring                                                                                      [####################################################################] 100%
(1/1) checking package integrity                                                                                    [####################################################################] 100%
(1/1) loading package files                                                                                         [####################################################################] 100%
(1/1) checking for file conflicts                                                                                   [####################################################################] 100%
(1/1) checking available disk space                                                                                 [####################################################################] 100%
warning: could not get file information for usr/bin/perl.exe
warning: could not get file information for usr/bin/perl5.30.3.exe
:: Processing package changes...
(1/1) reinstalling perl                                                                                             [####################################################################] 100%
warning: warning given when extracting /usr/bin/perl.exe (Can't create '/usr/bin/perl.exe')
warning: warning given when extracting /usr/bin/perl5.30.3.exe (Hard-link target 'usr/bin/perl.exe' does not exist.)
On running the autoreconf -i command, the same issue is displayed:

Code: Select all

-bash: /usr/bin/autoreconf: /usr/bin/perl: bad interpreter: No such file or directory
It seems my Msys2 setup has corrupted & I need to reinstall every dependency again :(


Issue No. 2:
So, in the Mac, I have downloaded & compiled libfilezilla 0.22.0 from download-filezilla-project website (instead of svn trunk website)
Then, I downloaded FileZilla 3.48.1 also from download-filezilla-project website (instead of svn trunk website)

In its compilation, on running the ./configure command, I now get the error:

Code: Select all

checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: error: in `/Users/apple/src/filezilla/src/fzshellext/64':
config.status: error: Something went wrong bootstrapping makefile fragments
    for automatic dependency tracking.  If GNU make was not used, consider
    re-running the configure script with MAKE="gmake" (or whatever is
    necessary).  You can also try re-running configure with the
    '--disable-dependency-tracking' option to at least be able to build
    the package (albeit without support for automatic dependency tracking).
See `config.log' for more details
I re-tried it with --disable-dependency-tracking, but still the same error is displayed.

test
426 Connection timed out
Posts: 51
Joined: 2020-03-24 06:36

Re: 2 issues while compilation of FileZilla 3.48.1

#5 Post by test » 2020-07-04 14:22

Issue no. 2 got resolved by removing Windows-like CRLF endings and characters which were incompatible for Ubuntu & Mac
Thanks

test
426 Connection timed out
Posts: 51
Joined: 2020-03-24 06:36

Re: 2 issues while compilation of FileZilla 3.48.1

#6 Post by test » 2020-07-06 11:05

Update about issue no. 1:

I reinstalled MSys2 and then each & every dependency of FileZilla

a) While executing pacman -Syu commands, I took a screenshot of the perl installation in MSYS2
1.png
1.png (276.4 KiB) Viewed 271 times
Still now, the same error is displayed on execution of "autoreconf -i" command:

Code: Select all

-bash: /usr/bin/autoreconf: /usr/bin/perl: bad interpreter: No such file or directory
b) I even tried installing perl using:

Code: Select all

pacman -S mingw-w64-i686-perl mingw-w64-x86_64-perl
Still the issue was same.

c) On further observation, I found out that the perl was getting installed in /mingw64/bin directory instead of /usr/bin.
I tried adding /mingw64/bin directory to the PATH variable as follows:

Code: Select all

export PATH="$PATH:/mingw64/bin"
However, the issue is still the same.

I am clueless and out of anymore ideas.
Please help

test
426 Connection timed out
Posts: 51
Joined: 2020-03-24 06:36

Re: 2 issues while compilation of FileZilla 3.48.1

#7 Post by test » 2020-07-06 11:16

I have actually edited configure.ac

That's why I need to run "autoreconf -i" command necessarily

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

Re: 2 issues while compilation of FileZilla 3.48.1

#8 Post by botg » 2020-07-07 07:30

What's your full contents of $PATH?

test
426 Connection timed out
Posts: 51
Joined: 2020-03-24 06:36

Re: 2 issues while compilation of FileZilla 3.48.1

#9 Post by test » 2020-07-07 08:17

The contents of $PATH variable in MSYS2 are:

Code: Select all

/home/XYZ/prefix/bin:/home/XYZ/prefix/lib:/mingw64/bin:/mingw32/bin:/mingw64/bin:/mingw64/bin/site_perl/5.28.0:/mingw64/bin/vendor_perl:/mingw64/bin/core_perl:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/

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

Re: 2 issues while compilation of FileZilla 3.48.1

#10 Post by botg » 2020-07-07 11:24

What is the filesystem of the drive you have installed msys2 on?

test
426 Connection timed out
Posts: 51
Joined: 2020-03-24 06:36

Re: 2 issues while compilation of FileZilla 3.48.1

#11 Post by test » 2020-07-07 12:07

It is NTFS

(This issue has come only this time. No such issue was there last time in April/May.
I had deleted libfilezilla 0.21.0 + filezilla 3.48.0 & downloaded their latest versions.
libfilezilla was compiled successfully. However, on execution of "autoreconf -i" command of filezilla, the MSys2 crashed & its terminal could not be opened. That's why I had to reinstall Msys2 & run all the "pacman" commands last week)

test
426 Connection timed out
Posts: 51
Joined: 2020-03-24 06:36

Re: 2 issues while compilation of FileZilla 3.48.1

#12 Post by test » 2020-07-07 14:37

I had also tried creating a symbolic link for perl as follows:

Code: Select all

cd /usr/bin && ln -s /mingw64/bin/perl.exe
On running this, I got the error

Code: Select all

ln: failed to create symbolic link './perl.exe': Permission denied
Also, on trying the same command with sudo, I got the error

Code: Select all

-bash: sudo: command not found

test
426 Connection timed out
Posts: 51
Joined: 2020-03-24 06:36

Re: 2 issues while compilation of FileZilla 3.48.1

#13 Post by test » 2020-07-08 13:12

I tried skipping autoreconf -i command.

The ./configure command executed successfully

However, on running make command, I got similar error related to perl as follows:

Code: Select all

CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/XYZ/filezilla/config/missing aclocal-1.15 -I m4
/home/XYZ/filezilla/config/missing: /usr/bin/aclocal-1.15: /usr/bin/perl: bad interpreter: No such file or directory
make: *** [Makefile:493: aclocal.m4] Error 126
Kindly help

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

Re: 2 issues while compilation of FileZilla 3.48.1

#14 Post by botg » 2020-07-08 14:41

Perhaps your NTFS permissions are all screwed up? Try installing msys onto a freshly formatted harddisk.

test
426 Connection timed out
Posts: 51
Joined: 2020-03-24 06:36

Re: 2 issues while compilation of FileZilla 3.48.1

#15 Post by test » 2020-07-08 14:55

Okay, would definitely try that
Thanks

Post Reply