NetBSD Problem Report #59915
From www@netbsd.org Wed Jan 14 06:29:17 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "mail.netbsd.org", Issuer "R13" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 888071A923E
for <gnats-bugs@gnats.NetBSD.org>; Wed, 14 Jan 2026 06:29:17 +0000 (UTC)
Message-Id: <20260114062916.6C7511A9242@mollari.NetBSD.org>
Date: Wed, 14 Jan 2026 06:29:16 +0000 (UTC)
From: kevin.bowling@kev009.com
Reply-To: kevin.bowling@kev009.com
To: gnats-bugs@NetBSD.org
Subject: shells/ksh93 fails on NetBSD current
X-Send-Pr-Version: www-1.0
X-From4GNATS: "kevin.bowling@kev009.com via gnats" <gnats-admin@NetBSD.org>
>Number: 59915
>Category: pkg
>Synopsis: shells/ksh93 fails on NetBSD current
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jan 14 06:30:00 +0000 2026
>Closed-Date: Wed Jan 14 10:22:46 +0000 2026
>Last-Modified: Wed Jan 14 10:25:00 +0000 2026
>Originator: Kevin Bowling
>Release: netbsd head (11.99.4), pkgsrc head (01/13/2025)
>Organization:
>Environment:
NetBSD kev-ws-t480.cv0.bbox.io 11.99.4 NetBSD 11.99.4 (GENERIC) #0: Tue Jan 13 02:48:42 MST 2026 kev009@kev-ws-t480.cv0.bbox.io:/usr/obj/sys/arch/amd64/compile/GENERIC amd64
>Description:
The build fails in the embedded libast with an incompatible pointer type and then the internal struct statfs not being defined. I am guessing a feature test has broken, maybe with gcc14.
+ cc -D_BLD_DLL -fPIC -D_BLD_ast -Os -O2 -fno-strict-aliasing -I. -I/usr/pkgsrc/shells/ksh93/work/ksh-1.0.10/src/lib/libast -
Icomp -I/usr/pkgsrc/shells/ksh93/work/ksh-1.0.10/src/lib/libast/comp -Iinclude -I/usr/pkgsrc/shells/ksh93/work/ksh-1.0.10/src
/lib/libast/include -Istd -I/usr/pkgsrc/shells/ksh93/work/ksh-1.0.10/src/lib/libast/std -c /usr/pkgsrc/shells/ksh93/work/ksh-
1.0.10/src/lib/libast/port/mnt.c
/usr/pkgsrc/shells/ksh93/work/ksh-1.0.10/src/lib/libast/port/mnt.c: In function 'mntopen':
/usr/pkgsrc/shells/ksh93/work/ksh-1.0.10/src/lib/libast/port/mnt.c:272:24: error: passing argument 1 of 'getmntinfo' from inc
ompatible pointer type [-Wincompatible-pointer-types]
272 | n = getmntinfo(&mp->next, 0);
| ^~~~~~~~~
| |
| struct statfs **
In file included from ./ast_fs.h:23,
from ./ast_fcntl.h:5,
from /usr/pkgsrc/shells/ksh93/work/ksh-1.0.10/src/lib/libast/include/ast_std.h:66,
from /usr/pkgsrc/shells/ksh93/work/ksh-1.0.10/src/lib/libast/include/ast.h:32,
from /usr/pkgsrc/shells/ksh93/work/ksh-1.0.10/src/lib/libast/port/mnt.c:28:
/usr/include/sys/statvfs.h:160:20: note: expected 'struct statvfs **' but argument is of type 'struct statfs **'
160 | int getmntinfo(struct statvfs **, int)
| ^~~~~~~~~~~~~~~~~
/usr/pkgsrc/shells/ksh93/work/ksh-1.0.10/src/lib/libast/port/mnt.c:279:29: error: invalid use of undefined type 'struct statf
s'
etc
>How-To-Repeat:
Build shells/ksh93 on current
>Fix:
>Release-Note:
>Audit-Trail:
From: Kevin Bowling <kevin.bowling@kev009.com>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/59915: shells/ksh93 fails on NetBSD current
Date: Tue, 13 Jan 2026 23:40:17 -0700
https://github.com/ksh93/ksh/commit/7801fb03400bdf4be87d06b379314eaa412a136=
6
may be a fix
On Tue, Jan 13, 2026 at 11:30=E2=80=AFPM <gnats-admin@netbsd.org> wrote:
>
> Thank you very much for your problem report.
> It has the internal identification `pkg/59915'.
> The individual assigned to look at your
> report is: pkg-manager.
>
> >Category: pkg
> >Responsible: pkg-manager
> >Synopsis: shells/ksh93 fails on NetBSD current
> >Arrival-Date: Wed Jan 14 06:30:00 +0000 2026
>
From: Kevin Bowling <kevin.bowling@kev009.com>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/59915: shells/ksh93 fails on NetBSD current
Date: Tue, 13 Jan 2026 23:57:06 -0700
Here is that as a 'mkpatches' patch that fixes the build
https://people.freebsd.org/~kbowling/patch-src_lib_libast_features_fs
On Tue, Jan 13, 2026 at 11:45=E2=80=AFPM Kevin Bowling via gnats
<gnats-admin@netbsd.org> wrote:
>
> The following reply was made to PR pkg/59915; it has been noted by GNATS.
>
> From: Kevin Bowling <kevin.bowling@kev009.com>
> To: gnats-bugs@netbsd.org
> Cc:
> Subject: Re: pkg/59915: shells/ksh93 fails on NetBSD current
> Date: Tue, 13 Jan 2026 23:40:17 -0700
>
> https://github.com/ksh93/ksh/commit/7801fb03400bdf4be87d06b379314eaa412a=
136=3D
> 6
> may be a fix
>
> On Tue, Jan 13, 2026 at 11:30=3DE2=3D80=3DAFPM <gnats-admin@netbsd.org> =
wrote:
> >
> > Thank you very much for your problem report.
> > It has the internal identification `pkg/59915'.
> > The individual assigned to look at your
> > report is: pkg-manager.
> >
> > >Category: pkg
> > >Responsible: pkg-manager
> > >Synopsis: shells/ksh93 fails on NetBSD current
> > >Arrival-Date: Wed Jan 14 06:30:00 +0000 2026
> >
>
State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Wed, 14 Jan 2026 10:22:46 +0000
State-Changed-Why:
Committed, thanks!
From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/59915 CVS commit: pkgsrc/shells/ksh93
Date: Wed, 14 Jan 2026 10:22:23 +0000
Module Name: pkgsrc
Committed By: wiz
Date: Wed Jan 14 10:22:23 UTC 2026
Modified Files:
pkgsrc/shells/ksh93: distinfo
Added Files:
pkgsrc/shells/ksh93/patches: patch-src_lib_libast_features_fs
Log Message:
ksh93: fix build on -current
From Kevin Bowling in PR 59915.
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 pkgsrc/shells/ksh93/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/shells/ksh93/patches/patch-src_lib_libast_features_fs
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>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.