Help: Compile FileZilla 3.5.3 under windows xp

Moderator: Project members

Post Reply
Message
Author
hhapp0728
504 Command not implemented
Posts: 11
Joined: 2006-02-09 06:13

Help: Compile FileZilla 3.5.3 under windows xp

#1 Post by hhapp0728 » 2012-09-10 12:19

I compiled the FileZilla 3.5.3 under windows xp.
To connect FileZilla Server, it's OK with encryption: Use plain FTP or Require explicit FTP over TLS.
To connect Serv-U, it's OK with encryption: Use plain FTP; But timed out with encryption: Require explicit FTP over TLS. Below is the log:


Status: Connecting to 192.168.1.3:21...
Status: Connection established, waiting for welcome message...
Trace: CFtpControlSocket::OnReceive()
Response: 220 FTP Server for WinSock ready...
Trace: CFtpControlSocket::SendNextCommand()
Command: AUTH TLS
Trace: CFtpControlSocket::OnReceive()
Response: 234 AUTH command OK. Initializing SSL connection.
Status: Initializing TLS...
Trace: CTlsSocket::Handshake()
Trace: CTlsSocket::ContinueHandshake()
Trace: CTlsSocket::OnSend()
Trace: CTlsSocket::OnRead()
Trace: CTlsSocket::ContinueHandshake()
Error: Connection timed out
Trace: CControlSocket::DoClose(2050)
Trace: CFtpControlSocket::ResetOperation(2114)
Trace: CControlSocket::ResetOperation(2114)
Error: Could not connect to server
Trace: CFileZillaEnginePrivate::ResetOperation(2114)
Status: Waiting to retry...
Trace: CControlSocket::DoClose(64)
Trace: CControlSocket::DoClose(64)



Thanks for your help.

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

Re: Help: Compile FileZilla 3.5.3 under windows xp

#2 Post by botg » 2012-09-10 18:31

Does it work with the official FileZilla binaries? Which version of GnuTLS are you using?

hhapp0728
504 Command not implemented
Posts: 11
Joined: 2006-02-09 06:13

Re: Help: Compile FileZilla 3.5.3 under windows xp

#3 Post by hhapp0728 » 2012-09-11 01:32

Thanks for your response.

1. The official FileZilla binaries work fine. And libgnutls 2.10.5 is used.

version: 2.10.5 shared 42:14:16
Host type: i686-pc-mingw32
Install prefix: /usr/local
Compiler: gcc -std=gnu99
Warning flags: errors: warnings:
Library types: Shared=no, Static=yes
Valgrind: no
Guile wrappers: no
C++ library: no
OpenSSL library: yes
/dev/crypto: no


2. I changed the file libgnutls-config FROM:
--version)
echo "2.8.6"
exit 0
;;

TO:
--version)
echo "2.10.5"
exit 0
;;

3. Could you tell me the versions of gcc, libs for compiling the official FileZilla 3.5.3 now?


4. The list below is that I used:

mingw-get-inst-20120426.exe
FileZilla_3.5.3_src.tar.bz2
gnutls-2.10.5.tar.bz2
libgcrypt-1.4.6.tar.bz2
libgpg-error-1.10.tar.bz2
libidn-1.22.tar.gz
sqlite-autoconf-3070900.tar.gz
wxWidgets-2.8.12.tar.gz

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

Re: Help: Compile FileZilla 3.5.3 under windows xp

#4 Post by botg » 2012-09-11 06:12

Versions of everything you've used seem fine. Which processor do you use? libgcrypt can be problematic if compiled using MinGW on some processors with dedicated crypto instructions.

hhapp0728
504 Command not implemented
Posts: 11
Joined: 2006-02-09 06:13

Re: Help: Compile FileZilla 3.5.3 under windows xp

#5 Post by hhapp0728 » 2012-09-11 08:31

The problem is solved.
The reason is that I run the compiled FileZilla on my virtual machine, and it's NIC is configured using NAT. After using "Bridged" as network connection, everything is OK.

new questions:

1. There is no list box next to the tool button "Open the Site Manager" in my compiled FileZilla interface. What went wrong?

2. My compiled FileZilla needs the following dlls, why? How can I remove the dependencies?
libgcc_s_dw2-1.dll
libiconv-2.dll
libstdc++-6.dll

Thanks!

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

Re: Help: Compile FileZilla 3.5.3 under windows xp

#6 Post by botg » 2012-09-11 21:50

1) You need to patch your wxWidgets version. See e.g. http://filezilla-project.org/nightlies/ ... 1/patches/

2) That's the way it is with more recent MinGW builds.

hhapp0728
504 Command not implemented
Posts: 11
Joined: 2006-02-09 06:13

Re: Help: Compile FileZilla 3.5.3 under windows xp

#7 Post by hhapp0728 » 2012-09-12 10:53

1. Should I use all these 6 patches:

auibook_trunk.patch
display.patch
hashmap_strict_aliasing.patch
mingw64.patch
opencommand_28.patch
toolbar_dropdown_28branch_draft2.patch

2. I used mingw-get-inst-20120426.exe to install MingW, any suggestion for "more recent MinGW builds"?


Thanks for your help & patience!

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

Re: Help: Compile FileZilla 3.5.3 under windows xp

#8 Post by botg » 2012-09-12 19:38

1) In this case only the toolbar dropdown patch is needed. But I would recommend using all of them. It's what is in all official FileZilla releases.

2) 20120426 already is a more recent build. Not recent = whatever antique version of MinGW is in Debian stable. I haven't tried it, but you could try to run configure with LDFLAGS=-static-libstdc++

hhapp0728
504 Command not implemented
Posts: 11
Joined: 2006-02-09 06:13

Re: Help: Compile FileZilla 3.5.3 under windows xp

#9 Post by hhapp0728 » 2012-09-13 09:24

After using all patches, the list box appears.

FileZilla can run without libstdc++-6.dll after the following cmd was executed:
export LDFLAGS="-L/local/lib -static-libstdc++"


Perfect.

Thanks.

Post Reply