pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: emulators/wine build failure
> From: Paul Goyette <paul%whooppee.com@localhost>
> Date: Thu, 30 Jul 2026 16:40:53 -0700 (PDT)
>
> On host netbsd-11.99.6 (amd64)
>
> dlls/ntdll/unix/signal_x86_64.c: In function 'save_context':
> dlls/ntdll/unix/signal_x86_64.c:899:5: error: cannot convert to a pointer type
> 899 | if (FPU_sig(sigcontext))
> | ^~
Please try applying the attached patch, which should work on all
versions of NetBSD unconditionally.
For details and background, and why it's probably better to just apply
this patch than to attempt further changes to NetBSD, see
PR kern/60539: XSAVE changes break ucontext userspace API
https://gnats.NetBSD.org/60539
--- wine-9.0/dlls/ntdll/unix/signal_x86_64.c.~1~ 2024-01-16 20:55:47.000000000 +0000
+++ wine-9.0/dlls/ntdll/unix/signal_x86_64.c 2026-10-26 06:23:29.438210431 +0000
@@ -203,7 +203,7 @@
#define RSP_sig(context) (*((unsigned long*)&(context)->uc_mcontext.__gregs[_REG_URSP]))
#define TRAP_sig(context) ((context)->uc_mcontext.__gregs[_REG_TRAPNO])
#define ERROR_sig(context) ((context)->uc_mcontext.__gregs[_REG_ERR])
-#define FPU_sig(context) ((XMM_SAVE_AREA32 *)((context)->uc_mcontext.__fpregs))
+#define FPU_sig(context) ((XMM_SAVE_AREA32 *)(&(context)->uc_mcontext.__fpregs))
#define XState_sig(context) NULL
#elif defined (__APPLE__)
Home |
Main Index |
Thread Index |
Old Index