Dear All,
I recently got a 64bit machine and had netcdf-3.6.2 installed. Then I tried
to install ncdf package but got the following error message when using
netcdflib:

gcc -std=gnu99 -I/home/ljin/share/R-2.6.1/include
-I/home/ljin/share/R-2.6.1/include
-I. -I/usr/local/include    -fpic  -g -O2 -c ncdf2.c -o ncdf2.o
gcc -std=gnu99 -I/home/ljin/share/R-2.6.1/include
-I/home/ljin/share/R-2.6.1/include
-I. -I/usr/local/include    -fpic  -g -O2 -c ncdf3.c -o ncdf3.o
ncdf3.c: In function 'R_nc_get_vara_charvarid':
ncdf3.c:221: warning: assignment discards qualifiers from pointer target
type
ncdf3.c: In function 'R_nc_get_vara_numvarid':
ncdf3.c:267: warning: assignment discards qualifiers from pointer target
type
gcc -std=gnu99 -I/home/ljin/share/R-2.6.1/include
-I/home/ljin/share/R-2.6.1/include
-I. -I/usr/local/include    -fpic  -g -O2 -c ncdf.c -o ncdf.o
ncdf.c: In function 'R_nc_ttc_to_nctype':
ncdf.c:424: warning: implicit declaration of function 'exit'
ncdf.c:424: warning: incompatible implicit declaration of built-in function
'exit'
gcc -std=gnu99 -shared -L/usr/local/lib64 -o ncdf.so ncdf2.o ncdf3.o
ncdf.o-L. -lnetcdf
/usr/bin/ld: /usr/local/lib/libnetcdf.a(attr.o): relocation R_X86_64_32
against `a local symbol' can not be used when making a shared object;
recompile with -fPIC
/usr/local/lib/libnetcdf.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [ncdf.so] Error 1
chmod: cannot access `/home/ljin/share/R-2.6.1/library/ncdf/libs/*': No such
file or directory
ERROR: compilation failed for package 'ncdf'
** Removing '/home/ljin/share/R-2.6.1/library/ncdf'

========
I had no problem when I install the ncdf package on my 32bit linux machine.
Could anyone help me with the installation on 64bit machine?

Thanks!

Linda

	[[alternative HTML version deleted]]

