Re: [gtk-vnc-devel] PATCH: Portability to compile under MinGW for Windows



On Wed, Oct 08, 2008 at 07:52:50PM +0100, Daniel P. Berrange wrote:
> +modules='
> +getaddrinfo
> +vc-list-files
> +'

This didn't quite work for me.  I'm not sure if it's because we're
using different versions of gnulib (I'm using the absolute latest
version).  But I also needed the following modules to be added to the
above list:

  recv
  send
  socket
  connect

These modules are all LGPLv2+ so there should be no problem with
adding them.

A second issue is that the socketcompat.h header (copied from libvirt)
redefines some symbols which Gnulib's errno.h header now defines.
Specifically the five redefined error numbers.  Patch to fix this is
attached.  I'm fairly sure that the whole of socketcompat.h could be
removed and replaced with Gnulib headers.

Having said all that, I still couldn't get gvncviewer.exe to run.  It
dies with a rather obscure Wine error:

  err:heap:HEAP_GetPtr Invalid heap (nil)!
  err:heap:HEAP_GetPtr Invalid heap (nil)!
  err:module:attach_process_dlls "KERNEL32.dll" failed to initialize, aborting
  err:module:LdrInitializeThunk Main exe initialization for L"C:\\windows\\system32\\wineboot.exe" failed, status c0000005
  wine: could not load L"Z:\\usr\\i686-pc-mingw32\\sys-root\\mingw\\bin\\gvncviewer.exe": Invalid parameter

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top
diff -urN gtk-vnc-0.3.7.mingw/src/socketcompat.h gtk-vnc-0.3.7.socketcompat/src/socketcompat.h
--- gtk-vnc-0.3.7.mingw/src/socketcompat.h	2008-10-09 12:19:03.000000000 +0100
+++ gtk-vnc-0.3.7.socketcompat/src/socketcompat.h	2008-10-09 12:38:04.000000000 +0100
@@ -52,13 +52,6 @@
   return WSAGetLastError ();
 }
 
-/* Compatibility. */
-#define EWOULDBLOCK             WSAEWOULDBLOCK
-#define ECONNREFUSED            WSAECONNREFUSED
-#define EINPROGRESS             WSAEINPROGRESS
-#define EHOSTUNREACH            WSAEHOSTUNREACH
-#define EISCONN                 WSAEISCONN
-
 #endif /* HAVE_WINSOCK2_H */
 
 #endif /* __WINSOCKWRAPPER_H__ */


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