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.
Christopher, > I added the CPPFLAGS='-DNDEBUG -Df2cFortran' line to the CUSTOMIZE file. > Attached are the log files for the steps you listed below. The file "make.log" contained the following: ... making `all' in directory /Users/cmertens/NCEP/udunits-1.12.4/src/udunits make[1]: Entering directory `/Users/cmertens/NCEP/udunits-1.12.4/src/udunits' make[2]: Entering directory `/Users/cmertens/NCEP/udunits-1.12.4/src/udunits' gcc -c -g -O2 -I../lib -I../port/misc -DNDEBUG -Df2cFortran udunits.c gcc -o udunits -g -O2 udunits.o -L/Users/cmertens/NCEP/udunits-1.12.4/src/lib -ludunits -L/Users/cmertens/NCEP/udunits-1.12.4/src/port/misc -ludport /Users/cmertens/NCEP/udunits-1.12.4/src/lib/libudunits.a(utlib.o)(.text+0x39a): In function `dectime': /Users/cmertens/NCEP/udunits-1.12.4/src/lib/utlib.c:432: undefined reference to `floor' ... Apparently, your math functions aren't in the C runtime library. They're probably in the "m" library. Try the following: 1. Go to the top-level source directory. 2. Execute the command "make distclean". 3. Set your environment variables as before. 4. Set the environment variable "LD_MATH" to reference the math library, e.g., LD_MATH='-lm'; export LD_MATH You can use the "nm" utility to verify that the "m" library does, indeed, contain the missing math functions, e.g., nm -g /usr/lib/libm.so | grep floor 5. Continue with building the package as before, starting with executing the "configure" script. > Thanks, > Chris > > > ------------------------------------------------------------------------ > ------------ > Dr. Christopher J. Mertens > Senior Research Scientist > NASA Langley Research Center > Science Directorate, Chemistry and Dynamics Branch > 21 Langley Blvd., Mail Stop 401B > Hampton, Virginia 23681-2199 USA > Voice: +1-757-864-2179 > Fax: +1-757-864-6326 > Email: address@hidden > ------------------------------------------------------------------------ > ------------ Regards, Steve Emmerson Ticket Details =================== Ticket ID: RSQ-889375 Department: Support UDUNITS Priority: Normal Status: Closed