NetBSD Problem Report #47870

From www@NetBSD.org  Thu May 30 16:14:16 2013
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 4C3EB71A2D
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 30 May 2013 16:14:16 +0000 (UTC)
Message-Id: <20130530161414.63A9671A48@mollari.NetBSD.org>
Date: Thu, 30 May 2013 16:14:14 +0000 (UTC)
From: davshao@gmail.com
Reply-To: davshao@gmail.com
To: gnats-bugs@NetBSD.org
Subject: math/nickle DragonFly readline USE_GNU_READLINE error: 'rl_catch_signals' undeclared 
X-Send-Pr-Version: www-1.0

>Number:         47870
>Category:       pkg
>Synopsis:       math/nickle DragonFly readline USE_GNU_READLINE error: 'rl_catch_signals' undeclared
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 30 16:15:00 +0000 2013
>Closed-Date:    Thu May 30 16:58:26 +0000 2013
>Last-Modified:  Thu May 30 22:05:00 +0000 2013
>Originator:     David Shao
>Release:        DragonFly 3.5-DEVELOPMENT i386 x86_64
>Organization:
>Environment:
DragonFly 3.5-DEVELOPMENT i386 x86_64
>Description:
On DragonFly 3.5-DEVELOPMENT i386 x86_64, using pkgsrc current master as of:

commit fedde632eeb4be1af41e44806398d8a57bb857a0
Date:   Thu May 30 06:34:42 2013 -0700

math/nickle fails to build:

checking for tparm in -lncurses... no
checking for tgetent in -ltermcap... yes
checking for readline in -lreadline... yes
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking whether rl_catch_signals is declared... no
checking whether rl_reset_after_signal is declared... no
checking whether rl_cleanup_after_signal is declared... yes
...
cc -DHAVE_CONFIG_H -I.  -DBUILD=\"""\"  -DBUILD_VERSION=\""2.77"\"  -DLOCAL_BUILD  -DNICKLELIBDIR=\"/usr/pkg/share/nickle\"  -I/usr/include -D_FORTIFY_SOURCE=2 -O2  -Wall -Wpointer-arith -Wstrict-prototypes  -Wmissing-prototypes -Wmissing-declarations  -Wnested-externs -fno-strict-aliasing -fwrapv -O2 -g -I/usr/include -MT lex.o -MD -MP -MF .deps/lex.Tpo -c -o lex.o lex.c
lex.l: In function 'LexInit':
lex.l:129:27: warning: assignment from incompatible pointer type [enabled by default]
lex.l:131:5: error: 'rl_catch_signals' undeclared (first use in this function)
lex.l:131:5: note: each undeclared identifier is reported only once for each function it appears in
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/math/nickle/work/nickle-2.77
*** Error code 1

The Makefile for math/nickle was recently changed so that 
USE_GNU_READLINE=	yes
is set only for certain versions of NetBSD, whereas previously it appears to have been the default for everyone.

>How-To-Repeat:

>Fix:
Changing the Makefile by adding

.if (${OPSYS} == DragonFly)
USE_GNU_READLINE= yes
.endif

enabled math/nickle to build on both DragonFly 3.5-DEVELOPMENT i386 x86_64.  However instead of trying to guess whether each OS needs USE_GNU_READLINE, perhaps it would be better, if possible, to have USE_GNU_READLINE set or not controlled by an option in options.mk.

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Thu, 30 May 2013 16:58:26 +0000
State-Changed-Why:
Fixed, I hope.
Not switching to an options because not that many opsys have
editline in base.


From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/47870 CVS commit: pkgsrc/math/nickle
Date: Thu, 30 May 2013 16:58:01 +0000

 Module Name:	pkgsrc
 Committed By:	wiz
 Date:		Thu May 30 16:58:01 UTC 2013

 Modified Files:
 	pkgsrc/math/nickle: Makefile

 Log Message:
 DragonFly needs GNU readline here as well. PR pkg/47870 by David Shao.


 To generate a diff of this commit:
 cvs rdiff -u -r1.12 -r1.13 pkgsrc/math/nickle/Makefile

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

From: David Shao <davshao@gmail.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/47870: math/nickle DragonFly readline USE_GNU_READLINE error:
 'rl_catch_signals' undeclared
Date: Thu, 30 May 2013 15:02:45 -0700

 Adding DragonFly to the OSes for which USE_GNU_READLINE = yes allows
 math/nickle to build for both DragonFly 3.5-DEVELOPMENT i386 and
 x86_64.  Thanks!

>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.