[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

20040521: netCDF install under Cygwin_NT



Bintu,

> To: <address@hidden>
> From: "Bintu G. Vasudevan" <address@hidden>
> Subject: Problem installing 
> Organization: Infosys Technologies Ltd.
> Keywords: 200405211331.i4LDV0tK018909 netCDF 3.5.0 Cygwin

The above message contained the following:

> Dear Support@unidata,
> 
> I am trying to install netcdf-3.5.0.orgin but give some error please help
> -----------------------------------------------------------------------------------------------------
> 
> $ uname -a
> CYGWIN_NT-5.0 blrkec17826d 1.5.9(0.112/4/2) 2004-03-18 23:05 i686 unknown 
> unknown Cygwin
> -----------------------------------------------------------------------------------------------------
> 
> $ more VERSION
> 3.5.0
> -----------------------------------------------------------------------------------------------------

> $ make
> make[1]: Entering directory `/cygdrive/d/scisoft/netcdf-3.5.0.orig/src'
> 
> Making `all' in directory /cygdrive/d/scisoft/netcdf-3.5.0.orig/src/libsrc
> 
> make[2]: Entering directory `/cygdrive/d/scisoft/netcdf-3.5.0.orig/src/libsrc'
> gcc -mcpu=pentium -march=i386 -mno-cygwin -mms-bitfields -c -O -I.  
> -I/usr/local
> /include attr.c
> gcc -mcpu=pentium -march=i386 -mno-cygwin -mms-bitfields -c -O -I.  
> -I/usr/local
> /include dim.c
> gcc -mcpu=pentium -march=i386 -mno-cygwin -mms-bitfields -c -O -I.  
> -I/usr/local
> /include error.c
> gcc -mcpu=pentium -march=i386 -mno-cygwin -mms-bitfields -c -O -I.  
> -I/usr/local
> /include -DVERSION=`cat ../VERSION` libvers.c
> gcc -mcpu=pentium -march=i386 -mno-cygwin -mms-bitfields -c -O -I.  
> -I/usr/local
> /include nc.c
> gcc -mcpu=pentium -march=i386 -mno-cygwin -mms-bitfields -c -O -I.  
> -I/usr/local
> /include ncio.c
> In file included from ncio.c:8:
> posixio.c: In function `ncio_create':
> posixio.c:1185: error: `S_IRGRP' undeclared (first use in this function)
> posixio.c:1185: error: (Each undeclared identifier is reported only once
> posixio.c:1185: error: for each function it appears in.)
> posixio.c:1185: error: `S_IWGRP' undeclared (first use in this function)
> posixio.c:1185: error: `S_IROTH' undeclared (first use in this function)
> posixio.c:1185: error: `S_IWOTH' undeclared (first use in this function)
> make[2]: *** [ncio.o] Error 1
> make[2]: Leaving directory `/cygdrive/d/scisoft/netcdf-3.5.0.orig/src/libsrc'
> make[1]: *** [subdir_target] Error 1
> make[1]: Leaving directory `/cygdrive/d/scisoft/netcdf-3.5.0.orig/src'
> make: *** [libsrc/all] Error 2

The symbol S_IRGRP should be defined in the header-file <sys/stat.h>.
The file ncio.c includes <sys/stat.h>, thus your development environment
either doesn't conform to the POSIX standard or it has something wrong
with it.

We do have a set of "msoft.mak" files for Win32 environments that we
have used successfully for building the C and Fortran interfaces, as
described at

  ftp://ftp.unidata.ucar.edu/pub/netcdf/contrib/win32/WIN32_README.TXT

I'm CC:ing John Caron, who knows more about Windows
environments, in case he has any other suggestions.

> Thanks and Regards,
> 
> Bintu G. Vasudevan
> 
> SETLabs B-19 FF, 
> Infosys Technologies Ltd.,
> Electronics City, Hosur Road,
> Bangalore 560100.
> ----------------------------------------------
> P:    080-5117 3857
> M:    9880299560              
> F:    080-2852 0740
> ----------------------------------------------

Regards,
Steve Emmerson
> NOTE: All email exchanges with Unidata User Support are recorded in the
> Unidata inquiry tracking system and then made publically available
> through the web.  If you do not want to have your interactions made
> available in this way, you must let us know in each email you send to us.