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: RESOLVED TEST-REQUEST
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: 2021-02-25 09:08 UTC (History)
2 users (show)

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
Comment 2 Peter Bleszynski 2021-01-18 04:59:44 UTC
I saw the same error today when portage failed to remerge sci-libs/netcdf-4.6.1-r1::gentoo. 

It's possible that my last sync occurred in the midst of today's commits.

After syncing again, "emerge -uaDvN @world" no longer wants to remerge netcdf and "emerge -1av sci-libs/netcdf" succeeds.
Comment 3 Jakov Smolić archtester gentoo-dev 2021-01-23 09:37:09 UTC
(In reply to Peter Bleszynski from comment #2)
> I saw the same error today when portage failed to remerge
> sci-libs/netcdf-4.6.1-r1::gentoo. 
> 
> It's possible that my last sync occurred in the midst of today's commits.
> 
> After syncing again, "emerge -uaDvN @world" no longer wants to remerge
> netcdf and "emerge -1av sci-libs/netcdf" succeeds.

is 4.7.4 working for you?