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]

[UDUNITS #ZYY-472715]: problem building udunits on opensuse 10.3



Sean,

> Thanks, Steve.  That got me through configure.  Now, I get this on make:
> 
> .......
> 
> make[1]: Entering directory `/tmp/udunits-1.12.4/src/udunits'
> make[2]: Entering directory `/tmp/udunits-1.12.4/src/udunits'
> c89 -c -O -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)
> udunits.c:95: error: (Each undeclared identifier is reported only once
> udunits.c:95: error: for each function it appears in.)
> udunits.c:113: warning: incompatible implicit declaration of built-in
> function 'exit'
> make[2]: *** [udunits.o] Error 1
> make[2]: Leaving directory `/tmp/udunits-1.12.4/src/udunits'
> make[1]: *** [program] Error 2
> make[1]: Leaving directory `/tmp/udunits-1.12.4/src/udunits'
> make: *** [udunits/all] Error 1

Try add the line "#define _XOPEN_SOURCE=500" to the top of
the file "udunits/udunits.c".

Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: ZYY-472715
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