Hi,

I am using CentOS 5.5 x86_86. I've managed to successfully compile
sage-4.5.2.

Now i wish to add netcdf capabilities to sage. So as instructed in the
python version of netcdf -- netCDF4-0.9.1 --- i have installed the
dependencies hdf5, szip and netcdf-4.1.1.

On running sage -python setup.py install in the netCDF4-0.9.1
directory is get the error:

/usr/bin/ld: /usr/local/pkgs/netcdf_4.1.1-old/lib/
libnetcdf.a(nc4attr.o): relocation R_X86_64_32 against `a local
symbol' can not be used when making a shared object; recompile with -
fPIC
/usr/local/pkgs/netcdf_4.1.1-old/lib/libnetcdf.a: could not read
symbols: Bad value
collect2: ld returned 1 exit status
/usr/bin/ld: /usr/local/pkgs/netcdf_4.1.1-old/lib/
libnetcdf.a(nc4attr.o): relocation R_X86_64_32 against `a local
symbol' can not be used when making a shared object; recompile with -
fPIC
/usr/local/pkgs/netcdf_4.1.1-old/lib/libnetcdf.a: could not read
symbols: Bad value
collect2: ld returned 1 exit status
error: Command "gcc -pthread -shared build/temp.linux-x86_64-2.6/
netCDF4.o -L/usr/local/pkgs/netcdf_4.1.1-old/lib -L/usr/local/pkgs/
hdf_5-1.8.5/lib -L/usr/local/pkgs/szip_2.1/lib -L/usr/local/pkgs/
sage_4/local/lib -Wl,-R/usr/local/pkgs/netcdf_4.1.1-old/lib -Wl,-R/usr/
local/pkgs/hdf_5-1.8.5/lib -Wl,-R/usr/local/pkgs/szip_2.1/lib -lnetcdf
-lhdf5_hl -lhdf5 -lz -lsz -lpython2.6 -o build/lib.linux-x86_64-2.6/
netCDF4.so" failed with exit status 1

When i recompile netcdf-4.1.1 with CFLAGS=-fPIC i no longer get this
error. It this a bug in sage or what i have done is correct? Will
there be any further problems in the netcdf-4.1.1 installation?

Thanks.

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to