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

[Support #UEO-800135]: problem installing UDUNITS version 1.12.4



Sebastien,

> oups....
> sent the wrong file....
> 
> --
> Sebastien Biraud
> Lawrence Berkeley National Laboratory
> One Cyclotron Road  MS 90R-1116
> Berkeley, CA 94720
> USA
> 
> tel:(510) 486 6084
> fax:(510) 486 5686
> e-mail: address@hidden
> 
> ...
> making `dynamic' in directory /usr/local/src/udunits-1.12.4/src/perl
> 
> make[1]: Entering directory `/usr/local/src/udunits-1.12.4/src/perl'
> /usr/bin/perl /usr/lib/perl5/5.8.5/ExtUtils/xsubpp  -typemap 
> /usr/lib/perl5/5.8.5/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 -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"  -DpgiFortran 
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 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/usr/local/src/udunits-1.12.4/src/perl/../lib -ludunits -lm
> /usr/bin/ld: 
> /usr/local/src/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
> /usr/local/src/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 `/usr/local/src/udunits-1.12.4/src/perl'
> make: *** [perl/dynamic] Error 1

Perhaps the UDUNITS library needs to be compiled with the "-fPIC"
option.

Try this:

1. Go to the top-level source-directory.

2. Execute the command "make distclean".

3. Execute the command "./configure CC=gcc CPPFLAGS='-DpgiFortran 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' CFLAGS='-m64 -fPIC' LD_MATH=-lm".

4. Execute the command "make".

5. Execute the command "make test".

6. Execute the command "make install".

Redirect both the standard output and standard error stream from the above 
commands into their appropriate files so that, if something goes wrong, you can 
send me the files.

Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: UEO-800135
Department: Support UDUNITS
Priority: Normal
Status: On Hold