NetBSD Problem Report #55078
From www@netbsd.org Tue Mar 17 12:55:35 2020
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id D0B441A9213
for <gnats-bugs@gnats.NetBSD.org>; Tue, 17 Mar 2020 12:55:35 +0000 (UTC)
Message-Id: <20200317125534.A09B51A921A@mollari.NetBSD.org>
Date: Tue, 17 Mar 2020 12:55:34 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joern.clausen@uni-bielefeld.de
To: gnats-bugs@NetBSD.org
Subject: graphics/gnuplot does not build with readline
X-Send-Pr-Version: www-1.0
>Number: 55078
>Category: pkg
>Synopsis: graphics/gnuplot does not build with readline
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Mar 17 13:00:00 +0000 2020
>Closed-Date: Tue Mar 17 19:43:18 +0000 2020
>Last-Modified: Tue Mar 17 19:43:18 +0000 2020
>Originator: Joern Clausen
>Release:
>Organization:
Bielefeld University
>Environment:
>Description:
graphics/gnuplot fails to build when READLINE_DEFAULT is set to readline (instead of the default "editline") with
gcc -DHAVE_CONFIG_H -I. -I.. -I../term -I../term -DBINDIR=\"/usr/pkg/bin\" -DX11_DRIVER_DIR=\"/usr/pkg/libexec/gnuplot/5.2\" -DQT_DRIVER_DIR=\"/usr/pkg/libexec/gnuplot/5.2\" -DGNUPLOT_SHARE_DIR=\"/usr/pkg/share/gnuplot/5.2\" -DGNUPLOT_PS_DIR=\"/usr/pkg/share/gnuplot/5.2/PostScript\" -DGNUPLOT_JS_DIR=\"/usr/pkg/share/gnuplot/5.2/js\" -DGNUPLOT_LUA_DIR=\"/usr/pkg/share/gnuplot/5.2/lua\" -DCONTACT=\"gnuplot-bugs@lists.sourceforge.net\" -DHELPFILE=\"/usr/pkg/share/gnuplot/5.2/gnuplot.gih\" -DGNUPLOT_X11=\"`echo gnuplot_x11 | sed 's,x,x,'`\" -DXAPPLRESDIR=\"/etc/X11/app-defaults/\" -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include/cairo -I/usr/pkg/include/pixman-1 -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include/uuid -I/usr/pkg/include/libpng16 -I/usr/pkg/include/pango-1.0 -I/usr/pkg/include/glib-2.0 -I/usr
/pkg/lib/glib-2.0/include -I/usr/pkg/include/harfbuzz -I/usr/pkg/include/fribidi -D_REENTRANT -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -MT history.o -MD -MP -MF $depbase.Tpo -c -o history.o history.c &&\
mv -f $depbase.Tpo $depbase.Po
history.c:281:1: error: unknown type name 'histdata_t'; did you mean 'stack_t'?
histdata_t
^~~~~~~~~~
stack_t
history.c:282:20: error: unknown type name 'HIST_ENTRY'; did you mean 'KEYMAP_ENTRY'?
free_history_entry(HIST_ENTRY *histent)
^~~~~~~~~~
KEYMAP_ENTRY
history.c: In function 'gp_read_history':
history.c:381:7: warning: implicit declaration of function 'add_history'; did you mean 'cancel_history'? [-Wimplicit-function-declaration]
add_history(pline);
^~~~~~~~~~~
cancel_history
history.c: In function 'write_history_list':
history.c:404:11: error: unknown type name 'HIST_ENTRY'
const HIST_ENTRY *list_entry;
^~~~~~~~~~
This happens on both NetBSD and Solaris, and is severe on Solaris, as editline currently does not build on that platform (see pkg/55064).
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
From: "Rin Okuyama" <rin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/55078 CVS commit: pkgsrc/graphics/gnuplot
Date: Tue, 17 Mar 2020 13:40:04 +0000
Module Name: pkgsrc
Committed By: rin
Date: Tue Mar 17 13:40:04 UTC 2020
Modified Files:
pkgsrc/graphics/gnuplot: Makefile
Log Message:
PR pkg/55078
Let users choose editline or readline by READLINE_DEFAULT.
Bump revision.
To generate a diff of this commit:
cvs rdiff -u -r1.139 -r1.140 pkgsrc/graphics/gnuplot/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->feedback
State-Changed-By: rin@NetBSD.org
State-Changed-When: Tue, 17 Mar 2020 13:47:00 +0000
State-Changed-Why:
gnuplot 5.2.8nb5 fixes problem for me on NetBSD.
Could you try it?
From: =?UTF-8?Q?Clausen=2c_J=c3=b6rn?= <joern.clausen@uni-bielefeld.de>
To: <gnats-bugs@netbsd.org>, <pkg-manager@netbsd.org>,
<pkgsrc-bugs@netbsd.org>, <gnats-admin@netbsd.org>, <rin@netbsd.org>
Cc:
Subject: Re: pkg/55078 (graphics/gnuplot does not build with readline)
Date: Tue, 17 Mar 2020 15:03:34 +0100
gnuplot now builds for me on NetBSD with either readline or editline,
and on Solaris with readline. When/if editline is fixed on Solaris, I am
sure gnuplot will also accept that library :)
Thanks for the quick fix!
--
Jörn Clausen
Plattformen & Serverdienste
BITS - Bielefelder IT-Servicezentrum
https://www.uni-bielefeld.de/bits
State-Changed-From-To: feedback->closed
State-Changed-By: rin@NetBSD.org
State-Changed-When: Tue, 17 Mar 2020 19:43:18 +0000
State-Changed-Why:
Fix confirmed. Thanks for rapid response!
>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.