This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Chad, > I *think* netcdf has compiled properly (all 'make check' tests passed > and no 'make install' errors), but there seems to still be some > issues with the udunits compile. I've followed your instructions > below, but a new error has arisen. > > The log file is attached. Thanks for your continued assistance. The log file contained making `all' in directory /tmp/udunits-1.12.4/src/udunits make[1]: Entering directory `/tmp/udunits-1.12.4/src/udunits' make[2]: Entering directory `/tmp/udunits-1.12.4/src/udunits' c89 -c -g -O2 -I../lib -I../port/misc -Df2cFortran udunits.c udunits.c: In function `main': udunits.c:95: error: `_POSIX_MAX_INPUT' undeclared (first use in this function) It looks like your <limits.h> file doesn't define _POSIX_MAX_INPUT unless _XOPEN_SOURCE is set. Try adding the line #define _XOPEN_SOURCE 500 to the very top of the file "udunits/udunits.c". This modification will be in the next release. Regards, Steve Emmerson Ticket Details =================== Ticket ID: FBU-394735 Department: Support UDUNITS Priority: Normal Status: Closed