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.
Amarjit, > I am having problems installing udunits on my system, the problems are > very similar to those described in your archives > > 2006 Oct 16 > 14:21 [UDUNITS #SIM-440751]: [Fwd: udunits-1.12.4_g77 compilation .. > > I have tried the solution suggested in there but to no avail. > > My setup is > > setup pgi6.1-64 (just sets up my paths, license etc) > setenv CC /usr/bin/gcc > setenv CPPFLAGS '-DNDEBUG -Df2cFortran -fPIC' > setenv CFLAGS '-O -fno-builtin' > setenv PERL /usr/bin/perl > configure --prefix=/bham/pd/packages/udunits-1.12.4 > make > > > As instructed in the INSTALL file that came with udunits. The output I > get is; > > make[1]: Entering directory `/bham/pd/src/workspace/udunits-1.12.4/src/perl' > /usr/bin/gcc -c -I../lib -I../port/misc -D_REENTRANT -D_GNU_SOURCE > -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g > -pipe -m64 -DVERSION=\"1.12.4\" -DXS_VERSION=\"1.12.4\" -fPIC > "-I/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/CORE" -DNDEBUG > -Df2cFortran -fPIC UDUNITS.c > Running Mkbootstrap for UDUNITS () > chmod 644 UDUNITS.bs > rm -f blib/arch/auto/UDUNITS/UDUNITS.so > gcc -shared UDUNITS.o -o blib/arch/auto/UDUNITS/UDUNITS.so > -L/bham/pd/src/workspace/udunits-1.12.4/src/perl/../lib -ludunits -lm > /usr/bin/ld: > /bham/pd/src/workspace/udunits-1.12.4/src/perl/../lib/libudunits.a(utlib.o): > relocation R_X86_64_32 against `a local symbol' can not be used when > making a shared object; recompile with -fPIC > /bham/pd/src/workspace/udunits-1.12.4/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 `/bham/pd/src/workspace/udunits-1.12.4/src/perl' > make: *** [perl/dynamic] Error 1 > > > As you can see I have already added the fPIC flag. Any suggests would be > gratefully recieved. Please do the following: 1. Go to the top-level source directory. 2. Execute the command "make clean". 3. Execute the command "make", redirecting both the standard output and standard error streams to the file "make.log". 4. Send me the file "make.log". > I should add that both the perl installation and gcc were installed at > the time of the OS installation. > > Regards > > Amarjit Regards, Steve Emmerson Ticket Details =================== Ticket ID: SIM-440751 Department: Support UDUNITS Priority: Normal Status: On Hold