[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 20051114: problem installing UDUNITS version 1.12.4



Sebastien,

>Date: Mon, 14 Nov 2005 14:09:04 -0800
>From: Sebastien Biraud <address@hidden>
>Organization: Lawrence Berkeley National Laboratory
>To: Steve Emmerson <address@hidden>
>Subject: Re: 20051114: problem installing UDUNITS version 1.12.4

The above message contained the following:

> I tried the following:
> 1. make distclean
> 2. FC=pgf90 F90=pgf90 CC=gcc CFLAGS=-O CPPFLAGS=-DpgiFortran ./configure 
>  > configure.log 2>&1 &&
> 3. make > make.log 2>&1 &&
> 
> The make failed, but this time for different reasons (64 bits).
> Attached are the two corresponding log files.
> 
> Thanks again,
> Sebastien
[snip]

> making `all' in directory /home/sbiraud/tmp/udunits-1.12.4/src/udunits
> 
> make[1]: Entering directory `/home/sbiraud/tmp/udunits-1.12.4/src/udunits'
> make[2]: Entering directory `/home/sbiraud/tmp/udunits-1.12.4/src/udunits'
> gcc -c -O -I../lib -I../port/misc -DpgiFortran udunits.c
> gcc -o udunits -O udunits.o -L/home/sbiraud/tmp/udunits-1.12.4/src/lib 
> -ludunits -L/home/sbiraud/tmp/udunits-1.12.4/src/port/misc -ludport -lm
> make[2]: Leaving directory `/home/sbiraud/tmp/udunits-1.12.4/src/udunits'
> make[1]: Leaving directory `/home/sbiraud/tmp/udunits-1.12.4/src/udunits'
> 
> returning to directory /home/sbiraud/tmp/udunits-1.12.4/src
> 
> cd perl && perl Makefile.PL
> WARNING: CC is not a known parameter.
> Checking if your kit is complete...
> Looks good
> Warning: -L../lib changed to 
> -L/home/sbiraud/tmp/udunits-1.12.4/src/perl/../lib
> Writing Makefile for UDUNITS
> 
> making `dynamic' in directory /home/sbiraud/tmp/udunits-1.12.4/src/perl
> 
> make[1]: Entering directory `/home/sbiraud/tmp/udunits-1.12.4/src/perl'
> /usr/bin/perl /usr/lib/perl5/5.8.0/ExtUtils/xsubpp  -typemap 
> /usr/lib/perl5/5.8.0/ExtUtils/typemap -typemap typemap  UDUNITS.xs > 
> UDUNITS.xsc && mv UDUNITS.xsc UDUNITS.c
> Please specify prototyping behavior for UDUNITS.xs (see perlxs manual)
> gcc -c  -I../lib -I../port/misc -D_REENTRANT -D_GNU_SOURCE 
> -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include 
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe   
> -DVERSION=\"1.12.4\" -DXS_VERSION=\"1.12.4\" -fPIC 
> "-I/usr/lib64/perl5/5.8.0/x86_64-linux-thread-multi/CORE"  -DpgiFortran 
> UDUNITS.c
> Running Mkbootstrap for UDUNITS ()
> chmod 644 UDUNITS.bs
> rm -f blib/arch/auto/UDUNITS/UDUNITS.so
> LD_RUN_PATH="/home/sbiraud/tmp/udunits-1.12.4/src/perl/../lib:/lib64" gcc  
> -shared UDUNITS.o  -o blib/arch/auto/UDUNITS/UDUNITS.so   
> -L/home/sbiraud/tmp/udunits-1.12.4/src/perl/../lib -ludunits -lm  
> /usr/bin/ld: 
> /home/sbiraud/tmp/udunits-1.12.4/src/perl/../lib/libudunits.a(utlib.o): 
> relocation R_X86_64_32 can not be used when making a shared object; recompile 
> with -fPIC
> /home/sbiraud/tmp/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 `/home/sbiraud/tmp/udunits-1.12.4/src/perl'
> make: *** [perl/dynamic] Error 1

Looks like you need to specify the "-fPIC option to the compiler.

Please repeat the instructions from my previous email but, this time,
include the option "-fPIC" in the CFLAGS environment variable (as well
as the "-O" option).

Regards,
Steve Emmerson


NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.