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

Touble building nco-4.0.8 and 4.0.4

Developers
2011-06-08
2013-10-17
  • raglan_road
    raglan_road
    2011-06-08

    I'm trying to build nco on an IBM power6 using xlc/xlc++. The machine info is:

    Linux 2.6.32.36-0.5-ppc64 #1 SMP 2011-04-14 10:12:31 +0200 ppc64 ppc64 ppc64 GNU/Linux

    and the configure command I used is:

    ./configure -prefix=/home/sbasu/packages -enable-netcdf4 -enable-netcdf-4 -disable-shared -disable-udunits CC=xlc_r CXX=xlc++_r NETCDF4_ROOT=/sara/sw/netcdf/4.1.1 NETCDF_INC=/sara/sw/netcdf/4.1.1/include NETCDF_LIB=/sara/sw/netcdf/4.1.1/lib HDF5_LIB_DIR=/sara/sw/hdf5/1.8.6

    While running make, the compilation stops with:

    "nco_ctl.c", line 59.21: 1506-334 (S) Identifier cmp_nm has already been defined on line 21 of "nco_ctl.c".
    "nco_ctl.c", line 60.21: 1506-334 (S) Identifier cmp_sng has already been defined on line 22 of "nco_ctl.c".

    This problem persists with both versions of nco mentioned above.

     
  • Charlie Zender
    Charlie Zender
    2011-06-08

    thanks for this report.
    your unusual combination of os/compiler/chip triggered a diagnostic bug.
    i think i have patched this in the latest snapshot.
    please give it a try and post the outcome.
    cz

     
  • raglan_road
    raglan_road
    2011-06-10

    No dice. I checked out the latest code using

    cvs -z3 -d:pserver:anonymous@nco.cvs.sf.net:/cvsroot/nco co -kk nco

    then used the same configure line. I get the same error during make:

    "nco_ctl.c", line 60.21: 1506-334 (S) Identifier cmp_nm has already been defined on line 22 of "nco_ctl.c".
    "nco_ctl.c", line 61.21: 1506-334 (S) Identifier cmp_sng has already been defined on line 23 of "nco_ctl.c".

     
  • Charlie Zender
    Charlie Zender
    2011-06-10

    roll the dice again, i just patched the patch. let us know if it works now.
    cz

     
  • raglan_road
    raglan_road
    2011-06-14

    Rolled again. Here's the error when I issue 'make':

    /bin/sh ../../libtool --tag=CXX --tag=CC   --mode=link xlc_r  -qsmp=omp  -L/sara/sw/netcdf/4.1.1/lib -lnetcdf -lhdf5_hl -lhdf5 -lz -lm -lcurl -L/sara/sw/netcdf/4.1.1/lib   -o ncap ncap_utl.o ncap.o ncap_yacc.o ncap_lex.o libnco.la -lexpat -lgsl -lm -lnetcdf  -lcurl -L/sara/sw/gsl/1.11/lib -lgsl -lgslcblas -lm
    libtool: link: xlc_r -qsmp=omp -o ncap ncap_utl.o ncap.o ncap_yacc.o ncap_lex.o  -L/sara/sw/netcdf/4.1.1/lib ./.libs/libnco.a -L/lib -L/sara/sw/gsl/1.11/lib -lexpat /sara/sw/netcdf/4.1.1/lib/libnetcdf.a /sara/sw/hdf5/1.8.6/lib/libhdf5_hl.so /sara/sw/hdf5/1.8.6/lib/libhdf5.so -lz -lcurl /sara/sw/gsl/1.11/lib/libgsl.so /sara/sw/gsl/1.11/lib/libgslcblas.so -lm -Wl,-rpath -Wl,/sara/sw/hdf5/1.8.6/lib -Wl,-rpath -Wl,/sara/sw/gsl/1.11/lib -Wl,-rpath -Wl,/sara/sw/hdf5/1.8.6/lib -Wl,-rpath -Wl,/sara/sw/gsl/1.11/lib
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4attr.o): In function `nc_put_att_string':
    nc4attr.c:(.opd+0x150): multiple definition of `nc_put_att_string'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0xbb8): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4attr.o): In function `nc_get_att_string':
    nc4attr.c:(.opd+0x168): multiple definition of `nc_get_att_string'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0xc48): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4attr.o): In function `nc_put_att_ubyte':
    nc4attr.c:(.opd+0x348): multiple definition of `nc_put_att_ubyte'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0xb40): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4attr.o): In function `nc_get_att_ubyte':
    nc4attr.c:(.opd+0x360): multiple definition of `nc_get_att_ubyte'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0xbd0): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4attr.o): In function `nc_put_att_ushort':
    nc4attr.c:(.opd+0x378): multiple definition of `nc_put_att_ushort'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0xb58): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4attr.o): In function `nc_get_att_ushort':
    nc4attr.c:(.opd+0x390): multiple definition of `nc_get_att_ushort'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0xbe8): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4attr.o): In function `nc_put_att_uint':
    nc4attr.c:(.opd+0x3a8): multiple definition of `nc_put_att_uint'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0xb70): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4attr.o): In function `nc_get_att_uint':
    nc4attr.c:(.opd+0x3c0): multiple definition of `nc_get_att_uint'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0xc00): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4attr.o): In function `nc_put_att_longlong':
    nc4attr.c:(.opd+0x3d8): multiple definition of `nc_put_att_longlong'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0xb88): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4attr.o): In function `nc_get_att_longlong':
    nc4attr.c:(.opd+0x3f0): multiple definition of `nc_get_att_longlong'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0xc18): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4attr.o): In function `nc_put_att_ulonglong':
    nc4attr.c:(.opd+0x408): multiple definition of `nc_put_att_ulonglong'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0xba0): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4attr.o): In function `nc_get_att_ulonglong':
    nc4attr.c:(.opd+0x420): multiple definition of `nc_get_att_ulonglong'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0xc30): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_put_vara_longlong':
    nc4var.c:(.opd+0x498): multiple definition of `nc_put_vara_longlong'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0x8b8): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_get_vara_longlong':
    nc4var.c:(.opd+0x4b0): multiple definition of `nc_get_vara_longlong'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0x828): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_put_vara_ulonglong':
    nc4var.c:(.opd+0x4c8): multiple definition of `nc_put_vara_ulonglong'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0x8d0): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_get_vara_ulonglong':
    nc4var.c:(.opd+0x4e0): multiple definition of `nc_get_vara_ulonglong'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0x840): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_put_vara_uint':
    nc4var.c:(.opd+0x4f8): multiple definition of `nc_put_vara_uint'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0x8a0): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_get_vara_uint':
    nc4var.c:(.opd+0x510): multiple definition of `nc_get_vara_uint'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0x810): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_put_vara_ushort':
    nc4var.c:(.opd+0x528): multiple definition of `nc_put_vara_ushort'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0x888): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_get_vara_ushort':
    nc4var.c:(.opd+0x540): multiple definition of `nc_get_vara_ushort'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0x7f8): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_put_vara_ubyte':
    nc4var.c:(.opd+0x558): multiple definition of `nc_put_vara_ubyte'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0x870): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_get_vara_ubyte':
    nc4var.c:(.opd+0x570): multiple definition of `nc_get_vara_ubyte'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0x7e0): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_put_var1_ubyte':
    nc4var.c:(.opd+0x840): multiple definition of `nc_put_var1_ubyte'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0x750): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_get_var1_ubyte':
    nc4var.c:(.opd+0x858): multiple definition of `nc_get_var1_ubyte'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0x6c0): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_put_var1_ushort':
    nc4var.c:(.opd+0x870): multiple definition of `nc_put_var1_ushort'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0x768): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_get_var1_ushort':
    nc4var.c:(.opd+0x888): multiple definition of `nc_get_var1_ushort'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0x6d8): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_put_var1_uint':
    nc4var.c:(.opd+0x8a0): multiple definition of `nc_put_var1_uint'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0x780): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_get_var1_uint':
    nc4var.c:(.opd+0x8b8): multiple definition of `nc_get_var1_uint'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0x6f0): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_put_var1_longlong':
    nc4var.c:(.opd+0x8d0): multiple definition of `nc_put_var1_longlong'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0x798): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_get_var1_longlong':
    nc4var.c:(.opd+0x8e8): multiple definition of `nc_get_var1_longlong'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0x708): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_put_var1_ulonglong':
    nc4var.c:(.opd+0x900): multiple definition of `nc_put_var1_ulonglong'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0x7b0): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_get_var1_ulonglong':
    nc4var.c:(.opd+0x918): multiple definition of `nc_get_var1_ulonglong'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0x720): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_put_var1_string':
    nc4var.c:(.opd+0x930): multiple definition of `nc_put_var1_string'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0x7c8): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_get_var1_string':
    nc4var.c:(.opd+0x948): multiple definition of `nc_get_var1_string'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0x738): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_put_vara_string':
    nc4var.c:(.opd+0x9c0): multiple definition of `nc_put_vara_string'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0x8e8): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_get_vara_string':
    nc4var.c:(.opd+0x9d8): multiple definition of `nc_get_vara_string'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0x858): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_put_vars_ubyte':
    nc4var.c:(.opd+0xb70): multiple definition of `nc_put_vars_ubyte'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0x990): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_get_vars_ubyte':
    nc4var.c:(.opd+0xb88): multiple definition of `nc_get_vars_ubyte'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0x900): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_put_vars_ushort':
    nc4var.c:(.opd+0xba0): multiple definition of `nc_put_vars_ushort'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0x9a8): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_get_vars_ushort':
    nc4var.c:(.opd+0xbb8): multiple definition of `nc_get_vars_ushort'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0x918): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_put_vars_uint':
    nc4var.c:(.opd+0xbd0): multiple definition of `nc_put_vars_uint'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0x9c0): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_get_vars_uint':
    nc4var.c:(.opd+0xbe8): multiple definition of `nc_get_vars_uint'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0x930): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_put_vars_longlong':
    nc4var.c:(.opd+0xc00): multiple definition of `nc_put_vars_longlong'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0x9d8): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_get_vars_longlong':
    nc4var.c:(.opd+0xc18): multiple definition of `nc_get_vars_longlong'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0x948): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_put_vars_ulonglong':
    nc4var.c:(.opd+0xc30): multiple definition of `nc_put_vars_ulonglong'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0x9f0): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_get_vars_ulonglong':
    nc4var.c:(.opd+0xc48): multiple definition of `nc_get_vars_ulonglong'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0x960): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_put_vars_string':
    nc4var.c:(.opd+0xc60): multiple definition of `nc_put_vars_string'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0xa08): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_get_vars_string':
    nc4var.c:(.opd+0xc78): multiple definition of `nc_get_vars_string'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0x978): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_put_varm_ubyte':
    nc4var.c:(.opd+0xe10): multiple definition of `nc_put_varm_ubyte'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0xab0): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_get_varm_ubyte':
    nc4var.c:(.opd+0xe28): multiple definition of `nc_get_varm_ubyte'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0xa20): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_put_varm_ushort':
    nc4var.c:(.opd+0xe40): multiple definition of `nc_put_varm_ushort'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0xac8): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_get_varm_ushort':
    nc4var.c:(.opd+0xe58): multiple definition of `nc_get_varm_ushort'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0xa38): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_put_varm_uint':
    nc4var.c:(.opd+0xe70): multiple definition of `nc_put_varm_uint'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0xae0): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_get_varm_uint':
    nc4var.c:(.opd+0xe88): multiple definition of `nc_get_varm_uint'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0xa50): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_put_varm_longlong':
    nc4var.c:(.opd+0xea0): multiple definition of `nc_put_varm_longlong'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0xaf8): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_get_varm_longlong':
    nc4var.c:(.opd+0xeb8): multiple definition of `nc_get_varm_longlong'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0xa68): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_put_varm_ulonglong':
    nc4var.c:(.opd+0xed0): multiple definition of `nc_put_varm_ulonglong'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0xb10): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_get_varm_ulonglong':
    nc4var.c:(.opd+0xee8): multiple definition of `nc_get_varm_ulonglong'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0xa80): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_put_varm_string':
    nc4var.c:(.opd+0xf00): multiple definition of `nc_put_varm_string'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0xb28): first defined here
    /sara/sw/netcdf/4.1.1/lib/libnetcdf.a(nc4var.o): In function `nc_get_varm_string':
    nc4var.c:(.opd+0xf18): multiple definition of `nc_get_varm_string'
    ./.libs/libnco.a(nco_netcdf.o):nco_netcdf.c:(.opd+0xa98): first defined here
    make[3]: *** [ncap] Error 1
    make[3]: Leaving directory `/gpfs/h04/sbasu/nco/src/nco'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/gpfs/h04/sbasu/nco/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/gpfs/h04/sbasu/nco'
    make: *** [all] Error 2
    
     
  • raglan_road
    raglan_road
    2011-06-16

    Any progress?

     
  • Charlie Zender
    Charlie Zender
    2011-06-25

    sorry for the long absence. was on vacation. try the configure like this…

    CPPFLAGS='-DHAVE_NETCDF4_H' ./configure -prefix…..

     
  • Charlie Zender
    Charlie Zender
    2011-06-25

    And if that does not work then try

    CPPFLAGS='-DHAVE_NETCDF4_H -DENABLE_NETCDF4' ./configure -prefix…..

     
  • raglan_road
    raglan_road
    2011-06-26

    The second solution got rid of the previous error, but generated a new one. I used:

    ./configure -prefix=/home/sbasu/packages -enable-dap-netcdf -enable-netcdf-4 -disable-shared -disable-udunits CC=xlc_r CXX=xlc++_r NETCDF4_ROOT=/sara/sw/netcdf/4.1.1 CPPFLAGS='-DHAVE_NETCDF4_H -DENABLE_NETCDF4'

    and ended up with the following error:

    source='Invoke.cc' object='Invoke.o' libtool=no \
            DEPDIR=.deps depmode=none /bin/sh ../../autobld/depcomp \
            xlc++_r -DHAVE_CONFIG_H -I. -I../.. -I./ -I../nco -I/sara/sw/gsl/1.11/include  -I/sara/sw/netcdf/4.1.1/include -DHAVE_NETCDF4_H -DENABLE_NETCDF4 -I/sara/sw/gsl/1.11/include  -g -c -o Invoke.o Invoke.cc
    "Invoke.cc", line 15.10: 1540-0836 (S) The #include file <antlr/AST.hpp> is not found.
    "Invoke.cc", line 21.10: 1540-0836 (S) The #include file <antlr/CharStreamException.hpp> is not found.
    "Invoke.cc", line 22.10: 1540-0836 (S) The #include file <antlr/TokenStreamException.hpp> is not found.
    "Invoke.cc", line 23.10: 1540-0836 (S) The #include file "antlr/TokenStreamSelector.hpp" is not found.
    "NcapVar.hh", line 8.10: 1540-0836 (S) The #include file <antlr/AST.hpp> is not found.
    "NcapVar.hh", line 9.10: 1540-0836 (S) The #include file <antlr/AST.hpp> is not found.
    "fmc_all_cls.hh", line 16.10: 1540-0836 (S) The #include file <antlr/AST.hpp> is not found.
    "fmc_gsl_cls.hh", line 24.10: 1540-0836 (S) The #include file <antlr/AST.hpp> is not found.
    "ncap2_utl.hh", line 45.10: 1540-0836 (S) The #include file <antlr/AST.hpp> is not found.
    "ncoGrammer.g", line 34.14: 1540-0836 (S) The #include file "antlr/TokenStreamSelector.hpp" is not found.
    "ncoGrammer.g", line 34.14: 1540-0836 (S) The #include file "antlr/TokenStreamSelector.hpp" is not found.
    "ncoGrammer.g", line 34.14: 1540-0836 (S) The #include file "antlr/TokenStreamSelector.hpp" is not found.
    "ncoLexer.hpp", line 4.10: 1540-0836 (S) The #include file <antlr/config.hpp> is not found.
    "ncoLexer.hpp", line 6.10: 1540-0836 (S) The #include file <antlr/CommonToken.hpp> is not found.
    "ncoLexer.hpp", line 7.10: 1540-0836 (S) The #include file <antlr/InputBuffer.hpp> is not found.
    "ncoLexer.hpp", line 8.10: 1540-0836 (S) The #include file <antlr/BitSet.hpp> is not found.
    "ncoLexer.hpp", line 10.10: 1540-0836 (S) The #include file <antlr/CharScanner.hpp> is not found.
    "ncoParser.hpp", line 4.10: 1540-0836 (S) The #include file <antlr/config.hpp> is not found.
    "ncoParser.hpp", line 6.10: 1540-0836 (S) The #include file <antlr/TokenStream.hpp> is not found.
    "ncoParser.hpp", line 7.10: 1540-0836 (S) The #include file <antlr/TokenBuffer.hpp> is not found.
    "ncoParser.hpp", line 9.10: 1540-0836 (S) The #include file <antlr/LLkParser.hpp> is not found.
    "ncoTree.hpp", line 4.10: 1540-0836 (S) The #include file <antlr/config.hpp> is not found.
    "ncoTree.hpp", line 7.10: 1540-0836 (S) The #include file <antlr/TreeParser.hpp> is not found.
    "vtl_cls.hh", line 9.10: 1540-0836 (S) The #include file <antlr/AST.hpp> is not found.
    make[3]: *** [Invoke.o] Error 1
    

    I don't have antlr. When I tried installing antlr, it seemed like I needed maven, and so on. Is antlr essential for nco? Can I not build without that?

     
  • Charlie Zender
    Charlie Zender
    2011-06-26

    You need antlr version 2.7.x, not maven, to build/install ncap2. you can build without antlr/ncap2 by specifying
    ./configure -disable-ncap2