Home My Page Projects Code Snippets Project Openings SML/NJ Bugs
Summary Activity Tracker Lists

[#39] [diff] SML/NJ doesn\'t build on NetBSD out of the box

Date:
2009-11-01 14:45
Priority:
3
State:
Closed
Submitted by:
Bug Submitter (webuser)
Assigned to:
John Reppy (jhr)
Machine Architecture:
x86
Operating System:
NetBSD
Component:
Installer
Resolution:
None
Severity:
Major
OS Version:
5.0
SML/NJ Version:
110.71
Keywords:
URL:
Transcript (of reproduction):
Source (for reproduction):
Summary:
[diff] SML/NJ doesn\'t build on NetBSD out of the box

Detailed description
You cannot install SML/NJ on NetBSD without patchwork.
Fix:
NetBSD versions older than 4.0 are desupported.

--- config/_arch-n-opsys.orig 2008-08-13 22:37:59.000000000 +0400
+++ config/_arch-n-opsys 2009-01-27 17:24:34.000000000 +0300
@@ -118,13 +118,15 @@
;;
NetBSD)
case `uname -r` in
- 2*) OPSYS=netbsd2;;
- 3*) OPSYS=netbsd;;
- *) exit 1;;
+ 1.*) exit 1;;
+ 2.*) OPSYS=netbsd2;;
+ *) OPSYS=netbsd;;
esac
HEAP_OPSYS=bsd
- case `uname -m` in
+ case `uname -p` in
*86) ARCH=x86;;
+ powerpc) ARCH=ppc;;
+ sparc) ARCH=sparc;;
*) exit 1;;
esac
;;

NetBSD has POSIX signals since 2.0 at least.

--- src/runtime/include/ml-unixdep.h.orig 2008-12-05 20:57:39.000000000 +0300
+++ src/runtime/include/ml-unixdep.h 2009-03-19 00:14:35.000000000 +0300
@@ -323,7 +323,7 @@
#elif defined(OPSYS_NETBSD) /* version 3.x */
# define OS_NAME \"BSD\"
# define HAS_POSIX_LIBRARIES
-# define HAS_BSD_SIGS
+# define HAS_POSIX_SIGS
# define HAS_GETRUSAGE
# define HAS_SETITIMER
# define HAS_MMAP

NetBSD has POSIX signals since 2.0 at least.

--- base/runtime/include/ml-unixdep.h.orig 2008-12-05 20:57:39.000000000 +0300
+++ base/runtime/include/ml-unixdep.h 2009-03-19 00:16:29.000000000 +0300
@@ -323,7 +323,7 @@
#elif defined(OPSYS_NETBSD) /* version 3.x */
# define OS_NAME \"BSD\"
# define HAS_POSIX_LIBRARIES
-# define HAS_BSD_SIGS
+# define HAS_POSIX_SIGS
# define HAS_GETRUSAGE
# define HAS_SETITIMER
# define HAS_MMAP


Submitted via web form by Aleksej Saushev <asau@netbsd.org>

Comments:

Message  ↓
Date: 2011-05-10 22:30
Sender: John Reppy

Fixed by Jon Riehl (r3492)

Attached Files:

Changes

Field Old Value Date By
status_idOpen2011-05-10 22:30jhr
close_date2011-05-10 22:302011-05-10 22:30jhr
assigned_tonone2011-04-08 16:53jhr