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

[UDUNITS #UTP-934011]: failed to install udunits


> Thanks for your response. I still could not compile it successfully after 
> setting environment parameters as below.
> setenv CC gcc
> setenv CPPFLAGS -Df2cFortran
> ./configure
> .....
> .....
> I am using c shell and not super user.
> Please see attached log files.  It is appreciate help me to fix the problem.

Your "make.log" contained this:

gcc -o udunits -g -O2 udunits.o 
-L/home/fliu/TOOLS/PLOTS/NCVIEW/udunits-1.12.4/src/lib -ludunits 
-L/home/fliu/TOOLS/PLOTS/NCVIEW/udunits-1.12.4/src/port/misc -ludport
/home/fliu/TOOLS/PLOTS/NCVIEW/udunits-1.12.4/src/lib/libudunits.a(utlib.o): In 
function `dectime':
/home/fliu/TOOLS/PLOTS/NCVIEW/udunits-1.12.4/src/lib/utlib.c:432: undefined 
reference to `floor'

It looks like the C runtime math functions aren't in the default C runtime 
library.  I suspect, therefore, that you'll have to reference the math library 

Try this:
    1) Execute the command "make distclean";
    2) Set the environment variable LD_MATH to "-lm";
    3) Execute the configure(1) script as before and the make(1)s as before.

Steve Emmerson

Ticket Details
Ticket ID: UTP-934011
Department: Support UDUNITS
Priority: Normal
Status: Closed