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.
Chris, > Linux localhost.localdomain 2.6.18-1.2200.fc5smp #1 SMP Sat Oct 14 > 17:15:35 EDT 2006 i686 i686 i386 GNU/Linux ... > making `all' in directory /home/local/src/udunits-1.12.4/src/udunits > > gmake[1]: Entering directory `/home/local/src/udunits-1.12.4/src/udunits' > gmake[2]: Entering directory `/home/local/src/udunits-1.12.4/src/udunits' > c89 -o udunits -g -O2 udunits.o -L/home/local/src/udunits-1.12.4/src/lib > -ludunits -L/home/local/src/udunits-1.12.4/src/port/misc -ludport > /home/local/src/udunits-1.12.4/src/lib/libudunits.a(utlib.o): In function > `dectime': > /home/local/src/udunits-1.12.4/src/lib/utlib.c:432: undefined reference to > `floor' > /home/local/src/udunits-1.12.4/src/lib/libudunits.a(utlib.o): In function > `decomp': > /home/local/src/udunits-1.12.4/src/lib/utlib.c:366: undefined reference to > `fmod' > /home/local/src/udunits-1.12.4/src/lib/libudunits.a(utlib.o): In function > `utPrint': > /home/local/src/udunits-1.12.4/src/lib/utlib.c:1298: undefined reference to > `log10' > /home/local/src/udunits-1.12.4/src/lib/utlib.c:1298: undefined reference to > `ceil' > /home/local/src/udunits-1.12.4/src/lib/libudunits.a(utlib.o): In function > `utRaise': > /home/local/src/udunits-1.12.4/src/lib/utlib.c:807: undefined reference to > `pow' > collect2: ld returned 1 exit status > gmake[2]: *** [udunits] Error 1 > gmake[2]: Leaving directory `/home/local/src/udunits-1.12.4/src/udunits' > gmake[1]: *** [program] Error 2 > gmake[1]: Leaving directory `/home/local/src/udunits-1.12.4/src/udunits' > gmake: *** [udunits/all] Error 1 It looks like the Standard C functions aren't in the C runtime library. Try the following: make distclean ./configure CPPFLAGS='-Df2cFortran -D_XOPEN_SOURCE=500' LD_MATH=-lm >&! configure.log && make >&! make.log && make test >&! test.log && make install >&! install.log If it fails, then send me the relevant file or files. Regards, Steve Emmerson Ticket Details =================== Ticket ID: WJW-509399 Department: Support UDUNITS Priority: Normal Status: Closed