Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

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

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



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


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690