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

[UDUNITS #RSQ-889375]: Installation Problems



Christopher,

> I added the CPPFLAGS='-DNDEBUG -Df2cFortran' line to the CUSTOMIZE file.
> Attached are the log files for the steps you listed below.

The file "make.log" contained the following:

...
making `all' in directory /Users/cmertens/NCEP/udunits-1.12.4/src/udunits

make[1]: Entering directory `/Users/cmertens/NCEP/udunits-1.12.4/src/udunits'
make[2]: Entering directory `/Users/cmertens/NCEP/udunits-1.12.4/src/udunits'
gcc -c -g -O2 -I../lib -I../port/misc -DNDEBUG -Df2cFortran udunits.c
gcc -o udunits -g -O2 udunits.o -L/Users/cmertens/NCEP/udunits-1.12.4/src/lib 
-ludunits -L/Users/cmertens/NCEP/udunits-1.12.4/src/port/misc -ludport
/Users/cmertens/NCEP/udunits-1.12.4/src/lib/libudunits.a(utlib.o)(.text+0x39a): 
In function `dectime':
/Users/cmertens/NCEP/udunits-1.12.4/src/lib/utlib.c:432: undefined reference to 
`floor'
...

Apparently, your math functions aren't in the C runtime library.

They're probably in the "m" library.  Try the following:

1.  Go to the top-level source directory.

2.  Execute the command "make distclean".

3.  Set your environment variables as before.

4.  Set the environment variable "LD_MATH" to reference the math
library, e.g.,

        LD_MATH='-lm'; export LD_MATH

    You can use the "nm" utility to verify that the "m" library does,
    indeed, contain the missing math functions, e.g.,

        nm -g /usr/lib/libm.so | grep floor

5.  Continue with building the package as before, starting with executing
the "configure" script.

> Thanks,
> Chris
> 
> 
> ------------------------------------------------------------------------
> ------------
> Dr. Christopher J. Mertens
> Senior Research Scientist
> NASA Langley Research Center
> Science Directorate, Chemistry and Dynamics Branch
> 21 Langley Blvd., Mail Stop 401B
> Hampton, Virginia 23681-2199 USA
> Voice: +1-757-864-2179
> Fax: +1-757-864-6326
> Email: address@hidden
> ------------------------------------------------------------------------
> ------------


Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: RSQ-889375
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.