Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#18 compiling NCO

closed
None
5
2011-06-26
2010-03-30
Denis Nadeau
No

Charlie,
I checked release 4.0.0 and I had problem compiling with netcdf.

In 'config.h.in' I had to change HAVE_NETCDF_H to HAVE_NETCDF4_H to get rid of multiple link issues. I used the NETCDF 4.0.1 latest stable release.

As well, I had to add --disable-ncoxx --disable-ncap2. It seemed that --disable-ncoxx was not enough and NCOXX was being defined.

I got it compiled and I am working using your chunking policy. Everything is good at this time. Thanks!

Regards,
Denis

Discussion

  • Charlie Zender
    Charlie Zender
    2010-04-05

    glad that chunking works for you. i think that addressing your build issues as you suggest would break builds for others.
    long story, but short summary is that netcdf 4.1 should solve some of the link issues.

     
  • Charlie Zender
    Charlie Zender
    2010-04-05

    • assigned_to: nobody --> zender
     
  • Denis Nadeau
    Denis Nadeau
    2010-04-05

    There is no HAVE_NETCDF4_H in netcdf src.

    In fact HAVE_NETCDF4_H is defined by NCO to create stubs
    ./src/nco/nco_netcdf.h:75 This is causing the problem if HAVE_NETCDF4_H is not defined.

    In your configure.in:365 you also have HAVE_NETCDF4_H
    ....
    header_defines_nc_chunked='no'
    if test "x${enable_netcdf4}" = 'xyes' ; then
    header_defines_nc_chunked='yes'
    else
    AC_EGREP_HEADER(NC_CHUNKED,netcdf.h,header_defines_nc_chunked='yes')
    fi
    if test "x${header_defines_nc_chunked}" = 'xyes' ; then
    AC_DEFINE([HAVE_NETCDF4_H],[1],[netcdf.h contains netCDF4 definitions])
    AC_MSG_NOTICE([netcdf.h contains netCDF4 definitions])
    fi

    in config.h:224
    /* Define to 1 if you have the <netcdf.h> header file. */
    #undef HAVE_NETCDF_H

    This inconsistency is in NCO not NETCDF.

    I use -enable-netcdf4 in my ./configure line.

     
  • Charlie Zender
    Charlie Zender
    2011-06-26

    • status: open --> closed
     
  • Charlie Zender
    Charlie Zender
    2011-06-26

    this is a duplicate of many configure.in problems. will be solved elsewhere.