Bug#1012703: vtk9: FTBFS with NetCDF 4.9.0 (error: expected identifier or '(' before numeric constant)

Bas Couwenberg sebastic at xs4all.nl
Sun Jun 12 06:11:51 BST 2022


Source: vtk9
Version: 9.1.0+really9.1.0+dfsg2-3
Severity: serious
Tags: ftbfs

Dear Maintainer,

Your package FTBFS with NetCDF 4.9.0:

[  2%] Building C object ThirdParty/exodusII/vtkexodusII/CMakeFiles/exodusII.dir/src/ex_utils.c.o
cd /build/vtk9-9.1.0+really9.1.0+dfsg2/debian/build/ThirdParty/exodusII/vtkexodusII && /usr/bin/mpicc -DH5_BUILT_AS_DYNAMIC_LIB -DMPICH_SKIP_MPICXX -DMPI_NO_CPPBIND -DOMPI_SKIP_MPICXX -DVTK_IN_VTK -DVTK_MODULE_ENABLE_VTK_mpi=1 -D_MPICC_
H -DexoIIc_EXPORTS -DexodusII_EXPORTS -I/build/vtk9-9.1.0+really9.1.0+dfsg2/debian/build/ThirdParty/exodusII/vtkexodusII -I/build/vtk9-9.1.0+really9.1.0+dfsg2/ThirdParty/exodusII/vtkexodusII -I/build/vtk9-9.1.0+really9.1.0+dfsg2/ThirdPa
rty/exodusII/vtkexodusII/include -I/build/vtk9-9.1.0+really9.1.0+dfsg2/debian/build/ThirdParty/exodusII/vtkexodusII/include -isystem /build/vtk9-9.1.0+really9.1.0+dfsg2/debian/build/ThirdParty/exodusII -isystem /build/vtk9-9.1.0+really9
.1.0+dfsg2/ThirdParty/exodusII -isystem /build/vtk9-9.1.0+really9.1.0+dfsg2/debian/build/ThirdParty/hdf5 -isystem /build/vtk9-9.1.0+really9.1.0+dfsg2/ThirdParty/hdf5 -isystem /usr/include/hdf5/serial -isystem /build/vtk9-9.1.0+really9.1
.0+dfsg2/debian/build/ThirdParty/netcdf -isystem /build/vtk9-9.1.0+really9.1.0+dfsg2/ThirdParty/netcdf -isystem /build/vtk9-9.1.0+really9.1.0+dfsg2/debian/build/Utilities/MPI -isystem /build/vtk9-9.1.0+really9.1.0+dfsg2/Utilities/MPI -g
 -O2 -ffile-prefix-map=/build/vtk9-9.1.0+really9.1.0+dfsg2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -O2 -g -DNDEBUG -fPIC -std=gnu99 -MD -MT ThirdParty/exodusII/vtkexodusII/CMakeFiles/
exodusII.dir/src/ex_utils.c.o -MF CMakeFiles/exodusII.dir/src/ex_utils.c.o.d -o CMakeFiles/exodusII.dir/src/ex_utils.c.o -c /build/vtk9-9.1.0+really9.1.0+dfsg2/ThirdParty/exodusII/vtkexodusII/src/ex_utils.c
In file included from /build/vtk9-9.1.0+really9.1.0+dfsg2/debian/build/ThirdParty/netcdf/vtk_netcdf.h:22,
                 from /build/vtk9-9.1.0+really9.1.0+dfsg2/ThirdParty/exodusII/vtkexodusII/include/exodusII.h:22,
                 from /build/vtk9-9.1.0+really9.1.0+dfsg2/ThirdParty/exodusII/vtkexodusII/src/ex_utils.c:20:
/build/vtk9-9.1.0+really9.1.0+dfsg2/ThirdParty/exodusII/vtkexodusII/src/ex_utils.c: In function 'vtkexodusII_ex__compress_variable':
/build/vtk9-9.1.0+really9.1.0+dfsg2/ThirdParty/exodusII/vtkexodusII/src/ex_utils.c:1773:19: error: expected identifier or '(' before numeric constant
 1773 |         const int NC_SZIP_NN = 32;      /* Selects nearest neighbor coding method for szip. */
      |                   ^~~~~~~~~~

In NetCDF 4.9.0 NC_SZIP_NN and other are defined in netcdf.h:

 #define NC_SZIP_NN 32 /**< SZIP NN option mask. */

paraview has the same issue: #1012663.

Kind Regards,

Bas



More information about the debian-science-maintainers mailing list