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

[UDUNITS #FQI-238313]: HQH-143932: CDFconvert Configuration: problem with udunits2


> There is problem in step 5 (see below).
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> making `dynamic' in directory /opt/udunits-1.12.9/src/perl
> make[1]: Entering directory `/opt/udunits-1.12.9/src/perl'
> 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        \
> -L/opt/udunits-1.12.9/src/perl/../lib -ludunits -lm          \
> /usr/bin/ld: /opt/udunits-1.12.9/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
> /opt/udunits-1.12.9/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 `/opt/udunits-1.12.9/src/perl'
> make: *** [perl/dynamic] Error 1

It looks like the option "-fPIC" must be explicitly given to the C compiler.

Try again, starting with the command "make distclean", only when you execute 
the configure(1) script, use this command:

    ./configure CFLAGS='-fPIC -O' CPPFLAGS=-Df2cFortran ...

Steve Emmerson

Ticket Details
Ticket ID: FQI-238313
Department: Support UDUNITS
Priority: Normal
Status: Closed

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.