Port-amiga archive

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

sunos compatibility bug (?) in NetBSD 1.3.1+ (fwd)



--- Begin Message ---
marco%amisa.iss.infn.it@localhost discovered that NetBSD/Amiga 1.3.1 and 1.3.2 
do not
handle SunOS/Sun3 executables correctly (even with COMPAT_SUNOS).

The reason is, that a change to sys/arch/amiga/amiga/machdep.c was pulled
up to the 1.3.1 branch by mistake (it would need the corresponding change in 
sys/kern/exec_conf.c to work).

Until 1.3.3 or 1.4 are out, I suggest that you apply the following diff to your
kernel sources and rebuild, if you intend to run SunOS/Sun3 binaries.

Regards,
        Ignatios Souvatzis

From: marco%amisan.iss.infn.it@localhost
Newsgroups: comp.unix.amiga
Subject: sunos compatibility bug (?) in NetBSD 1.3.1+
Date: 16 Jul 1998 14:05:21 GMT
Organization: CASPUR - Inter-University Computing Consortium
Message-ID: <6ol1b1$r74$1%srv.caspur.it@localhost>
NNTP-Posting-Host: amisan.iss.infn.it

Starting from 1.3.1, a change to the function cpu_exec_aout_makecmds in
/sys/arch/amiga/amiga/machdep.c prevents old 68020/sun3 binaries to work with
NetBSD (well, at least the one I use, the algebraic manipulator Schoonschip).
Here is the reverse patch, just in case you need it.
  Ciao. Marco

--- /usr/src/sys/arch/amiga/amiga/machdep.c.orig        Fri Jul  3 12:49:35 1998
+++ /usr/src/sys/arch/amiga/amiga/machdep.c     Fri Jul  3 13:03:00 1998
@@ -2072,4 +2072,13 @@
                return(exec_aout_prep_zmagic(p, epp));
 #endif
+#ifdef COMPAT_SUNOS
+      {
+        extern sunos_exec_aout_makecmds
+        __P((struct proc *, struct exec_package *));
+        if ((error = sunos_exec_aout_makecmds(p, epp)) == 0)
+                return(0);
+
+      }
+#endif
        return(error);
 }


--- End Message ---


Home | Main Index | Thread Index | Old Index