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

[Support #RTP-583073]: Help



Vijay,

The file "make.log" contained this

make[1]: Entering directory 
`/home/vijay/ncview-1.93d.tar.gz_FILES/udunits-1.12.4/src/lib'
gcc -c -g -O2 -I../port/misc -I../port/cfortran 
-DUT_DEFAULT_PATH='"/home/vijay/ncview-1.93d.tar.gz_FILES/udunits-1.12.4/etc/udunits.dat"'
 -Df2cFortran utlib.c

and also this

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/home/vijay/ncview-1.93d.tar.gz_FILES/udunits-1.12.4/src/perl/../lib 
-ludunits -lm         \
          
/usr/bin/ld: 
/home/vijay/ncview-1.93d.tar.gz_FILES/udunits-1.12.4/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

So it appears that, if you want the Perl extension module, you'll
have to rebuild the UDUNITS library using the option "-fPIC".

Try this:

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

2. Execute the command "make distclean".

3. Set the environment variables like the last time.

4. Ensure that the CFLAGS environment variable contains the string
   "-fPIC".  For example

       export CFLAGS='-fPIC -O'

5. Rebuild the UDUNITS package as before, starting with executing
   the configure script.

Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: RTP-583073
Department: Support UDUNITS
Priority: Normal
Status: Closed