[OpenIndiana-discuss] Wine and recent Openindiana

bentahyr at chez.com bentahyr at chez.com
Wed May 23 23:33:16 UTC 2018


Yes, thanks for the work by the OI team, it is quite easy to compile 
recent version.

For wine 3.8, just use the following patch :
================= BEGIN
--- dlls/ntdll/signal_i386.c    2016-12-24 08:52:13.000000000 +1300
+++ dlls/ntdll/signal_i386.c    2017-01-03 15:34:44.137167786 +1300
@@ -326,6 +326,10 @@
  #define gregs regs
  #endif

+#if defined(__sun) && defined(__SVR4)
+#include <sys/regset.h>
+#endif
+
  #define EAX_sig(context)     ((context)->uc_mcontext.gregs[EAX])
  #define EBX_sig(context)     ((context)->uc_mcontext.gregs[EBX])
  #define ECX_sig(context)     ((context)->uc_mcontext.gregs[ECX])
--- dlls/ntdll/virtual.c        2018-05-12 06:20:21.000000000 +0000
+++ dlls/ntdll/virtual.c        2018-05-22 14:00:17.283013377 +0000
@@ -1853,7 +1853,7 @@
   */
  void virtual_get_system_info( SYSTEM_BASIC_INFORMATION *info )
  {
-#ifdef HAVE_SYSINFO
+#if defined(HAVE_SYSINFO) && !defined(__sun)
      struct sysinfo sinfo;
  #endif

@@ -1862,7 +1862,7 @@
      info->PageSize                = page_size;
      info->MmLowestPhysicalPage    = 1;
      info->MmHighestPhysicalPage   = 0x7fffffff / page_size;
-#ifdef HAVE_SYSINFO
+#if defined(HAVE_SYSINFO) && !defined(__sun)
      if (!sysinfo(&sinfo))
      {
          ULONG64 total = (ULONG64)sinfo.totalram * sinfo.mem_unit;
================= END

then :
  make sure you have /usr/gnu/bin first in you PATH
  $ ./configure CFLAGS=-std=gnu99 CXXFLAGS=-std=gnu99 LDFLAGS=-lumem 
--prefix=/opt/wine
  $ gmake -j4
  # gmake install (as root)
  $ export UMEM_OPTIONS=backend=mmap

And enjoy.

If you want wine staging, apply the staging patches first then the above 
patch.
This only compile 32bits, I haven't find the way to compile the 64bits 
version (in between the libs path in the linux world and the solaris 
world and the 64bits switches).

Best regards.
Ben

Le 2018-05-23 23:24, openbabel a écrit :
> Has anyone managed to compile the latest versions 3.x of wine ?
> 
> regards,
> 
> Robert
> 
> 



More information about the openindiana-discuss mailing list