|
|
|||
|
||||
Before building:
checking XDR library for xdr_getint()... yesbut it should get "no" for this, because SGI removed this function from a structure between IRIX 6.1 and 6.2. Later this error is manifested when compiling:
c89 -c -O xdrposix.c
cfe: Error: xdrposix.c, line 312: 'x_getint' undefined; reoccurrences will not b
e reported.
xdrposix_ops.x_getint = xdrposix_getint;
----------------^
This is fixed in the next release, but for now try the following workaround:
irix64)
echo "$ac_t""yes" 1>&6
HAS_XDR_GETINT=1;;
The "fixed" configure script will no longer work for IRIX 6.1, so if you need to build the package on that OS, you should save the old version.
This error comes from the "lex" utility used to generate ncgenyy.c from ncgen.l. The "lex" program builds parsers that can't handle lines longer than 1024 characters. This limit may be different for "lex" on different platforms. If you split the CDL data statement, e.g.:
stringvar = "000...000" ; // 1440 zerosinto something like the following instead:
stringvar = "000...000", // 1000 zeros
"000...000" ; // 440 zeros
then the lex limit will not be encountered. Since we can't change lex, it
looks like fixing this will require making "ncdump" output substrings
that don't exceed the built-in lex limit.
netcdf bug {
dimensions:
time = UNLIMITED ;
variables:
char var(time) ;
data:
var = "abcd";
}
Running ncgen on the above CDL file produces the error message:
ncgen: var.cdl line 7: string won't fit in this variable, 4>1
The problem is with character variables that use only the record dimension, such as the variable "var" above. The above works fine with ncgen when the character string is separated into individual characters, as in:
netcdf bug {
dimensions:
time = UNLIMITED ;
variables:
char var(time) ;
data:
var = "a", "b", "c", "d";
}
The next release will fix the way ncdump outputs such variables as well as the way ncgen parses the old ncdump output.
In the meantime, ways to avoid this bug are to use NC_BYTE instead of NC_CHAR types for 8-bit values that vary only along the record dimension, or to separate the output of ncdump for such variables into individual characters for each record.
| Contact Us Site Map Search Terms and Conditions Privacy Policy Participation Policy | ||||||
|
||||||