Source: field3d
Version: 1.7.3-4.1
Severity: important

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi,

The field3d package fails to build from source in a test rebuild
against hdf5 1.14 currently in experimental:

/<<PKGBUILDDIR>>/src/Field3DFileHDF5.cpp: In function ‘herr_t 
Field3D::v1_7::InputFileHDF5::parsePartitions(hid_t, const char*, const 
H5L_info2_t*, void*)’:
/<<PKGBUILDDIR>>/src/Field3DFileHDF5.cpp:1138:31: error: too few arguments to 
function ‘herr_t H5Oget_info_by_name3(hid_t, const char*, H5O_info2_t*, 
unsigned int, hid_t)’
 1138 |   status = H5Oget_info_by_name(loc_id, itemName, &infobuf, H5P_DEFAULT);
In file included from /usr/include/hdf5/serial/H5Apublic.h:21,
                 from /usr/include/hdf5/serial/hdf5.h:22,
                 from /<<PKGBUILDDIR>>/src/Field3DFileHDF5.cpp:50:
/usr/include/hdf5/serial/H5Opublic.h:541:15: note: declared here
  541 | H5_DLL herr_t H5Oget_info_by_name3(hid_t loc_id, const char *name, 
H5O_info2_t *oinfo, unsigned fields,
      |               ^~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/Field3DFileHDF5.cpp: In function ‘herr_t 
Field3D::v1_7::InputFileHDF5::parseLayers(hid_t, const char*, const 
H5L_info2_t*, void*)’:
/<<PKGBUILDDIR>>/src/Field3DFileHDF5.cpp:1178:32: error: too few arguments to 
function ‘herr_t H5Oget_info_by_name3(hid_t, const char*, H5O_info2_t*, 
unsigned int, hid_t)’
 1178 |   status = H5Oget_info_by_name (loc_id, itemName, &infobuf, 
H5P_DEFAULT);
/usr/include/hdf5/serial/H5Opublic.h:541:15: note: declared here
  541 | H5_DLL herr_t H5Oget_info_by_name3(hid_t loc_id, const char *name, 
H5O_info2_t *oinfo, unsigned fields,
      |               ^~~~~~~~~~~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/export/FieldMapping.h:52,
                 from /<<PKGBUILDDIR>>/export/Field.h:57,
                 from /<<PKGBUILDDIR>>/export/ClassFactory.h:51,
                 from /<<PKGBUILDDIR>>/src/ClassFactory.cpp:44:
/<<PKGBUILDDIR>>/export/Curve.h:133:17: warning: ‘template<class _Arg, class 
_Result> struct std::unary_function’ is deprecated [-Wdeprecated-declarations]
  133 |     public std::unary_function<std::pair<float, T>, bool>
      |                 ^~~~~~~~~~~~~~
In file included from /usr/include/c++/14/bits/unique_ptr.h:38,
                 from /usr/include/c++/14/memory:78,
                 from /usr/include/boost/smart_ptr/scoped_ptr.hpp:23,
                 from /usr/include/boost/scoped_ptr.hpp:13,
                 from /<<PKGBUILDDIR>>/export/ClassFactory.h:47:
/usr/include/c++/14/bits/stl_function.h:117:12: note: declared here
  117 |     struct unary_function
      |            ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/export/Curve.h:148:17: warning: ‘template<class _Arg, class 
_Result> struct std::unary_function’ is deprecated [-Wdeprecated-declarations]
  148 |     public std::unary_function<std::pair<float, T>, bool>
      |                 ^~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_function.h:117:12: note: declared here
  117 |     struct unary_function
      |            ^~~~~~~~~~~~~~
make[3]: *** [CMakeFiles/Field3D.dir/build.make:121: 
CMakeFiles/Field3D.dir/src/Field3DFileHDF5.cpp.o] Error 1


Adding -DH5_USE_110_API to CFLAGS and CXXFLAGS should fix the problem.

Best,
_g.


- -- System Information:
Debian Release: 12.0
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-21-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEoJObzArDE05WtIyR7+hsbH/+z4MFAmbB9A8ACgkQ7+hsbH/+
z4P13Qf/altZ6RWH8GIvDcwXQ35KewagBGoHeg8DzvtS5GoQa2ywPnJtfGB8q+5u
itLWYIGv8AaQjTbc9LpX3LcsKEOfjSa5ZYfuBDM/aJp3dddzpO4dOJ68ytZbTv2Y
rHjKdhqXUvukqt8kdH5oV5Aq/pj1+9kZaTo4mKq3XbTwQWWIswjEYM/Cg31rxMJV
1bLarJZKDfHacakXvvx0Eg02SrG34CtwxRGrrNOyjEcFc48dKP4EitfhlUUEbF5n
wVPNHWjm0CGrb96GeS8nBW70RzwpvKrxFeMlDbPDTD5CQoTU1zd+gDILBHQPCzzg
vcbrhVZzO/CEgFw5NvXvQF8DkItw/Q==
=0aRd
-----END PGP SIGNATURE-----

Reply via email to