netCDF-4.7.4_fix-ocdebug.patch 483 B

1234567891011121314151617
  1. fix for failing compilation with GCC 10.2.0 (which now defaults to -fno-common)
  2. multiple definition of 'ocdebug' (in ocdebug.c and ocprint.c)
  3. see https://github.com/Unidata/netcdf-c/issues/1725
  4. --- netcdf-c-4.7.4/ncdump/ocprint.c.orig 2020-11-06 14:43:23.334448698 +0100
  5. +++ netcdf-c-4.7.4/ncdump/ocprint.c 2020-11-06 14:43:34.208323588 +0100
  6. @@ -56,7 +56,7 @@
  7. /*Mnemonic*/
  8. #define TOPLEVEL 1
  9. -int ocdebug;
  10. +extern int ocdebug;
  11. static OCerror ocstat;
  12. static OClink glink;