This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
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