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.
Brian, > To: "'address@hidden'" <address@hidden> > From: "HOETH, BRIAN R. (JSC-ZS) (LM)" <address@hidden> > Subject: Trouble installing udunits > Organization: UCAR/Unidata The above message contained the following: > making `dynamic' in directory /home/ldm/udunits-1.11.7/src/perl > > /usr/local/bin/perl -I/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi = > -I/opt/perl/lib/5.6.1 /opt/perl/lib/5.6.1/ExtUtils/xsubpp -typemap = > /opt/perl/lib/5.6.1/ExtUtils/typemap -typemap typemap UDUNITS.xs > = > UDUNITS.xsc && mv UDUNITS.xsc UDUNITS.c > Please specify prototyping behavior for UDUNITS.xs (see perlxs manual) > /bin/cc -c -I../lib -I../port/misc -D_POSIX_C_SOURCE=3D199506L = > -D_HPUX_SOURCE -L/lib/pa1.1 -DUINT32_MAX_BROKEN -mpa-risc-1-1 -fPIC = > -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE = > -D_FILE_OFFSET_BITS=3D64 -O -DVERSION=3D\"1.11.7\" = > -DXS_VERSION=3D\"1.11.7\" -fPIC = > -I/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi/CORE -w -D_HPUX_SOURCE = > -Dextname UDUNITS.c > cc: warning 422: Unknown option "m" ignored. > cc: warning 422: Unknown option "a" ignored. > cc: warning 422: Unknown option "-" ignored. > cc: warning 422: Unknown option "i" ignored. > cc: warning 422: Unknown option "-" ignored. > cc: warning 422: Unknown option "1" ignored. > cc: warning 422: Unknown option "-" ignored. > cc: warning 422: Unknown option "1" ignored. > cc: warning 422: Unknown option "fPIC" ignored. > cc: warning 422: Unknown option "fno-strict-aliasing" ignored. > cc: warning 422: Unknown option "fPIC" ignored. ... It appears from the above that the C compiler, /bin/cc, doesn't understand the options that were used to build the perl(1) utility. Do you want or need the perl extension module to UDUNITS? If you don't need or want it, then the simplest thing to do is to not build it by setting the enviroment variable PERL to the empty-string prior to executing the configure script. If you do want or need the perl module, then you'll have to ensure that the same compilation environment is used to build the UDUNITS package as was used to build the perl utility. You can discover this environment via the "-V" option to perl. Use the information to set the environment variables CC, CPPFLAGS, and CFLAGS prior to executing the configure script. Remember to do a "make distclean" before re-executing the configure script. Regards, Steve Emmerson <http://www.unidata.ucar.edu>