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

[netCDF #QLH-492572]: lnetcdf



Hamed,

> I used this commands for installing the NetCDF
> ./configure --prefix=/home/ed/local --disable-netcdf-4

Using the configure argument "--prefix=/home/ed/local" means you want
the library to be installed in the directory /home/ed/local/lib, the
library include files to be installed in /home/ed/local/include, and
so on.  That's OK if that is what you intended, but I suspect you were
just copying the example in the "Quick Instructions for Installing
NetCDF on Unix", where it says

  (Replace “/home/ed/local” with the name of the directory where
  netCDF is to be installed.)

> make check install
> and from Synaptic Package Manager I installed the libnetcdf6 and 
> libnetcdf-dev .
> But, I am so confused with this error(at the P.S.) in the case of
> compiling the wrfcamx. One of my friend said that you compiled
> netcdf with an option that split libraries in more than one file
> (if the case,you need to link not only "netcdf", but also the
> other ".a" files....in the proper order)
> Could you please help me out at this issue.

The attempt to link wrfcamx below shows it is looking for the netCDF
libraries as if they had been installed using the configure argument
--prefix=/home/modeling/Netcdf.

So try starting over with

  ./configure --prefix=/home/modeling/Netcdf --disable-netcdf-4
  make check
  make install

and make sure the "make check" completes successfully before running
"make install".  If that completes successfully, then the libraries
will have been installed where your wrfcamx compiling expects them.
 
> P.S. wrfcamx compiling out-put message:
> 
> fort -c -o wrf_netcdf.o -O2 -mieee-fp -align dcommons -convert
> big_endian -ipo -static -I/home/modeling/Netcdf/include wrf_netcdf.f90
> ifort
> -c -o wrf_fields.o -O2 -mieee-fp -align dcommons -convert big_endian
> -ipo -static -I/home/modeling/Netcdf/include wrf_fields.f90
> ifort -c
> -o camx_fields.o -O2 -mieee-fp -align dcommons -convert big_endian -ipo
> -static -I/home/modeling/Netcdf/include camx_fields.f90
> ifort -c -o clddiag.o -O2 -mieee-fp -align dcommons -convert
> big_endian -ipo -static -I/home/modelin> g/Netcdf/include clddiag.f90
> ifort
> -c -o interp_lcp.o -O2 -mieee-fp -align dcommons -convert big_endian
> -ipo -static -I/home/modeling/Netcdf/include interp_lcp.f90
> ifort -c
> -o interp_cart.o -O2 -mieee-fp -align dcommons -convert big_endian -ipo
> -static -I/home/modeling/Netcdf/include interp_cart.f90
> ifort -c -o juldate.o -O2 -mieee-fp -align dcommons -convert
> big_endian -ipo -static -I/home/modelin> g/Netcdf/include juldate.f90
> ifort
> -c -o kvcalc_acm2.o -O2 -mieee-fp -align dcommons -convert big_endian
> -ipo -static -I/home/modeling/Netcdf/include kvcalc_acm2.f90
> ifort -c
> -o kvcalc_tke.o -O2 -mieee-fp -align dcommons -convert big_endian -ipo
> -static -I/home/modeling/Netcdf/include kvcalc_tke.f90
> ifort -c -o
> kvcalc_cmaq.o -O2 -mieee-fp -align dcommons -convert big_endian -ipo
> -static -I/home/modeling/Netcdf/include kvcalc_cmaq.f90
> ifort -c -o
> kvcalc_ob70.o -O2 -mieee-fp -align dcommons -convert big_endian -ipo
> -static -I/home/modeling/Netcdf/include kvcalc_ob70.f90
> ifort -c -o lcpgeo.o -O2 -mieee-fp -align dcommons -convert
> big_endian -ipo -static -I/home/modeling> /Netcdf/include lcpgeo.f90
> ifort
> -c -o micromet.o -O2 -mieee-fp -align dcommons -convert big_endian -ipo
> -static -I/home/modeling/Netcdf/include micromet.f90
> ifort -c -o pcpdiag.o -O2 -mieee-fp -align dcommons -convert
> big_endian -ipo -static -I/home/modelin> g/Netcdf/include pcpdiag.f90
> ifort -c -o wrfcamx.o -O2 -mieee-fp -align dcommons -convert
> big_endian -ipo -static -I/home/modelin> g/Netcdf/include wrfcamx.f90
> ifort -c -o readwrf.o -O2 -mieee-fp -align dcommons -convert
> big_endian -ipo -static -I/home/modelin> g/Netcdf/include readwrf.f90
> ifort -c -o stats.o -O2 -mieee-fp -align dcommons -convert
> big_endian -ipo -static -I/home/modeling/> Netcdf/include stats.f90
> ifort -c -o utmgeo.o -O2 -mieee-fp -align dcommons -convert
> big_endian -ipo -static -I/home/modeling> /Netcdf/include utmgeo.f90
> ifort -c -o vertmap.o -O2 -mieee-fp -align dcommons -convert
> big_endian -ipo -static -I/home/modelin> g/Netcdf/include vertmap.f90
> ifort
> -o wrfcamx.linux -O2 -mieee-fp -align dcommons -convert big_endian -ipo
> -static wrf_netcdf.o wrf_fields.o camx_fields.o clddiag.o interp_lcp.o
> interp_cart.o juldate.o kvcalc_acm2.o kvcalc_tke.o kvcalc_cmaq.o
> kvcalc_ob70.o lcpgeo.o micromet.o pcpdiag.o wrfcamx.o readwrf.o stats.o
> utmgeo.o vertmap.o  -L/home/modeling/Netcdf/bin -lnetcdf -lm
> -I/home/modeling/Netcdf/include
> ipo: warning #11020: unresolved ncvgt_
>         Referenced in /tmp/ipo_ifortIyFnUU.o
> ipo: warning #11020: unresolved nf_inq_dimlen_
>         Referenced in /tmp/ipo_ifortIyFnUU.o
> ipo: warning #11020: unresolved nf_inq_var_
>         Referenced in /tmp/ipo_ifortIyFnUU.o
> ipo: warning #11020: unresolved ncvid_
>         Referenced in /tmp/ipo_ifortIyFnUU.o
> ipo: warning #11020: unresolved ncclos_
>         Referenced in /tmp/ipo_ifortIyFnUU.o
> ipo: warning #11020: unresolved nf_get_att_real_
>         Referenced in /tmp/ipo_ifortIyFnUU.o
> ipo: warning #11020: unresolved ncopn_
>         Referenced in /tmp/ipo_ifortIyFnUU.o
> ipo: warning #11020: unresolved nf_get_att_int_
>         Referenced in /tmp/ipo_ifortIyFnUU.o
> ipo: warning #11020: unresolved nf_get_vara_text_
>         Referenced in /tmp/ipo_ifortIyFnUU.o
> ipo: warning #11020: unresolved nf_close_
>         Referenced in /tmp/ipo_ifortIyFnUU.o
> ipo: warning #11020: unresolved nf_inq_varid_
>         Referenced in /tmp/ipo_ifortIyFnUU.o
> ipo: warning #11020: unresolved nf_inq_
>         Referenced in /tmp/ipo_ifortIyFnUU.o
> ipo: warning #11020: unresolved nf_open_
>         Referenced in /tmp/ipo_ifortIyFnUU.o
> ipo: warning #11020: unresolved nf_get_att_text_
>         Referenced in /tmp/ipo_ifortIyFnUU.o
> ipo: warning #11020: unresolved __rel_iplt_end
>         Referenced in libc.a(elf-init.o)
> ipo: warning #11020: unresolved __rel_iplt_start
>         Referenced in libc.a(elf-init.o)
> ipo: remark #11000: performing multi-file optimizations
> ipo: remark #11005: generating object file /tmp/ipo_ifortIyFnUU.o
> /tmp/ipo_ifortIyFnUU.o: In function `MAIN__':
> ipo_out.f:(.text+0x2396): undefined reference to `nf_open_'
> ipo_out.f:(.text+0x256c): undefined reference to `nf_inq_'
> ipo_out.f:(.text+0x258b): undefined reference to `nf_inq_varid_'
> ipo_out.f:(.text+0x2684): undefined reference to `ncvid_'
> ipo_out.f:(.text+0x26c0): undefined reference to `nf_inq_var_'
> ipo_out.f:(.text+0x26f2): undefined reference to `nf_inq_dimlen_'
> ipo_out.f:(.text+0x2854): undefined reference to `nf_get_vara_text_'
> ipo_out.f:(.text+0x55f4): undefined reference to `nf_close_'
> /tmp/ipo_ifortIyFnUU.o: In function `readwrf_.':
> ipo_out.f:(.text+0xa5a3): undefined reference to `nf_inq_varid_'
> ipo_out.f:(.text+0xa5fd): undefined reference to `nf_inq_varid_'
> ipo_out.f:(.text+0xa657): undefined reference to `nf_inq_varid_'
> ipo_out.f:(.text+0xa6c1): undefined reference to `nf_inq_varid_'
> ipo_out.f:(.text+0xa72b): undefined reference to `nf_inq_varid_'
> /tmp/ipo_ifortIyFnUU.o:ipo_out.f:(.text+0xa795): more undefined references to 
> `nf_inq_varid_' follow
> /tmp/ipo_ifortIyFnUU.o: In function `readwrf_.':
> ipo_out.f:(.text+0x10a0a): undefined reference to `nf_get_att_int_'
> ipo_out.f:(.text+0x10ad6): undefined reference to `nf_get_att_int_'
> ipo_out.f:(.text+0x10af0): undefined reference to `nf_get_att_int_'
> ipo_out.f:(.text+0x10b0a): undefined reference to `nf_get_att_int_'
> ipo_out.f:(.text+0x1155c): undefined reference to `nf_get_att_real_'
> ipo_out.f:(.text+0x11576): undefined reference to `nf_get_att_real_'
> ipo_out.f:(.text+0x11590): undefined reference to `nf_get_att_real_'
> ipo_out.f:(.text+0x115aa): undefined reference to `nf_get_att_real_'
> ipo_out.f:(.text+0x115c4): undefined reference to `nf_get_att_real_'
> /tmp/ipo_ifortIyFnUU.o:ipo_out.f:(.text+0x115de): more undefined
> references to `nf_get_att_real_' fo> llow
> /tmp/ipo_ifortIyFnUU.o: In function `readwrf_.':
> ipo_out.f:(.text+0x1167c): undefined reference to `nf_get_att_int_'
> ipo_out.f:(.text+0x11696): undefined reference to `nf_get_att_int_'
> ipo_out.f:(.text+0x116ad): undefined reference to `nf_get_att_int_'
> ipo_out.f:(.text+0x116c4): undefined reference to `nf_get_att_int_'
> ipo_out.f:(.text+0x129e3): undefined reference to `nf_get_att_text_'
> ipo_out.f:(.text+0x12a5f): undefined reference to `nf_inq_varid_'
> /tmp/ipo_ifortIyFnUU.o: In function `wrf_netcdf_mp_get_var_2d_real_cdf_.':
> ipo_out.f:(.text+0x19d6e): undefined reference to `ncvid_'
> ipo_out.f:(.text+0x19d98): undefined reference to `nf_inq_var_'
> ipo_out.f:(.text+0x19e74): undefined reference to `nf_inq_dimlen_'
> ipo_out.f:(.text+0x1a119): undefined reference to `ncvgt_'
> /tmp/ipo_ifortIyFnUU.o: In function `wrf_netcdf_mp_get_var_3d_real_cdf_.':
> ipo_out.f:(.text+0x1a161): undefined reference to `ncvid_'
> ipo_out.f:(.text+0x1a18b): undefined reference to `nf_inq_var_'
> ipo_out.f:(.text+0x1a26a): undefined reference to `nf_inq_dimlen_'
> ipo_out.f:(.text+0x1a5c4): undefined reference to `ncvgt_'
> /tmp/ipo_ifortIyFnUU.o: In function `wrf_netcdf_mp_get_var_1d_real_cdf_.':
> ipo_out.f:(.text+0x1fbce): undefined reference to `ncvid_'
> ipo_out.f:(.text+0x1fbf8): undefined reference to `nf_inq_var_'
> ipo_out.f:(.text+0x1fcd4): undefined reference to `nf_inq_dimlen_'
> ipo_out.f:(.text+0x1fef9): undefined reference to `ncvgt_'
> /tmp/ipo_ifortIyFnUU.o: In function `wrf_netcdf_mp_get_var_2d_int_cdf_':
> ipo_out.f:(.text+0x2ccbf): undefined reference to `ncvid_'
> ipo_out.f:(.text+0x2cceb): undefined reference to `nf_inq_var_'
> ipo_out.f:(.text+0x2cdbc): undefined reference to `nf_inq_dimlen_'
> ipo_out.f:(.text+0x2d051): undefined reference to `ncvgt_'
> /tmp/ipo_ifortIyFnUU.o: In function `wrf_netcdf_mp_get_gl_att_real_cdf_':
> ipo_out.f:(.text+0x2d08d): undefined reference to `ncopn_'
> ipo_out.f:(.text+0x2d13a): undefined reference to `nf_get_att_real_'
> ipo_out.f:(.text+0x2d149): undefined reference to `ncclos_'
> /tmp/ipo_ifortIyFnUU.o: In function `wrf_netcdf_mp_get_gl_att_int_cdf_':
> ipo_out.f:(.text+0x2d28d): undefined reference to `ncopn_'
> ipo_out.f:(.text+0x2d33a): undefined reference to `nf_get_att_int_'
> ipo_out.f:(.text+0x2d349): undefined reference to `ncclos_'
> /tmp/ipo_ifortIyFnUU.o: In function `wrf_netcdf_mp_get_dims_cdf_':
> ipo_out.f:(.text+0x2d490): undefined reference to `ncopn_'
> ipo_out.f:(.text+0x2d53d): undefined reference to `ncvid_'
> ipo_out.f:(.text+0x2d56d): undefined reference to `nf_inq_var_'
> ipo_out.f:(.text+0x2d642): undefined reference to `nf_inq_dimlen_'
> ipo_out.f:(.text+0x2d6e5): undefined reference to `ncclos_'
> /tmp/ipo_ifortIyFnUU.o: In function `wrf_netcdf_mp_get_times_cdf_':
> ipo_out.f:(.text+0x2d793): undefined reference to `ncopn_'
> ipo_out.f:(.text+0x2d84a): undefined reference to `ncvid_'
> ipo_out.f:(.text+0x2d881): undefined reference to `nf_inq_var_'
> ipo_out.f:(.text+0x2d917): undefined reference to `nf_inq_dimlen_'
> ipo_out.f:(.text+0x2da1c): undefined reference to `nf_get_vara_text_'
> ipo_out.f:(.text+0x2db67): undefined reference to `ncclos_'
> make: *** [wrfcamx] Error 1

--Russ

Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: QLH-492572
Department: Support netCDF
Priority: Normal
Status: Closed