Please help me to build the src of FZ2

Moderator: Project members

Post Reply
Message
Author
DigitalSonic
500 Command not understood
Posts: 5
Joined: 2005-03-31 08:20

Please help me to build the src of FZ2

#1 Post by DigitalSonic » 2005-03-31 08:38

I'm trying to change some small function in FileZilla to meet my parter's need, such as quickconnect to a SFTP etc. But I can't build any version of FileZilla 2, including 2.2.10src, 2.2.12src.

I've already installed VS6, CYGWIN, NSIS and Platform SDK(I've tried both XP-SP2 and 2003). But everytime a lot of errors and warnings burst out, over 30 errors. I tried to build a unchanged source package, the same situation happened.

I'm going to be mad :-( , from downloading the SDK and CYGWIN till today, I've working on this task for nearly 1 week.

My OS is Windows XP Home Edition with SP2.
Last edited by DigitalSonic on 2005-03-31 08:48, edited 1 time in total.

DigitalSonic
500 Command not understood
Posts: 5
Joined: 2005-03-31 08:20

#2 Post by DigitalSonic » 2005-03-31 08:42

For an example

Version 2.2.10:

D:\My Programme\Blackbox\FileZilla_2_2_10_src\source\FzSFtp\SSH.C(997) : warning C4101: 'buf' : unreferenced local variable
D:\My Programme\Blackbox\FileZilla_2_2_10_src\source\FzSFtp\SSH.C(6388) : warning C4101: 'reason_length' : unreferenced local variable
D:\My Programme\Blackbox\FileZilla_2_2_10_src\source\FzSFtp\SSH.C(6387) : warning C4101: 'reason_string' : unreferenced local variable
D:\My Programme\Blackbox\FileZilla_2_2_10_src\source\FzSFtp\SSH.C(6389) : warning C4101: 'message' : unreferenced local variable
D:\My Programme\Blackbox\FileZilla_2_2_10_src\source\FzSFtp\SSH.C(6386) : warning C4101: 'reason_code' : unreferenced local variable

Copy FzSFtp.exe to output folder
1 file is copyed.
Compiling resources...
Compiling...
StdAfx.cpp
C:\Program Files\Microsoft Platform SDK for Windows XP SP2\include\winnt.h(252) : error C2146: syntax error : missing ';' before identifier 'WCHAR'
C:\Program Files\Microsoft Platform SDK for Windows XP SP2\include\winnt.h(252) : fatal error C1004: unexpected end of file found
Error executing cl.exe.

OR

FtpListResult.cpp
D:\My Programme\Blackbox\FileZilla_2_2_10_src\source\FtpListResult.cpp(222) : error C2001: newline in constant

FtpControlSocket.cpp
C:\CYGWIN\USR\INCLUDE\sys/_types.h(15) : error C2632: 'long' followed by 'long' is illegal
C:\CYGWIN\USR\INCLUDE\sys/_types.h(15) : error C2144: syntax error : missing ';' before type 'long'
C:\CYGWIN\USR\INCLUDE\sys/_types.h(15) : error C2501: '__extension__' : missing storage-class or type specifiers
C:\CYGWIN\USR\INCLUDE\sys/_types.h(15) : fatal error C1004: unexpected end of file found
===============================
Version 2.2.12c:

Noting is built using build.bat (no exes, no dlls). There's no FileZilla.dsw file in the src package.

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

Re: Please help me to build the src of FZ2

#3 Post by botg » 2005-03-31 10:15

I've already installed VS6
Please upgrade to VS 7.1. VS6 generates wrong code and contains a bugged STL library that will cause sporadic crashes of FZS.

DigitalSonic
500 Command not understood
Posts: 5
Joined: 2005-03-31 08:20

#4 Post by DigitalSonic » 2005-04-04 00:35

If it is built in .net environment, should I include .net runtime support in the install package?

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

#5 Post by botg » 2005-04-04 01:16

FileZilla does not use any .net component. It links statically to the runtime library, so it should need no additional DLLs to those which are already part of Windows.

DigitalSonic
500 Command not understood
Posts: 5
Joined: 2005-03-31 08:20

#6 Post by DigitalSonic » 2005-04-04 03:57

Thank you for your reply. But I still can't compile 2.2.12c.

I've tried with VC7.1. Nearly all the errors came from CYGWIN's include files, such as usr\include\sys\_types.h and usr\include\sys\unistd.h.

If I use build.bat, Filezilla.exe won't be created, no error reported.

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

#7 Post by botg » 2005-04-04 10:32

Why don't you use the proviced VC7.1 project files?

DigitalSonic
500 Command not understood
Posts: 5
Joined: 2005-03-31 08:20

#8 Post by DigitalSonic » 2005-04-04 11:00

If I open and build the .sln file, a lot of errors will be listed.
If I use build.bat, no error will be listed, but FileZilla.exe is not created.

Perry
500 Syntax error
Posts: 16
Joined: 2005-04-28 19:57

Where to get files not provided in cvs but needed to build w

#9 Post by Perry » 2005-04-28 20:01

I asked this last month on the Support forum at the sourceforge project, but got no response, so I'll try asking it here.

Where should we get the files needed to compile with VS.NET 2003, but not present in the cvs repository?

(I'm repeating here what I said there)

http://sourceforge.net/tracker/index.ph ... tid=372242

I've found some possible candidates:

#1)

I am trying to use the zlib files (zlib.h, zconf.h,
zdll.exp, zdll.lib, zlib.def) from

http://www.gzip.org/zlib/

(Are these correct?)

#2)

There is a version of idna in the gnu libidn package

http://www.gnu.org/software/libidn/

I looked at version 0.5.9 which appeared to be the most
recent at

ftp://alpha.gnu.org/pub/gnu/libidn/

According to the docs in the tarball

libidn-0.5.9/doc/libidn.html

cygwin is a supported platform on Windows 2000.

I wonder if filezilla was compiled with a cygwin version of
libidn? I tend to doubt it, because I don't see a cygwin dll
in the filezilla binary zip release.


So, I am not sure what to do about the needed libidn, because the shipped binary doesn't look like it was built with cygwin, so that makes me suspect I should not try to compile with cygwin.

Any pointers are most welcome :)

Perry
500 Syntax error
Posts: 16
Joined: 2005-04-28 19:57

#10 Post by Perry » 2005-04-28 20:03

Here is another candidate for idna stuff:

http://www.codeproject.com/internet/idna_client.asp

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

#11 Post by botg » 2005-04-28 21:00

Libidn gets compiled using MinGW. For FileZilla 3 I might drop VC++ project files completely, so you will have to use MinGW to compile the windows version.

Perry
500 Syntax error
Posts: 16
Joined: 2005-04-28 19:57

Got it compiling with MSVC.NET 2003

#12 Post by Perry » 2005-04-30 02:30

I used the gnu zlib, and just made a quick, trivial hack for idna support by including my own trivial implementation of the single needed idna function, like so:

(idna.cpp)


#include "stdafx.h"
#include "idna.h"
#include <stdlib.h>

int idna_to_ascii_8z(const char *input, char **output, int flags)
{
*output = strdup(input);
return 0;
}



This simply emulates the idna expansion by duplicating the string.

This will work for ASCII only site strings -- it will of course fail miserably for non-ASCII strings :)

However, it allows me to compile and run with ASCII sites, and now to proceed to trying to fix the command line interface so I can use it from scripts.

Perry
500 Syntax error
Posts: 16
Joined: 2005-04-28 19:57

#13 Post by Perry » 2005-04-30 02:34

Hm, I did a quick test with

http://www.imc.org/idna/do-idna.cgi

and it said that my test ASCII input was invalid.

Maybe I'm wrong -- will my duplication work?

eyebex
226 Transfer OK
Posts: 171
Joined: 2004-04-02 15:24

#14 Post by eyebex » 2005-04-30 17:21

botg wrote:Libidn gets compiled using MinGW. For FileZilla 3 I might drop VC++ project files completely, so you will have to use MinGW to compile the windows version.
I thought you were going to use http://www.cmake.org/ for FZ3? This way, everyone of us could build his / her preferred project files / make files for their particular compiler, and you wouldn't have to include any project files yourself.

Perry2
550 File not found
Posts: 34
Joined: 2005-04-30 08:43

#15 Post by Perry2 » 2005-04-30 17:43

I did a tiny bit more reading on IDNA, and my stubbing out the IDNA is valid for ASCII addresses.

I was misled by my misuse of the test page at

http://www.imc.org/idna/do-idna.cgi

(It is not correct to submit periods such as in "www.test.com" to that test page.)

Post Reply