nco error.

2013-01-18
2013-10-17
1 2 > >> (Page 1 of 2)
  • Tripti kumari
    Tripti kumari
    2013-01-18

    Hi Team,
                    i need your help asap i am trying to compile nco-4.1.0 with netcdf 4.1.3 on AIX 6.1but while build i am getting error like below….i treid all option as i saw in the forum but unable to get success buid ……………………………..

    ./configure -prefix=/gpfs1/scientific_appln/nco-4.1.0 -disable-shared

    ERROR: Unable to find 'ncgen' (part of the netCDF distribution)
    Hence unable to create netCDF data files for testing
    Do this manually in data/ subdirectory before running "make check"
    ###############################
    #    Require Shared Libs?     #
    ###############################
    DEBUG: enable_shared: no
    DEBUG: enable_ncoxx: yes and NCOXX = nco++
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating data/Makefile
    config.status: creating src/Makefile
    config.status: creating src/nco/Makefile
    config.status: creating man/Makefile
    config.status: creating doc/Makefile
    config.status: creating src/nco_c++/Makefile
    config.status: creating src/nco++/Makefile
    config.status: creating config.h
    config.status: executing depfiles commands
    config.status: executing libtool commands

    Configuration Parameters:
    AR_FLAGS…………. cru
    CC………………. gcc -std=gnu99
    CFLAGS…………… -g -O2 -maix64 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE
    CPP……………… gcc -E
    CPPFLAGS…………. -I/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include/
    CXX……………… g++
    CXXFLAGS…………. -g -O2
    ENABLE_DAP_NETCDF…. no
    ENABLE_DAP……….. no
    ENABLE_GSL……….. no
    ENABLE_NETCDF4……. no
    ENABLE_UDUNITS……. no
    ENABLE_UDUNITS2…… no
    GSL_ROOT………….
    HAVE_NETCDF4_H……. yes
    HOST……………..
    host…………….. powerpc-ibm-aix6.1.0.0
    HOSTNAME………….
    LDFLAGS………….. -L/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/lib
    LIBS…………….. -lexpat -lthread -lintl -lm
    NETCDF4_ROOT……… /gpfs1/scientific_appln/nco-4.2.3
    *******************************************************************
    Configuration complete. You are now ready to run 'make'.
    Ensure 'make' points to GNU Make (AT&T Make chokes on GNU syntax).
    If the build fails, please examine the file 'configure.eg'
    in the top-level NCO directory.  It contains examples known to
    build NCO for various platforms and compilers.
    *******************************************************************

    bash-4.2# make
            make  all-recursive
    Making all in data
    make: Cannot find a rule to create target big.nc from dependencies.
    Stop.
    make: The error code from the last command is 1.

    Stop.
    make: The error code from the last command is 2.

    Thanks and regards,
    Tripti

     
  • Pedro Vicente
    Pedro Vicente
    2013-01-18

    Try defining this environment variable to the location of ncgen

    PATH_TO_NCGEN=/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/bin/ncgen
    export PATH_TO_NCGEN

    PATH_TO_NCGEN needs to be defined only in cases where you don't have ncgen located in a system path, or you want to use a special ncgen version

    When installing netcdf from a package, this is usually

    which ncgen
    /usr/bin/ncgen

     
  • Pedro Vicente
    Pedro Vicente
    2013-01-18

    also ,

    NETCDF4_ROOT……… /gpfs1/scientific_appln/nco-4.2.3

    I think this should be defined instead as

    /gpfs1/scientific_appln/netcdf/netcdf-4.1.3

     
  • Charlie Zender
    Charlie Zender
    2013-01-18

    Yes, the variety of different directory NCO version names indicates a problem:

    ./configure -prefix=/gpfs1/scientific_appln/nco-4.1.0 -disable-shared
    CPPFLAGS…………. -I/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include/
    NETCDF4_ROOT……… /gpfs1/scientific_appln/nco-4.2.3

     
  • Charlie Zender
    Charlie Zender
    2013-01-18

    We are trying to get someone with autoconf experience a login on an AIX6 machine to make this process go more smoothly.
    For some reason, many people are starting to use the GNU toolchain more on AIX than ever before, and we simply do not test autoconf there. Thanks for your patience.
    cz

     
  • Tripti kumari
    Tripti kumari
    2013-01-21

    hi team,

                       i compiled with ./configure -prefix=/gpfs1/scientific_appln/nco-4.1.0 -disable-shared  CPPFLAGS…………. -I/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include/  but getting the below error ……………………..

    checking whether to build static libraries… yes
    checking how to run the C++ preprocessor… g++ -E
    checking for ld used by g++… /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld… no
    checking whether the g++ linker (/usr/bin/ld) supports shared libraries… yes
    checking for g++ option to produce PIC…  -DPIC
    checking if g++ PIC flag  -DPIC works… yes
    checking if g++ static flag -static works… no
    checking if g++ supports -c -o file.o… yes
    checking if g++ supports -c -o file.o… (cached) yes
    checking whether the g++ linker (/usr/bin/ld) supports shared libraries… yes
    checking dynamic linker characteristics… aix6.1.0.0 ld.so
    checking how to hardcode library paths into programs… immediate
    checking whether to enable maintainer-specific portions of Makefiles… no
    checking for working memcmp… yes
    checking whether lstat correctly handles trailing slash… no
    checking whether stat accepts an empty string… no
    checking for working strtod… yes
    checking for canonicalize_file_name… no
    checking for floor… no
    checking for gethostname… yes
    checking for getpagesize… yes
    checking for getrusage… yes
    checking for memchr… yes
    checking for memmove… yes
    checking for memset… yes
    checking for mkstemp… yes
    checking for pow… no
    checking for readlink… yes
    checking for realpath… yes
    checking for regcomp… yes
    checking for setlocale… yes
    checking for sqrt… no
    checking for strchr… yes
    checking for strerror… yes
    checking for strpbrk… yes
    checking for strrchr… yes
    checking for strstr… yes
    checking for strtol… yes
    checking for ANSI C header files… (cached) yes
    checking getopt.h usability… no
    checking getopt.h presence… no
    checking for getopt.h… no
    checking libintl.h usability… no
    checking libintl.h presence… no
    checking for libintl.h… no
    checking limits.h usability… yes
    checking limits.h presence… yes
    checking for limits.h… yes
    checking locale.h usability… yes
    checking locale.h presence… yes
    checking for locale.h… yes
    checking netinet/in.h usability… yes
    checking netinet/in.h presence… yes
    checking for netinet/in.h… yes
    checking for stdlib.h… (cached) yes
    checking for string.h… (cached) yes
    checking for unistd.h… (cached) yes
    checking cstdlib usability… yes
    checking cstdlib presence… yes
    checking for cstdlib… yes
    checking for an ANSI C-conforming const… yes
    checking for inline… inline
    checking for pid_t… yes
    checking for size_t… yes
    checking whether struct tm is in sys/time.h or time.h… time.h
    checking for uid_t in sys/types.h… yes
    checking for ptrdiff_t… yes
    checking size of int*… 4
    checking whether C++ compiler implements namespaces… yes
    checking whether C++ compiler has working valarray<T>… yes
    checking for special C compiler options needed for large files… no
    checking for _FILE_OFFSET_BITS value needed for large files… unknown
    checking for _LARGE_FILES value needed for large files… 1
    checking netcdf.h usability… yes
    checking netcdf.h presence… yes
    checking for netcdf.h… yes
    #################################
    #  Test for netCDF4 support     #
    #################################
    DEBUG: After netCDF4 section LDFLAGS = -L/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/lib
    checking whether NC_CHUNKED is declared… yes
    configure: netcdf.h contains netCDF4 definitions
    DEBUG: After netCDF4 section header_defines_nc_chunked = yes
    Beginning generic tests for DAP support
    Testing for DAP-netCDF support (is DAP in libnetcdf.a?)…
    checking for nc__opendap in -lnetcdf… no
    configure: WARNING: DAP-netCDF support through libnetcdf.a disabled (missing DAP functions)
    checking for getopt_long… no
    checking for _g95_ac_array in -lf95… no
    checking for sin in -lm… yes
    checking for sinf in -lsunmath… no
    checking for gettext in -lintl… yes
    checking for res_init in -lresolv… no
    checking for main in -lsocket… no
    checking for main in -lthread… yes
    checking for nco_open in -lnco… no
    checking for nc_inq_format… no
    checking for getopt… yes
    checking for getopt_long… (cached) no
    checking for atan2… yes
    checking for acosf… yes
    checking for asinf… yes
    checking for atanf… yes
    checking for atan2f… yes
    checking for cosf… yes
    checking for expf… yes
    checking for fabsf… yes
    checking for fmodf… yes
    checking for log10f… yes
    checking for logf… yes
    checking for powf… yes
    checking for sinf… yes
    checking for sqrtf… yes
    checking for tanf… yes
    checking for erff… yes
    checking for erfcf… yes
    checking for gammaf… no
    checking for acoshf… yes
    checking for asinhf… yes
    checking for atanhf… yes
    checking for coshf… yes
    checking for sinhf… yes
    checking for tanhf… yes
    checking for ceilf… yes
    checking for floorf… yes
    checking for nearbyintf… yes
    checking for rintf… yes
    checking for roundf… yes
    checking for truncf… yes
    checking for getopt_long… (cached) no
    checking for strdup… yes
    checking for strcasecmp… yes
    ##########################################################
    #     Sorting out MacOSX build parameters                #
    ##########################################################
    DEBUG: enable_libnco =  and MACOSX =
    ./configure: test: argument expected
    DEBUG: After library checks LIBS=-lthread -lintl -lm
    #################################
    #  Testing for ANTLR support    #
    #################################
    checking for runantlr… no
    checking for antlr… no
    ########################################
    #     Testing for GSL support          #
    ########################################
    no gsl-config in /usr/bin /usr/lib /usr/include /etc /usr/sbin /usr/ucb /usr/bin/X11 /sbin /usr/java14/jre/bin /usr/java14/bin /usr/lpp/LoadL/full/bin /usr/vacpp/bin /usr/vac/bin /gpfs1/scientific_appln/grads/grads-1.8sl11/bin /gpfs1/scientific_appln/cdo/cdo-1.5.3/bin /gpfs1/scientific_appln/nco/nco-4.1.0/bin /gpfs1/scientific_appln/texinfo-4.8/bin /gpfs1/scientific_appln/ferret/bin /usr/vac/bin /usr/lpp/LoadL/full/bin /opt/freeware/bin /usr/lpp/mmfs/bin /usr/lpp/ppe.hpct . /bin /usr/bin /etc /usr/sbin /usr/bin/X11 /sbin /usr/sbin/rsct/bin /opt/csm/bin /usr/lpp/mmfs/bin /usr/lpp/LoadL/full/bin /usr/local/etc /usr/local/bin /csminstall/tools /usr/lib/instl /opt/csm/hpsnm/bin /opt/csm/hpsnm/tools/bin /usr/java5/jre/bin /usr/java5/bin /opt/tripwire/tfs/bin /gpfs1/opt/jre/bin /gpfs1/opt/jre/lib /gpfs1/opt/sudo/bin/sudo /opt/csm/bin /usr/vacpp/bin . /usr/opt/ifor/ls/os/aix/bin
    configure: WARNING: Did not find 'gsl-config' command in your default path
    DEBUG: After GSL tests LIBS = -lthread -lintl -lm
    checking regex.h usability… yes
    checking regex.h presence… yes
    checking for regex.h… yes
    checking for sys/types.h… (cached) yes
    checking for regexec… yes
    checking for regcomp… (cached) yes
    checking for regfree… yes
    ########################################
    #     Testing for UDUNITS support      #
    ########################################
    Beginning generic tests for UDUnits
    DEBUG: enable_udunits = yes and enable_udunits2 = yes
    WARNING: Requested both UDUnits and UDUnits2 support--overriding UDUnits
    Will attempt to build NCO with UDUnits support from libudunits2, not from libudunits
    checking for XML_ParserCreate in -lexpat… yes
    checking for /gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include/../share/udunits/udunits2.xml… no
    configure: WARNING: file /gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include/../share/udunits/udunits2.xml was not found but will still attempt to build NCO with UDUnits2 support.
    configure: NB: Following tests of UDUnits2 library and header must succeed for UDUnits2 support:
    checking for ut_read_xml in -ludunits2… no
    checking udunits2.h usability… no
    checking udunits2.h presence… no
    checking for udunits2.h… no
    configure: WARNING: UDUnits2 support disabled (missing/unusable library or header file)
    DEBUG: After UDUnits2 tests LIBS = -lexpat -lthread -lintl -lm
    checking for ncgen… /gpfs1/scientific_appln/netcdf/netcdf-4.1.3/bin/ncgen
    configure: Creating sample netCDF data files for self-tests
    ###############################
    #    Require Shared Libs?     #
    ###############################
    DEBUG: enable_shared: no
    DEBUG: enable_ncoxx: yes and NCOXX = nco++
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating data/Makefile
    config.status: creating src/Makefile
    config.status: creating src/nco/Makefile
    config.status: creating man/Makefile
    config.status: creating doc/Makefile
    config.status: creating src/nco_c++/Makefile
    config.status: creating src/nco++/Makefile
    config.status: creating config.h
    config.status: executing depfiles commands
    config.status: executing libtool commands

    Configuration Parameters:
    AR_FLAGS…………. cru
    CC………………. gcc -std=gnu99
    CFLAGS…………… -g -O2 -maix64 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE
    CPP……………… gcc -E
    CPPFLAGS…………. -I/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include
    CXX……………… g++
    CXXFLAGS…………. -g -O2
    ENABLE_DAP_NETCDF…. no
    ENABLE_DAP……….. no
    ENABLE_GSL……….. no
    ENABLE_NETCDF4……. no
    ENABLE_UDUNITS……. no
    ENABLE_UDUNITS2…… no
    GSL_ROOT………….
    HAVE_NETCDF4_H……. yes
    HOST……………..
    host…………….. powerpc-ibm-aix6.1.0.0
    HOSTNAME………….
    LDFLAGS………….. -L/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/lib
    LIBS…………….. -lexpat -lthread -lintl -lm
    NETCDF4_ROOT……… /gpfs1/scientific_appln/netcdf/netcdf-4.1.3
    *******************************************************************
    Configuration complete. You are now ready to run 'make'.
    Ensure 'make' points to GNU Make (AT&T Make chokes on GNU syntax).
    If the build fails, please examine the file 'configure.eg'
    in the top-level NCO directory.  It contains examples known to
    build NCO for various platforms and compilers.
    *******************************************************************
    tripti@imd01n3:/gpfs1/scientific_appln/nco-4.1.0>make
            make  all-recursive
    Making all in data
    make: Cannot find a rule to create target big.nc from dependencies.
    Stop.
    make: The error code from the last command is

    Now not getting NCGEN error but getting another error in config log like below………..

    conftest.c:16:28: error: ac_nonexistent.h: No such file or directory

    conftest.cpp:16:28: error: ac_nonexistent.h: No such file or directory

    conftest.c:120: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'newv
    ar'
    conftest.c:120: error: 'newvar' undeclared (first use in this function)
    conftest.c:120: error: (Each undeclared identifier is reported only once
    conftest.c:120: error: for each function it appears in.)
    conftest.c:130: error: 'for' loop initial declaration used outside C99 mode
    configure:5478: $? = 1

    Stop.
    make: The error code from the last command is 2.

    Stop.

     
  • Tripti kumari
    Tripti kumari
    2013-01-21

    While make i m getting below error ………………………………….

    bash-4.2# make
            make  all-recursive
    Making all in data
    make: Cannot find a rule to create target big.nc from dependencies.
    Stop.
    make: The error code from the last command is 1.

    Stop.
    make: The error code from the last command is 2.

    And while gmake i am getting below problem………………………….

    /gpfs1/scientific_appln/netcdf/netcdf-4.1.3/bin/ncgen -o big.nc big.cdl
    /gpfs1/scientific_appln/netcdf/netcdf-4.1.3/bin/ncgen -o in_rec_zero.nc in_rec_zero.cdl
    gmake: Leaving directory `/gpfs1/scientific_appln/nco-4.1.0/data'
    Making all in src
    gmake: Entering directory `/gpfs1/scientific_appln/nco-4.1.0/src'
    Making all in nco
    gmake: Entering directory `/gpfs1/scientific_appln/nco-4.1.0/src/nco'
    /bin/sh ../../libtool -tag=CXX -tag=CC   -mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..   -I/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include    -g -O2 -maix64 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE -MT nco_getopt.lo -MD -MP -MF .deps/nco_getopt.Tpo -c -o nco_getopt.lo nco_getopt.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include -g -O2 -maix64 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE -MT nco_getopt.lo -MD -MP -MF .deps/nco_getopt.Tpo -c nco_getopt.c -o nco_getopt.o
    mv -f .deps/nco_getopt.Tpo .deps/nco_getopt.Plo
    /bin/sh ../../libtool -tag=CXX -tag=CC   -mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..   -I/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include    -g -O2 -maix64 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE -MT nco_att_utl.lo -MD -MP -MF .deps/nco_att_utl.Tpo -c -o nco_att_utl.lo nco_att_utl.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include -g -O2 -maix64 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE -MT nco_att_utl.lo -MD -MP -MF .deps/nco_att_utl.Tpo -c nco_att_utl.c -o nco_att_utl.o
    nco_att_utl.c: In function 'nco_hst_att_cat':
    nco_att_utl.c:539: warning: implicit declaration of function 'strcasecmp'
    nco_att_utl.c: In function 'nco_prs_aed_lst':
    nco_att_utl.c:667: warning: implicit declaration of function 'strdup'
    nco_att_utl.c:667: warning: assignment makes pointer from integer without a cast
    nco_att_utl.c:668: warning: assignment makes pointer from integer without a cast
    nco_att_utl.c:750: warning: cast to pointer from integer of different size
    mv -f .deps/nco_att_utl.Tpo .deps/nco_att_utl.Plo
    /bin/sh ../../libtool -tag=CXX -tag=CC   -mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..   -I/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include    -g -O2 -maix64 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE -MT nco_aux.lo -MD -MP -MF .deps/nco_aux.Tpo -c -o nco_aux.lo nco_aux.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include -g -O2 -maix64 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE -MT nco_aux.lo -MD -MP -MF .deps/nco_aux.Tpo -c nco_aux.c -o nco_aux.o
    nco_aux.c: In function 'nco_aux_evl':
    nco_aux.c:212: warning: implicit declaration of function 'strdup'
    nco_aux.c:212: warning: cast to pointer from integer of different size
    nco_aux.c:217: warning: cast to pointer from integer of different size
    nco_aux.c:268: warning: cast to pointer from integer of different size
    nco_aux.c:271: warning: cast to pointer from integer of different size
    nco_aux.c: In function 'nco_aux_prs':
    nco_aux.c:317: warning: assignment makes pointer from integer without a cast
    mv -f .deps/nco_aux.Tpo .deps/nco_aux.Plo
    /bin/sh ../../libtool -tag=CXX -tag=CC   -mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..   -I/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include    -g -O2 -maix64 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE -MT nco_bnr.lo -MD -MP -MF .deps/nco_bnr.Tpo -c -o nco_bnr.lo nco_bnr.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include -g -O2 -maix64 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE -MT nco_bnr.lo -MD -MP -MF .deps/nco_bnr.Tpo -c nco_bnr.c -o nco_bnr.o
    mv -f .deps/nco_bnr.Tpo .deps/nco_bnr.Plo
    /bin/sh ../../libtool -tag=CXX -tag=CC   -mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..   -I/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include    -g -O2 -maix64 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE -MT nco_cln_utl.lo -MD -MP -MF .deps/nco_cln_utl.Tpo -c -o nco_cln_utl.lo nco_cln_utl.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include -g -O2 -maix64 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE -MT nco_cln_utl.lo -MD -MP -MF .deps/nco_cln_utl.Tpo -c nco_cln_utl.c -o nco_cln_utl.o
    nco_cln_utl.c: In function 'nco_cln_get_tm_typ':
    nco_cln_utl.c:417: warning: implicit declaration of function 'strdup'
    nco_cln_utl.c:417: warning: assignment makes pointer from integer without a cast
    nco_cln_utl.c: In function 'nco_cln_get_cln_typ':
    nco_cln_utl.c:454: warning: assignment makes pointer from integer without a cast
    nco_cln_utl.c: In function 'nco_cln_clc_tm':
    nco_cln_utl.c:626: warning: assignment makes pointer from integer without a cast
    mv -f .deps/nco_cln_utl.Tpo .deps/nco_cln_utl.Plo
    /bin/sh ../../libtool -tag=CXX -tag=CC   -mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..   -I/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include    -g -O2 -maix64 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE -MT nco_cnf_dmn.lo -MD -MP -MF .deps/nco_cnf_dmn.Tpo -c -o nco_cnf_dmn.lo nco_cnf_dmn.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include -g -O2 -maix64 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE -MT nco_cnf_dmn.lo -MD -MP -MF .deps/nco_cnf_dmn.Tpo -c nco_cnf_dmn.c -o nco_cnf_dmn.o
    nco_cnf_dmn.c: In function 'nco_var_cnf_dmn':
    nco_cnf_dmn.c:218: warning: implicit declaration of function 'strdup'
    nco_cnf_dmn.c:218: warning: cast to pointer from integer of different size
    mv -f .deps/nco_cnf_dmn.Tpo .deps/nco_cnf_dmn.Plo
    /bin/sh ../../libtool -tag=CXX -tag=CC   -mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..   -I/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include    -g -O2 -maix64 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE -MT nco_cnf_typ.lo -MD -MP -MF .deps/nco_cnf_typ.Tpo -c -o nco_cnf_typ.lo nco_cnf_typ.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include -g -O2 -maix64 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE -MT nco_cnf_typ.lo -MD -MP -MF .deps/nco_cnf_typ.Tpo -c nco_cnf_typ.c -o nco_cnf_typ.o
    mv -f .deps/nco_cnf_typ.Tpo .deps/nco_cnf_typ.Plo
    /bin/sh ../../libtool -tag=CXX -tag=CC   -mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..   -I/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include    -g -O2 -maix64 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE -MT nco_cnk.lo -MD -MP -MF .deps/nco_cnk.Tpo -c -o nco_cnk.lo nco_cnk.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include -g -O2 -maix64 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE -MT nco_cnk.lo -MD -MP -MF .deps/nco_cnk.Tpo -c nco_cnk.c -o nco_cnk.o
    mv -f .deps/nco_cnk.Tpo .deps/nco_cnk.Plo
    /bin/sh ../../libtool -tag=CXX -tag=CC   -mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..   -I/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include    -g -O2 -maix64 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE -MT nco_cnv_arm.lo -MD -MP -MF .deps/nco_cnv_arm.Tpo -c -o nco_cnv_arm.lo nco_cnv_arm.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include -g -O2 -maix64 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE -MT nco_cnv_arm.lo -MD -MP -MF .deps/nco_cnv_arm.Tpo -c nco_cnv_arm.c -o nco_cnv_arm.o
    mv -f .deps/nco_cnv_arm.Tpo .deps/nco_cnv_arm.Plo
    /bin/sh ../../libtool -tag=CXX -tag=CC   -mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..   -I/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include    -g -O2 -maix64 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE -MT nco_cnv_csm.lo -MD -MP -MF .deps/nco_cnv_csm.Tpo -c -o nco_cnv_csm.lo nco_cnv_csm.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include -g -O2 -maix64 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE -MT nco_cnv_csm.lo -MD -MP -MF .deps/nco_cnv_csm.Tpo -c nco_cnv_csm.c -o nco_cnv_csm.o
    nco_cnv_csm.c: In function 'nco_cnv_cf_crd_add':
    nco_cnv_csm.c:208: warning: implicit declaration of function 'strdup'
    nco_cnv_csm.c:208: warning: cast to pointer from integer of different size
    mv -f .deps/nco_cnv_csm.Tpo .deps/nco_cnv_csm.Plo
    /bin/sh ../../libtool -tag=CXX -tag=CC   -mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..   -I/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include    -g -O2 -maix64 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE -MT nco_ctl.lo -MD -MP -MF .deps/nco_ctl.Tpo -c -o nco_ctl.lo nco_ctl.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include -g -O2 -maix64 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE -MT nco_ctl.lo -MD -MP -MF .deps/nco_ctl.Tpo -c nco_ctl.c -o nco_ctl.o
    nco_ctl.c: In function 'nco_lbr_vrs_prn':
    nco_ctl.c:642: warning: implicit declaration of function 'strdup'
    nco_ctl.c:642: warning: cast to pointer from integer of different size
    nco_ctl.c:662: warning: cast to pointer from integer of different size
    nco_ctl.c: In function 'prg_prs':
    nco_ctl.c:799: warning: cast to pointer from integer of different size
    nco_ctl.c:855: warning: cast to pointer from integer of different size
    nco_ctl.c: In function 'nco_usg_prn':
    nco_ctl.c:875: warning: cast to pointer from integer of different size
    nco_ctl.c:878: warning: cast to pointer from integer of different size
    nco_ctl.c:881: warning: cast to pointer from integer of different size
    nco_ctl.c:884: warning: cast to pointer from integer of different size
    nco_ctl.c:887: warning: cast to pointer from integer of different size
    nco_ctl.c:890: warning: cast to pointer from integer of different size
    nco_ctl.c:894: warning: cast to pointer from integer of different size
    nco_ctl.c:897: warning: cast to pointer from integer of different size
    nco_ctl.c:900: warning: cast to pointer from integer of different size
    nco_ctl.c:903: warning: cast to pointer from integer of different size
    nco_ctl.c:906: warning: cast to pointer from integer of different size
    mv -f .deps/nco_ctl.Tpo .deps/nco_ctl.Plo
    /bin/sh ../../libtool -tag=CXX -tag=CC   -mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..   -I/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include    -g -O2 -maix64 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE -MT nco_dbg.lo -MD -MP -MF .deps/nco_dbg.Tpo -c -o nco_dbg.lo nco_dbg.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include -g -O2 -maix64 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE -MT nco_dbg.lo -MD -MP -MF .deps/nco_dbg.Tpo -c nco_dbg.c -o nco_dbg.o
    mv -f .deps/nco_dbg.Tpo .deps/nco_dbg.Plo
    /bin/sh ../../libtool -tag=CXX -tag=CC   -mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..   -I/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include    -g -O2 -maix64 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE -MT nco_dmn_utl.lo -MD -MP -MF .deps/nco_dmn_utl.Tpo -c -o nco_dmn_utl.lo nco_dmn_utl.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include -g -O2 -maix64 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE -MT nco_dmn_utl.lo -MD -MP -MF .deps/nco_dmn_utl.Tpo -c nco_dmn_utl.c -o nco_dmn_utl.o
    nco_dmn_utl.c: In function 'nco_dmn_dpl':
    nco_dmn_utl.c:57: warning: implicit declaration of function 'strdup'
    nco_dmn_utl.c:57: warning: cast to pointer from integer of different size
    nco_dmn_utl.c: In function 'nco_dmn_cpy':
    nco_dmn_utl.c:74: warning: assignment makes pointer from integer without a cast
    nco_dmn_utl.c: In function 'nco_dmn_fll':
    nco_dmn_utl.c:94: warning: cast to pointer from integer of different size
    nco_dmn_utl.c: In function 'nco_dmn_lst_ass_var':
    nco_dmn_utl.c:275: warning: cast to pointer from integer of different size
    nco_dmn_utl.c: In function 'nco_dmn_lst_mk':
    nco_dmn_utl.c:328: warning: cast to pointer from integer of different size
    mv -f .deps/nco_dmn_utl.Tpo .deps/nco_dmn_utl.Plo
    /bin/sh ../../libtool -tag=CXX -tag=CC   -mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..   -I/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include    -g -O2 -maix64 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE -MT nco_fl_utl.lo -MD -MP -MF .deps/nco_fl_utl.Tpo -c -o nco_fl_utl.lo nco_fl_utl.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include -g -O2 -maix64 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE -MT nco_fl_utl.lo -MD -MP -MF .deps/nco_fl_utl.Tpo -c nco_fl_utl.c -o nco_fl_utl.o
    In file included from nco_fl_utl.h:32,
                     from nco_fl_utl.c:9:
    /usr/include/arpa/nameser.h:135: error: expected ':', ',', ';', '}' or '__attribute__' before '*' token
    /usr/include/arpa/nameser.h:171: error: expected ':', ',', ';', '}' or '__attribute__' before '*' token
    /usr/include/arpa/nameser.h:586: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__ns_get16'
    /usr/include/arpa/nameser.h:587: error: expected ';', ',' or ')' before '*' token
    /usr/include/arpa/nameser.h:588: error: expected ')' before '*' token
    /usr/include/arpa/nameser.h:589: error: expected declaration specifiers or '…' before 'u_char'
    /usr/include/arpa/nameser.h:590: error: expected ';', ',' or ')' before '*' token
    /usr/include/arpa/nameser.h:596: error: expected ';', ',' or ')' before '*' token
    /usr/include/arpa/nameser.h:602: error: expected ';', ',' or ')' before '*' token
    /usr/include/arpa/nameser.h:603: error: expected ';', ',' or ')' before '*' token
    /usr/include/arpa/nameser.h:604: error: expected declaration specifiers or '…' before 'u_char'
    /usr/include/arpa/nameser.h:605: error: expected ';', ',' or ')' before '*' token
    /usr/include/arpa/nameser.h:607: error: expected ';', ',' or ')' before '*' token
    /usr/include/arpa/nameser.h:609: error: expected ';', ',' or ')' before '*' token
    /usr/include/arpa/nameser.h:611: error: expected declaration specifiers or '…' before 'u_char'
    /usr/include/arpa/nameser.h:612: error: expected ';', ',' or ')' before '*' token
    /usr/include/arpa/nameser.h:613: error: expected ';', ',' or ')' before '*' token
    /usr/include/arpa/nameser.h:614: error: expected ';', ',' or ')' before '*' token
    /usr/include/arpa/nameser.h:616: error: expected ')' before '*' token
    /usr/include/arpa/nameser.h:618: error: expected ')' before '*' token
    /usr/include/arpa/nameser.h:621: error: expected ')' before '*' token
    /usr/include/arpa/nameser.h:623: error: expected ')' before '*' token
    /usr/include/arpa/nameser.h:626: error: expected ';', ',' or ')' before '*' token
    /usr/include/arpa/nameser.h:628: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    /usr/include/arpa/nameser.h:629: error: expected ')' before '*' token
    /usr/include/arpa/nameser.h:632: error: expected ')' before '*' token
    /usr/include/arpa/nameser.h:633: error: expected ';', ',' or ')' before '*' token
    In file included from /usr/include/arpa/nameser.h:645,
                     from nco_fl_utl.h:32,
                     from nco_fl_utl.c:9:
    /usr/include/arpa/onameser_compat.h:233: error: expected specifier-qualifier-list before 'u_short'
    /usr/include/arpa/onameser_compat.h:321: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_getshort'
    /usr/include/arpa/onameser_compat.h:322: error: expected ';', ',' or ')' before '*' token
    In file included from nco_fl_utl.h:33,
                     from nco_fl_utl.c:9:
    /usr/include/resolv.h:123: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:130: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:159: error: field 'sin' has incomplete type
    /usr/include/resolv.h:160: error: field 'sin6' has incomplete type
    /usr/include/resolv.h:192: error: array type has incomplete element type
    /usr/include/resolv.h:194: error: expected specifier-qualifier-list before 'u_short'
    /usr/include/resolv.h:328: error: expected ')' before 'const'
    /usr/include/resolv.h:329: error: expected declaration specifiers or '…' before 'u_char'
    /usr/include/resolv.h:330: error: expected declaration specifiers or '…' before 'u_char'
    /usr/include/resolv.h:331: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:332: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:333: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:334: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:335: error: expected declaration specifiers or '…' before 'u_char'
    /usr/include/resolv.h:336: error: expected declaration specifiers or '…' before 'u_char'
    /usr/include/resolv.h:341: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:342: error: expected ')' before '*' token
    /usr/include/resolv.h:343: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:344: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:345: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:347: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:352: error: expected declaration specifiers or '…' before 'u_char'
    /usr/include/resolv.h:352: error: expected declaration specifiers or '…' before 'u_char'
    /usr/include/resolv.h:353: error: expected declaration specifiers or '…' before 'u_char'
    /usr/include/resolv.h:354: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:358: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'res_randomid'
    /usr/include/resolv.h:359: error: expected declaration specifiers or '…' before 'u_char'
    /usr/include/resolv.h:360: error: expected declaration specifiers or '…' before 'u_char'
    /usr/include/resolv.h:362: error: expected declaration specifiers or '…' before 'u_char'
    /usr/include/resolv.h:363: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:365: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:368: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:369: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:380: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:385: error: expected declaration specifiers or '…' before 'u_char'
    /usr/include/resolv.h:387: error: expected declaration specifiers or '…' before 'u_char'
    /usr/include/resolv.h:389: error: expected declaration specifiers or '…' before 'u_char'
    /usr/include/resolv.h:391: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:393: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:403: error: expected ';', ',' or ')' before '*' token
    nco_fl_utl.c: In function 'nco_fl_info_get':
    nco_fl_utl.c:237: warning: implicit declaration of function 'lstat'
    nco_fl_utl.c:239: warning: implicit declaration of function 'S_ISLNK'
    nco_fl_utl.c: In function 'nco_fl_lst_mk':
    nco_fl_utl.c:325: warning: implicit declaration of function 'strdup'
    nco_fl_utl.c:325: warning: cast to pointer from integer of different size
    nco_fl_utl.c:327: warning: cast to pointer from integer of different size
    nco_fl_utl.c:402: warning: cast to pointer from integer of different size
    nco_fl_utl.c:446: warning: cast to pointer from integer of different size
    nco_fl_utl.c:456: warning: cast to pointer from integer of different size
    nco_fl_utl.c: In function 'nco_fl_mk_lcl':
    nco_fl_utl.c:499: warning: cast to pointer from integer of different size
    nco_fl_utl.c:625: warning: cast to pointer from integer of different size
    nco_fl_utl.c:755: warning: cast to pointer from integer of different size
    nco_fl_utl.c:797: warning: implicit declaration of function 'gethostname'
    nco_fl_utl.c:804: error: 'struct state' has no member named 'defdname'
    nco_fl_utl.c:926: warning: cast to pointer from integer of different size
    nco_fl_utl.c:940: warning: cast to pointer from integer of different size
    nco_fl_utl.c: In function 'nco_fl_nm_prs':
    nco_fl_utl.c:1173: warning: cast to pointer from integer of different size
    nco_fl_utl.c:1185: warning: cast to pointer from integer of different size
    nco_fl_utl.c:1190: warning: cast to pointer from integer of different size
    nco_fl_utl.c: In function 'nco_fl_out_open':
    nco_fl_utl.c:1440: warning: implicit declaration of function 'mkstemp'
    nco_fl_utl.c:1496: warning: implicit declaration of function 'strcasecmp'
    gmake: ***  Error 1
    gmake: Leaving directory `/gpfs1/scientific_appln/nco-4.1.0/src/nco'
    gmake: ***  Error 1
    gmake: Leaving directory `/gpfs1/scientific_appln/nco-4.1.0/src'
    gmake: ***  Error 1
    gmake: Leaving directory `/gpfs1/scientific_appln/nco-4.1.0'
    gmake: ***  Error 2

     
  • Charlie Zender
    Charlie Zender
    2013-01-21

    if you are able to make the appropriate path substitutions, does this command work for you:

    cd ~/nco/bld;ANTLR='/contrib/antlr-2.7.7/bin/antlr' ANTLR_ROOT='/contrib/antlr-2.7.7' CURL_LIB='/contrib/curl/7.21.2/lib' GSL_INC='/contrib/gsl-1.12/include' GSL_LIB='/contrib/gsl-1.12/lib' HDF5_ROOT='/contrib/hdf5-1.8.7_seq' LDFLAGS='-lnetcdf -lhdf5_hl -lhdf5 -lz' NETCDF_ROOT='/contrib/netcdf/4.1.3_seq' SZ_LIB='/contrib/szip/lib' UDUNITS_LIB='/contrib/zlib/lib' make -jobs=1 OPTS=D SZ=Y allinone ABI=64;cd -

     
  • Tripti kumari
    Tripti kumari
    2013-01-21

    again getting error like this…………………………….

    tripti@imd01n3://gpfs1/scientific_appln/nco-4.1.0>make
            make  all-recursive
    Making all in data
    Target "all" is up to date.
    Making all in src
    Making all in nco
            /bin/sh ../../libtool -tag=CXX -tag=CC    -mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..    -I/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include    -g -O2 -maix64 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE -MT nco_fl_utl.lo -MD -MP -MF .deps/nco_fl_utl.Tpo -c -o nco_fl_utl.lo nco_fl_utl.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include -g -O2 -maix64 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE -MT nco_fl_utl.lo -MD -MP -MF .deps/nco_fl_utl.Tpo -c nco_fl_utl.c -o nco_fl_utl.o
    In file included from nco_fl_utl.h:32,
                     from nco_fl_utl.c:9:
    /usr/include/arpa/nameser.h:135: error: expected ':', ',', ';', '}' or '__attribute__' before '*' token
    /usr/include/arpa/nameser.h:171: error: expected ':', ',', ';', '}' or '__attribute__' before '*' token
    /usr/include/arpa/nameser.h:586: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__ns_get16'
    /usr/include/arpa/nameser.h:587: error: expected ';', ',' or ')' before '*' token
    /usr/include/arpa/nameser.h:588: error: expected ')' before '*' token
    /usr/include/arpa/nameser.h:589: error: expected declaration specifiers or '…' before 'u_char'
    /usr/include/arpa/nameser.h:590: error: expected ';', ',' or ')' before '*' token
    /usr/include/arpa/nameser.h:596: error: expected ';', ',' or ')' before '*' token
    /usr/include/arpa/nameser.h:602: error: expected ';', ',' or ')' before '*' token
    /usr/include/arpa/nameser.h:603: error: expected ';', ',' or ')' before '*' token
    /usr/include/arpa/nameser.h:604: error: expected declaration specifiers or '…' before 'u_char'
    /usr/include/arpa/nameser.h:605: error: expected ';', ',' or ')' before '*' token
    /usr/include/arpa/nameser.h:607: error: expected ';', ',' or ')' before '*' token
    /usr/include/arpa/nameser.h:609: error: expected ';', ',' or ')' before '*' token
    /usr/include/arpa/nameser.h:611: error: expected declaration specifiers or '…' before 'u_char'
    /usr/include/arpa/nameser.h:612: error: expected ';', ',' or ')' before '*' token
    /usr/include/arpa/nameser.h:613: error: expected ';', ',' or ')' before '*' token
    /usr/include/arpa/nameser.h:614: error: expected ';', ',' or ')' before '*' token
    /usr/include/arpa/nameser.h:616: error: expected ')' before '*' token
    /usr/include/arpa/nameser.h:618: error: expected ')' before '*' token
    /usr/include/arpa/nameser.h:621: error: expected ')' before '*' token
    /usr/include/arpa/nameser.h:623: error: expected ')' before '*' token
    /usr/include/arpa/nameser.h:626: error: expected ';', ',' or ')' before '*' token
    /usr/include/arpa/nameser.h:628: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    /usr/include/arpa/nameser.h:629: error: expected ')' before '*' token
    /usr/include/arpa/nameser.h:632: error: expected ')' before '*' token
    /usr/include/arpa/nameser.h:633: error: expected ';', ',' or ')' before '*' token
    In file included from /usr/include/arpa/nameser.h:645,
                     from nco_fl_utl.h:32,
                     from nco_fl_utl.c:9:
    /usr/include/arpa/onameser_compat.h:233: error: expected specifier-qualifier-list before 'u_short'
    /usr/include/arpa/onameser_compat.h:321: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_getshort'
    /usr/include/arpa/onameser_compat.h:322: error: expected ';', ',' or ')' before '*' token
    In file included from nco_fl_utl.h:33,
                     from nco_fl_utl.c:9:
    /usr/include/resolv.h:123: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:130: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:159: error: field 'sin' has incomplete type
    /usr/include/resolv.h:160: error: field 'sin6' has incomplete type
    /usr/include/resolv.h:192: error: array type has incomplete element type
    /usr/include/resolv.h:194: error: expected specifier-qualifier-list before 'u_short'
    /usr/include/resolv.h:328: error: expected ')' before 'const'
    /usr/include/resolv.h:329: error: expected declaration specifiers or '…' before 'u_char'
    /usr/include/resolv.h:330: error: expected declaration specifiers or '…' before 'u_char'
    /usr/include/resolv.h:331: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:332: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:333: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:334: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:335: error: expected declaration specifiers or '…' before 'u_char'
    /usr/include/resolv.h:336: error: expected declaration specifiers or '…' before 'u_char'
    /usr/include/resolv.h:341: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:342: error: expected ')' before '*' token
    /usr/include/resolv.h:343: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:344: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:345: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:347: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:352: error: expected declaration specifiers or '…' before 'u_char'
    /usr/include/resolv.h:352: error: expected declaration specifiers or '…' before 'u_char'
    /usr/include/resolv.h:353: error: expected declaration specifiers or '…' before 'u_char'
    /usr/include/resolv.h:354: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:358: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'res_randomid'
    /usr/include/resolv.h:359: error: expected declaration specifiers or '…' before 'u_char'
    /usr/include/resolv.h:360: error: expected declaration specifiers or '…' before 'u_char'
    /usr/include/resolv.h:362: error: expected declaration specifiers or '…' before 'u_char'
    /usr/include/resolv.h:363: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:365: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:368: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:369: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:380: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:385: error: expected declaration specifiers or '…' before 'u_char'
    /usr/include/resolv.h:387: error: expected declaration specifiers or '…' before 'u_char'
    /usr/include/resolv.h:389: error: expected declaration specifiers or '…' before 'u_char'
    /usr/include/resolv.h:391: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:393: error: expected ';', ',' or ')' before '*' token
    /usr/include/resolv.h:403: error: expected ';', ',' or ')' before '*' token
    nco_fl_utl.c: In function 'nco_fl_info_get':
    nco_fl_utl.c:237: warning: implicit declaration of function 'lstat'
    nco_fl_utl.c:239: warning: implicit declaration of function 'S_ISLNK'
    nco_fl_utl.c: In function 'nco_fl_lst_mk':
    nco_fl_utl.c:325: warning: implicit declaration of function 'strdup'
    nco_fl_utl.c:325: warning: cast to pointer from integer of different size
    nco_fl_utl.c:327: warning: cast to pointer from integer of different size
    nco_fl_utl.c:402: warning: cast to pointer from integer of different size
    nco_fl_utl.c:446: warning: cast to pointer from integer of different size
    nco_fl_utl.c:456: warning: cast to pointer from integer of different size
    nco_fl_utl.c: In function 'nco_fl_mk_lcl':
    nco_fl_utl.c:499: warning: cast to pointer from integer of different size
    nco_fl_utl.c:625: warning: cast to pointer from integer of different size
    nco_fl_utl.c:755: warning: cast to pointer from integer of different size
    nco_fl_utl.c:797: warning: implicit declaration of function 'gethostname'
    nco_fl_utl.c:804: error: 'struct state' has no member named 'defdname'
    nco_fl_utl.c:926: warning: cast to pointer from integer of different size
    nco_fl_utl.c:940: warning: cast to pointer from integer of different size
    nco_fl_utl.c: In function 'nco_fl_nm_prs':
    nco_fl_utl.c:1173: warning: cast to pointer from integer of different size
    nco_fl_utl.c:1185: warning: cast to pointer from integer of different size
    nco_fl_utl.c:1190: warning: cast to pointer from integer of different size
    nco_fl_utl.c: In function 'nco_fl_out_open':
    nco_fl_utl.c:1440: warning: implicit declaration of function 'mkstemp'
    nco_fl_utl.c:1496: warning: implicit declaration of function 'strcasecmp'
    make: The error code from the last command is 1.

    Stop.
    make: The error code from the last command is 1.

    Stop.
    make: The error code from the last command is 1.

    Stop.
    make: The error code from the last command is 2.

    Stop.

     
  • Tripti kumari
    Tripti kumari
    2013-01-22

    Hi Team,

                      I again tried with this option…………………………………………

    ./configure -prefix=/gpfs1/scientific_appln/nco-4.1.0 -enable-static -
    -disable-dap-netcdf -disable-dap-opendap -disable-ncoxx -disable-ncap2 -disa
    ble-mpi -disable-gsl -enable-udunits2 NETCDF_INC=/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include NETCDF_LIB=/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/li
    b NETCDF4_ROOT=/gpfs1/scientific_appln/netcdf/netcdf-4.1.3 HDF5_LIB_DIR=/gpfs1/s
    cientific_appln/hdf5/hdf5-1.8.8/lib UDUNITS2_PATH=/gpfs1/scientific_appln/udunits-2.1.24……….

    checking for getrusage… yes
    checking for memchr… yes
    checking for memmove… yes
    checking for memset… yes
    checking for mkstemp… yes
    checking for pow… no
    checking for readlink… yes
    checking for realpath… yes
    checking for regcomp… yes
    checking for setlocale… yes
    checking for sqrt… no
    checking for strchr… yes
    checking for strerror… yes
    checking for strpbrk… yes
    checking for strrchr… yes
    checking for strstr… yes
    checking for strtol… yes
    checking for ANSI C header files… (cached) yes
    checking getopt.h usability… no
    checking getopt.h presence… no
    checking for getopt.h… no
    checking libintl.h usability… no
    checking libintl.h presence… no
    checking for libintl.h… no
    checking limits.h usability… yes
    checking limits.h presence… yes
    checking for limits.h… yes
    checking locale.h usability… yes
    checking locale.h presence… yes
    checking for locale.h… yes
    checking netinet/in.h usability… yes
    checking netinet/in.h presence… yes
    checking for netinet/in.h… yes
    checking for stdlib.h… (cached) yes
    checking for string.h… (cached) yes
    checking for unistd.h… (cached) yes
    checking cstdlib usability… yes
    checking cstdlib presence… yes
    checking for cstdlib… yes
    checking for an ANSI C-conforming const… yes
    checking for inline… inline
    checking for pid_t… yes
    checking for size_t… yes
    checking whether struct tm is in sys/time.h or time.h… time.h
    checking for uid_t in sys/types.h… yes
    checking for ptrdiff_t… yes
    checking size of int*… 4
    checking whether C++ compiler implements namespaces… yes
    checking whether C++ compiler has working valarray<T>… yes
    checking for special C compiler options needed for large files… no
    checking for _FILE_OFFSET_BITS value needed for large files… unknown
    checking for _LARGE_FILES value needed for large files… 1
    checking netcdf.h usability… yes
    checking netcdf.h presence… yes
    checking for netcdf.h… yes
    #################################
    #  Test for netCDF4 support     #
    #################################
    DEBUG: After netCDF4 section LDFLAGS = -L/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/lib
    checking whether NC_CHUNKED is declared… yes
    configure: netcdf.h contains netCDF4 definitions
    DEBUG: After netCDF4 section header_defines_nc_chunked = yes
    Beginning generic tests for DAP support
    checking for getopt_long… no
    checking for _g95_ac_array in -lf95… no
    checking for sin in -lm… yes
    checking for sinf in -lsunmath… no
    checking for gettext in -lintl… yes
    checking for res_init in -lresolv… no
    checking for main in -lsocket… no
    checking for main in -lthread… yes
    checking for nco_open in -lnco… no
    checking for nc_inq_format… no
    checking for getopt… yes
    checking for getopt_long… (cached) no
    checking for atan2… yes
    checking for acosf… yes
    checking for asinf… yes
    checking for atanf… yes
    checking for atan2f… yes
    checking for cosf… yes
    checking for expf… yes
    checking for fabsf… yes
    checking for fmodf… yes
    checking for log10f… yes
    checking for logf… yes
    checking for powf… yes
    checking for sinf… yes
    checking for sqrtf… yes
    checking for tanf… yes
    checking for erff… yes
    checking for erfcf… yes
    checking for gammaf… no
    checking for acoshf… yes
    checking for asinhf… yes
    checking for atanhf… yes
    checking for coshf… yes
    checking for sinhf… yes
    checking for tanhf… yes
    checking for ceilf… yes
    checking for floorf… yes
    checking for nearbyintf… yes
    checking for rintf… yes
    checking for roundf… yes
    checking for truncf… yes
    checking for getopt_long… (cached) no
    checking for strdup… yes
    checking for strcasecmp… yes
    ##########################################################
    #     Sorting out MacOSX build parameters                #
    ##########################################################
    DEBUG: enable_libnco =  and MACOSX =
    ./configure: test: argument expected
    DEBUG: After library checks LIBS=-lthread -lintl -lm
    #################################
    #  Testing for ANTLR support    #
    #################################
    INFO: ANTLR support not found. To build ncap2, please install ANTLR and its C++ development package, e.g., 'sudo aptitude install antlr libantlr-dev' or 'sudo yum install antlr antlr-c++-devel'
    ########################################
    #     Testing for GSL support          #
    ########################################
    DEBUG: After GSL tests LIBS = -lthread -lintl -lm
    checking regex.h usability… yes
    checking regex.h presence… yes
    checking for regex.h… yes
    checking for sys/types.h… (cached) yes
    checking for regexec… yes
    checking for regcomp… (cached) yes
    checking for regfree… yes
    ########################################
    #     Testing for UDUNITS support      #
    ########################################
    Beginning generic tests for UDUnits
    DEBUG: enable_udunits = yes and enable_udunits2 = yes
    WARNING: Requested both UDUnits and UDUnits2 support--overriding UDUnits
    Will attempt to build NCO with UDUnits support from libudunits2, not from libudunits
    checking for XML_ParserCreate in -lexpat… yes
    checking for /gpfs1/scientific_appln/udunits-2.1.24/share/udunits/udunits2.xml… yes
    configure: NB: Following tests of UDUnits2 library and header must succeed for UDUnits2 support:
    checking for ut_read_xml in -ludunits2… no
    checking for /gpfs1/scientific_appln/udunits-2.1.24/include/udunits2.h… yes
    configure: WARNING: UDUnits2 support disabled (missing/unusable library or header file)
    DEBUG: After UDUnits2 tests LIBS = -lexpat -lthread -lintl -lm
    checking for ncgen… /gpfs1/scientific_appln/netcdf/netcdf-4.1.3/bin/ncgen
    configure: Creating sample netCDF data files for self-tests
    ###############################
    #    Require Shared Libs?     #
    ###############################
    DEBUG: enable_shared: yes
    DEBUG: enable_ncoxx: no and NCOXX =
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating data/Makefile
    config.status: creating src/Makefile
    config.status: creating src/nco/Makefile
    config.status: creating man/Makefile
    config.status: creating doc/Makefile
    config.status: creating src/nco_c++/Makefile
    config.status: creating config.h
    config.status: executing depfiles commands
    config.status: executing libtool commands
    configure: WARNING: unrecognized options: -disable-dap-opendap

    Configuration Parameters:
    AR_FLAGS…………. cru
    CC………………. gcc -std=gnu99
    CFLAGS…………… -g -O2 -maix64 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE
    CPP……………… gcc -E
    CPPFLAGS…………. -I/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/include   -I/gpfs1/scientific_appln/udunits-2.1.24/include
    CXX……………… g++
    CXXFLAGS…………. -g -O2
    ENABLE_DAP_NETCDF…. no
    ENABLE_DAP……….. no
    ENABLE_GSL……….. no
    ENABLE_NETCDF4……. no
    ENABLE_UDUNITS……. no
    ENABLE_UDUNITS2…… no
    GSL_ROOT………….
    HAVE_NETCDF4_H……. yes
    HOST……………..
    host…………….. powerpc-ibm-aix6.1.0.0
    HOSTNAME………….
    LDFLAGS………….. -L/gpfs1/scientific_appln/netcdf/netcdf-4.1.3/lib   -L/gpfs1/scientific_appln/udunits-2.1.24/lib
    LIBS…………….. -lexpat -lthread -lintl -lm
    NETCDF4_ROOT……… /gpfs1/scientific_appln/netcdf/netcdf-4.1.3
    *******************************************************************
    Configuration complete. You are now ready to run 'make'.
    Ensure 'make' points to GNU Make (AT&T Make chokes on GNU syntax).
    If the build fails, please examine the file 'configure.eg'
    in the top-level NCO directory.  It contains examples known to
    build NCO for various platforms and compilers.
    *******************************************************************
    bash-4.2# make
            make  all-recursive
    Making all in data
    make: Cannot find a rule to create target big.nc from dependencies.
    Stop.
    make: The error code from the last command is 1.

    Stop.
    make: The error code from the last command is 2.

    Stop.

    Please help me if possible……………………….

    Thanks and Regards.
    Tripti

     
  • Charlie Zender
    Charlie Zender
    2013-01-22

    In the file nco/data/Makefile there is probably  a line that says

    PATH_TO_NCGEN = something

    If "something" is not a valid path to ncgen then change it to be, e.g.,

    PATH_TO_NCGEN = /usr/local/bin/ncgen

    does that help?

     
  • Tripti kumari
    Tripti kumari
    2013-01-23

    Hi Zender,

                          In Makefile it is like that PATH_TO_NCGEN = /gpfs1/scientific_appln/netcdf/netcdf-4.1.3/bin/ncgen which is correct  path.

     
  • Tripti kumari
    Tripti kumari
    2013-01-24

    Hi Zender,

                         please suggest me the needful ……………………………………………asap.

    Thanks and Regards,
    Tripti

     
  • Charlie Zender
    Charlie Zender
    2013-01-24

    please post the results of this command:

    make -version

     
  • Tripti kumari
    Tripti kumari
    2013-01-30

    Hi Zender,

                   I think you want make version that is installed on aix 6.1 that is 3.80 but you wana o/p for that command you posted is as given below………………………..

    make: illegal option - -
    usage: make   [-d[A|adgmstv]]   [-j ] 

     
  • Tripti kumari
    Tripti kumari
    2013-02-04

    Pls reply if possible…………………………………….how to make nco on aix 6.1 bcoz i tried and get fail.

     
  • Charlie Zender
    Charlie Zender
    2013-02-05

    the reason the output says "illegal option" is because you are not using GNU make.  Install and use GNU make instead of the default AT&T make that comes with AIX, e.g., alias make = gnumake or put gnumake/gmake first in your PATH. then retry.
    cz

     
  • Tripti kumari
    Tripti kumari
    2013-02-05

    These two make-3.80-1, automake-1.8.5-1 rpm are already installed in the systems so should i have export these things and how?

     
  • Tripti kumari
    Tripti kumari
    2013-02-05

    bash-4.2$ gmake -version
    GNU Make 3.80
    Copyright (C) 2002  Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.
    There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
    PARTICULAR PURPOSE.

     
  • Tripti kumari
    Tripti kumari
    2013-02-05

    Pls see the blow error…………………….

    checking for ncgen… /gpfs1/scientific_appln/netcdf-3.6.3/bin/ncgen
    configure: Creating sample netCDF data files for self-tests
    ncgen: data/in.cdl line 301: syntax error
    ###############################
    #    Require Shared Libs?     #
    ###############################

     
  • Charlie Zender
    Charlie Zender
    2013-02-05

    read near line 301 of that file, in.cdl, you may see some notes about NaNs.
    download nco-4.2.5 and try building that instead of nco-4.1.0.
    4.2.5 has no NaNs so in.cdl should build with older releases of netCDF.
    cz

     
  • Tripti kumari
    Tripti kumari
    2013-02-06

    Hi zender,

                   when i am trying to install nco-4.2.5 or nco-4.2.3 i am getting error like that………………..

    configure: error: in `/gpfs1/home/tripti/nco-4.2.5':
    configure: error: cannot find netCDF library
    See `config.log' for more details

    which is like that  in  config.log………………………………………………………………………………

    conftest.c:16:28: error: ac_nonexistent.h: No such file or directory
    configure:5133: $? = 1
    configure: failed program was:
    | /* confdefs.h */
    | #define PACKAGE_NAME "NCO netCDF Operators"
    | #define PACKAGE_TARNAME "nco"
    | #define PACKAGE_VERSION "4.2.5"

     
  • Charlie Zender
    Charlie Zender
    2013-02-06

    my sense is that you might have more success if you asked someone with more software installation experience than yourself, like your system administrator,  to install NCO for you. i'm sorry it's not easier to do. AIX with GNU software is a rare platform and our configuration scripts may not work well on it until someone volunteers to modify them.
    cz

     
  • Tripti kumari
    Tripti kumari
    2013-02-07

    Actually i am here system administrator and not getting success that is why i thought to take help to u……………………actually i instilled this on AIX 5.3 but getting problem on AIX6.1…………………

     
  • Pedro Vicente
    Pedro Vicente
    2013-02-07

    ./configure tries to detect some "standard" locations for the NCO dependencies;

    in a "non-standard" case , it is possible to tell configure where netCDF is located,  by defining environment variables

    For example, on the Mac, using the MacPorts package, they are

    export NETCDF_INC=/opt/local/include
    export NETCDF_LIB=/opt/local/lib
    export PATH_TO_NCGEN=/opt/local/bin/ncgen

    Try to define these for your AIX 6.1 case (replacing them by where you have netCDF)

    Also, send me the file config.log file to pvicente@uci.edu

    Pedro

     
1 2 > >> (Page 1 of 2)