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

[UDUNITS #RMZ-185423]: problems building udunits-1.12.4


> Your instructions were clear and useful, but unfortunately the make
> still fails. The logs from steps 4 & 5 are attached.

The file "make.log" contained the following:
making `all' in directory /usr/local/udunits-1.12.4/src/udunits

make[1]: Entering directory `/usr/local/udunits-1.12.4/src/udunits'
make[2]: Entering directory `/usr/local/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)
udunits.c:95: error: (Each undeclared identifier is reported only once
udunits.c:95: error: for each function it appears in.)
make[2]: *** [udunits.o] Error 1
make[2]: Leaving directory `/usr/local/udunits-1.12.4/src/udunits'
make[1]: *** [program] Error 2
make[1]: Leaving directory `/usr/local/udunits-1.12.4/src/udunits'
make: *** [udunits/all] Error 1

Apparently, your compilation environment doesn't completely conform to the
UNIX standard (because _POSIX_MAX_INPUT is undefined).  I hate when that
happens.  :-)

We might be able to trick it.  Go into the "udunits" subdirectory and
add the string "-D_XOPEN_SOURCE=500" to the "make" macro "CPPFLAGS".
Then try a "make" within that directory.  If it works, then go up to
the top-level source-directory and do a "make" there (just to be sure).
Then execute a "make install".

> I didn't find
> f2cFortran on the GCC man page- should I have been looking somewhere else?

A Fortran compiler doesn't need to exist.  The UDUNITS package just needs
to be told about a Fortran compiler in order to build the Fortran-callable

> Thanks for the additional help!
> Best, Ellyn
> --
> Ellyn T. Montgomery          (508)457-2356
> Oceanographer and Data Manager,
> USGS, Woods Hole, MA 02543-1598

Steve Emmerson

Ticket Details
Ticket ID: RMZ-185423
Department: Support UDUNITS
Priority: Normal
Status: Closed