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.
Xunqiang Bi, > From: BI XUNQIANG <address@hidden> > Subject: Problem to install udunits-1.11.7 > Organization: Abdus Salam International Centre for Theoretical Physics > Keywords: 199907261402.IAA21347 UDUNITS In the above message, you wrote: > I meet some problem when I install udunits-1.11.7 on a SUN Ultra-10 > > 1. uname -a > SunOS spclima7 5.6 Generic_105181-11 sun4u sparc SUNW,Ultra-5_10 > > 2. The standard and error output of the configure script. > see in the attached "log" file > > 3. config.log > see in the attached "config.log" file > > 4. The standard and error output of the "make" command. > see in the attached "log" file. > > Thank you very much in advance ! > > ################################################################ > # Xunqiang Bi http://www.ictp.trieste.it/~bixq/ # > # Physics of Weather and Climate Group # > # The Abdus Salam International Centre for Theoretical Physics # > # P.O. BOX 586, 34100 Trieste, ITALY # > # Phone: + 39 (040) 2240 345 Fax: + 39 (040) 224 163 # > # email: address@hidden # > ################################################################ ... > making `dynamic' in directory /DATA/bixq/udunits-1.11.7/src/perl > > make[1]: Entering directory `/DATA/bixq/udunits-1.11.7/src/perl' > /usr/local/bin/perl -I/opt/perl/lib/sun4-solaris/5.00403 -I/opt/perl/lib > /opt/perl/lib/ExtUtils/xsubpp -typemap /opt/perl/lib/ExtUtils/typemap > -typemap typemap UDUNITS.xs >UDUNITS.tc && mv UDUNITS.tc UDUNITS.c > Please specify prototyping behavior for UDUNITS.xs (see perlxs manual) > cc -c -I../lib -I../port/misc -I/usr/local/include -I/opt/gnu/include -O > -DVERSION=\"1.11.7\" -DXS_VERSION=\"1.11.7\" -fpic > -I/opt/perl/lib/sun4-solaris/5.00403/CORE UDUNITS.c > mkdir ./blib > mkdir ./blib/arch > mkdir ./blib/arch/auto > mkdir ./blib/arch/auto/UDUNITS > Running Mkbootstrap for UDUNITS () > chmod 644 UDUNITS.bs > LD_RUN_PATH="/DATA/bixq/udunits-1.11.7/src/perl/../lib:/usr/local/lib" gcc -o > blib/arch/auto/UDUNITS/UDUNITS.so -R/DATA/bixq/udunits-1.11.7/src/perl/../lib > -R/usr/local/lib -shared -L/usr/local/lib -L/opt/gnu/lib UDUNITS.o > -L/DATA/bixq/udunits-1.11.7/src/perl/../lib -ludunits -lm > Text relocation remains referenced > against symbol offset in file > utHasOrigin 0xb20 > /DATA/bixq/udunits-1.11.7/src/perl/../lib/libudunits.a(utlib.o) > free 0x13e8 > /DATA/bixq/udunits-1.11.7/src/perl/../lib/libudunits.a(utscan.o) > free 0x1f60 > /DATA/bixq/udunits-1.11.7/src/perl/../lib/libudunits.a(utlib.o) ... The above indicates that you perl utility was built using the gcc compiler; while the UDUNITS package was compiled using the native cc compiler. Because perl extension modules rely on dynamic linking of sharable libraries, a mismatch like this can cause problems. If you need the perl extension module, then I suggest rebuilding the UDUNITS package from scratch using the gcc compiler: 1. Go to the top-level source directory. 2. Perform steps 3 through 5 near the end of the INSTALL file as before. 3. Set the environment variable CC to "gcc", e.g. setenv CC gcc or export CC=gcc 4. Perform steps 6 through 9 near the end of the INSTALL file. If you don't need the perl extension module, then I suggest rebuilding the UDUNITS package without that capability: 1. Go to the top-level source directory. 2. Perform steps 3 through 5 near the end of the INSTALL file as before. 3. Set the environment variable PERL to the empty string, e.g. setenv PERL '' or export PERL= 4. Perform steps 6 through 9 near the end of the INSTALL file. Please let me know if this helps. -------- Steve Emmerson <http://www.unidata.ucar.edu>