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.
Rebecca, > Full Name: Rebecca Matichuk > Email Address: address@hidden > Organization: NOAA > Package Version: > Operating System: > Hardware: > Description of problem: I am trying to build 64-bit udunits and ncview using > ifort and gcc on MAC OS but getting the following errors after make (errors > included below). > > Thank you for your help. > Rebecca > > ncview error: > > -o ncview ncview.o file.o util.o do_buttons.o file_netcdf.o view.o > do_print.o epic_time.o interface/interface.o interface/x_interface.o > interface/dataedit.o interface/display_info.o interface/plot_xy.o > interface/utils.o interface/range.o interface/printer_options.o overlay.o > interface/filesel.o interface/set_options.o interface/plot_range.o udu.o > SciPlot.o interface/RadioWidget.o interface/cbar.o > -L/usr/local/netcdf-3.6.2/lib \ > -L/usr/X11R6/lib -lnetcdf -lXaw -lXmu \ > \ > -lSM -lICE -lXt -lXext -lX11 -lm > /usr/bin/ld: truncated or malformed archive: > /usr/local/netcdf-3.6.2/lib/libnetcdf.a (ranlib structures in table of > contents extends past the end of the table of contents, can't load from it) > collect2: ld returned 1 exit status > make: *** [ncview] Error 1 > > > udunits error: > Please specify prototyping behavior for UDUNITS.xs (see perlxs manual) > gcc -c -I../lib -I../port/misc -g -pipe -fno-common -DPERL_DARWIN > -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -O3 > -DVERSION=\"1.12.4\" -DXS_VERSION=\"1.12.4\" > "-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE" -Df2cFortran > UDUNITS.c > Running Mkbootstrap for UDUNITS () > chmod 644 UDUNITS.bs > rm -f blib/arch/auto/UDUNITS/UDUNITS.bundle > LD_RUN_PATH="" env MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined > dynamic_lookup -L/usr/local/lib UDUNITS.o -o > blib/arch/auto/UDUNITS/UDUNITS.bundle > -L/usr/local/bin/udunits-1.12.4/src/perl/../lib -ludunits -lm > /usr/bin/ld: truncated or malformed archive: > /usr/local/bin/udunits-1.12.4/src/perl/../lib/libudunits.a (ranlib structures > in table of contents extends past the end of the table of contents, can't > load from it) > collect2: ld returned 1 exit status > make[1]: *** [blib/arch/auto/UDUNITS/UDUNITS.bundle] Error 1 > make: *** [perl/dynamic] Error 1 It appears that the top-level source-directory of the UDUNITS package is "/usr/local/bin/udunits-1.12.4/src". Is that correct? If so, then that's a very odd place to build the package. Assuming that you don't need the Perl interface, then I suggest having the UDUNITS build procedure skip that step by setting the environment variable PERL to the empty string prior to invoking the "configure" script. When you've done that, then please send me the files "configure.log", "make.log", and "install.log", which are described in the file INSTALL in the top-level source-directory. Regards, Steve Emmerson Ticket Details =================== Ticket ID: COP-571847 Department: Support UDUNITS Priority: Normal Status: On Hold