Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

[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: Christopher.J.Mertens@xxxxxxxx
> ------------------------------------------------------------------------
> ------------


Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: RSQ-889375
Department: Support UDUNITS
Priority: Normal
Status: Closed


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690