[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[UDUNITS #XJK-558958]: Help building UDUNITS
- Subject: [UDUNITS #XJK-558958]: Help building UDUNITS
- Date: Thu, 21 Mar 2013 10:24:25 -0600
Rex05,
> I met the following problem when I compile the udunits (which is required by
> GrADS 2.0.1). Hope you can give some advise to solve it. Thanks!
>
> p.s. I have tried some ways published in your 'support page',such as :
> http://www.unidata.ucar.edu/support/help/MailArchives/udunits/msg00429.html
> Unfortunately, it still doesn't work.
The output of the command "make" contained the following:
> c89 -o udunits -O udunits.o -L/home/rex/supplibs/src/udunits/src/lib
> -ludunits -L/home/rex/supplibs/src/udunits/src/port/misc -ludport
> /home/rex/supplibs/src/udunits/src/lib/libudunits.a(utlib.o): In function
> `dectime':
> utlib.c:(.text+0x50b): undefined reference to `floor'
> utlib.c:(.text+0x58e): undefined reference to `fmod'
> /home/rex/supplibs/src/udunits/src/lib/libudunits.a(utlib.o): In function
> `utRaise':
> utlib.c:(.text+0xdaa): undefined reference to `pow'
> /home/rex/supplibs/src/udunits/src/lib/libudunits.a(utlib.o): In function
> `utPrint':
> utlib.c:(.text+0x108b): undefined reference to `log10'
> utlib.c:(.text+0x1093): undefined reference to `ceil'
> collect2: error: ld returned 1 exit status
It appears that you're missing the math runtime library. Try rebuilding with a
reference to that library in the environment variable LD_MATH. For example
make distclean
LD_MATH=-lm ./configure ... >configure.log 2>&1
Regards,
Steve Emmerson
Ticket Details
===================
Ticket ID: XJK-558958
Department: Support UDUNITS
Priority: Normal
Status: Closed