Project

General

Profile

Build failure on Cygwin

Added by Marco Atzeri about 1 month ago

From where this "edititionnumber" is supposed to derive ?

/pub/devel/cdo/cdo-2.5.0-1.x86_64/src/cdo-2.5.0/libcdi/src/gribapi_utilities.c: In function 'gribapiGetGrid':
/pub/devel/cdo/cdo-2.5.0-1.x86_64/src/cdo-2.5.0/libcdi/src/gribapi_utilities.c:969:32: error: 'edititionnumber' undeclared (first use in this function); did you mean 'editionNumber'?
969 | if (cdiDebugExt >= 30 && edititionnumber <= 1) | ^~~~~~~~~~~~~ | editionNumber
or is a typo ?

$ grep -rH edititionnumber .
./libcdi/src/cdilib.c: if (cdiDebugExt >= 30 && edititionnumber <= 1)
./libcdi/src/gribapi_utilities.c: if (cdiDebugExt >= 30 && edititionnumber <= 1)

Configured with
--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="${CXXFLAGS} -D_GNU_SOURCE" \
FC="gfortran"


Replies (3)

RE: Build failure on Cygwin - Added by Uwe Schulzweida about 1 month ago

Hi Marco,

Yes, thats a typo and failed only with --enable-hirlam-extensions. You can remove this configure options if you don't really need it. We will fix this problem in the next CDO release 2.5.1.

Cheers,
Uwe

RE: Build failure on Cygwin - Added by Marco Atzeri about 1 month ago

Thanks for the feedback.
I patched and I am continuing the build.

As I am updating the Cygwin package, I prefer to NOT change
the build configuration used in the past
https://cygwin.com/packages/summary/cdo-src.html

RE: Build failure on Cygwin - Added by Ralf Mueller about 1 month ago

thx for the support of cygwin, Marco!

best wishes for 2025
ralf

    (1-3/3)