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.
Milka, > There is problem in step 5 (see below). > > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> > making `dynamic' in directory /opt/udunits-1.12.9/src/perl > > make[1]: Entering directory `/opt/udunits-1.12.9/src/perl' > rm -f blib/arch/auto/UDUNITS/UDUNITS.so > gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions > -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic UDUNITS.o -o > blib/arch/auto/UDUNITS/UDUNITS.so \ > -L/opt/udunits-1.12.9/src/perl/../lib -ludunits -lm \ > > /usr/bin/ld: /opt/udunits-1.12.9/src/perl/../lib/libudunits.a(utlib.o): > relocation R_X86_64_32S against `a local symbol' can not be used when making > a shared object; recompile with -fPIC > /opt/udunits-1.12.9/src/perl/../lib/libudunits.a: could not read symbols: Bad > value > collect2: ld returned 1 exit status > make[1]: *** [blib/arch/auto/UDUNITS/UDUNITS.so] Error 1 > make[1]: Leaving directory `/opt/udunits-1.12.9/src/perl' > make: *** [perl/dynamic] Error 1 It looks like the option "-fPIC" must be explicitly given to the C compiler. Try again, starting with the command "make distclean", only when you execute the configure(1) script, use this command: ./configure CFLAGS='-fPIC -O' CPPFLAGS=-Df2cFortran ... Regards, Steve Emmerson Ticket Details =================== Ticket ID: FQI-238313 Department: Support UDUNITS Priority: Normal Status: Closed