Project

General

Profile

2.5.1 Build failure

Added by Marco Atzeri 20 days ago

Formtting is horrible but I ws not able to make work any type of quoting

Builing on Cygwin with

/pub/devel/cdo/cdo-2.5.1-1.x86_64/src/cdo-2.5.1/configure \
  --srcdir=/pub/devel/cdo/cdo-2.5.1-1.x86_64/src/cdo-2.5.1 --prefix=/usr --exec-prefix=/usr --localstatedir=/var \
  --sysconfdir=/etc --docdir=/usr/share/doc/cdo --htmldir=/usr/share/doc/cdo/html -C --enable-shared --disable-static \
  --with-szlib --with-zlib --with-hdf5 --with-netcdf --with-udunits2 --with-eccodes --with-fftw3 --with-proj --with-curl --with-libxml2 \
  --enable-cdi-lib --enable-hirlam-extensions CXXFLAGS=-ggdb -O2 -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=3 \
  -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=return-type \
  -ffile-prefix-map=/pub/devel/cdo/cdo-2.5.1-1.x86_64/build=/usr/src/debug/cdo-2.5.1-1 \
  -ffile-prefix-map=/pub/devel/cdo/cdo-2.5.1-1.x86_64/src/cdo-2.5.1=/usr/src/debug/cdo-2.5.1-1 -D_GNU_SOURCE FC=gfortran

This is new as was not in 2.5.0 but the record_t structure is changed a lot

libtool: compile:  gcc  -DHAVE_CONFIG_H -I. -I/pub/devel/cdo/cdo-2.5.1-1.x86_64/src/cdo-2.5.1/libcdi/src -DCDI_SIZE_TYPE=size_t -ggdb -O2 -pipe -Wall -Werror=format-security -fstack-protector-strong --param=ssp-buffer-size=4 -ffile-prefix-map=/pub/devel/cdo/cdo-2.5.1-1.x86_64/build=/usr/src/debug/cdo-2.5.1-1 -ffile-prefix-map=/pub/devel/cdo/cdo-2.5.1-1.x86_64/src/cdo-2.5.1=/usr/src/debug/cdo-2.5.1-1 -pthread -MT ieglib.lo -MD -MP -MF .deps/ieglib.Tpo -c /pub/devel/cdo/cdo-2.5.1-1.x86_64/src/cdo-2.5.1/libcdi/src/ieglib.c  -DDLL_EXPORT -DPIC -o .libs/ieglib.o
/pub/devel/cdo/cdo-2.5.1-1.x86_64/src/cdo-2.5.1/libcdi/src/grb_write.c: In function 'grbCopyField':
/pub/devel/cdo/cdo-2.5.1-1.x86_64/src/cdo-2.5.1/libcdi/src/grb_write.c:319:29: error: 'record_t' has no member named 'varID'
  319 |           int varID = record->varID;
      |                             ^~
/pub/devel/cdo/cdo-2.5.1-1.x86_64/src/cdo-2.5.1/libcdi/src/grb_write.c:320:31: error: 'record_t' has no member named 'levelID'
  320 |           int levelID = record->levelID;
      |                               ^~
make[3]: *** [Makefile:1025: grb_write.lo] Error 1

on 2.5.0

typedef struct
{
  off_t position;
  size_t size;
  size_t gridsize;
  int zip;
  int param;
  int ilevel;
  int ilevel2;
  int ltype;
  short tsteptype;
  short varID;
  int levelID;
  short used;
  char varname[32];  // needed for grib decoding with GRIB_API
  VarScanKeys scanKeys;
  var_tile_t tiles;  // tile-related meta-data, currently for GRIB-API only.
#ifdef HAVE_LIBFDB5
  int fdbItemIndex;
#endif
} record_t;

but on 2.5.1

typedef struct
{
  off_t position;
  size_t size;
  size_t gridsize;
  int param;
  int ilevel;
  int ilevel2;
  short ltype;
  short tsteptype;
#ifdef HAVE_LIBGRIB
  int zip;
  VarScanKeys scanKeys;
  var_tile_t tiles;  // tile-related meta-data, currently for GRIB-API only.
#ifdef HAVE_LIBGRIB_API
  char varname[32];
#endif
#endif
#ifdef HAVE_LIBFDB5
  int fdbItemIndex;
#endif
} record_t;

Replies (1)

RE: 2.5.1 Build failure - Added by Uwe Schulzweida 20 days ago

Hello Marco,

Thanks for this report! This bug will be fixed in the next CDO release.

Cheers,
Uwe

    (1-1/1)