Compiling FileZilla Server Using Visual Studio 2005

Moderator: Project members

Message
Author
david.dda
550 File not found
Posts: 33
Joined: 2009-10-19 11:39
First name: David
Last name: Ope

Re: Compiling FileZilla Server Using Visual Studio 2005

#31 Post by david.dda » 2009-11-12 11:21

I tried to add "BOOL" to the function and it compiled with about 250 warnings, but no errors so it worked fine for me:

BOOL CControlSocket::CreateTransferSocket(CTransferSocket *pTransferSocket)

Please, is there any database with precise description of all the bugs reported or fixed?
I found a list of fixed bugs, in the readme.txt file, but this list is rather a general description of things, that have been changed, like this example:
-------------------------------------------------------
Version 0.9.22

Fixed bugs:

* Fix denial of service vulnerability due to nullpointer dereference.
-------------------------------------------------------
- I would need a more detailed description of this bug - like: the file where this bug was found, and perhaps which code was changed. Can I find this somewhere?
I need this, because I will try to analyze an older version of FilaZilla Server with a source code analyzer and will try to find out, whether the source code analyzer was able to find those "old" reported or fixed bugs in the code. If its working, than I will be able to find some new bugs in the newest version of FileZillaServer as well.

I also checked some tickets on http://trac.filezilla-project.org/wiki/Queries, but its more like a description of the behavior of FileZillaServer.

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

Re: Compiling FileZilla Server Using Visual Studio 2005

#32 Post by botg » 2009-11-12 13:31

Have a look at the SVN history for recent changes and the CVS history for older versions of FZS. The latter is also available at http://filezilla-project.org/changelog. ... changes=25, but the more recent changes done in the SVN repository aren't displayed there for FZS.

See http://sourceforge.net/projects/filezilla/develop for the repository addresses.

devdev
500 Command not understood
Posts: 1
Joined: 2010-01-06 00:46
First name: Lucky
Last name: Dev

Re: Compiling FileZilla Server Using Visual Studio 2005

#33 Post by devdev » 2010-01-07 23:42

hi,
I download source code from http://svn.filezilla-project.org/svn/Fi ... ver/trunk/
I have no problems in 32bit compilation... now I'm trying the 64bit

I got "only" this 4 errors during linking:

Code: Select all

MSVCRT.lib(MSVCR90.dll) : error LNK2005: malloc già definito in LIBCMT.lib(malloc.obj)
MSVCRT.lib(MSVCR90.dll) : error LNK2005: free già definito in LIBCMT.lib(free.obj)
MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: __cdecl type_info::type_info(class type_info const &)" (??0type_info@@AEAA@AEBV0@@Z) già definito in LIBCMT.lib(typinfo.obj)
MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __cdecl type_info::operator=(class type_info const &)" (??4type_info@@AEAAAEAV0@AEBV0@@Z) già definito in LIBCMT.lib(typinfo.obj)
and Visual Studio suggests:

Code: Select all

LINK : warning LNK4098: la libreria predefinita 'MSVCRT' è in conflitto con l'utilizzo di altre librerie; utilizzare /NODEFAULTLIB:libreria
So if I use option /NODEFAULTLIB:MSVCRT I can compile FZ Server,
but is it a good solution or I should modify anything else?

(sorry for my english)

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

Re: Compiling FileZilla Server Using Visual Studio 2005

#34 Post by botg » 2010-01-08 06:51

There's probably quite some other stuff in the source of FileZilla Server that isn't 64bit aware but doesn't throw compiler errors.

afakhry
504 Command not implemented
Posts: 6
Joined: 2012-04-07 21:03
First name: Ahmed
Last name: Esawy

Re: Compiling FileZilla Server Using Visual Studio 2005

#35 Post by afakhry » 2012-04-09 09:02

Hi

Iam trying to build FileZilla Server Using VS 2008 - 32bit

I followed the mentioned steps
1- boost_1_47_setup
2- zlib-1.2.4 then compile "Release Lib"
3- Edit FileZile Server Depenedices
4- Build

Iam Getting the following Linking Errors :

Code: Select all

Error	10	error LNK2005: _malloc already defined in LIBCMT.lib(malloc.obj)	MSVCRT.lib	Service

Error	11	error LNK2005: _free already defined in LIBCMT.lib(free.obj)	MSVCRT.lib	Service

Error	12	error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)	MSVCRT.lib	Service

Error	13	error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)	MSVCRT.lib	Service

Error	15	fatal error LNK1169: one or more multiply defined symbols found	.\Release/FileZilla server.exe	Service
Any Help ?

Thanks

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

Re: Compiling FileZilla Server Using Visual Studio 2005

#36 Post by botg » 2012-04-09 21:16

Different runtime libraries. Make sure all dependencies are compiled with the same runtime as FileZilla Server. Multi-threaded, non-dll, as in /MT

afakhry
504 Command not implemented
Posts: 6
Joined: 2012-04-07 21:03
First name: Ahmed
Last name: Esawy

Re: Compiling FileZilla Server Using Visual Studio 2005

#37 Post by afakhry » 2012-04-10 07:15

Thanks Toooooooo Much
I built it successfully

afakhry
504 Command not implemented
Posts: 6
Joined: 2012-04-07 21:03
First name: Ahmed
Last name: Esawy

Re: Compiling FileZilla Server Using Visual Studio 2005

#38 Post by afakhry » 2012-04-16 14:32

Hi

I want to add new feature to the authentication for the users .
they will use OTP for the authentication . for each user configuration page , there is check box as shown in the image.

the problem that i can't save the option in FileZilla Server.xml
I made the following :
1- Add check box in IDD_USERS_GENERAL
2- add contol var & value var in UserDlgGeneral
3- edit displayuser & saveuser
4- in Permsioins file :
add setkey for otp
red otp

the stored value is not correct .

so what i have to do to add check box in UserDlgGeneral and save it ?
Attachments
IMAGE.png
IMAGE.png (22.59 KiB) Viewed 8966 times

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

Re: Compiling FileZilla Server Using Visual Studio 2005

#39 Post by botg » 2012-04-16 19:32

Got a unified context diff?

Post Reply