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

[netCDF #YOY-255588]: gmake error



Hello,

It appears that you trying to create a shared library linking against an older 
static netCDF library.  You will need to pass --disable-shared when configuring 
netCDF-Fortran, or recompile a shared version (or static, with --fPIC) of the 
netCDF-C library.

I hope this helps, have a great day,

-Ward

> Hi,I tried to install "netcdf-fortran-4.4.4" in linux CentOS, but I 
> encountered an error after gmake command.
> My linux features are:$uname -aLinux localhost.localdomain 
> 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 
> x86_64 GNU/Linux
> 
> $ cat /etc/redhat-release CentOS release 6.5 (Final)
> $ ncdump -versionnetcdf library version "4.0" of Nov 18 2016 14:00:42 $
> 
> $ NCDIR=/usr/local \> LD_LIBRARY_PATH=${NCDIR}/lib:$LD_LIBRARY_PATH \> 
> CPPFLAGS=-I${NCDIR}/include \LDFLAGS=-L${NCDIR}/lib ./configure 
> --prefix=/usr/local
> $ gmake........../usr/bin/ld: /usr/local/lib/libnetcdf.a(attr.o): relocation 
> R_X86_64_32 against `.rodata' can not be used when making a shared object; 
> recompile with -fPIC
> /usr/local/lib/libnetcdf.a: could not read symbols: Bad valuecollect2: ld 
> returned 1 exit statusgmake[3]: *** [libnetcdff.la] Error 1
> I'll be thankful if I hear from you.
> SincerelyEhsan Taghizadeh
> 


Ticket Details
===================
Ticket ID: YOY-255588
Department: Support netCDF
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.