NetBSD Problem Report #18160
Received: (qmail 19995 invoked by uid 605); 3 Sep 2002 21:57:58 -0000
Message-Id: <200209032157.g83LveH20873@bonnie.jaist.ac.jp>
Date: Wed, 4 Sep 2002 06:57:40 +0900 (JST)
From: Ryo HAYASAKA <ryoh@jaist.ac.jp>
Sender: gnats-bugs-owner@netbsd.org
Reply-To: ryoh@jaist.ac.jp
To: gnats-bugs@gnats.netbsd.org
Subject: misc/siag needs USE_NCURSES
X-Send-Pr-Version: 3.95
>Number: 18160
>Category: pkg
>Synopsis: misc/siag needs to set USE_NCURSES in Makefile
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Sep 03 21:58:00 +0000 2002
>Closed-Date: Tue Sep 03 22:43:19 +0000 2002
>Last-Modified: Tue Sep 03 22:43:19 +0000 2002
>Originator: Ryo HAYASAKA
>Release: NetBSD 1.6G
>Organization:
Japan Advanced Institute of Science and Technology (JAIST)
>Environment:
System: NetBSD bonnie.jaist.ac.jp 1.6G NetBSD 1.6G (BONNIE) #298: Mon Sep 2 07:00:02 JST 2002 ryoh@bonnie.jaist.ac.jp:/usr/src/sys/arch/i386/compile/BONNIE i386
Architecture: i386
Machine: i386
>Description:
Because libcurses in our base system is missing the following
functions, USE_NCURSES is required until it is supported.
$ make
...
cc -I/usr/pkg/include -Wall \
-I/usr/pkgsrc/misc/siag/work.i386/.buildlink/include -O2 -Dunix -pipe \
-march=pentiumpro -I/usr/pkg/share/x11-links/include \
-L/usr/pkgsrc/misc/siag/work.i386/.buildlink/lib \
-L/usr/pkg/share/x11-links/lib -Wl,-R/usr/X11R6/lib -Wl,-R/usr/pkg/lib \
-o tsiag -L../siod -L../common -L../siag fonts.o forminput.o window.o \
selection.o tsiag.o -lsiag -lcommon -lsiod -lncurses -ltermcap -lcrypt \
-L/usr/pkg/lib -lguile -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib \
-lm -lm
/usr/pkg/lib/libguile.so: warning: tmpnam() possibly used unsafely, use mkstemp() or mkdtemp()
window.o: In function `pr_region':
window.o(.text+0xb8): undefined reference to `acs_map'
window.o(.text+0x1c9): undefined reference to `acs_map'
window.o(.text+0x213): undefined reference to `acs_map'
window.o(.text+0x271): undefined reference to `acs_map'
window.o(.text+0x2e5): undefined reference to `acs_map'
window.o(.text+0x416): undefined reference to `wattr_on'
window.o(.text+0x42d): undefined reference to `wattr_off'
window.o(.text+0x44e): undefined reference to `wattr_on'
window.o(.text+0x465): undefined reference to `wattr_off'
window.o: In function `edit_cell':
window.o(.text+0xf0d): undefined reference to `acs_map'
window.o: In function `show_cur':
window.o(.text+0x1bf5): undefined reference to `acs_map'
window.o: In function `select_from_list':
window.o(.text+0x1f45): undefined reference to `acs_map'
window.o(.text+0x1f73): undefined reference to `acs_map'
collect2: ld returned 1 exit status
gmake[2]: *** [tsiag] Error 1
gmake[2]: Leaving directory `/usr/pkgsrc/misc/siag/work.i386/siag-3.1.20/tsiag'
>How-To-Repeat:
$ make
>Fix:
Index: Makefile
===================================================================
RCS file: /usr/cvsup/pkgsrc/misc/siag/Makefile,v
retrieving revision 1.26
diff -d -p -u -r1.26 Makefile
--- Makefile 2002/05/29 14:45:57 1.26
+++ Makefile 2002/09/03 20:39:06
@@ -18,6 +18,7 @@ CONFIGURE_ARGS= --with-x --with-guile --
GNU_CONFIGURE= YES
USE_BUILDLINK_ONLY= YES
USE_GMAKE= YES
+USE_NCURSES= YES
CFLAGS+= -Dunix
_STRIPFLAG_INSTALL=
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: wiz
State-Changed-When: Tue Sep 3 15:40:50 PDT 2002
State-Changed-Why:
Thank you for the problem report.
The diagnosis is incorrect, though.
If you have ncurses installed when you try to use siag, it found the
ncurses package's ncurses.h and used that instead of the curses.h one
intended to be found; since our curses and ncurses have slightly different
ideas of what to have as functions vs. macros, including one header and
linking against the other library (as happened in this case) doesn't work.
I converted the package to use buildlink2, and tested on my system
that this fixes the problem.
>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.