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

[Support #WJW-509399]: udunits: fails fortran compile on FC5


> setenv CPPFLAGS -Df2cFortran
> make distclean
> ./configure --prefix=/home/local
> make
> making `all' in directory /home/local/src/udunits-1.12.4/src/udunits
> gmake[1]: Entering directory `/home/local/src/udunits-1.12.4/src/udunits'
> gmake[2]: Entering directory `/home/local/src/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.)
> udunits.c:113: warning: incompatible implicit declaration of built-in
> function 'exit'
> gmake[2]: *** [udunits.o] Error 1
> gmake[2]: Leaving directory `/home/local/src/udunits-1.12.4/src/udunits'
> gmake[1]: *** [program] Error 2
> gmake[1]: Leaving directory `/home/local/src/udunits-1.12.4/src/udunits'
> gmake: *** [udunits/all] Error 1

It looks like the header-file <limits.h> isn't defining a macro
that it should.  What system is this (what's the output of the
command "uname -a")?

Try the following in the top-level source-directory:

make distclean
./configure CPPFLAGS='-Df2cFortran -D_XOPEN_SOURCE=500' >&! configure.log &&
make >&! make.log &&
make test >&! test.log &&
make install >&! install.log

If it fails, then send me the relevant file or files.

Steve Emmerson

Ticket Details
Ticket ID: WJW-509399
Department: Support UDUNITS
Priority: Normal
Status: On Hold