NetBSD Problem Report #15052
Received: (qmail 12691 invoked from network); 25 Dec 2001 14:13:00 -0000
Message-Id: <20011225140624.536A9E9B@river.my.domain>
Date: Tue, 25 Dec 2001 23:06:24 +0900 (JST)
From: hiramatu@boreas.dti.ne.jp
Reply-To: hiramatu@boreas.dti.ne.jp
To: gnats-bugs@gnats.netbsd.org
Subject: couldn't compile reed on 1.5.2
X-Send-Pr-Version: 3.95
>Number: 15052
>Category: pkg
>Synopsis: cannot compile reed on 1.5.2
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Dec 25 14:14:00 +0000 2001
>Closed-Date: Tue Dec 25 15:52:40 +0000 2001
>Last-Modified: Tue Dec 25 15:52:40 +0000 2001
>Originator: Hiramatsu Yoshifumi
>Release: NetBSD 1.5.2
>Organization:
>Environment:
<machine, os, target, libraries (multiple lines)>
NetBSD orange.my.domain 1.5.2 NetBSD 1.5.2 (GENERIC) #3: Sat Aug 18 23:37:05 CEST 2001 he@hamster.urc.uninett.no:/usr/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
compile failure misc/reed on NetBSD 1.5.2 system.
===> Building for reed-4.6
Making all in src
cc -O3 -L/usr/tmp/misc/reed/work/.buildlink/lib -Wl,-R/usr/pkg/lib -o reed reed.o util.o file.o marks.o filemode.o -lncurses
marks.o: In function `delMark':
marks.o(.text+0x17f): warning: tempnam() possibly used unsafely, use mkstemp() or mkdtemp()
util.o: In function `getVar':
util.o(.text+0x56c): undefined reference to `wgetnstr'
util.o: In function `getStr':
util.o(.text+0x647): undefined reference to `wgetnstr'
collect2: ld returned 1 exit status
*** Error code 1
Stop.
*** Error code 1
Stop.
*** Error code 1
Stop.
*** Error code 1
Stop.
>How-To-Repeat:
>Fix:
Set USE_NCURSES=YES when NetBSD is 1.5.x
-current don't need this.
diff -ru reed.orig/Makefile reed/Makefile
--- reed.orig/Makefile Tue Dec 25 22:53:56 2001
+++ reed/Makefile Tue Dec 25 22:54:18 2001
@@ -12,5 +12,11 @@
USE_BUILDLINK_ONLY= YES
REPLACE_PERL= scripts/breed scripts/wrap
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD" && ${OS_VERSION:M1.5.*} != ""
+USE_NCURSES= YES
+.endif
+
.include "../../devel/ncurses/buildlink.mk"
.include "../../mk/bsd.pkg.mk"
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: wiz
State-Changed-When: Tue Dec 25 07:51:26 PST 2001
State-Changed-Why:
Did something similar to what you proposed (added some code to allow
specifying additional NetBSD versions that don't provide all necessary
curses functions). Thanks for the PR!
>Unformatted:
(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.