NetBSD Problem Report #57395
From martin@aprisoft.de Sun May 7 16:27:26 2023
Return-Path: <martin@aprisoft.de>
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 2184E1A923A
for <gnats-bugs@gnats.NetBSD.org>; Sun, 7 May 2023 16:27:26 +0000 (UTC)
Message-Id: <20230507162716.58C0E5CC81D@emmas.aprisoft.de>
Date: Sun, 7 May 2023 18:27:16 +0200 (CEST)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: graphics/graphviz broken
X-Send-Pr-Version: 3.95
>Number: 57395
>Category: pkg
>Synopsis: graphviz-7.1.0nb2 does not install properly
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun May 07 16:30:00 +0000 2023
>Closed-Date: Sun May 07 16:59:33 +0000 2023
>Last-Modified: Sun May 07 17:00:01 +0000 2023
>Originator: Martin Husemann
>Release: NetBSD 10.99.4
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD martins.aprisoft.de 10.99.4 NetBSD 10.99.4 (GENERIC) #168: Sun Apr 30 14:03:53 CEST 2023 martin@martins.aprisoft.de:/usr/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
Trying to build & install graphviz-7.1.0nb2 on NetBSD-current "fails"
(but w/o stopping the build):
===> Building binary package for graphviz-7.1.0nb2
=> Creating binary package /others/packages/x86_64/All/graphviz-7.1.0nb2.tgz
===> Installing binary package of graphviz-7.1.0nb2
Warning: Could not load "/usr/pkg/lib/graphviz/libgvplugin_gd.so.6" - It was found, so perhaps one of its dependents was not. Try ldd.
[1] Segmentation fault (core dumped) ${PKG_PREFIX}/bin/dot -c
[/usr/pkgsrc/graphics/graphviz] root@martins # ldd /usr/pkg/lib/graphviz/libgvplugin_gd.so.6
and that leads to an empty file
/usr/pkg/lib/graphviz/config6
which then breaks other stuff later.
>How-To-Repeat:
s/a
>Fix:
n/a
>Release-Note:
>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/57395: graphics/graphviz broken
Date: Sun, 7 May 2023 18:39:59 +0200
The core is from trying to run "dot -c", while trying to dlopen
some plugin that then crashes in its init code, the last files opened
are:
/usr/lib/libstdc++.so.9
/usr/pkg/lib/graphviz/libgvplugin_gd.so.6
/usr/pkg/lib/graphviz/libgvplugin_neato_layout.so.6
/usr/pkg/lib/libgts-0.7.so.5
/usr/pkg/lib/libgthread-2.0.so.0
/usr/X11R7/lib/libstdc++.so.9
/usr/lib/libstdc++.so.9
Martin
State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Sun, 07 May 2023 16:59:33 +0000
State-Changed-Why:
libimagequant 4.x only provides a static library
thus there is only a static library for libgd
but graphviz wants to make a shared object to load at runtime.
I've reverted the upgrade and filed an upstream bug report.
Thanks for the bug report!
From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/57395 CVS commit: pkgsrc/graphics/libimagequant
Date: Sun, 7 May 2023 16:55:21 +0000
Module Name: pkgsrc
Committed By: wiz
Date: Sun May 7 16:55:21 UTC 2023
Modified Files:
pkgsrc/graphics/libimagequant: Makefile PLIST buildlink3.mk distinfo
Added Files:
pkgsrc/graphics/libimagequant/patches: patch-Makefile patch-configure
Removed Files:
pkgsrc/graphics/libimagequant: cargo-depends.mk
Log Message:
libimagequant: downgrade to 2.18
4.x only provides a static library but graphviz needs a shared gd library
PR 57395 and https://github.com/ImageOptim/libimagequant/issues/109
To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 pkgsrc/graphics/libimagequant/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/graphics/libimagequant/PLIST \
pkgsrc/graphics/libimagequant/buildlink3.mk
cvs rdiff -u -r1.1 -r0 pkgsrc/graphics/libimagequant/cargo-depends.mk
cvs rdiff -u -r1.31 -r1.32 pkgsrc/graphics/libimagequant/distinfo
cvs rdiff -u -r0 -r1.8 pkgsrc/graphics/libimagequant/patches/patch-Makefile
cvs rdiff -u -r0 -r1.12 pkgsrc/graphics/libimagequant/patches/patch-configure
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.