Subject: pkg/15052: couldn't compile reed on 1.5.2
To: None <gnats-bugs@gnats.netbsd.org>
From: None <hiramatu@boreas.dti.ne.jp>
List: netbsd-bugs
Date: 12/25/2001 23:06:24
>Number:         15052
>Category:       pkg
>Synopsis:       cannot compile reed on 1.5.2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 25 06:14:00 PST 2001
>Closed-Date:
>Last-Modified:
>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:
>Unformatted: