Subject: pkg/9114: pkgsrc/lang/sml-nj ELF problem (fix included)
To: None <gnats-bugs@gnats.netbsd.org>
From: None <boquist@crt.se>
List: netbsd-bugs
Date: 01/04/2000 02:54:38
>Number: 9114
>Category: pkg
>Synopsis: SML package is not updated for i386 ELF
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager (NetBSD software packages system bug manager)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jan 4 02:54:01 2000
>Last-Modified:
>Originator: Urban Boquist
>Organization:
Carlstedt Research & Technology AB, Sweden
>Release: NetBSD-current 2000-01-01
>Environment:
System: NetBSD iller 1.4P NetBSD 1.4P (ILLER) #0: Tue Dec 28 21:27:34 CET 1999 root@iller:/usr/src/sys/arch/i386/compile/ILLER i386
>Description:
The SML runtime system fails to link due to symbol name problems
(underscores). The fix is trivial, simply change the patch that is
already included in the package (as files/patch-global-names) to the
one below.
>How-To-Repeat:
cd pkgsrc/lang/sml-nj
make
>Fix:
--- src/runtime/include/asm-base.h.orig Thu Aug 6 15:40:30 1998
+++ src/runtime/include/asm-base.h Tue Jan 4 11:13:08 2000
@@ -16,7 +16,7 @@
#define FALSE 0
#define TRUE 1
-#if (!defined(GLOBALS_HAVE_UNDERSCORE)) && (defined(OPSYS_SUNOS) || defined(OPSYS_FREEBSD) || defined(OPSYS_NETBSD) || defined(OPSYS_NEXTSTEP) || defined(OPSYS_WIN32))
+#if (!defined(GLOBALS_HAVE_UNDERSCORE)) && (defined(OPSYS_SUNOS) || (defined(OPSYS_FREEBSD) && !defined(__ELF__)) || (defined(OPSYS_NETBSD) && !defined(__ELF__)) || defined(OPSYS_NEXTSTEP) || defined(OPSYS_WIN32))
# define GLOBALS_HAVE_UNDERSCORE
#endif
>Audit-Trail:
>Unformatted: