gnutls-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnutls-dev] Re: gnutls 1.2.8 and mingw32


From: Simon Josefsson
Subject: [gnutls-dev] Re: gnutls 1.2.8 and mingw32
Date: Mon, 24 Oct 2005 13:46:19 +0200
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

Enrico Tassi <address@hidden> writes:

> I've few problems in cross-compiling gnutls 1.2.8.

Thanks!  After fixing the problems, did the resulting GnuTLS build
work?  I.e., if you built the "anonself" self test, did it work if you
copied it to a Windows machine?

Did you see the thread "Build gnutls on windows" on help-gnutls?  It
seems mingw32 is not a POSIX compatible platform, so even if you
manage to get things to link, the POSIX functions "send", "recv" etc
may not behave as expected.  In particular, they supposedly doesn't
set errno.  I think we could solve all of these problems through
gnulib modules, but it may be quite some work.  Compare "plibc", a
POSIX layer for mingw32.  I believe GnuTLS require POSIX behavior in a
few other places too.

> 1) inet_ntop.h includes sys/socket.h and other unix specific headers
>    while it should do like common.h where this inclusion is conditional
>    to the _WIN32 define
>
> 2) even if I fix the first problem EAFNOSUPPORT is still undefined in
>    inet_ntop.c (so I added a dummy #define setting it equal to 1) 

I'll look into fixing inet_ntop.

Thanks,
Simon



reply via email to

[Prev in Thread] Current Thread [Next in Thread]