[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #THZ-511849]: netcdf 4.1.3 compiling
- Subject: [netCDF #THZ-511849]: netcdf 4.1.3 compiling
- Date: Tue, 04 Sep 2012 14:11:48 -0600
> Full Name: Kopinjol Baishya
> Email Address: address@hidden
> Organization: University of illinois
> Package Version:
> Operating System:
> Hardware:
> Description of problem: Hi,
>
> I am running into a similar problem with compiling netcdf-4.1.3. Thr
> library compiles very well. But when i type make check I get an error.
>
> Here is my configure line:
>
> ./configure --prefix=/home/kbaish2/DFT-GW-Codes/netcdf-4.1.3 FC=gfortran44
> CC=gcc44 --with-zlib=/home/kbaish2/DFT-GW-Codes/zlib-1.2.7 --disable-dap
> --disable-netcdf-4
>
> And Here is the error message I get:
>
> make[1]: Entering directory `/home/kbaish2/DFT-GW-Codes/netcdf-4.1.3/nf_test'
> make nf_test tst_f77_v2 ftest tst_f90
> make[2]: Entering directory `/home/kbaish2/DFT-GW-Codes/netcdf-4.1.3/nf_test'
> /bin/sh ../libtool --tag=F77 --mode=link gfortran44 -I../fortran -I../include
> -I../f90 -g -O2 -L/home/kbaish2/DFT-GW-Codes/hdf5-1.8.9/lib -o nf_test
> test_get.o test_put.o nf_error.o nf_test.o test_read.o test_write.o util.o
> fortlib.o ../fortran/libnetcdff.la -lm -lcurl
> libtool: link: gfortran44 -I../fortran -I../include -I../f90 -g -O2 -o
> .libs/nf_test test_get.o test_put.o nf_error.o nf_test.o test_read.o
> test_write.o util.o fortlib.o -L/home/kbaish2/DFT-GW-Codes/hdf5-1.8.9/lib
> ../fortran/.libs/libnetcdff.so
> /home/kbaish2/DFT-GW-Codes/netcdf-4.1.3/liblib/.libs/libnetcdf.so -lm -lcurl
> -Wl,-rpath -Wl,/home/kbaish2/DFT-GW-Codes/netcdf-4.1.3/lib
> test_get.o: In function `test_nf_get_att_double_':
> /home/kbaish2/DFT-GW-Codes/netcdf-4.1.3/nf_test/test_get.F:5511: undefined
> reference to `nf_open_'
> /home/kbaish2/DFT-GW-Codes/netcdf-4.1.3/nf_test/test_get.F:5521: undefined
> reference to `nf_get_att_double_'
> /home/kbaish2/DFT-GW-Codes/netcdf-4.1.3/nf_test/test_get.F:5526: undefined
> reference to `nf_get_att_double_'
> /home/kbaish2/DFT-GW-Codes/netcdf-4.1.3/nf_test/test_get.F:5529: undefined
> reference to `nf_get_att_double_'
Could you try a clean build again, this time specifying the environment
variable CFLAGS to include -DgFortran before you run the configure script?
Please let us know if that fixes things. Thanks.
--Russ
> I have also checked that I have used same compilers for hdf5 and
> netcdf.4.1.3 and the compilers are the same gcc44 and gfortran44.
>
> I would really appreciate any help.
>
> Thanks in advance.
> kopinjol
>
>
Russ Rew UCAR Unidata Program
address@hidden http://www.unidata.ucar.edu
Ticket Details
===================
Ticket ID: THZ-511849
Department: Support netCDF
Priority: Normal
Status: Closed