netcdf 4.1.2 compilation problem with PGI Compiler

hi all
i got the following error while compiling netcdf

I had set these environmental veriable:

PGI=/opt/pgi
PATH=$PGI/linux86/11.6/bin:$PATH
export PATH
MANPATH=$MANPATH:$PGI/man
export MANPATH
LM_LICENSE_FILE=$LM_LICENSE_FILE:$PGI/license.dat
export LM_LICENSE_FILE
CC=/opt/pgi/linux86/11.6/bin/pgcc
export CC
CFLAGS=“-O2 -Msignextend -V”
FC=/opt/pgi/linux86/11.6/bin/pgf90
F90=/opt/pgi/linux86/11.6/bin/pgf90
FFLAGS=“-O2 -w -V”
export FC
export F90
CXX=/opt/pgi/linux86/11.6/bin/pgCC
CPPFLAGS=“-DNDEBUG -DpgiFortran”

export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:/opt/pgi/linux86/11.6/lib/:$LD_LIBRARY_PATH
export INCLUDE=/usr/include:/usr/local/include:/opt/pgi/linux86/11.6/include/:$INCLUDE


export PATH=/home/ec2-user/softwares/curl/curl-7.21.6:$PATH
export LD_LIBRARY_PATH=/home/ec2-user/softwares/curl/curl-7.21.6/lib:$LD_LIBRARY_PATH
export INCLUDE=/home/ec2-user/softwares/curl/curl-7.21.6/include:$INCLUDE




./configure --prefix=/home/ec2-user/softwares/netcdf/netcdf_install --with-curl=/home/ec2-user/softwares/curl/curl-7.21.6



./configure --prefix=/home/ec2-user/ softwares/netcdf/netcdf_install --with-curl=/home/ec2-user/softwares/curl/curl-7 .21.6
configure: netCDF 4.1.2
checking build system type… i686-pc-linux-gnu
checking host system type… i686-pc-linux-gnu
checking target system type… i686-pc-linux-gnu
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for a thread-safe mkdir -p… /bin/mkdir -p
checking for gawk… gawk
checking whether make sets $(MAKE)… yes
configure: checking user options
checking whether CXX is set to ‘’… no
checking whether FC is set to ‘’… no
checking whether F90 is set to ‘’… no
checking whether a NCIO_MINBLOCKSIZE was specified… 256
checking whether udunits is to be built… no
checking if fsync support is enabled… yes
checking whether extra valgrind tests should be run… no
checking whether libcf is to be built… no
checking whether a location for the HDF4 library was specified…
checking whether reading of HDF4 SD files is to be enabled… no
checking whether to fetch some sample HDF4 files from Unidata ftp site to test H DF4 reading (requires wget)… no
checking whether parallel I/O for classic and 64-bit offset files using parallel -netcdf is to be enabled… no
checking whether a location for the parallel-netcdf library was specified… no
checking whether new netCDF-4 C++ API is to be built… no
checking whether extra example tests should be run… no
checking whether parallel IO tests should be run… no
checking whether a location for the HDF5 library was specified…
checking whether a location for the ZLIB library was specified…
checking whether a location for the SZLIB library was specified…
checking whether a default chunk size in bytes was specified… 4194304
checking whether a maximum per-variable cache size for HDF5 was specified… 671 08864
checking whether a number of chunks for the default per-variable cache was speci fied… 10
checking whether a default file cache size for HDF5 was specified… 4194304
checking whether a default file cache maximum number of elements for HDF5 was sp ecified… 1009
checking whether a default cache preemption for HDF5 was specified… 0.75
checking whether netCDF-4 logging is enabled… no
checking whether cdmremote client is to be built… no
checking whether DAP client is to be built… yes
checking whether a path for curl-config was specified… no
checking whether a location for curl installation was specified… /home/ec2-use r/softwares/curl/curl-7.21.6
checking checking whether a location for curl-config found… no
checking whether dap remote testing should be enabled (default on)… yes
checking whether the time-consuming dap tests should be enabled (default off)… no
checking whether netCDF extra tests should be run (developers only)… no
checking whether Fortran compiler(s) should be tested during configure… yes
checking whether FFIO will be used… no
checking whether to skip C++, F77, or F90 APIs if compiler is broken… yes
checking whether only the C library is desired… no
checking whether examples should be built… yes
checking whether F77 API is desired… yes
checking whether any Fortran API is desired… yes
checking whether F90 API is desired… yes
checking whether fortran type sizes should be checked… yes
checking whether C API is desired… yes
checking where to get netCDF C-only library for separate fortran libraries…
checking whether CXX API is desired… yes
checking whether v2 netCDF API should be built… yes
checking whether the ncgen/ncdump/nccopy should be built… yes
checking whether large file (> 2GB) tests should be run… no
checking whether benchmaks should be run (experimental)… no
checking whether extreme numbers should be used in tests… yes
checking where to put large temp files if large file tests are run… .
checking whether a win32 DLL is desired… no
checking whether separate fortran libs are desired… yes
configure: finding C compiler
checking whether the C compiler works… yes
checking for C compiler default output file name… a.out
checking for suffix of executables…
checking whether we are cross compiling… no
checking for suffix of object files… o
checking whether we are using the GNU C compiler… no
checking whether /opt/pgi/linux86/11.6/bin/pgcc accepts -g… yes
checking for /opt/pgi/linux86/11.6/bin/pgcc option to accept ISO C89… none nee ded
checking for style of include used by make… GNU
checking dependency style of /opt/pgi/linux86/11.6/bin/pgcc… none
checking whether /opt/pgi/linux86/11.6/bin/pgcc and cc understand -c and -o toge ther… yes
checking for an ANSI C-conforming const… yes
checking whether a CURLOPT_KEYPASSWD is defined… yes
configure: finding Fortran compiler (will not be used if Fortran API is not desi red)
checking whether we are using the GNU Fortran compiler… no
checking whether /opt/pgi/linux86/11.6/bin/pgf90 accepts -g… yes
checking whether we are using the GNU Fortran 77 compiler… no
checking whether /opt/pgi/linux86/11.6/bin/pgf90 accepts -g… yes
configure: setting up Fortran 90
checking for Fortran flag to compile .f90 files… none
checking fortran 90 modules inclusion flag… -I
checking if Fortran compiler can handle Fortran-90… yes
configure: finding C++ compiler (will not be used if C++ API is not desired)
checking for cl… no
checking for KCC… no
checking for CC… no
checking for cxx… no
checking for cc++… no
checking for xlC… no
checking for aCC… no
checking for c++… c++
checking whether we are using the GNU C++ compiler… yes
checking whether c++ accepts -g… yes
checking dependency style of c++… gcc3
configure: setting up libtool
checking how to print strings… printf
checking for a sed that does not truncate output… /bin/sed
checking for grep that handles long lines and -e… /bin/grep
checking for egrep… /bin/grep -E
checking for fgrep… /bin/grep -F
checking for non-GNU ld… /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld… yes
checking for BSD- or MS-compatible name lister (nm)… /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface… BSD nm
checking whether ln -s works… yes
checking the maximum length of command line arguments… 1572864
checking whether the shell understands some XSI constructs… yes
checking whether the shell understands “+=”… yes
checking how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu format … func_convert_file_noop
checking how to convert i686-pc-linux-gnu file names to toolchain format… func _convert_file_noop
checking for /usr/bin/ld option to reload object files… -r
checking for objdump… objdump
checking how to recognize dependent libraries… pass_all
checking for dlltool… no
checking how to associate runtime and link libraries… printf %s\n
checking for ar… ar
checking for archiver @FILE support… @
checking for strip… strip
checking for ranlib… ranlib
checking command to parse /usr/bin/nm -B output from /opt/pgi/linux86/11.6/bin/p gcc object… ok
checking for sysroot… no
checking for mt… no
checking if : is a manifest tool… no
checking how to run the C preprocessor… /opt/pgi/linux86/11.6/bin/pgcc -E
checking for ANSI C header files… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
checking for dlfcn.h… yes
checking for objdir… .libs
checking for /opt/pgi/linux86/11.6/bin/pgcc option to produce PIC… -fpic -DPIC
checking if /opt/pgi/linux86/11.6/bin/pgcc PIC flag -fpic -DPIC works… yes
checking if /opt/pgi/linux86/11.6/bin/pgcc static flag -Bstatic works… no
checking if /opt/pgi/linux86/11.6/bin/pgcc supports -c -o file.o… yes
checking if /opt/pgi/linux86/11.6/bin/pgcc supports -c -o file.o… (cached) yes
checking whether the /opt/pgi/linux86/11.6/bin/pgcc linker (/usr/bin/ld) support s shared libraries… yes
checking dynamic linker characteristics… GNU/Linux ld.so
checking how to hardcode library paths into programs… immediate
checking whether stripping libraries is possible… yes
checking if libtool supports shared libraries… yes
checking whether to build shared libraries… yes
checking whether to build static libraries… yes
checking how to run the C++ preprocessor… c++ -E
checking for ld used by c++… /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld… yes
checking whether the c++ linker (/usr/bin/ld) supports shared libraries… yes
checking for c++ option to produce PIC… -fPIC -DPIC
checking if c++ PIC flag -fPIC -DPIC works… yes
checking if c++ static flag -static works… no
checking if c++ supports -c -o file.o… yes
checking if c++ supports -c -o file.o… (cached) yes
checking whether the c++ linker (/usr/bin/ld) supports shared libraries… yes
checking dynamic linker characteristics… (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs… immediate
checking if libtool supports shared libraries… yes
checking whether to build shared libraries… yes
checking whether to build static libraries… yes
checking for /opt/pgi/linux86/11.6/bin/pgf90 option to produce PIC… -fpic
checking if /opt/pgi/linux86/11.6/bin/pgf90 PIC flag -fpic works… yes
checking if /opt/pgi/linux86/11.6/bin/pgf90 static flag -Bstatic works… no
checking if /opt/pgi/linux86/11.6/bin/pgf90 supports -c -o file.o… yes
checking if /opt/pgi/linux86/11.6/bin/pgf90 supports -c -o file.o… (cached) ye s
checking whether the /opt/pgi/linux86/11.6/bin/pgf90 linker (/usr/bin/ld) suppor ts shared libraries… yes
checking dynamic linker characteristics… (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs… immediate
checking if libtool supports shared libraries… yes
checking whether to build shared libraries… yes
checking whether to build static libraries… yes
checking for /opt/pgi/linux86/11.6/bin/pgf90 option to produce PIC… -fpic
checking if /opt/pgi/linux86/11.6/bin/pgf90 PIC flag -fpic works… yes
checking if /opt/pgi/linux86/11.6/bin/pgf90 static flag -Bstatic works… no
checking if /opt/pgi/linux86/11.6/bin/pgf90 supports -c -o file.o… yes
checking if /opt/pgi/linux86/11.6/bin/pgf90 supports -c -o file.o… (cached) ye s
checking whether the /opt/pgi/linux86/11.6/bin/pgf90 linker (/usr/bin/ld) suppor ts shared libraries… yes
checking dynamic linker characteristics… (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs… immediate
configure: finding other utilities
configure: trying to set fortran flags for this platform
checking for special C compiler options needed for large files… no
checking for FILE_OFFSET_BITS value needed for large files… 64
configure: displaying some results
checking CPPFLAGS…
checking CC CFLAGS… /opt/pgi/linux86/11.6/bin/pgcc -g
checking type /opt/pgi/linux86/11.6/bin/pgcc… /opt/pgi/linux86/11.6/bin/pgcc i s /opt/pgi/linux86/11.6/bin/pgcc
checking CXX… c++
checking CXXFLAGS… -g -O2
checking type c++… c++ is /usr/bin/c++
checking FC… /opt/pgi/linux86/11.6/bin/pgf90
checking FFLAGS… -g
checking type /opt/pgi/linux86/11.6/bin/pgf90… /opt/pgi/linux86/11.6/bin/pgf90 is /opt/pgi/linux86/11.6/bin/pgf90
checking F90… /opt/pgi/linux86/11.6/bin/pgf90
checking FCFLAGS… -g
checking type /opt/pgi/linux86/11.6/bin/pgf90… /opt/pgi/linux86/11.6/bin/pgf90 is /opt/pgi/linux86/11.6/bin/pgf90
checking AR… ar
checking AR_FLAGS… cru
checking type ar… ar is /usr/bin/ar
checking NM… /usr/bin/nm -B
checking NMFLAGS…
checking for /usr/bin/nm… /usr/bin/nm -B
checking nm flags…
checking for C-equivalent to Fortran routine “SUB”… sub

checking for Fortran “byte”… yes
checking for Fortran “integer2"… yes
checking if Fortran “byte” is C “signed char”… yes
checking if Fortran “byte” is C “short”… no
checking if Fortran “byte” is C “int”… no
checking if Fortran “byte” is C “long”… no
checking if Fortran "integer
2” is C “short”… yes
checking if Fortran “integer2" is C “int”… no
checking if Fortran "integer
2” is C “long”… no
checking if Fortran “integer” is C “int”… yes
checking if Fortran “real” is C “float”… yes
checking if Fortran “doubleprecision” is C “double”… yes
checking for Fortran-equivalent to netCDF “byte”… byte
checking for Fortran-equivalent to netCDF “short”… integer*2
checking if Fortran 90 compiler capitalizes .mod filenames… no
configure: checking types, headers, and functions
checking for stdlib.h… (cached) yes
checking for sys/types.h… (cached) yes
checking locale.h usability… yes
checking locale.h presence… yes
checking for locale.h… yes
checking for dirent.h that defines DIR… yes
checking for library containing opendir… none required
checking for ANSI C header files… (cached) yes
checking for sys/wait.h that is POSIX.1 compatible… yes
checking whether time.h and sys/time.h may both be included… yes
checking stdio.h usability… yes
checking stdio.h presence… yes
checking for stdio.h… yes
checking stdarg.h usability… yes
checking stdarg.h presence… yes
checking for stdarg.h… yes
checking errno.h usability… yes
checking errno.h presence… yes
checking for errno.h… yes
checking ctype.h usability… yes
checking ctype.h presence… yes
checking for ctype.h… yes
checking fcntl.h usability… yes
checking fcntl.h presence… yes
checking for fcntl.h… yes
checking malloc.h usability… yes
checking malloc.h presence… yes
checking for malloc.h… yes
checking for stdlib.h… (cached) yes
checking for string.h… (cached) yes
checking for strings.h… (cached) yes
checking for unistd.h… (cached) yes
checking for sys/stat.h… (cached) yes
checking getopt.h usability… yes
checking getopt.h presence… yes
checking for getopt.h… yes
checking sys/time.h usability… yes
checking sys/time.h presence… yes
checking for sys/time.h… yes
checking sys/resource.h usability… yes
checking sys/resource.h presence… yes
checking for sys/resource.h… yes
checking for vprintf… yes
checking for doprnt… no
checking for stdbool.h that conforms to C99… yes
checking for Bool… yes
checking for strlcat… no
checking for strerror… yes
checking for snprintf… yes
checking for strchr… yes
checking for strrchr… yes
checking for mktemp… yes
checking for strcat… yes
checking for strcpy… yes
checking for strdup… yes
checking for strcasecmp… yes
checking for strtod… yes
checking for strtoll… yes
checking for getrlimit… yes
checking for gettimeofday… yes
checking for fsync… yes
checking for MPI_Comm_f2c… no
checking for size_t… yes
checking for working alloca.h… yes
checking for alloca… yes
checking whether isnan is declared… yes
checking whether isinf is declared… yes
checking whether isfinite is declared… yes
checking whether signbit is declared… yes
checking for struct stat.st_blksize… yes
checking for IEEE floating point format… yes
checking for size_t… (cached) yes
checking for off_t… yes
checking for ssize_t… yes
checking for ptrdiff_t… yes
checking for uchar… no
checking for longlong… no
checking whether char is unsigned… no
checking whether byte ordering is bigendian… no
checking size of short… 2
checking size of int… 4
checking size of long… 4
checking size of float… 4
checking size of double… 8
checking size of off_t… 8
checking size of size_t… 4
checking for manual-page index command…
checking whether we should try to build netCDF-4…
checking for deflate in -lz… yes
checking what to call the output of the ftpbin target… binary-netcdf-4.1.2
/op t/pgi/linux86/11.6/bin/pgf90
/opt/pgi/linux86/11.6/bin/pgf90_c++.tar /opt/pgi/li nux86/11.6/bin/pgf90 c++
checking binary distribution directory… /home/ftp/pub/binary/dummy_system
checking for library containing xdr_void… none required
configure: XDR Functions appear to be in libc.
checking for rpc/types.h… yes
checking for rpc/xdr.h… yes
configure: CPPFLAGS for External libraries: -I/home/ec2-user/softwares/curl/cur l-7.21.6/include
configure: LDFLAGS for External libraries: -lz -L/home/ec2-user/softwares/curl/ curl-7.21.6/lib -lcurl
configure: generating header files and makefiles
configure: creating ./config.status
config.status: creating Makefile
config.status: creating nc-config
config.status: creating netcdf.pc
config.status: creating include/Makefile
config.status: creating h5_test/Makefile
config.status: creating man4/Makefile
config.status: creating fortran/Makefile
config.status: creating libsrc/Makefile
config.status: creating libsrc4/Makefile
config.status: creating nctest/Makefile
config.status: creating nc_test4/Makefile
config.status: creating nc_test/Makefile
config.status: creating ncdump/Makefile
config.status: creating ncgen3/Makefile
config.status: creating ncgen/Makefile
config.status: creating nf_test/Makefile
config.status: creating cxx/Makefile
config.status: creating cxx4/Makefile
config.status: creating f90/Makefile
config.status: creating examples/Makefile
config.status: creating examples/C/Makefile
config.status: creating examples/CDL/Makefile
config.status: creating examples/CXX/Makefile
config.status: creating examples/CXX4/Makefile
config.status: creating examples/F90/Makefile
config.status: creating examples/F77/Makefile
config.status: creating oc/Makefile
config.status: creating libncdap3/Makefile
config.status: creating libncdap4/Makefile
config.status: creating libcdmr/Makefile
config.status: creating libdispatch/Makefile
config.status: creating liblib/Makefile
config.status: creating ncdap_test/Makefile
config.status: creating ncdap_test/testdata3/Makefile
config.status: creating ncdap_test/expected3/Makefile
config.status: creating ncdap_test/expected4/Makefile
config.status: creating ncdap_test/expectremote3/Makefile
config.status: creating ncdap_test/expectremote4/Makefile
config.status: creating ncdump/cdl4/Makefile
config.status: creating ncdump/expected4/Makefile
config.status: creating config.h
config.status: creating fortran/nfconfig1.inc
config.status: fortran/nfconfig1.inc is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
=== configuring in udunits (/home/ec2-user/softwares/netcdf/netcdf-4.1.2/udunits )
configure: running /bin/sh ./configure --disable-option-checking ‘–prefix=/home /ec2-user/softwares/netcdf/netcdf_install’ ‘–with-curl=/home/ec2-user/software s/curl/curl-7.21.6’ ‘CC=/opt/pgi/linux86/11.6/bin/pgcc’ ‘FC=/opt/pgi/linux86/11. 6/bin/pgf90’ --cache-file=/dev/null --srcdir=.
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for a thread-safe mkdir -p… /bin/mkdir -p
checking for gawk… gawk
checking whether make sets $(MAKE)… yes
checking for gcc… /opt/pgi/linux86/11.6/bin/pgcc
checking whether the C compiler works… yes
checking for C compiler default output file name… a.out
checking for suffix of executables…
checking whether we are cross compiling… no
checking for suffix of object files… o
checking whether we are using the GNU C compiler… no
checking whether /opt/pgi/linux86/11.6/bin/pgcc accepts -g… yes
checking for /opt/pgi/linux86/11.6/bin/pgcc option to accept ISO C89… none nee ded
checking for style of include used by make… GNU
checking dependency style of /opt/pgi/linux86/11.6/bin/pgcc… none
checking whether /opt/pgi/linux86/11.6/bin/pgcc and cc understand -c and -o toge ther… yes
checking how to run the C preprocessor… /opt/pgi/linux86/11.6/bin/pgcc -E
checking whether ln -s works… yes
checking whether make sets $(MAKE)… (cached) yes
checking for bison… no
checking for byacc… no
checking for flex… no
checking for lex… no
checking for library containing dirname… none required
checking for library containing log10… none required
checking for library containing XML_StopParser… no
checking for grep that handles long lines and -e… /bin/grep
checking for egrep… /bin/grep -E
checking for ANSI C header files… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
checking float.h usability… yes
checking float.h presence… yes
checking for float.h… yes
checking for inttypes.h… (cached) yes
checking stddef.h usability… yes
checking stddef.h presence… yes
checking for stddef.h… yes
checking for stdlib.h… (cached) yes
checking for string.h… (cached) yes
checking for strings.h… (cached) yes
configure: Checking for the CUNIT unit-testing package.
checking CUnit/CUnit.h usability… no
checking CUnit/CUnit.h presence… no
checking for CUnit/CUnit.h… no
configure: CUNIT not found. Disabling unit-tests.
checking for an ANSI C-conforming const… yes
checking for size_t… yes
checking whether byte ordering is bigendian… no
checking for floor… yes
checking for memmove… yes
checking for memset… yes
checking for modf… yes
checking for pow… yes
checking for strcasecmp… yes
checking for strdup… yes
checking for strpbrk… yes
checking build system type… i686-pc-linux-gnu
checking host system type… i686-pc-linux-gnu
checking how to print strings… printf
checking for a sed that does not truncate output… /bin/sed
checking for fgrep… /bin/grep -F
checking for non-GNU ld… /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld… yes
checking for BSD- or MS-compatible name lister (nm)… /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface… BSD nm
checking the maximum length of command line arguments… 1572864
checking whether the shell understands some XSI constructs… yes
checking whether the shell understands “+=”… yes
checking how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu format … func_convert_file_noop
checking how to convert i686-pc-linux-gnu file names to toolchain format… func _convert_file_noop
checking for /usr/bin/ld option to reload object files… -r
checking for objdump… objdump
checking how to recognize dependent libraries… pass_all
checking for dlltool… no
checking how to associate runtime and link libraries… printf %s\n
checking for ar… ar
checking for archiver @FILE support… @
checking for strip… strip
checking for ranlib… ranlib
checking command to parse /usr/bin/nm -B output from /opt/pgi/linux86/11.6/bin/p gcc object… ok
checking for sysroot… no
checking for mt… no
checking if : is a manifest tool… no
checking for dlfcn.h… yes
checking for objdir… .libs
checking for /opt/pgi/linux86/11.6/bin/pgcc option to produce PIC… -fpic -DPIC
checking if /opt/pgi/linux86/11.6/bin/pgcc PIC flag -fpic -DPIC works… yes
checking if /opt/pgi/linux86/11.6/bin/pgcc static flag -Bstatic works… no
checking if /opt/pgi/linux86/11.6/bin/pgcc supports -c -o file.o… yes
checking if /opt/pgi/linux86/11.6/bin/pgcc supports -c -o file.o… (cached) yes
checking whether the /opt/pgi/linux86/11.6/bin/pgcc linker (/usr/bin/ld) support s shared libraries… yes
checking dynamic linker characteristics… GNU/Linux ld.so
checking how to hardcode library paths into programs… immediate
checking whether stripping libraries is possible… yes
checking if libtool supports shared libraries… yes
checking whether to build shared libraries… yes
checking whether to build static libraries… yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating expat/Makefile
config.status: creating lib/Makefile
config.status: creating lib/xmlFailures/Makefile
config.status: creating lib/xmlSuccesses/Makefile
config.status: creating prog/Makefile
config.status: creating test/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: creating expat/expat_config.h
config.status: expat/expat_config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
=== configuring in libcf (/home/ec2-user/softwares/netcdf/netcdf-4.1.2/libcf)
configure: running /bin/sh ./configure --disable-option-checking ‘–prefix=/home /ec2-user/softwares/netcdf/netcdf_install’ ‘–with-curl=/home/ec2-user/software s/curl/curl-7.21.6’ ‘CC=/opt/pgi/linux86/11.6/bin/pgcc’ ‘FC=/opt/pgi/linux86/11. 6/bin/pgf90’ --cache-file=/dev/null --srcdir=.
configure: libcf 1.0-alpha5
checking build system type… i686-pc-linux-gnu
checking host system type… i686-pc-linux-gnu
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for a thread-safe mkdir -p… /bin/mkdir -p
checking for gawk… gawk
checking whether make sets $(MAKE)… yes
configure: checking user options
checking whether FC is set to ‘’… no
checking whether documentation is to be built… no
checking whether gridspec tools are to be built… no
checking whether gridspec test data should be fetched from Unidata FTP site… n o
checking whether cfcheck is to be built… yes
checking whether logging is enabled (useful to CF developers, mainly… no
checking whether netCDF-4 is to be used… no
checking whether extra tests on sample data should be performed… no
checking whether a location for the HDF5 library was specified…
checking whether a location for the HDF4 library was specified…
checking whether a location for the ZLIB library was specified…
checking whether a location for the SZLIB library was specified…
checking whether Fortran 90 API is desired… yes
checking whether a location for the netCDF library was specified… no
configure: finding C compiler
checking whether the C compiler works… yes
checking for C compiler default output file name… a.out
checking for suffix of executables…
checking whether we are cross compiling… no
checking for suffix of object files… o
checking whether we are using the GNU C compiler… no
checking whether /opt/pgi/linux86/11.6/bin/pgcc accepts -g… yes
checking for /opt/pgi/linux86/11.6/bin/pgcc option to accept ISO C89… none nee ded
checking for style of include used by make… GNU
checking dependency style of /opt/pgi/linux86/11.6/bin/pgcc… none
checking whether /opt/pgi/linux86/11.6/bin/pgcc and cc understand -c and -o toge ther… yes
configure: finding Fortran compiler (required, even if Fortran API is not desire d)
checking whether we are using the GNU Fortran compiler… no
checking whether /opt/pgi/linux86/11.6/bin/pgf90 accepts -g… yes
checking for xlf… no
checking for fort… no
checking for xlf95… no
checking for ifort… no
checking for ifc… no
checking for efc… no
checking for pgf77… pgf77
checking whether we are using the GNU Fortran 77 compiler… no
checking whether pgf77 accepts -g… yes
checking for Fortran flag to compile .f90 files… none
checking fortran 90 modules inclusion flag… -I
checking if Fortran 90 compiler capitalizes .mod filenames… no
configure: finding other utilities
configure: setting up libtool
checking how to print strings… printf
checking for a sed that does not truncate output… /bin/sed
checking for grep that handles long lines and -e… /bin/grep
checking for egrep… /bin/grep -E
checking for fgrep… /bin/grep -F
checking for non-GNU ld… /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld… yes
checking for BSD- or MS-compatible name lister (nm)… /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface… BSD nm
checking whether ln -s works… yes
checking the maximum length of command line arguments… 1572864
checking whether the shell understands some XSI constructs… yes
checking whether the shell understands “+=”… yes
checking how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu format … func_convert_file_noop
checking how to convert i686-pc-linux-gnu file names to toolchain format… func _convert_file_noop
checking for /usr/bin/ld option to reload object files… -r
checking for objdump… objdump
checking how to recognize dependent libraries… pass_all
checking for dlltool… dlltool
checking how to associate runtime and link libraries… printf %s\n
checking for ar… ar
checking for archiver @FILE support… @
checking for strip… strip
checking for ranlib… ranlib
checking command to parse /usr/bin/nm -B output from /opt/pgi/linux86/11.6/bin/p gcc object… ok
checking for sysroot… no
checking for mt… no
checking if : is a manifest tool… no
checking how to run the C preprocessor… /opt/pgi/linux86/11.6/bin/pgcc -E
checking for ANSI C header files… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
checking for dlfcn.h… yes
checking for objdir… .libs
checking for /opt/pgi/linux86/11.6/bin/pgcc option to produce PIC… -fpic -DPIC
checking if /opt/pgi/linux86/11.6/bin/pgcc PIC flag -fpic -DPIC works… yes
checking if /opt/pgi/linux86/11.6/bin/pgcc static flag -Bstatic works… no
checking if /opt/pgi/linux86/11.6/bin/pgcc supports -c -o file.o… yes
checking if /opt/pgi/linux86/11.6/bin/pgcc supports -c -o file.o… (cached) yes
checking whether the /opt/pgi/linux86/11.6/bin/pgcc linker (/usr/bin/ld) support s shared libraries… yes
checking dynamic linker characteristics… GNU/Linux ld.so
checking how to hardcode library paths into programs… immediate
checking whether stripping libraries is possible… yes
checking if libtool supports shared libraries… yes
checking whether to build shared libraries… no
checking whether to build static libraries… yes
checking if libtool supports shared libraries… yes
checking whether to build shared libraries… no
checking whether to build static libraries… yes
checking for pgf77 option to produce PIC… -fpic
checking if pgf77 PIC flag -fpic works… yes
checking if pgf77 static flag -Bstatic works… no
checking if pgf77 supports -c -o file.o… yes
checking if pgf77 supports -c -o file.o… (cached) yes
checking whether the pgf77 linker (/usr/bin/ld) supports shared libraries… yes
checking dynamic linker characteristics… (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs… immediate
checking if libtool supports shared libraries… yes
checking whether to build shared libraries… no
checking whether to build static libraries… yes
checking for /opt/pgi/linux86/11.6/bin/pgf90 option to produce PIC… -fpic
checking if /opt/pgi/linux86/11.6/bin/pgf90 PIC flag -fpic works… yes
checking if /opt/pgi/linux86/11.6/bin/pgf90 static flag -Bstatic works… no
checking if /opt/pgi/linux86/11.6/bin/pgf90 supports -c -o file.o… yes
checking if /opt/pgi/linux86/11.6/bin/pgf90 supports -c -o file.o… (cached) ye s
checking whether the /opt/pgi/linux86/11.6/bin/pgf90 linker (/usr/bin/ld) suppor ts shared libraries… yes
checking dynamic linker characteristics… (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs… immediate
configure: checking for large file support
checking for special C compiler options needed for large files… no
checking for _FILE_OFFSET_BITS value needed for large files… 64
configure: checking types, headers, and functions
checking for stdlib.h… (cached) yes
checking for sys/types.h… (cached) yes
checking for unistd.h… (cached) yes
checking for strerror… yes
checking for strlcat… no
checking for size_t… yes
checking for working alloca.h… yes
checking for alloca… yes
checking for struct stat.st_blksize… yes
checking for size_t… (cached) yes
checking for off_t… yes
checking for ssize_t… yes
checking for ptrdiff_t… yes
checking for uchar… no
checking whether char is unsigned… no
checking whether byte ordering is bigendian… no
checking size of short… 2
checking size of int… 4
checking size of long… 4
checking size of float… 4
checking size of double… 8
checking size of off_t… 8
checking size of size_t… 4
checking for library containing floor… none required
configure: generating header files and makefiles
configure: creating ./config.status
config.status: creating gridspec/tools/make_hgrid/run_tests
config.status: creating gridspec/tools/make_vgrid/run_tests
config.status: creating gridspec/tools/make_topog/run_tests
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating cfcheck/Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: creating nfconfig.inc
config.status: executing depfiles commands
config.status: executing libtool commands

\

[root@domU-12-31-39-09-F9-AA netcdf-4.1.2]# make check install
Making check in include
make[1]: Entering directory /home/ec2-user/softwares/netcdf/netcdf-4.1.2/includ e' make[1]: Nothing to be done for check’.
make[1]: Leaving directory /home/ec2-user/softwares/netcdf/netcdf-4.1.2/include ' Making check in libdispatch make[1]: Entering directory /home/ec2-user/softwares/netcdf/netcdf-4.1.2/libdis patch’
source=‘parallel.c’ object=‘libdispatch_la-parallel.lo’ libtool=yes
DEPDIR=.deps depmode=none /bin/sh …/depcomp
/bin/sh …/libtool --tag=CC --mode=compile /opt/pgi/linux86/11.6/bin/ pgcc -DHAVE_CONFIG_H -I. -I… -I…/fortran -I…/include -g -c -o libdispatc h_la-parallel.lo test -f 'parallel.c' || echo './'parallel.c
libtool: compile: /opt/pgi/linux86/11.6/bin/pgcc -DHAVE_CONFIG_H -I. -I… -I…/ fortran -I…/include -g -c parallel.c -fpic -DPIC -o .libs/libdispatch_la-paral lel.o
NOTE: your trial license will expire in 6 days, 17.8 hours.
libtool: compile: /opt/pgi/linux86/11.6/bin/pgcc -DHAVE_CONFIG_H -I. -I… -I…/ fortran -I…/include -g -c parallel.c -o libdispatch_la-parallel.o >/dev/null 2> &1
source=‘copy.c’ object=‘libdispatch_la-copy.lo’ libtool=yes
DEPDIR=.deps depmode=none /bin/sh …/depcomp
/bin/sh …/libtool --tag=CC --mode=compile /opt/pgi/linux86/11.6/bin/ pgcc -DHAVE_CONFIG_H -I. -I… -I…/fortran -I…/include -g -c -o libdispatc h_la-copy.lo test -f 'copy.c' || echo './'copy.c
libtool: compile: /opt/pgi/linux86/11.6/bin/pgcc -DHAVE_CONFIG_H -I. -I… -I…/ fortran -I…/include -g -c copy.c -fpic -DPIC -o .libs/libdispatch_la-copy.o
NOTE: your trial license will expire in 6 days, 17.8 hours.
libtool: compile: /opt/pgi/linux86/11.6/bin/pgcc -DHAVE_CONFIG_H -I. -I… -I…/ fortran -I…/include -g -c copy.c -o libdispatch_la-copy.o >/dev/null 2>&1
source=‘file.c’ object=‘libdispatch_la-file.lo’ libtool=yes
DEPDIR=.deps depmode=none /bin/sh …/depcomp
/bin/sh …/libtool --tag=CC --mode=compile /opt/pgi/linux86/11.6/bin/ pgcc -DHAVE_CONFIG_H -I. -I… -I…/fortran -I…/include -g -c -o libdispatc h_la-file.lo test -f 'file.c' || echo './'file.c
libtool: compile: /opt/pgi/linux86/11.6/bin/pgcc -DHAVE_CONFIG_H -I. -I… -I…/ fortran -I…/include -g -c file.c -fpic -DPIC -o .libs/libdispatch_la-file.o
NOTE: your trial license will expire in 6 days, 17.8 hours.
libtool: compile: /opt/pgi/linux86/11.6/bin/pgcc -DHAVE_CONFIG_H -I. -I… -I…/ fortran -I…/include -g -c file.c -o libdispatch_la-file.o >/dev/null 2>&1
source=‘dim.c’ object=‘libdispatch_la-dim.lo’ libtool=yes
DEPDIR=.deps depmode=none /bin/sh …/depcomp
/bin/sh …/libtool --tag=CC --mode=compile /opt/pgi/linux86/11.6/bin/ pgcc -DHAVE_CONFIG_H -I. -I… -I…/fortran -I…/include -g -c -o libdispatc h_la-dim.lo test -f 'dim.c' || echo './'dim.c
libtool: compile: /opt/pgi/linux86/11.6/bin/pgcc -DHAVE_CONFIG_H -I. -I… -I…/ fortran -I…/include -g -c dim.c -fpic -DPIC -o .libs/libdispatch_la-dim.o
NOTE: your trial license will expire in 6 days, 17.7 hours.
libtool: compile: /opt/pgi/linux86/11.6/bin/pgcc -DHAVE_CONFIG_H -I. -I… -I…/ fortran -I…/include -g -c dim.c -o libdispatch_la-dim.o >/dev/null 2>&1
source=‘att.c’ object=‘libdispatch_la-att.lo’ libtool=yes
DEPDIR=.deps depmode=none /bin/sh …/depcomp
/bin/sh …/libtool --tag=CC --mode=compile /opt/pgi/linux86/11.6/bin/ pgcc -DHAVE_CONFIG_H -I. -I… -I…/fortran -I…/include -g -c -o libdispatc h_la-att.lo test -f 'att.c' || echo './'att.c
libtool: compile: /opt/pgi/linux86/11.6/bin/pgcc -DHAVE_CONFIG_H -I. -I… -I…/ fortran -I…/include -g -c att.c -fpic -DPIC -o .libs/libdispatch_la-att.o
NOTE: your trial license will expire in 6 days, 17.7 hours.
libtool: compile: /opt/pgi/linux86/11.6/bin/pgcc -DHAVE_CONFIG_H -I. -I… -I…/ fortran -I…/include -g -c att.c -o libdispatch_la-att.o >/dev/null 2>&1
source=‘error.c’ object=‘libdispatch_la-error.lo’ libtool=yes
DEPDIR=.deps depmode=none /bin/sh …/depcomp
/bin/sh …/libtool --tag=CC --mode=compile /opt/pgi/linux86/11.6/bin/ pgcc -DHAVE_CONFIG_H -I. -I… -I…/fortran -I…/include -g -c -o libdispatc h_la-error.lo test -f 'error.c' || echo './'error.c
libtool: compile: /opt/pgi/linux86/11.6/bin/pgcc -DHAVE_CONFIG_H -I. -I… -I…/ fortran -I…/include -g -c error.c -fpic -DPIC -o .libs/libdispatch_la-error.o
NOTE: your trial license will expire in 6 days, 17.7 hours.
libtool: compile: /opt/pgi/linux86/11.6/bin/pgcc -DHAVE_CONFIG_H -I. -I… -I…/ fortran -I…/include -g -c error.c -o libdispatch_la-error.o >/dev/null 2>&1
source=‘var.c’ object=‘libdispatch_la-var.lo’ libtool=yes
DEPDIR=.deps depmode=none /bin/sh …/depcomp
/bin/sh …/libtool --tag=CC --mode=compile /opt/pgi/linux86/11.6/bin/ pgcc -DHAVE_CONFIG_H -I. -I… -I…/fortran -I…/include -g -c -o libdispatc h_la-var.lo test -f 'var.c' || echo './'var.c
libtool: compile: /opt/pgi/linux86/11.6/bin/pgcc -DHAVE_CONFIG_H -I. -I… -I…/ fortran -I…/include -g -c var.c -fpic -DPIC -o .libs/libdispatch_la-var.o
NOTE: your trial license will expire in 6 days, 17.7 hours.
libtool: compile: /opt/pgi/linux86/11.6/bin/pgcc -DHAVE_CONFIG_H -I. -I… -I…/ fortran -I…/include -g -c var.c -o libdispatch_la-var.o >/dev/null 2>&1
source=‘dispatch.c’ object=‘libdispatch_la-dispatch.lo’ libtool=yes
DEPDIR=.deps depmode=none /bin/sh …/depcomp
/bin/sh …/libtool --tag=CC --mode=compile /opt/pgi/linux86/11.6/bin/ pgcc -DHAVE_CONFIG_H -I. -I… -I…/fortran -I…/include -g -c -o libdispatc h_la-dispatch.lo test -f 'dispatch.c' || echo './'dispatch.c
libtool: compile: /opt/pgi/linux86/11.6/bin/pgcc -DHAVE_CONFIG_H -I. -I… -I…/ fortran -I…/include -g -c dispatch.c -fpic -DPIC -o .libs/libdispatch_la-dispa tch.o
NOTE: your trial license will expire in 6 days, 17.7 hours.
PGC-W-0095-Type cast required for this conversion (dispatch.c: 58)
PGC/x86 Linux 11.6-0: compilation completed with warnings
libtool: compile: /opt/pgi/linux86/11.6/bin/pgcc -DHAVE_CONFIG_H -I. -I… -I…/ fortran -I…/include -g -c dispatch.c -o libdispatch_la-dispatch.o >/dev/null 2> &1
source=‘nc_url.c’ object=‘libdispatch_la-nc_url.lo’ libtool=yes
DEPDIR=.deps depmode=none /bin/sh …/depcomp
/bin/sh …/libtool --tag=CC --mode=compile /opt/pgi/linux86/11.6/bin/ pgcc -DHAVE_CONFIG_H -I. -I… -I…/fortran -I…/include -g -c -o libdispatc h_la-nc_url.lo test -f 'nc_url.c' || echo './'nc_url.c
libtool: compile: /opt/pgi/linux86/11.6/bin/pgcc -DHAVE_CONFIG_H -I. -I… -I…/ fortran -I…/include -g -c nc_url.c -fpic -DPIC -o .libs/libdispatch_la-nc_url. o
NOTE: your trial license will expire in 6 days, 17.7 hours.
libtool: compile: /opt/pgi/linux86/11.6/bin/pgcc -DHAVE_CONFIG_H -I. -I… -I…/ fortran -I…/include -g -c nc_url.c -o libdispatch_la-nc_url.o >/dev/null 2>&1
/bin/sh …/libtool --tag=CC --mode=link /opt/pgi/linux86/11.6/bin/pgcc -g - o libdispatch.la libdispatch_la-parallel.lo libdispatch_la-copy.lo libdispatch_ la-file.lo libdispatch_la-dim.lo libdispatch_la-att.lo libdispatch_la-error.lo l ibdispatch_la-var.lo libdispatch_la-dispatch.lo libdispatch_la-nc_url.lo libdisp atch_la-nclist.lo libdispatch_la-ncbytes.lo -lz
libtool: link: rm -fr .libs/libdispatch.a .libs/libdispatch.la
libtool: link: ar cru .libs/libdispatch.a .libs/libdispatch_la-parallel.o .libs/ libdispatch_la-copy.o .libs/libdispatch_la-file.o .libs/libdispatch_la-dim.o .li bs/libdispatch_la-att.o .libs/libdispatch_la-error.o .libs/libdispatch_la-var.o .libs/libdispatch_la-dispatch.o .libs/libdispatch_la-nc_url.o .libs/libdispatch_ la-nclist.o .libs/libdispatch_la-ncbytes.o
libtool: link: ranlib .libs/libdispatch.a
libtool: link: ( cd “.libs” && rm -f “libdispatch.la” && ln -s “…/libdispatch.l a” “libdispatch.la” )
source=‘v2i.c’ object=‘v2i.lo’ libtool=yes
DEPDIR=.deps depmode=none /bin/sh …/depcomp
/bin/sh …/libtool --tag=CC --mode=compile /opt/pgi/linux86/11.6/bin/p gcc -DHAVE_CONFIG_H -I. -I… -I…/fortran -I…/include -g -c -o v2i.lo v2i.c
libtool: compile: /opt/pgi/linux86/11.6/bin/pgcc -DHAVE_CONFIG_H -I. -I… -I…/ fortran -I…/include -g -c v2i.c -fpic -DPIC -o .libs/v2i.o
NOTE: your trial license will expire in 6 days, 17.7 hours.
libtool: compile: /opt/pgi/linux86/11.6/bin/pgcc -DHAVE_CONFIG_H -I. -I… -I…/ fortran -I…/include -g -c v2i.c -o v2i.o >/dev/null 2>&1
/bin/sh …/libtool --tag=CC --mode=link /opt/pgi/linux86/11.6/bin/pgcc -g - o libnetcdf2.la v2i.lo -lz
libtool: link: rm -fr .libs/libnetcdf2.a .libs/libnetcdf2.la
libtool: link: ar cru .libs/libnetcdf2.a .libs/v2i.o
libtool: link: ranlib .libs/libnetcdf2.a
libtool: link: ( cd “.libs” && rm -f “libnetcdf2.la” && ln -s “…/libnetcdf2.la” “libnetcdf2.la” )
make[1]: Leaving directory /home/ec2-user/softwares/netcdf/netcdf-4.1.2/libdisp atch' Making check in oc make[1]: Entering directory /home/ec2-user/softwares/netcdf/netcdf-4.1.2/oc’
make check-am
make[2]: Entering directory /home/ec2-user/softwares/netcdf/netcdf-4.1.2/oc' source='daptab.c' object='liboc_la-daptab.lo' libtool=yes \ DEPDIR=.deps depmode=none /bin/sh ../depcomp \ /bin/sh ../libtool --tag=CC --mode=compile /opt/pgi/linux86/11.6/bin/ pgcc -DHAVE_CONFIG_H -I. -I.. -I../fortran -I.. -I../libsrc -I/home/ec2-user/so ftwares/curl/curl-7.21.6/include -g -c -o liboc_la-daptab.lo test -f ‘daptab. c’ || echo ‘./‘daptab.c libtool: compile: /opt/pgi/linux86/11.6/bin/pgcc -DHAVE_CONFIG_H -I. -I.. -I../ fortran -I.. -I../libsrc -I/home/ec2-user/softwares/curl/curl-7.21.6/include -g -c daptab.c -fpic -DPIC -o .libs/liboc_la-daptab.o NOTE: your trial license will expire in 6 days, 17.7 hours. libtool: compile: /opt/pgi/linux86/11.6/bin/pgcc -DHAVE_CONFIG_H -I. -I.. -I../ fortran -I.. -I../libsrc -I/home/ec2-user/softwares/curl/curl-7.21.6/include -g -c daptab.c -o liboc_la-daptab.o >/dev/null 2>&1 source='curlfunctions.c' object='liboc_la-curlfunctions.lo' libtool=yes \ DEPDIR=.deps depmode=none /bin/sh ../depcomp \ /bin/sh ../libtool --tag=CC --mode=compile /opt/pgi/linux86/11.6/bin/ pgcc -DHAVE_CONFIG_H -I. -I.. -I../fortran -I.. -I../libsrc -I/home/ec2-user/so ftwares/curl/curl-7.21.6/include -g -c -o liboc_la-curlfunctions.lo test -f ’ curlfunctions.c’ || echo ‘./‘curlfunctions.c libtool: compile: /opt/pgi/linux86/11.6/bin/pgcc -DHAVE_CONFIG_H -I. -I.. -I../ fortran -I.. -I../libsrc -I/home/ec2-user/softwares/curl/curl-7.21.6/include -g -c curlfunctions.c -fpic -DPIC -o .libs/liboc_la-curlfunctions.o NOTE: your trial license will expire in 6 days, 17.7 hours. PGC-S-0024-Illegal character constant (curlfunctions.c: 29) PGC/x86 Linux 11.6-0: compilation completed with severe errors make[2]: *** [liboc_la-curlfunctions.lo] Error 1 make[2]: Leaving directory /home/ec2-user/softwares/netcdf/netcdf-4.1.2/oc’
make[1]: *** [check] Error 2
make[1]: Leaving directory /home/ec2-user/softwares/netcdf/netcdf-4.1.2/oc' make: *** [check-recursive] Error 1 [root@domU-12-31-39-09-F9-AA netcdf-4.1.2]# make check Making check in include make[1]: Entering directory /home/ec2-user/softwares/netcdf/netcdf-4.1.2/includ e’
make[1]: Nothing to be done for check'. make[1]: Leaving directory /home/ec2-user/softwares/netcdf/netcdf-4.1.2/include ’
Making check in libdispatch
make[1]: Entering directory /home/ec2-user/softwares/netcdf/netcdf-4.1.2/libdis patch' make[1]: Nothing to be done for check’.
make[1]: Leaving directory /home/ec2-user/softwares/netcdf/netcdf-4.1.2/libdisp atch' Making check in oc make[1]: Entering directory /home/ec2-user/softwares/netcdf/netcdf-4.1.2/oc’
make check-am
make[2]: Entering directory /home/ec2-user/softwares/netcdf/netcdf-4.1.2/oc' source='curlfunctions.c' object='liboc_la-curlfunctions.lo' libtool=yes \ DEPDIR=.deps depmode=none /bin/sh ../depcomp \ /bin/sh ../libtool --tag=CC --mode=compile /opt/pgi/linux86/11.6/bin/ pgcc -DHAVE_CONFIG_H -I. -I.. -I../fortran -I.. -I../libsrc -I/home/ec2-user/so ftwares/curl/curl-7.21.6/include -g -c -o liboc_la-curlfunctions.lo test -f ’ curlfunctions.c’ || echo ‘./‘curlfunctions.c libtool: compile: /opt/pgi/linux86/11.6/bin/pgcc -DHAVE_CONFIG_H -I. -I.. -I../ fortran -I.. -I../libsrc -I/home/ec2-user/softwares/curl/curl-7.21.6/include -g -c curlfunctions.c -fpic -DPIC -o .libs/liboc_la-curlfunctions.o NOTE: your trial license will expire in 6 days, 17.7 hours. PGC-S-0024-Illegal character constant (curlfunctions.c: 29) PGC/x86 Linux 11.6-0: compilation completed with severe errors make[2]: *** [liboc_la-curlfunctions.lo] Error 1 make[2]: Leaving directory /home/ec2-user/softwares/netcdf/netcdf-4.1.2/oc’
make[1]: *** [check] Error 2
make[1]: Leaving directory `/home/ec2-user/softwares/netcdf/netcdf-4.1.2/oc’
make: *** [check-recursive] Error 1

Hi ssb221,

Looks like there is an error in the code. Line 29 of curlfunctions.c uses single quotes for a string instead of double quotes. Single quotes define a single character constant while double quotes defines a string literal. Changing the quotes will fix the problem:

#ifdef CURLOPT_ENCODING
    if (flags->compress) {
        cstat = curl_easy_setopt(curl, CURLOPT_ENCODING, "deflate, gzip");  /* change here */
        if(cstat != CURLE_OK) goto fail;
        DEBUG(1,"CURLOP_ENCODING=deflat, gzip");
    }
#endif

Hope this helps,
Mat