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.
LDM, > To: address@hidden > From: address@hidden > Subject: udunits-1.11.7 installation log - failed > Organization: UCAR > Keywords: 199903021904.MAA19002 In the above message, you wrote: > Below is the failed installation log. Please help. ... > making `all' in directory /export/home/ldm/udunits-1.11.7/src/port > > > making `all' in directory /export/home/ldm/udunits-1.11.7/src/port/misc > > ar rcuv libudport.a uddummy.o > case "" in \ > '') ;; \ > *) ar rucv libudport.a ;; \ > esac > ranlib libudport.a > `all' is updated. > > returning to directory /export/home/ldm/udunits-1.11.7/src/port > > > making `all' in directory /export/home/ldm/udunits-1.11.7/src/port/cfortran > > > returning to directory /export/home/ldm/udunits-1.11.7/src/port > > `all' is updated. > > returning to directory /export/home/ldm/udunits-1.11.7/src > > > making `all' in directory /export/home/ldm/udunits-1.11.7/src/lib > > ar rcuv libudunits.a utlib.o utparse.o utscan.o udalloc.o > case "" in \ > '') ;; \ > *) ar rucv libudunits.a ;; \ > esac > ranlib libudunits.a > `all' is updated. > > returning to directory /export/home/ldm/udunits-1.11.7/src > > > making `all' in directory /export/home/ldm/udunits-1.11.7/src/udunits > > `udunits' is updated. > `all' is updated. > > returning to directory /export/home/ldm/udunits-1.11.7/src > > cd perl && perl Makefile.PL > Warning: -L../lib changed to -L/export/home/ldm/udunits-1.11.7/src/perl/../lib > Writing Makefile for UDUNITS > > making `dynamic' in directory /export/home/ldm/udunits-1.11.7/src/perl > > cc -c -I../lib -I../port/misc -I/usr/local/include -O > -DVERSION=\"1.11.7\" -DXS_VERSION=\"1.11.7\" -fpic > -I/opt/perl-5.003/lib/sun4-solaris/5.003/CORE UDUNITS.c > cc: Warning: illegal option -fpic > "/opt/perl-5.003/lib/sun4-solaris/5.003/CORE/proto.h", line 45: syntax error > before or at: __attribute__ > "/opt/perl-5.003/lib/sun4-solaris/5.003/CORE/proto.h", line 45: cannot > recover from previous errors > cc: acomp failed for UDUNITS.c > *** Error code 2 > make: Fatal error: Command failed for target `UDUNITS.o' > Current working directory /export/home/ldm/udunits-1.11.7/src/perl > *** Error code 1 > make: Fatal error: Command failed for target `perl/dynamic' Offhand, I'd say you're not using the same C compiler that was used to build the perl package. Compare the output of "perl -V" with, for example, "which cc". Are they identical? -------- Steve Emmerson <http://www.unidata.ucar.edu>