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

[UDUNITS #FNG-611066]: help with problem - make udunits

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: [UDUNITS #FNG-611066]: help with problem - make udunits
  • Date: Thu, 17 May 2007 14:25:55 -0600

Richard,

> I have followed your instruccions but i had the same error:
...
> making `all' in directory /root/tools/udunits-1.12.4/src/udunits
> 
> make[1]: Entering directory `/root/tools/udunits-1.12.4/src/udunits'
> make[2]: Entering directory `/root/tools/udunits-1.12.4/src/udunits'
> c89 -c -g -O2 -I../lib -I../port/misc -Df2cFortran -D_XOPEN_SOURCE=500
> udunits.c
> c89 -o udunits -g -O2 udunits.o -L/root/tools/udunits-1.12.4/src/lib
> -ludunits -L/root/tools/udunits-1.12.4/src/port/misc -ludport
> /root/tools/udunits-1.12.4/src/lib/libudunits.a(utlib.o)(.text+0x39a): In
> function `dectime':
> /root/tools/udunits-1.12.4/src/lib/utlib.c:432: undefined reference to
> `floor'
...

The error-message indicates that the configuration variable LD_MATH
wasn't set.  Please try the following:

1.  Go to the top-level source-directory.

2.  Execute the command "make distclean".

3.  Execute the following command:

./configure CPPFLAGS='-D_REENTRANT -Df2cFortran -D_XOPEN_SOURCE=500' \
LD_MATH=-lm

Redirect both the standard output and standard error streams
to the file "configure.log".

4.  Execute the command "make".

5.  Execute the command "make test".

6.  Execute the command "make install".

Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: FNG-611066
Department: Support UDUNITS
Priority: Normal
Status: Closed