Your message dated Sun, 13 Sep 2026 14:44:25 +0200
with message-id <[email protected]>
and subject line Re: pkg-config file incorrect for static linking
has caused the Debian Bug report #1052250,
regarding pkg-config file incorrect for static linking
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1052250: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1052250
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libhdf5-dev
Version: 1.10.8+repack1-1
Severity: normal

Dear Maintainer,

Trying to statically link an executable (like h5_write.c¹) against HDF5 using
the pkg-config profile fails:

$ gcc -static h5_write.c $(pkg-config --cflags hdf5) $(pkg-config --static 
--libs hdf5)

/usr/bin/ld: /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.a(H5PLint.o): in 
function `H5PL__open':
(.text+0x46b): warning: Using 'dlopen' in statically linked applications 
requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.a(H5Fint.o): in 
function `H5F_track_metadata_read_retries':
(.text+0x3c09): undefined reference to `log10'                                  
                          
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.a(H5Fint.o): in 
function `H5F_set_retries':
(.text+0x3d42): undefined reference to `log10'                                  
                          
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.a(H5Tconv.o): in 
function `H5T__conv_f_i':
(.text+0x631a4): undefined reference to `pow'                                   
                          
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.a(H5Tconv.o): in 
function `H5T__conv_i_f':
(.text+0x64a73): undefined reference to `pow'                                   
                          
/usr/bin/ld: (.text+0x64d82): undefined reference to `pow'   
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.a(H5Z.o): in 
function `H5Z__init_package':
(.text+0x60b): undefined reference to `SZ_encoder_enabled'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.a(H5Zdeflate.o): in 
function `H5Z__filter_deflate':
(.text+0x114): undefined reference to `compress2'                               
                          
/usr/bin/ld: (.text+0x212): undefined reference to `inflateInit_'
/usr/bin/ld: (.text+0x23d): undefined reference to `inflate'
/usr/bin/ld: (.text+0x25e): undefined reference to `inflateEnd'                 
                        
/usr/bin/ld: (.text+0x2b4): undefined reference to `inflateEnd'
/usr/bin/ld: (.text+0x33e): undefined reference to `inflateEnd'           
[…]

Obviously the libraries on which HDF5 depends should be added to the
Libs.private and Requires.private fields.²

Thanks for your work,

¹ https://raw.githubusercontent.com/HDFGroup/hdf5/develop/examples/h5_write.c
² See for example https://people.freedesktop.org/~dbn/pkg-config-guide.html

--
⢀⣴⠾⠻⢶⣦⠀  Sébastien Villemot
⣾⠁⢠⠒⠀⣿⡁  Debian Developer
⢿⡄⠘⠷⠚⠋⠀  https://sebastien.villemot.name
⠈⠳⣄⠀⠀⠀⠀  https://www.debian.org

--- End Message ---
--- Begin Message ---
Version: 2.1.0+repack-1

Hi,

On Wed, 07 May 2025 13:54:29 +0200 =?ISO-8859-1?Q?S=E9bastien?= Villemot <[email protected]> wrote:
Le lundi 30 décembre 2024 à 20:11 +0100, [email protected] a écrit :
> Le 2023-09-19 15:19, Sébastien Villemot a écrit :
> > Package: libhdf5-dev
> > Version: 1.10.8+repack1-1
> > Severity: normal
> > > > Dear Maintainer, > > > > Trying to statically link an executable (like h5_write.c¹) against HDF5 > > using
> > the pkg-config profile fails:

[…]

> > Obviously the libraries on which HDF5 depends should be added to the
> > Libs.private and Requires.private fields.²
> > Upstream provides pkg-config files for cmake builds only. The current > pkg-config for HDF5 in Debian were added by me, and are just minimalist > ones. They are not expected to work for every use case. > > I've opened a feature request at the upstream github project:
> https://github.com/HDFGroup/hdf5/issues/5194
> > Meanwhile, patches are welcome.

Thanks. So if I understand correctly upstream’s reply, the proper fix
for this issue is to switch to a cmake build for the Debian package
(and this will become mandatory for HDF5 2.0).
This should be fixed starting with HDF5 2.1.0.

Best,
_g.

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


--- End Message ---

Reply via email to