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

[UDUNITS #RFS-594109]: problem

Dear Taewook Park,

> I met a problem during installing "udunits-1.12.4".
> I attached log files.
> "configure" was OK, but "make" made error messages.

The file "make.log" contained the following:

/usr/bin/gcc -c  -I../lib -I../port/misc -D_REENTRANT -D_GNU_SOURCE 
-fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe 
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
--param=ssp-buffer-size=4 -m64 -mtune=generic   -DVERSION=\"1.12.4\" 
-DXS_VERSION=\"1.12.4\" -fPIC 
"-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE"  -DNDEBUG 
-Df2cFortran UDUNITS.c
UDUNITS.xs: In function 'constant':
UDUNITS.xs:160: warning: label 'not_there' defined but not used
UDUNITS.c: At top level:
UDUNITS.xs:14: warning: 'not_here' defined but not used
Running Mkbootstrap for UDUNITS ()
chmod 644 UDUNITS.bs
rm -f blib/arch/auto/UDUNITS/UDUNITS.so
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
 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 
make: *** [perl/dynamic] Error 1

Apparently, the UDUNITS library needed to be compiled with the
"-fPIC" option in order for the UDUNITS Perl extension module to
be built.

Do you need the UDUNITS Perl extension module?  If not, then do the

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

2.  Execute the command "make distclean".

3.  Set any environment variables as before.

4.  Set the environment variable PERL to the empty string.  For

        export PERL=''

5.  Continue with the build process starting with the execution of
    the "configure" script.

If you do need the PERL extension module, then following the
above steps after replacing step 4 with the following:

4.  Set the environment variable CFLAGS to the string "-fPIC -m64 -O2".
    For example:

        export CFLAGS="-fPIC -m64 -O2"

Please let me know if this helps.

Steve Emmerson

Ticket Details
Ticket ID: RFS-594109
Department: Support UDUNITS
Priority: Normal
Status: Closed