Subject: Re: Run cross-compiled libssh2 win32 apps in wine?

Re: Run cross-compiled libssh2 win32 apps in wine?

From: Simon Josefsson <simon_at_josefsson.org>
Date: Fri, 29 Jan 2010 22:23:02 +0100

Peter Stuge <peter_at_stuge.se> writes:

> I just cross-compiled libgpg-error-1.7, libgcrypt-1.4.5 and
> libssh2-git with mingw, and I want to run the examples in wine,
> but libgcrypt throws an error in random/rndw32.c:
>
> DBG: rndw32: get performance data problem: ec=2

It is just a warning.

> This is in registry_poll() which seems to be called when
> GetModuleHandle("NTDll.dll") fails. I get a bunch of fixme:ntdll:..
> messages from wine also, but in general I understand that randomness
> within wine might be tricky.

Indeed. The problem is that Wine's emulation of Windows is buggy here,
so it returns an error code instead of the expected data.

> Question is, has anyone (Simon?) successfully run cross-compiled (or
> natively built, for that matter!) libssh2 programs in wine?

Sure -- I believe the self-test is running under Wine when I built my
binary Windows build.

> And if you did - were you using libgcrypt or OpenSSL for crypto?

The binaries on http://josefsson.org/gnutls4win/ are built with
libgcrypt. See the Makefile for how to build libssh2 using debian's
mingw + wine. You'll need binfmt_support to make Windows binaries be
ran under Wine automatically.

/Simon
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-01-29