Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 645692 - sci-libs/netcdf-4.3.2-r1 with sci-libs/hdf5-1.10.1 - .../work/netcdf-4.3.2/libsrc4/nc4internal.c:417:1: error: conflicting types for 'nc4_rec_find_nc_type'
Summary: sci-libs/netcdf-4.3.2-r1 with sci-libs/hdf5-1.10.1 - .../work/netcdf-4.3.2/li...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on: 641344
Blocks:
  Show dependency tree
 
Reported: 2018-01-25 14:06 UTC by Thomas Kemmer
Modified: 2018-04-18 10:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,88.12 KB, text/plain)
2018-01-25 14:06 UTC, Thomas Kemmer
Details
emerge --info netcdf hdf5 (file_645692.txt,6.35 KB, text/plain)
2018-01-25 14:08 UTC, Thomas Kemmer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Kemmer 2018-01-25 14:06:40 UTC
Created attachment 516556 [details]
build.log

NetCDF 4.3.2 fails to compile with sci-libs/hdf5-1.10.1 due to conflicting declarations of 'nc4_rec_find_nc_type':

/tmp/portage/sci-libs/netcdf-4.3.2-r1/work/netcdf-4.3.2/libsrc4/nc4internal.c:417:1: error: conflicting types for 'nc4_rec_find_nc_type'
 nc4_rec_find_nc_type(const NC_GRP_INFO_T *start_grp, nc_type target_nc_typeid)
 ^~~~~~~~~~~~~~~~~~~~
In file included from /tmp/portage/sci-libs/netcdf-4.3.2-r1/work/netcdf-4.3.2/libsrc4/nc4internal.c:16:0:
/tmp/portage/sci-libs/netcdf-4.3.2-r1/work/netcdf-4.3.2/include/nc4internal.h:351:17: note: previous declaration of 'nc4_rec_find_nc_type' was here
 NC_TYPE_INFO_T *nc4_rec_find_nc_type(const NC_GRP_INFO_T *start_grp, hid_t target_nc_typeid);
                 ^~~~~~~~~~~~~~~~~~~~

Before version 1.10 of HDF5, both `hid_t` and NetCDF's `nc_type` have been aliases for `int`. In newer HDF5 versions, `hid_t` has been changed to `int64_t` instead.
Comment 1 Thomas Kemmer 2018-01-25 14:08:17 UTC
Created attachment 516558 [details]
emerge --info netcdf hdf5