[Help-gnutls] Re: Build gnutls on windows

Simon Josefsson jas at extundo.com
Mon Sep 19 23:45:41 CEST 2005


Martin Lambers <marlam at marlam.de> writes:

> The copyright assignment process is started.
>
> The patch unfortunately leaves '#include <sys/mman.h>' (line 30) in cli.c.
> This line must be removed. A corrected patch is attached.

Thanks, Martin.  The patch is now installed.

> As a test, I changed gl/getpass.h and gl/getpass.c so that it compiles
> on Win32 (and always returns NULL ;)
> After that, a crossbuild with the Debian mingw32 package worked fine! So
> a gnulib getpass module that works for MinGW is all that is missing for
> a successful Win32 build.

Can you test whether:

http://josefsson.org/daily/gnutls/gnutls-20050919.tar.gz

build correctly for you?

> I have one question, though: src/common.h defines socklen_t to int for
> Win32. This is a redefinition since configure previously detected a
> missing socklen_t and then defined it to be size_t in config.h.
> I think the definition in src/common.h (line 11) should be removed, and
> the configure script should always define socklen_t to int. The
> 'NOTE' section in the Linux connect(2) man page says that it was
> historically an int, and Win32 and MacOS X still use int.

I am now using gnulib's socklen module.

> Last, I wrote a simple getpass() version for Win32 (attached). This
> works completely different from the gnulib getpass module since 
> - Windows has no /dev/tty concept
> - Windows cannot switch terminal properties (AFAIK).
> I have no idea how something like this could be properly integrated into
> a gnulib module.

I have incorporated it into the gnulib getpass module.

Thanks!





More information about the Gnutls-help mailing list