idna.h?

Moderator: Project members

Post Reply
Message
Author
Gelo
500 Command not understood
Posts: 1
Joined: 2004-06-27 15:22

idna.h?

#1 Post by Gelo » 2004-06-27 15:27

Hello,
I can't compile FileZilla source code. There is an error:
idna.h: No such file or directory
Can anybody help me?

Thanks a lot

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

#2 Post by botg » 2004-06-27 15:51

That file is part of libidn (http://www.gnu.org/software/libidn/) which is used to add support for international domain names.

Either comment that ports of the FZ code out or compile and install libidn (you may need to compile with mingw, VC++ may not be able to compile it)

Nick36
500 Command not understood
Posts: 2
Joined: 2004-07-14 10:31
Location: Belarus

#3 Post by Nick36 » 2004-07-14 10:38

Either comment that ports of the FZ code out or compile and install libidn (you may need to compile with mingw, VC++ may not be able to compile it)
Can you describe what parts I can comment safely?

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

#4 Post by botg » 2004-07-14 10:46

Remove contents of CControlSocket::ConvertDomainName(CString domain)
and just return domain unchanged.

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

#5 Post by eyebex » 2005-05-16 19:32

@botg: How have you compiled libidn, using VC or MinGW? I used MinGW, but when linking libidn.a to FZ (compiled with VC) I still get some unresolved symbols:
FileZilla error LNK2019: Nicht aufgelöstes externes Symbol '_strcasecmp', verwiesen in Funktion '_idna_to_unicode_internal'
FileZilla error LNK2019: Nicht aufgelöstes externes Symbol '_libiconv_close', verwiesen in Funktion '_stringprep_convert'
FileZilla error LNK2019: Nicht aufgelöstes externes Symbol '___errno', verwiesen in Funktion '_stringprep_convert'
FileZilla error LNK2019: Nicht aufgelöstes externes Symbol '_libiconv', verwiesen in Funktion '_stringprep_convert'
FileZilla error LNK2019: Nicht aufgelöstes externes Symbol '_libiconv_open', verwiesen in Funktion '_stringprep_convert'
FileZilla error LNK2019: Nicht aufgelöstes externes Symbol '_nl_langinfo', verwiesen in Funktion '_stringprep_locale_charset'
Any hints how to resolve them?

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

#6 Post by botg » 2005-05-16 20:16

Your version of libidn somehow depends on libiconv. Try to configure libidn without libiconv support. (See ./configure --help)

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

#7 Post by eyebex » 2005-05-22 12:25

Thanks. Here's what I did:

Code: Select all

./configure --without-libiconv CFLAGS=-mno-cygwin LDFLAGS=-mno-cygwin
(I'm using Cygwin with the MinGW headers, so I need to specify -mno-cygwin to make the Cygwin GCC use the MinGW runtime.)

But still then I get:
FileZilla warning LNK4217: Lokal definiertes Symbol __iob, importiert in Funktion _stringprep_convert
FileZilla error LNK2019: Nicht aufgelöstes externes Symbol '_strcasecmp', verwiesen in Funktion '_idna_to_unicode_internal'
FileZilla fatal error LNK1120: 1 unaufgelöste externe Verweise

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

#8 Post by eyebex » 2005-05-22 14:19

Okay, here's finally what worked for me:

- Download & unpack ftp://alpha.gnu.org/pub/gnu/libidn/libidn-0.5.9.tar.gz

- Under Cygwin (with MinGW packages installed) run:
./configure --without-libiconv CFLAGS="-mno-cygwin -Dstrcasecmp=stricmp" LDFLAGS=-mno-cygwin
make
in the directory where you unpacked libidn.

- Add libidn\lib to VC's include directories and libidn\lib\.libs to the library directories.

- Build FZ from the VS IDE using the supplied .sln file.

Now I'm finally able to work on the patches I was planning ;-)

Post Reply