[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


NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.