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

Package:
src:vtk9
Source:
vtk9
Submitter:
Bas Couwenberg
Date:
2022-06-19 14:48:03 UTC
Severity:
serious
Tags:
#1012703#5
Date:
2022-06-12 05:11:51 UTC
From:
To:
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

#1012703#10
Date:
2022-06-19 11:07:28 UTC
From:
To:
The attached patch resolves the issue by renaming the conflicting variable.

Kind Regards,

Bas

#1012703#19
Date:
2022-06-19 14:44:48 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
vtk9, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1012703@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Anton Gladky <gladk@debian.org> (supplier of updated vtk9 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sun, 19 Jun 2022 16:25:33 +0200
Source: vtk9
Architecture: source
Version: 9.1.0+really9.1.0+dfsg2-4
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Changed-By: Anton Gladky <gladk@debian.org>
Closes: 1012703
Changes:
 vtk9 (9.1.0+really9.1.0+dfsg2-4) unstable; urgency=medium
 .
   * [b05b21f] Fix FTBFS against NETCDF>4.9.0. (Closes: #1012703)
Checksums-Sha1:
 9f314bc2ed88310e288e81eaf944a7eb537f5e98 3846 vtk9_9.1.0+really9.1.0+dfsg2-4.dsc
 368cae18da46607f95dc7dd69501ee403e0935cc 20280 vtk9_9.1.0+really9.1.0+dfsg2-4.debian.tar.xz
 afb972b58b3b2dfe5cf97930e0f313f260ca878d 28906 vtk9_9.1.0+really9.1.0+dfsg2-4_source.buildinfo
Checksums-Sha256:
 eaafad4da2ec7d7d69142424be84c13c8d9df0fb45b53b8c3ae2306d1da31cb3 3846 vtk9_9.1.0+really9.1.0+dfsg2-4.dsc
 64aca0c9ea86c0d6cab535426416ecd7f6b55ecdd4fd595a126ee4f4a4eeb62d 20280 vtk9_9.1.0+really9.1.0+dfsg2-4.debian.tar.xz
 c4b5d920e6f9ad315988027f489b35590702a875100855ac182b4d6c01267235 28906 vtk9_9.1.0+really9.1.0+dfsg2-4_source.buildinfo
Files:
 b7d523cc22be252c9d5337e48e0e8a43 3846 graphics optional vtk9_9.1.0+really9.1.0+dfsg2-4.dsc
 b27bc32ece80ffe1b403a97497b0c383 20280 graphics optional vtk9_9.1.0+really9.1.0+dfsg2-4.debian.tar.xz
 f069cf8a40217028520feeb92b6e5a73 28906 graphics optional vtk9_9.1.0+really9.1.0+dfsg2-4_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEu71F6oGKuG/2fnKF0+Fzg8+n/wYFAmKvMqUACgkQ0+Fzg8+n
/wYM6RAAi5a8dO9HPgJA+oRvRtyXpU69J9GJZcXlP2H+gCPovNTdqtz7TP7vJba4
zo9fUhQVauJ4zhOIrBEOM27cWUADFjZGjhhdL5Hi0OuhEyBagNH3j/2pKH/pbAlI
Vb/Nm7km6I7j0ggcHBfQZ2RGMnDNfE2lQsQOAjmAcudFba3sznhwxsePLILj9wTY
MyJU6mqvSYaBk+W1G1N8IdYTe7CUx7A5C7OjFd/P2d9WOTQgjtl0/SJrnCLTKGUV
jgBFewymcUV1MONUtEjO177cAbPUEm5/54+Ez11HqAm6o95wEJ+rg8p4W1E69oTS
23NNaodnvzupqVr7y4r/VB/1FsnIiXl0SovDgZCeoiErx6TPw/7snatZI92DFKhA
2i7kuD7tn0uRwn9Y8V9uWnSBDbyB5dtSETbkn0Sb8KQEU2zKNo/4xNzI5etTg7je
9apbTicyoebnUCm5KzfR4BU+BZXT1I1TxTjqzV38z+UAxJ8oY+tfnaavoZB0/Q3k
+StYP5BDgafPIpfmY6FJr8KSdQFNL8S8QgZixgTaF9u0eREYquC+HKkGoc0y24qp
MfTLWZoqPx+IEL5gXmaUK+/yaRYlknILTbOBrALKJMaiD1aVRKDO0DIi47K2Jzfw
6zHSeM6X9ZLRQDMA8zGYBMKxDAdl7Lcf/2izdfHfducxzbNy0CM=
=WT0F
-----END PGP SIGNATURE-----