NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.


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

20030506: UDUNITS make problem: missing pow() & log10()



Ayal,

>Date: Tue, 6 May 2003 16:01:33 -0700
>From: Ayal Anis <address@hidden>
>Organization: Texas A&M, Galveston
>To: Steve Emmerson <address@hidden>
>Subject: Re: 20030506: UDUNITS make problem: missing pow() & log10()

The above message contained the following:

> Haven't got much farther...
> 
> HERE IS WHAT I DID:
> 
> > nm -g /usr/lib/libc.* | grep pow
> 
> AND THE RESULTS:
> 
>          U _fpioconst_pow10
>          U _fpioconst_pow10
>          U _fpioconst_pow10
>          U _fpioconst_pow10
>          U _fpioconst_pow10
>          U _fpioconst_pow10
> 00000de0 R _fpioconst_pow10
>          U _fpioconst_pow10
>          U _fpioconst_pow10
>          U _fpioconst_pow10
>          U _fpioconst_pow10
>          U _fpioconst_pow10
>          U _fpioconst_pow10
>          U _fpioconst_pow10
> nm: /usr/lib/libc.so: File format not recognized
> 
> > nm -g /usr/lib/libm.* | grep log10
> 
> AND THE RESULTS:
> 
> e_log10.o:
> 00000000 T __ieee754_log10
> w_log10.o:
>          U __ieee754_log10
> 00000000 T __log10
> 00000000 W log10
...

It looks like the only definition for the "log10" symbol is the weak one
in the math library.

Try this:

    1.  Go to the top-level source directory.

    2.  Perform steps 3 through 5 described near the end of the file
        INSTALL.

    3.  Ensure that the environment variable LIBS contains the string
        "-lm", e.g.,

            export LIBS=-lm

        or

            setenv LIBS -lm

        depending on your user shell.

    4.  Perform steps 6 through 9 described near the end of the file
        INSTALL.

Regards,
Steve Emmerson