NetBSD Problem Report #60262
From dholland@netbsd.org Thu May 14 21:17:08 2026
Return-Path: <dholland@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" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 263511A9239
for <gnats-bugs@gnats.NetBSD.org>; Thu, 14 May 2026 21:17:08 +0000 (UTC)
Message-Id: <20260514211707.C4EA785599@mail.netbsd.org>
Date: Thu, 14 May 2026 21:17:07 +0000 (UTC)
From: dholland@NetBSD.org
Reply-To: dholland@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: graphics/graphviz fails build with previous version installed
X-Send-Pr-Version: 3.95
X-From4GNATS: "dholland@NetBSD.org via gnats" <gnats-admin@NetBSD.org>
>Number: 60262
>Category: pkg
>Synopsis: graphics/graphviz fails build with previous version installed
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu May 14 21:20:00 +0000 2026
>Originator: David A. Holland
>Release: NetBSD 11.99.4 (20260101), pkgsrc 20260504
>Organization:
webuildem/ufixem
>Environment:
System: NetBSD valkyrie 11.99.4 NetBSD 11.99.4 (VALKYRIE2) #0: Thu Jan 1 22:38:54 EST 2026 dholland@valkyrie:/usr/src/sys/arch/amd64/compile/VALKYRIE2 amd64
Architecture: x86_64
Machine: amd64
>Description:
Building graphviz with make && make replace failed as follows:
===> Updating using binary package of graphviz-14.1.5
/usr/bin/env /usr/sbin/pkg_add -K /var/db/pkg -U -D /usr/pkgsrc/graphics/graphviz/work/.packages/graphviz-14.1.5.tgz
pkg_add: graphviz-14.1.5: missing required library: /usr/pkg/lib/libcdt.so.5
pkg_add: graphviz-14.1.5: missing required library: /usr/pkg/lib/libcgraph.so.6
pkg_add: 1 package addition failed
*** Error code 1
Those are the prior versions of libs installed by graphviz; the
behavior is caused by graphviz's build linking bins against the
versions in /usr/pkg/lib instead of the versions it just built.
That's not supposed to happen, and ideally the wrappers wouldn't allow
it.
Removing the prior version before building works around the problem.
It will also obviously only surface, and at least theoretically only
matter, after a major version bump.
The prior version appears to have been 12.2.1nb5, so before the three
updates this spring.
>How-To-Repeat:
Install old graphviz, build new, make replace.
>Fix:
Remove elder gods from build system.
(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.