Article View: linux.debian.bugs.dist
Article #1687Bug#1151618: hdf5-helpers: h5cc reports incorrect LDFLAGS, missing required -L option
From: Kipp Cannon
Date: Thu, 22 Oct 2026 09:00
Date: Thu, 22 Oct 2026 09:00
61 lines
4118 bytes
4118 bytes
Package: hdf5-helpers Version: 2.2.0+repack-5 Severity: normal X-Debbugs-Cc: kipp@g.ecc.u-tokyo.ac.jp The symptom is that autoconf based software that tries to link to libhdf5 fails during the linking phase. The configure script will succeed, find libhdf5, but the build will fail with "/usr/bin/x86_64-linux-gnu-ld.bfd: cannot find -lhdf5: No such file or directory" The work-around is to manually edit the Makefile in the directory with the failing code, finding the line HDF5_LDFLAGS = and changing it to HDF5_LDFLAGS = -L/usr/lib/x86_64-linux-gnu/hdf5/serial or whatever is appropriate for the system. The cause of this bug. the AX_LIB_HDF5 macro in autoconf-archive runs "h5cc -showconfig" to retrieve the CLFAGS, LDFLAGS, etc., for compiling software that links to libhdf5. It grep's for either H5_LDFLAGS or AM_LDFLAGS or both in the output, I'm not sure which, and reports their value(s) in an autoconf variable. There is a comment in the macro source code that one of the two is guaranteed to be blank so the two values are combined blindly, but I can't find where it actually does that, I can only find it grep'ing for H5_LDFLAGS, so that's why I'm not sure what's going on, but that's immaterial because neither of them is reporting the correct value. h5cc reports both values to be blank. However libhdf5.so from libhdf5-dev is in /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so and so the correct LDFLAGS is -L/usr/lib/x86_64-linux-gnu/hdf5/serial I think h5cc needs to be modified to report -L/usr/lib/x86_64-linux- gnu/hdf5/serial in one or other of its LDFLAGS variables. Or libhdf5-dev needs to be rebuilt with the .so put into the linker's default search path. I've assumed the bug is in h5cc, not the install path for libhdf5.so, that seems deliberate, but the maintainers of these packages might shift the blame. Since it doesn't report the correct linker flags to the user, it's possible that h5cc is itself incapable of compiling libhdf5 based software. I haven't checked that. -- System Information: Debian Release: forky/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 7.2.11+deb14-amd64 (SMP w/20 CPU threads; PREEMPT) Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), LANGUAGE=en_CA:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled -- no debconf information
Technical Details
Message-ID:
<NQWOt-79of-5@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!news.servidellagleba.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!news.servidellagleba.it!bofh.it!news.nic.it!robomod From: Kipp Cannon <kipp@g.ecc.u-tokyo.ac.jp> Newsgroups: linux.debian.bugs.dist Subject: Bug#1151618: hdf5-helpers: h5cc reports incorrect LDFLAGS, missing required -L option Date: Thu, 22 Oct 2026 11:00:01 +0200 Message-ID: <NQWOt-79of-5@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Thu Oct 22 08:59:09 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.65 Reply-To: Kipp Cannon <kipp@g.ecc.u-tokyo.ac.jp>, 1151618@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: kipp@g.ecc.u-tokyo.ac.jp, pini@debian.org X-Debian-Pr-Message: report 1151618 X-Debian-Pr-Package: hdf5-helpers X-Debian-Pr-Source: hdf5 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Mailer: reportbug 13.2.0+nmu1 X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1998071 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 61 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 22 Oct 2026 17:57:58 +0900 X-Original-Message-ID: <179265947855.1008823.8868943380820680922.reportbug@fluorine.resceu.s.u-tokyo.ac.jp>