pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/49723: emulators/qemu fails to build on a NetBSD/sparc64 host - file user-exec.c



>Number:         49723
>Category:       pkg
>Synopsis:       emulators/qemu fails to build on a NetBSD/sparc64 host - file user-exec.c
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 05 20:40:00 +0000 2015
>Originator:     Palle Lyckegaard
>Release:        2014Q4
>Organization:
>Environment:
NetBSD odin.lyckegaard.dk 6.0_RC1 NetBSD 6.0_RC1 (GENERIC) sparc64

>Description:
Building fails since the variable pc is not declared.
>How-To-Repeat:

>Fix:
Here is a diff that fixes the build issue:

--- work/qemu-2.2.0/user-exec.c.orig    2015-03-03 09:38:05.000000000 +0100
+++ work/qemu-2.2.0/user-exec.c 2015-03-05 06:01:26.000000000 +0100
@@ -404,6 +404,10 @@
     struct sigcontext *uc = puc;
     unsigned long pc = uc->sc_pc;
     void *sigmask = (void *)(long)uc->sc_mask;
+#elif defined(__NetBSD__)
+    ucontext_t *uc = puc;
+    unsigned long pc = _UC_MACHINE_PC(uc);
+    void *sigmask = (void *)&uc->uc_sigmask;
 #endif
 #endif



Home | Main Index | Thread Index | Old Index