NetBSD Problem Report #56511
From www@netbsd.org Fri Nov 19 12:44:08 2021
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))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id A95621A9239
for <gnats-bugs@gnats.NetBSD.org>; Fri, 19 Nov 2021 12:44:08 +0000 (UTC)
Message-Id: <20211119124407.C2B081A923A@mollari.NetBSD.org>
Date: Fri, 19 Nov 2021 12:44:07 +0000 (UTC)
From: pekdon@gmail.com
Reply-To: pekdon@gmail.com
To: gnats-bugs@NetBSD.org
Subject: Add strnlen as msising feature on Solaris != 5.11
X-Send-Pr-Version: www-1.0
>Number: 56511
>Category: pkg
>Synopsis: Add strnlen as msising feature on Solaris != 5.11
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: solaris-pkg-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Nov 19 12:45:01 +0000 2021
>Closed-Date: Tue Nov 23 12:35:28 +0000 2021
>Last-Modified: Tue Nov 23 12:35:28 +0000 2021
>Originator: Claes Nästén
>Release: trunk 2021-11-18
>Organization:
>Environment:
SunOS 5.10 i86pc i386 i86pc
>Description:
strnlen is missing on Solaris 10 and earlier, but is not marked as such in SunOS.mk causing packages such as audio/lame fail in linking due to unresolved symbols.
>How-To-Repeat:
Build audio/lame
>Fix:
--- mk/platform/SunOS.mk.orig Fri Nov 19 13:22:53 2021
+++ mk/platform/SunOS.mk Fri Nov 19 13:37:23 2021
@@ -72,6 +72,9 @@
.if !exists(/usr/include/err.h)
_OPSYS_MISSING_FEATURES+=err
.endif
+.if ${OS_VARIANT} == "Solaris" && ${OS_VERSION} != "5.11"
+_OPSYS_MISSING_FEATURES+=strnlen
+.endif
_PATCH_CAN_BACKUP= yes # native patch(1) can make backups
_PATCH_BACKUP_ARG?= -b -V simple -z # switch to patch(1) for backup suffix
_USE_RPATH= yes # add rpath to LDFLAGS
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: hauke@NetBSD.org
Responsible-Changed-When: Fri, 19 Nov 2021 14:34:12 +0000
Responsible-Changed-Why:
This is a SunOS issue.
From: "Nia Alarie" <nia@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/56511 CVS commit: pkgsrc/mk/platform
Date: Tue, 23 Nov 2021 10:37:59 +0000
Module Name: pkgsrc
Committed By: nia
Date: Tue Nov 23 10:37:59 UTC 2021
Modified Files:
pkgsrc/mk/platform: SunOS.mk
Log Message:
mk: Register strnlen as missing on Solaris 10
adapted from PR pkg/56511 from pekdon
To generate a diff of this commit:
cvs rdiff -u -r1.80 -r1.81 pkgsrc/mk/platform/SunOS.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Tue, 23 Nov 2021 12:35:28 +0000
State-Changed-Why:
Fixed by nia, thanks for the report.
>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.