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

[Support #RTP-583073]: Help


The file "make.log" contained this

make[1]: Entering directory 
gcc -c -g -O2 -I../port/misc -I../port/cfortran 
 -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         \
-ludunits -lm         \
 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.

Steve Emmerson

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