Problem in compiling NCO on IBM AIX 5.3, error in make

2014-06-11
2014-06-17
  • Orestis Speyer
    Orestis Speyer
    2014-06-11

    Dear all,
    please forgive any naive questions, I am relatively new at this so bare with me.
    I am trying to compile nco on IBM AIX 5.3. Sorry for the length.

    First I define the executables of the prerequisite libraries

    export PATH=/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/bin:/gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/bin:/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/bin:/gpfs/home/cosmoart/3noa/libs/nco/udunits/udunits-2.1.24-install/bin:/gpfs/home/cosmoart/3noa/libs/nco/GSL/gsl-1.16-install/bin:$PATH

    and then

    NETCDF_INC=/gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/include \ NETCDF_LIB=/gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/lib \ NETCDF4_ROOT=/gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install \ HDF5_LIB_DIR=/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/lib \ UDUNITS2_PATH=/gpfs/home/cosmoart/3noa/libs/nco/udunits/udunits-2.1.24-install \ LDFLAGS="-L/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/lib \ -L/gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/lib" \ CFLAGS="-I/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/include \ -L/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/lib \ -I/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/include \ -L/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/lib -fPIC" \ CPPFLAGS="-I/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/include \ -L/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/lib \ -I/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/include \ -L/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/lib" \ ./configure --prefix=/gpfs/home/cosmoart/3noa/libs/nco/nco-4.4.4-install \ --disable-shared --enable-netcdf-4 --enable-udunits2

    The configure output seems promising enough:

    Configuration Parameters:
    AR_FLAGS............. cru
    CC................... gcc -std=gnu99
    CFLAGS............... -I/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/include -L/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/lib -I/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/include -L/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/lib -fPIC -maix64 -std=c99 -D_BSD_SOURCE -D_POSIX_SOURCE
    CPP.................. gcc -E
    CPPFLAGS............. -I/gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/include -I/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/include -I/gpfs/home/cosmoart/3noa/libs/zlib/zlib-1.2.6/include -I/gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/include -I/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/include -L/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/lib -I/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/include -L/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/lib -I/gpfs/home/cosmoart/3noa/libs/nco/GSL/gsl-1.16-install/include -I/gpfs/home/cosmoart/3noa/libs/nco/udunits/udunits-2.1.24-install/include
    CXX.................. g++
    CXXFLAGS............. -g -O2
    OPENMP_CFLAGS........
    ENABLE_DAP_NETCDF.... no
    ENABLE_DAP........... no
    ENABLE_GSL........... yes
    HAVE_NETCDF4_H....... yes
    ENABLE_NETCDF4....... yes
    NETCDF4_ROOT......... /gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install
    ENABLE_UDUNITS....... no
    ENABLE_UDUNITS2...... yes
    GSL_ROOT............. /gpfs/home/cosmoart/3noa/libs/nco/GSL/gsl-1.16-install
    HAVE_ANTLR........... antlr
    HAVE_MAKEINFO........ yes
    HOST.................
    host................. powerpc-ibm-aix5.3.0.0
    HOSTNAME.............
    LDFLAGS.............. -L/gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/lib -lnetcdf -L/gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/lib -L/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/lib -L/gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/lib -L/gpfs/home/cosmoart/3noa/libs/nco/udunits/udunits-2.1.24-install/lib
    LIBS................. -ludunits2 -lexpat -lgsl -lthread -lintl -lm -lnetcdf -lnetcdf -L/gpfs/home/cosmoart/3noa/libs/nco/GSL/gsl-1.16-install/lib -lgsl -lgslcblas -lm -ludunits2
    install prefix ...... /gpfs/home/cosmoart/3noa/libs/nco/nco-4.4.4-install

    but when I try make I get almost immediate error:

    make all-recursive
    make[1]: Entering directory /gpfs/home/cosmoart/3noa/libs/nco/nco-4.4.4' Making all in data make[2]: Entering directory/gpfs/home/cosmoart/3noa/libs/nco/nco-4.4.4/data'
    /gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/bin/ncgen -o big.nc big.cdl
    /gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/bin/ncgen -o in.nc in.cdl
    /gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/bin/ncgen -o in_rec_zero.nc in_rec_zero.cdl
    /gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/bin/ncgen -k netCDF-4 -o in_grp.nc in_grp.cdl
    /gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/bin/ncgen -k netCDF-4 -o in_grp_1.nc in_grp_1.cdl
    /gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/bin/ncgen -k netCDF-4 -o in_grp_2.nc in_grp_2.cdl
    /gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/bin/ncgen -k netCDF-4 -o in_grp_3.nc in_grp_3.cdl
    /gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/bin/ncgen -k netCDF-4 -o in_grp_4.nc in_grp_4.cdl
    /gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/bin/ncgen -k netCDF-4 -o in_grp_5.nc in_grp_5.cdl
    /gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/bin/ncgen -k netCDF-4 -o in_grp_6.nc in_grp_6.cdl
    /gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/bin/ncgen -k netCDF-4 -o cmip5.nc cmip5.cdl
    /gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/bin/ncgen -k netCDF-4 -o obs.nc obs.cdl
    /gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/bin/ncgen -k netCDF-4 -o mdl_1.nc mdl_1.cdl
    /gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/bin/ncgen -k netCDF-4 -o mdl_2.nc mdl_2.cdl
    /gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/bin/ncgen -k netCDF-4 -o mdl_3.nc mdl_3.cdl
    /gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/bin/ncgen -k netCDF-4 -o hdn.nc hdn.cdl
    make[2]: Leaving directory /gpfs/home/cosmoart/3noa/libs/nco/nco-4.4.4/data' Making all in src make[2]: Entering directory/gpfs/home/cosmoart/3noa/libs/nco/nco-4.4.4/src'
    Making all in nco
    make[3]: Entering directory /gpfs/home/cosmoart/3noa/libs/nco/nco-4.4.4/src/nco' /bin/sh ../../libtool --tag=CXX --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I/gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/include -I/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/include -I/gpfs/home/cosmoart/3noa/libs/zlib/zlib-1.2.6/include -I/gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/include -I/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/include -L/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/lib -I/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/include -L/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/lib -I/gpfs/home/cosmoart/3noa/libs/nco/GSL/gsl-1.16-install/include -I/gpfs/home/cosmoart/3noa/libs/nco/udunits/udunits-2.1.24-install/include -I/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/include -L/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/lib -I/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/include -L/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/lib -fPIC -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/gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/include -I/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/include -I/gpfs/home/cosmoart/3noa/libs/zlib/zlib-1.2.6/include -I/gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/include -I/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/include -L/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/lib -I/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/include -L/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/lib -I/gpfs/home/cosmoart/3noa/libs/nco/GSL/gsl-1.16-install/include -I/gpfs/home/cosmoart/3noa/libs/nco/udunits/udunits-2.1.24-install/include -I/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/include -L/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/lib -I/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/include -L/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/lib -fPIC -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/gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/include -I/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/include -I/gpfs/home/cosmoart/3noa/libs/zlib/zlib-1.2.6/include -I/gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/include -I/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/include -L/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/lib -I/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/include -L/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/lib -I/gpfs/home/cosmoart/3noa/libs/nco/GSL/gsl-1.16-install/include -I/gpfs/home/cosmoart/3noa/libs/nco/udunits/udunits-2.1.24-install/include -I/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/include -L/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/lib -I/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/include -L/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/lib -fPIC -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/gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/include -I/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/include -I/gpfs/home/cosmoart/3noa/libs/zlib/zlib-1.2.6/include -I/gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/include -I/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/include -L/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/lib -I/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/include -L/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/lib -I/gpfs/home/cosmoart/3noa/libs/nco/GSL/gsl-1.16-install/include -I/gpfs/home/cosmoart/3noa/libs/nco/udunits/udunits-2.1.24-install/include -I/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/include -L/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/lib -I/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/include -L/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/lib -fPIC -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 In file included from nco_fl_utl.h:40, from nco_cnk.h:25, from nco_grp_utl.h:34, from nco_dmn_utl.h:31, from nco_var_utl.h:35, from nco_scl_utl.h:33, from nco_pck.h:27, from nco_ctl.h:38, from nco_mmr.h:40, from nco_cnf_typ.h:26, from nco_att_utl.h:33, from nco_att_utl.c:9: /usr/include/arpa/nameser.h:135: error: parse error before '*' token /usr/include/arpa/nameser.h:137: error: parse error before '*' token /usr/include/arpa/nameser.h:140: error: parse error before '*' token /usr/include/arpa/nameser.h:141: error: parse error before '}' token /usr/include/arpa/nameser.h:171: error: parse error before '*' token /usr/include/arpa/nameser.h:586: error: parse error before "__ns_get16" /usr/include/arpa/nameser.h:586: error: parse error before '*' token /usr/include/arpa/nameser.h:587: error: parse error before '*' token /usr/include/arpa/nameser.h:588: error: parse error before '*' token /usr/include/arpa/nameser.h:589: error: parse error before "u_char" /usr/include/arpa/nameser.h:590: error: parse error before '*' token /usr/include/arpa/nameser.h:591: error: parse error before '*' token /usr/include/arpa/nameser.h:593: error: parse error before '*' token /usr/include/arpa/nameser.h:596: error: parse error before '*' token /usr/include/arpa/nameser.h:602: error: parse error before '*' token /usr/include/arpa/nameser.h:603: error: parse error before '*' token /usr/include/arpa/nameser.h:604: error: parse error before "u_char" /usr/include/arpa/nameser.h:605: error: parse error before '*' token /usr/include/arpa/nameser.h:607: error: parse error before '*' token /usr/include/arpa/nameser.h:609: error: parse error before '*' token /usr/include/arpa/nameser.h:611: error: parse error before "u_char" /usr/include/arpa/nameser.h:613: error: parse error before '*' token /usr/include/arpa/nameser.h:614: error: parse error before '*' token /usr/include/arpa/nameser.h:616: error: parse error before '*' token /usr/include/arpa/nameser.h:618: error: parse error before '*' token /usr/include/arpa/nameser.h:621: error: parse error before '*' token /usr/include/arpa/nameser.h:623: error: parse error before '*' token /usr/include/arpa/nameser.h:626: error: parse error before '*' token /usr/include/arpa/nameser.h:628: error: parse error before '*' token /usr/include/arpa/nameser.h:628: error: parse error before '*' token /usr/include/arpa/nameser.h:629: error: parse error before '*' token /usr/include/arpa/nameser.h:632: error: parse error before '*' token /usr/include/arpa/nameser.h:633: error: parse error before '*' token In file included from /usr/include/arpa/nameser.h:645, from nco_fl_utl.h:40, from nco_cnk.h:25, from nco_grp_utl.h:34, from nco_dmn_utl.h:31, from nco_var_utl.h:35, from nco_scl_utl.h:33, from nco_pck.h:27, from nco_ctl.h:38, from nco_mmr.h:40, from nco_cnf_typ.h:26, from nco_att_utl.h:33, from nco_att_utl.c:9: /usr/include/arpa/onameser_compat.h:233: error: parse error before "u_short" /usr/include/arpa/onameser_compat.h:262: error: parse error before "ancount" /usr/include/arpa/onameser_compat.h:263: error: parse error before "nscount" /usr/include/arpa/onameser_compat.h:264: error: parse error before "arcount" /usr/include/arpa/onameser_compat.h:321: error: parse error before "_getshort" /usr/include/arpa/onameser_compat.h:321: error: parse error before '*' token /usr/include/arpa/onameser_compat.h:322: error: parse error before '*' token In file included from nco_fl_utl.h:41, from nco_cnk.h:25, from nco_grp_utl.h:34, from nco_dmn_utl.h:31, from nco_var_utl.h:35, from nco_scl_utl.h:33, from nco_pck.h:27, from nco_ctl.h:38, from nco_mmr.h:40, from nco_cnf_typ.h:26, from nco_att_utl.h:33, from nco_att_utl.c:9: /usr/include/resolv.h:123: error: parse error before '*' token /usr/include/resolv.h:130: error: parse error before '*' token /usr/include/resolv.h:159: error: fieldsin' has incomplete type
    /usr/include/resolv.h:160: error: field sin6' has incomplete type /usr/include/resolv.h:192: error: fieldnsaddr_list' has incomplete type
    /usr/include/resolv.h:194: error: parse error before "u_short"
    /usr/include/resolv.h:198: error: parse error before ':' token
    /usr/include/resolv.h:199: error: parse error before ':' token
    /usr/include/resolv.h:202: error: field addr' has incomplete type /usr/include/resolv.h:211: error: parse error before "_flags" /usr/include/resolv.h:211: error: conflicting types for_flags'
    /usr/include/arpa/nameser.h:136: error: previous declaration of _flags' /usr/include/resolv.h:213: error: parse error before "u_int16_t" /usr/include/resolv.h:217: error: parse error before '}' token /usr/include/resolv.h:218: error: parse error before '}' token /usr/include/resolv.h:326: error: parse error before "const" /usr/include/resolv.h:327: error: parse error before "u_char" /usr/include/resolv.h:328: error: parse error before "u_char" /usr/include/resolv.h:329: error: parse error before '*' token /usr/include/resolv.h:330: error: parse error before '*' token /usr/include/resolv.h:331: error: parse error before '*' token /usr/include/resolv.h:332: error: parse error before '*' token /usr/include/resolv.h:333: error: parse error before "u_char" /usr/include/resolv.h:334: error: parse error before "u_char" /usr/include/resolv.h:339: error: parse error before '*' token /usr/include/resolv.h:340: error: parse error before '*' token /usr/include/resolv.h:341: error: parse error before '*' token /usr/include/resolv.h:342: error: parse error before '*' token /usr/include/resolv.h:343: error: parse error before '*' token /usr/include/resolv.h:345: error: parse error before '*' token /usr/include/resolv.h:350: error: parse error before "u_char" /usr/include/resolv.h:352: error: parse error before '*' token /usr/include/resolv.h:356: error: parse error before "res_randomid" /usr/include/resolv.h:357: error: parse error before "u_char" /usr/include/resolv.h:358: error: parse error before "u_char" /usr/include/resolv.h:360: error: parse error before "u_char" /usr/include/resolv.h:361: error: parse error before '*' token /usr/include/resolv.h:363: error: parse error before '*' token /usr/include/resolv.h:366: error: parse error before '*' token /usr/include/resolv.h:367: error: parse error before '*' token /usr/include/resolv.h:378: error: parse error before '*' token /usr/include/resolv.h:383: error: parse error before "u_char" /usr/include/resolv.h:385: error: parse error before "u_char" /usr/include/resolv.h:387: error: parse error before "u_char" /usr/include/resolv.h:389: error: parse error before '*' token /usr/include/resolv.h:391: error: parse error before '*' token /usr/include/resolv.h:401: error: parse error before '*' token nco_att_utl.c: In functionnco_aed_prc':
    nco_att_utl.c:161: warning: implicit declaration of function isfinite' nco_att_utl.c: In functionnco_hst_att_cat':
    nco_att_utl.c:603: warning: implicit declaration of function strcasecmp' nco_att_utl.c: In functionnco_prs_aed_lst':
    nco_att_utl.c:714: warning: implicit declaration of function strdup' nco_att_utl.c:714: warning: assignment makes pointer from integer without a cast nco_att_utl.c:717: warning: assignment makes pointer from integer without a cast nco_att_utl.c:720: warning: assignment makes pointer from integer without a cast nco_att_utl.c:724: warning: assignment makes pointer from integer without a cast nco_att_utl.c:749: warning: assignment makes pointer from integer without a cast nco_att_utl.c:750: warning: assignment makes pointer from integer without a cast nco_att_utl.c:873: warning: cast to pointer from integer of different size nco_att_utl.c:877: warning: cast to pointer from integer of different size nco_att_utl.c:903: warning: implicit declaration of functionstrtoll'
    nco_att_utl.c:914: warning: implicit declaration of function strtoull' nco_att_utl.c: In functionnco_gpe_evl_stb':
    nco_att_utl.c:1072: warning: cast to pointer from integer of different size
    nco_att_utl.c: In function nco_gpe_evl': nco_att_utl.c:1111: warning: cast to pointer from integer of different size nco_att_utl.c:1138: warning: cast to pointer from integer of different size nco_att_utl.c:1142: warning: cast to pointer from integer of different size nco_att_utl.c:1142: warning: cast to pointer from integer of different size nco_att_utl.c:1156: warning: cast to pointer from integer of different size nco_att_utl.c:1156: warning: cast to pointer from integer of different size nco_att_utl.c:1177: warning: cast to pointer from integer of different size nco_att_utl.c:1181: warning: cast to pointer from integer of different size nco_att_utl.c:1181: warning: cast to pointer from integer of different size nco_att_utl.c: In functionnco_gpe_prs_arg':
    nco_att_utl.c:1243: warning: cast to pointer from integer of different size
    nco_att_utl.c:1299: warning: cast to pointer from integer of different size
    nco_att_utl.c:1304: warning: cast to pointer from integer of different size
    nco_att_utl.c:1315: warning: cast to pointer from integer of different size
    make[3]: [nco_att_utl.lo] Error 1
    make[3]: Leaving directory /gpfs/home/cosmoart/3noa/libs/nco/nco-4.4.4/src/nco' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory/gpfs/home/cosmoart/3noa/libs/nco/nco-4.4.4/src'
    make[1]:
    [all-recursive] Error 1
    make[1]: Leaving directory `/gpfs/home/cosmoart/3noa/libs/nco/nco-4.4.4'
    make: *** [all] Error 2

    Thanks for any assistance,
    Orestis

     
  • Charlie Zender
    Charlie Zender
    2014-06-11

    Try adding the flag -Di386 to your CPPFLAGS, i.e.,
    export CPPFLAGS='-Di386' before configure. Report back...
    cz

     
  • Orestis Speyer
    Orestis Speyer
    2014-06-12

    Thank you for your lightning-fast reply.
    Your suggestion did not work unfortunately, the error stayed the same nd I looked more into that. he first 'malfunction' seems to occur in this line:

    In file included from nco_fl_utl.h:40
    I went into nco-4.4.4/src/nco in line 40 of the file nco_fl_utl.h and it reads:

    include <arpa nameser.h="">

    I remember having problems with the "#" sign in other compilation that were solved once I deleted it. I tried it here as well.

    include <arpa nameser.h=""> I changed it into

    include <arpa nameser.h="">

    The malfunction disappeared (only to reappear at the next "#"). I therefore concluded there is something wrong with the way my compiler interprets the "#". Any ideas how I could resolve this? Is there an option to 'instruct' my compiler to interpret in a correct manner?

    Thanks again,
    Orestis

     
  • Charlie Zender
    Charlie Zender
    2014-06-12

    Unfortunately you seem to be on the wrong track.
    And preview your postings because the sourceforge system munges special characters.
    Try defining
    export CC='gcc -std=c99 -pedantic -D_BSD_SOURCE -D_POSIX_SOURCE'
    before configure.

     
  • Orestis Speyer
    Orestis Speyer
    2014-06-12

    Sorry for the format,

    I ran

    export PATH=/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/bin:/gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/bin:/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/bin:/gpfs/home/cosmoart/3noa/libs/nco/udunits/udunits-2.1.24-install/bin:/gpfs/home/cosmoart/3noa/libs/nco/GSL/gsl-1.16-install/bin:$PATH

    and then as you suggested

    export CC='gcc -std=c99 -pedantic -D_BSD_SOURCE -D_POSIX_SOURCE'

    Then

    NETCDF_INC=/gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/include \ NETCDF_LIB=/gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/lib \ NETCDF4_ROOT=/gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install \ HDF5_LIB_DIR=/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/lib \ UDUNITS2_PATH=/gpfs/home/cosmoart/3noa/libs/nco/udunits/udunits-2.1.24-install \ LDFLAGS="-L/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/lib \ -L/gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/lib" \ CFLAGS="-I/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/include \ -L/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/lib \ -I/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/include \ -L/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/lib -fPIC" \ CPPFLAGS="-I/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/include \ -L/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/lib \ -I/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/include \ -L/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/lib" \ ./configure --prefix=/gpfs/home/cosmoart/3noa/libs/nco/nco-4.4.4-install \ --disable-shared --enable-netcdf-4 --enable-udunits2

    The make error is almost the same ("ISO C forbids data definition with no type or storage class is new")

    make all-recursive
    make[1]: Entering directory /gpfs/home/cosmoart/3noa/libs/nco/nco-4.4.4' Making all in data make[2]: Entering directory/gpfs/home/cosmoart/3noa/libs/nco/nco-4.4.4/data'
    /gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/bin/ncgen -o big.nc big.cdl
    /gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/bin/ncgen -o in_rec_zero.nc in_rec_zero.cdl
    /gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/bin/ncgen -k netCDF-4 -o hdn.nc hdn.cdl
    make[2]: Leaving directory /gpfs/home/cosmoart/3noa/libs/nco/nco-4.4.4/data' Making all in src make[2]: Entering directory/gpfs/home/cosmoart/3noa/libs/nco/nco-4.4.4/src'
    Making all in nco
    make[3]: Entering directory /gpfs/home/cosmoart/3noa/libs/nco/nco-4.4.4/src/nco' /bin/sh ../../libtool --tag=CXX --tag=CC --mode=compile gcc -std=c99 -pedantic -D_BSD_SOURCE -D_POSIX_SOURCE -DHAVE_CONFIG_H -I. -I../.. -I/gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/include -I/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/include -I/gpfs/home/cosmoart/3noa/libs/zlib/zlib-1.2.6/include -I/gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/include -I/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/include -L/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/lib -I/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/include -L/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/lib -I/gpfs/home/cosmoart/3noa/libs/nco/GSL/gsl-1.16-install/include -I/gpfs/home/cosmoart/3noa/libs/nco/udunits/udunits-2.1.24-install/include -I/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/include -L/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/lib -I/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/include -L/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/lib -fPIC -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=c99 -pedantic -D_BSD_SOURCE -D_POSIX_SOURCE -DHAVE_CONFIG_H -I. -I../.. -I/gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/include -I/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/include -I/gpfs/home/cosmoart/3noa/libs/zlib/zlib-1.2.6/include -I/gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/include -I/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/include -L/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/lib -I/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/include -L/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/lib -I/gpfs/home/cosmoart/3noa/libs/nco/GSL/gsl-1.16-install/include -I/gpfs/home/cosmoart/3noa/libs/nco/udunits/udunits-2.1.24-install/include -I/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/include -L/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/lib -I/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/include -L/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/lib -fPIC -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=c99 -pedantic -D_BSD_SOURCE -D_POSIX_SOURCE -DHAVE_CONFIG_H -I. -I../.. -I/gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/include -I/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/include -I/gpfs/home/cosmoart/3noa/libs/zlib/zlib-1.2.6/include -I/gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/include -I/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/include -L/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/lib -I/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/include -L/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/lib -I/gpfs/home/cosmoart/3noa/libs/nco/GSL/gsl-1.16-install/include -I/gpfs/home/cosmoart/3noa/libs/nco/udunits/udunits-2.1.24-install/include -I/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/include -L/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/lib -I/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/include -L/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/lib -fPIC -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=c99 -pedantic -D_BSD_SOURCE -D_POSIX_SOURCE -DHAVE_CONFIG_H -I. -I../.. -I/gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/include -I/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/include -I/gpfs/home/cosmoart/3noa/libs/zlib/zlib-1.2.6/include -I/gpfs/home/cosmoart/3noa/libs/netcdf/netcdf-4.3.2-install/include -I/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/include -L/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/lib -I/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/include -L/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/lib -I/gpfs/home/cosmoart/3noa/libs/nco/GSL/gsl-1.16-install/include -I/gpfs/home/cosmoart/3noa/libs/nco/udunits/udunits-2.1.24-install/include -I/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/include -L/gpfs/home/cosmoart/3noa/libs/hdf5/hdf5-1.8.9-install/lib -I/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/include -L/gpfs/home/cosmoart/3noa/libs/nco/ANTLR/antlr-2.7.7-install/lib -fPIC -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 In file included from nco_fl_utl.h:40, from nco_cnk.h:25, from nco_grp_utl.h:34, from nco_dmn_utl.h:31, from nco_var_utl.h:35, from nco_scl_utl.h:33, from nco_pck.h:27, from nco_ctl.h:38, from nco_mmr.h:40, from nco_cnf_typ.h:26, from nco_att_utl.h:33, from nco_att_utl.c:9: /usr/include/arpa/nameser.h:135: error: parse error before '*' token /usr/include/arpa/nameser.h:137: error: parse error before '*' token /usr/include/arpa/nameser.h:137: error: ISO C forbids data definition with no type or storage class /usr/include/arpa/nameser.h:140: error: parse error before '*' token /usr/include/arpa/nameser.h:140: error: ISO C forbids data definition with no type or storage class /usr/include/arpa/nameser.h:141: error: parse error before '}' token /usr/include/arpa/nameser.h:141: error: ISO C forbids data definition with no type or storage class /usr/include/arpa/nameser.h:171: error: parse error before '*' token /usr/include/arpa/nameser.h:172: error: ISO C forbids data definition with no type or storage class /usr/include/arpa/nameser.h:586: error: parse error before "__ns_get16" /usr/include/arpa/nameser.h:586: error: parse error before '*' token /usr/include/arpa/nameser.h:586: error: ISO C forbids data definition with no type or storage class /usr/include/arpa/nameser.h:587: error: parse error before '*' token /usr/include/arpa/nameser.h:588: error: parse error before '*' token /usr/include/arpa/nameser.h:589: error: parse error before "u_char" /usr/include/arpa/nameser.h:590: error: parse error before '*' token /usr/include/arpa/nameser.h:591: error: parse error before '*' token /usr/include/arpa/nameser.h:593: error: parse error before '*' token /usr/include/arpa/nameser.h:596: error: parse error before '*' token /usr/include/arpa/nameser.h:602: error: parse error before '*' token /usr/include/arpa/nameser.h:603: error: parse error before '*' token /usr/include/arpa/nameser.h:604: error: parse error before "u_char" /usr/include/arpa/nameser.h:605: error: parse error before '*' token /usr/include/arpa/nameser.h:607: error: parse error before '*' token /usr/include/arpa/nameser.h:609: error: parse error before '*' token /usr/include/arpa/nameser.h:611: error: parse error before "u_char" /usr/include/arpa/nameser.h:613: error: parse error before '*' token /usr/include/arpa/nameser.h:614: error: parse error before '*' token /usr/include/arpa/nameser.h:616: error: parse error before '*' token /usr/include/arpa/nameser.h:618: error: parse error before '*' token /usr/include/arpa/nameser.h:621: error: parse error before '*' token /usr/include/arpa/nameser.h:623: error: parse error before '*' token /usr/include/arpa/nameser.h:626: error: parse error before '*' token /usr/include/arpa/nameser.h:628: error: parse error before '*' token /usr/include/arpa/nameser.h:628: error: parse error before '*' token /usr/include/arpa/nameser.h:628: error: ISO C forbids data definition with no type or storage class /usr/include/arpa/nameser.h:629: error: parse error before '*' token /usr/include/arpa/nameser.h:632: error: parse error before '*' token /usr/include/arpa/nameser.h:633: error: parse error before '*' token In file included from /usr/include/arpa/nameser.h:645, from nco_fl_utl.h:40, from nco_cnk.h:25, from nco_grp_utl.h:34, from nco_dmn_utl.h:31, from nco_var_utl.h:35, from nco_scl_utl.h:33, from nco_pck.h:27, from nco_ctl.h:38, from nco_mmr.h:40, from nco_cnf_typ.h:26, from nco_att_utl.h:33, from nco_att_utl.c:9: /usr/include/arpa/onameser_compat.h:233: error: parse error before "u_short" /usr/include/arpa/onameser_compat.h:261: error: ISO C forbids data definition with no type or storage class /usr/include/arpa/onameser_compat.h:262: error: parse error before "ancount" /usr/include/arpa/onameser_compat.h:262: error: ISO C forbids data definition with no type or storage class /usr/include/arpa/onameser_compat.h:263: error: parse error before "nscount" /usr/include/arpa/onameser_compat.h:263: error: ISO C forbids data definition with no type or storage class /usr/include/arpa/onameser_compat.h:264: error: parse error before "arcount" /usr/include/arpa/onameser_compat.h:264: error: ISO C forbids data definition with no type or storage class /usr/include/arpa/onameser_compat.h:265: error: ISO C forbids data definition with no type or storage class /usr/include/arpa/onameser_compat.h:321: error: parse error before "_getshort" /usr/include/arpa/onameser_compat.h:321: error: parse error before '*' token /usr/include/arpa/onameser_compat.h:321: error: ISO C forbids data definition with no type or storage class /usr/include/arpa/onameser_compat.h:322: error: parse error before '*' token In file included from nco_fl_utl.h:41, from nco_cnk.h:25, from nco_grp_utl.h:34, from nco_dmn_utl.h:31, from nco_var_utl.h:35, from nco_scl_utl.h:33, from nco_pck.h:27, from nco_ctl.h:38, from nco_mmr.h:40, from nco_cnf_typ.h:26, from nco_att_utl.h:33, from nco_att_utl.c:9: /usr/include/resolv.h:123: error: parse error before '*' token /usr/include/resolv.h:130: error: parse error before '*' token /usr/include/resolv.h:159: error: fieldsin' has incomplete type
    /usr/include/resolv.h:160: error: field sin6' has incomplete type /usr/include/resolv.h:192: error: fieldnsaddr_list' has incomplete type
    /usr/include/resolv.h:194: error: parse error before "u_short"
    /usr/include/resolv.h:198: error: parse error before ':' token
    /usr/include/resolv.h:199: error: parse error before ':' token
    /usr/include/resolv.h:202: error: field addr' has incomplete type /usr/include/resolv.h:211: error: parse error before "_flags" /usr/include/resolv.h:211: error: conflicting types for_flags'
    /usr/include/arpa/nameser.h:136: error: previous declaration of _flags' /usr/include/resolv.h:211: error: ISO C forbids data definition with no type or storage class /usr/include/resolv.h:213: error: parse error before "u_int16_t" /usr/include/resolv.h:214: error: ISO C forbids data definition with no type or storage class /usr/include/resolv.h:217: error: parse error before '}' token /usr/include/resolv.h:217: error: ISO C forbids data definition with no type or storage class /usr/include/resolv.h:218: error: parse error before '}' token /usr/include/resolv.h:326: error: parse error before "const" /usr/include/resolv.h:327: error: parse error before "u_char" /usr/include/resolv.h:328: error: parse error before "u_char" /usr/include/resolv.h:329: error: parse error before '*' token /usr/include/resolv.h:330: error: parse error before '*' token /usr/include/resolv.h:331: error: parse error before '*' token /usr/include/resolv.h:332: error: parse error before '*' token /usr/include/resolv.h:333: error: parse error before "u_char" /usr/include/resolv.h:334: error: parse error before "u_char" /usr/include/resolv.h:339: error: parse error before '*' token /usr/include/resolv.h:340: error: parse error before '*' token /usr/include/resolv.h:341: error: parse error before '*' token /usr/include/resolv.h:342: error: parse error before '*' token /usr/include/resolv.h:343: error: parse error before '*' token /usr/include/resolv.h:345: error: parse error before '*' token /usr/include/resolv.h:350: error: parse error before "u_char" /usr/include/resolv.h:352: error: parse error before '*' token /usr/include/resolv.h:356: error: parse error before "res_randomid" /usr/include/resolv.h:356: error: ISO C forbids data definition with no type or storage class /usr/include/resolv.h:357: error: parse error before "u_char" /usr/include/resolv.h:358: error: parse error before "u_char" /usr/include/resolv.h:360: error: parse error before "u_char" /usr/include/resolv.h:361: error: parse error before '*' token /usr/include/resolv.h:363: error: parse error before '*' token /usr/include/resolv.h:366: error: parse error before '*' token /usr/include/resolv.h:367: error: parse error before '*' token /usr/include/resolv.h:378: error: parse error before '*' token /usr/include/resolv.h:383: error: parse error before "u_char" /usr/include/resolv.h:385: error: parse error before "u_char" /usr/include/resolv.h:387: error: parse error before "u_char" /usr/include/resolv.h:389: error: parse error before '*' token /usr/include/resolv.h:391: error: parse error before '*' token /usr/include/resolv.h:401: error: parse error before '*' token nco_att_utl.c: In functionnco_aed_prc':
    nco_att_utl.c:161: warning: implicit declaration of function isfinite' nco_att_utl.c: In functionnco_hst_att_cat':
    nco_att_utl.c:603: warning: implicit declaration of function strcasecmp' nco_att_utl.c: In functionnco_prs_aed_lst':
    nco_att_utl.c:714: warning: implicit declaration of function strdup' nco_att_utl.c:714: warning: assignment makes pointer from integer without a cast nco_att_utl.c:717: warning: assignment makes pointer from integer without a cast nco_att_utl.c:720: warning: assignment makes pointer from integer without a cast nco_att_utl.c:724: warning: assignment makes pointer from integer without a cast nco_att_utl.c:749: warning: assignment makes pointer from integer without a cast nco_att_utl.c:750: warning: assignment makes pointer from integer without a cast nco_att_utl.c:873: warning: cast to pointer from integer of different size nco_att_utl.c:877: warning: cast to pointer from integer of different size nco_att_utl.c:903: warning: implicit declaration of functionstrtoll'
    nco_att_utl.c:914: warning: implicit declaration of function strtoull' nco_att_utl.c: In functionnco_gpe_evl_stb':
    nco_att_utl.c:1072: warning: cast to pointer from integer of different size
    nco_att_utl.c: In function nco_gpe_evl': nco_att_utl.c:1111: warning: cast to pointer from integer of different size nco_att_utl.c:1138: warning: cast to pointer from integer of different size nco_att_utl.c:1142: warning: cast to pointer from integer of different size nco_att_utl.c:1142: warning: cast to pointer from integer of different size nco_att_utl.c:1156: warning: cast to pointer from integer of different size nco_att_utl.c:1156: warning: cast to pointer from integer of different size nco_att_utl.c:1177: warning: cast to pointer from integer of different size nco_att_utl.c:1181: warning: cast to pointer from integer of different size nco_att_utl.c:1181: warning: cast to pointer from integer of different size nco_att_utl.c: In functionnco_gpe_prs_arg':
    nco_att_utl.c:1243: warning: cast to pointer from integer of different size
    nco_att_utl.c:1299: warning: cast to pointer from integer of different size
    nco_att_utl.c:1304: warning: cast to pointer from integer of different size
    nco_att_utl.c:1315: warning: cast to pointer from integer of different size
    make[3]: [nco_att_utl.lo] Error 1
    make[3]: Leaving directory /gpfs/home/cosmoart/3noa/libs/nco/nco-4.4.4/src/nco' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory/gpfs/home/cosmoart/3noa/libs/nco/nco-4.4.4/src'
    make[1]:
    [all-recursive] Error 1
    make[1]: Leaving directory `/gpfs/home/cosmoart/3noa/libs/nco/nco-4.4.4'
    make: *** [all] Error 2

     
  • Charlie Zender
    Charlie Zender
    2014-06-12

    You are closer than you may think. Building on AIX with GCC used to work. Unfortunately we no longer have access to AIX systems and are too short-handed to pursue this guessing game while blind. If that changes I will post again. The last hint I can offer is that -DWIN32 may help, because it turns off the networking code that triggers the errors you are encountering. But that will likely raise its own problems.
    cz

     
  • Orestis Speyer
    Orestis Speyer
    2014-06-17

    Thank you for all your help.
    The problem seems to be that nameser.h doesn't know what u_char is.
    This variable is defined in

    /usr/include/sys/types.h

    from where I read:

    527 /* typedefs for BSD unsigned things */
    528 typedef unsigned char u_char;

    types.h is included in nameser.h
    75 #include <sys/param.h>
    76 #include <sys/types.h>
    77 #include <sys/cdefs.h>

    but for some reason nameser.h doesn't know what u_char is

    Once again,
    thank you