NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dear all, I got some problems by compiling netCDF 3.6.0-p1 on a SuSE9.3 Linux box (64 bit) This is my compiler Version: Reading specs from /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/specs Configured with: ../configure --enable-threads=posix --prefix=/usr - --with-local-prefix=/usr/local --infodir=/usr/share/info - --mandir=/usr/share/man --enable-languages=c,c++,f77,objc,java,ada - --disable-checking --libdir=/usr/lib64 --enable-libgcj - --with-slibdir=/lib64 --with-system-zlib --enable-shared - --enable-__cxa_atexit x86_64-suse-linux Thread model: posix gcc version 3.3.5 20050117 (prerelease) (SUSE Linux) The problem is that's fstat won't he found. This is used in posixio.c. If I do comment out the call of fstat it seems to work right. That is not the best solution but probably gives an idea what is wrong. I was using the CFLAGS=-fPIC to create a shareable module. /* * What is the preferred I/O block size? */ static size_t blksize(int fd) { #if defined(HAVE_ST_BLKSIZE) struct stat sb; /* if (fstat(fd, &sb) > -1) { if(sb.st_blksize >= 8192) return (size_t) sb.st_blksize; return 8192; } /* else, silent in the face of error */ #endif return (size_t) 2 * pagesize(); } /* * Sortof like ftruncate, except won't make the * file shorter. */ static int fgrow(const int fd, const off_t len) { struct stat sb; /* if (fstat(fd, &sb) < 0) return errno; */ What else could I do? cheers Reimar - -- Reimar Bauer Institut fuer Stratosphaerische Chemie (ICG-I) Forschungszentrum Juelich email: R.Bauer@xxxxxxxxxxxxx - ------------------------------------------------------------------- a IDL library at ForschungsZentrum Juelich http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro.html ================================================================== -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFDLto45aOc3Q9hk/kRAvGBAJ9oT0GEngY2ur49qFrtB3JBLNqIXwCgrAM4 H7W66rWbvxuFpCVFtyAhYgQ =gZQN -----END PGP SIGNATURE-----
netcdfgroup
archives: