NetBSD Problem Report #37381

From asau@inbox.ru  Tue Nov 13 23:38:25 2007
Return-Path: <asau@inbox.ru>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id A866063B867
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 13 Nov 2007 23:38:25 +0000 (UTC)
Message-Id: <87pryd3hvj.fsf@inbox.ru>
Date: Wed, 14 Nov 2007 01:22:56 +0300
From: Aleksej Saushev <asau@inbox.ru>
Reply-To:
To: gnats-bugs@NetBSD.org
Subject: [fix] lang/clisp doesn't build on NetBSD-current

>Number:         37381
>Category:       pkg
>Synopsis:       [fix] lang/clisp doesn't build on NetBSD-current
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 13 23:40:00 +0000 2007
>Closed-Date:    Fri Nov 23 22:03:35 +0000 2007
>Last-Modified:  Fri Nov 23 22:03:35 +0000 2007
>Originator:     Aleksej Saushev <asau@inbox.ru>
>Release:        NetBSD 4.99.35
>Organization:
>Environment:
System: NetBSD asau.local 4.99.35 NetBSD 4.99.35 (KERN) #0: Mon Nov 12 01:34:34 MSK 2007 asau@asau.local:/usr/obj/sys/arch/i386/compile/KERN i386
Architecture: i386
Machine: i386
>Description:
	The package doesn't build on current NetBSD, this breaks SBCL and Maxima,
	which depend on CLISP.
>How-To-Repeat:
	cd lang/clisp; make
>Fix:
Thanks to Arnaud Degroote <degroote@netbsd.org>, who suggested the idea:

--- Makefile	13 Nov 2007 01:38:55 +0300	1.64
+++ Makefile	14 Nov 2007 00:52:09 +0300	
@@ -17,6 +17,11 @@

 .include "../../mk/bsd.prefs.mk"

+.if ${OPSYS} == "NetBSD"
+# CLISP doesn't work with jemalloc, which is default in current
+MODULES+=		--with-gmalloc
+.endif
+
 .if ${MACHINE_ARCH:Malpha} || ${MACHINE_ARCH:Mamd64} || ${MACHINE_ARCH:Mx86_64} || ${OPSYS} == "DragonFly"
 MODULES+=		--disable-mmap
 .endif

>Release-Note:

>Audit-Trail:
From: Matthias Drochner <drochner@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/37381 CVS commit: pkgsrc/lang/clisp
Date: Fri, 23 Nov 2007 21:59:44 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	drochner
 Date:		Fri Nov 23 21:59:44 UTC 2007

 Modified Files:
 	pkgsrc/lang/clisp: Makefile

 Log Message:
 Make it build on NetBSD-current again: use a private malloc implementation
 to avoid jemalloc. The simple allocator used by clisp in the NetBSD
 case appears to use some assumptions, like allocations below sbrk(), which
 don't hold with jemalloc. We might switch to another allocator later,
 but as the code looks this needs more work and testing.
 From Aleksej Saushev per PR pkg/37381; the patch is attributed to
 Arnaud Degroote.
 Should also fix PR pkg/37304 from Yakovetsky Vladimir.


 To generate a diff of this commit:
 cvs rdiff -r1.64 -r1.65 pkgsrc/lang/clisp/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: drochner@netbsd.org
State-Changed-When: Fri, 23 Nov 2007 22:03:35 +0000
State-Changed-Why:
patch applied


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.