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

[IDD #FBU-394735]: LDM Upstream Site Authorization Info Request


> 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.

Steve Emmerson

Ticket Details
Ticket ID: FBU-394735
Department: Support UDUNITS
Priority: Normal
Status: Closed