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

[netCDF #FYB-209020]: ARWpost



Hi Igor,

Maybe your netCDF Fortran library is installed separately from the netCDF C 
library.

A way to tell is to look for a library with the base name libnetcdff instead of 
libnetcdf
(note the extra "f") in the directory where your netCDF libraries are installed,
/usr/local/netcdf/lib.  If you find a libnetcdff.a or libnetcdff.so there, then 
you need
to use "-lnetcdff -lnetcdf" instead of just "-lnetcdf" in your ld flags.

--Russ

> Dear all,
> netcdf, WRF, WPS all OK!
> 
> But
> 
> **** Compiling ARWpost ****
> 
> gfortran -ffree-form -O -fno-second-underscore -fconvert=big-endian 
> -frecord-marker=4   -o ARWpost.exe module_model_basics.o constants_module.o 
> gridinfo_module.o ARWpost.o input_module.o output_module.o module_map_utils.o 
> misc_definitions_module.o module_date_pack.o module_debug.o 
> process_domain_module.o module_get_file_names.o module_interp.o 
> module_basic_arrays.o module_diagnostics.o module_arrays.o module_pressure.o 
> module_calc_height.o module_calc_pressure.o module_calc_theta.o 
> module_calc_tk.o module_calc_tc.o module_calc_td.o module_calc_td2.o 
> module_calc_rh.o module_calc_rh2.o module_calc_uvmet.o module_calc_slp.o 
> module_calc_dbz.o module_calc_cape.o module_calc_wdir.o module_calc_wspd.o 
> module_calc_clfr.o  \
> -L/usr/local/netcdf/lib -I/usr/local/netcdf/include  -lnetcdf
> input_module.o: In function `__input_module_MOD_input_init':
> input_module.f:(.text+0x195): undefined reference to `nf_open_'
> input_module.f:(.text+0x1e1): undefined reference to `nf_inq_'
> input_module.f:(.text+0x413): undefined reference to `nf_inq_dim_'
> input_module.o: In function `__input_module_MOD_read_next_field':
> input_module.f:(.text+0x5d7): undefined reference to `nf_inq_var_'
> input_module.f:(.text+0x922): undefined reference to `ncvgt_'
> input_module.f:(.text+0xa62): undefined reference to `ncvgt_'
> input_module.f:(.text+0xe27): undefined reference to `ncvgt_'
> input_module.f:(.text+0xfaf): undefined reference to `ncvgt_'
> input_module.f:(.text+0x111a): undefined reference to `nf_get_att_text_'
> input_module.f:(.text+0x1146): undefined reference to `nf_get_att_text_'
> input_module.f:(.text+0x1239): undefined reference to `nf_get_att_text_'
> input_module.f:(.text+0x12c5): undefined reference to `nf_get_att_text_'
> input_module.o: In function `__input_module_MOD_read_global_attrs':
> input_module.f:(.text+0x1df2): undefined reference to `nf_get_att_text_'
> input_module.f:(.text+0x2140): undefined reference to `nf_get_att_int_'
> input_module.f:(.text+0x216b): undefined reference to `nf_get_att_int_'
> input_module.f:(.text+0x2196): undefined reference to `nf_get_att_int_'
> input_module.f:(.text+0x21e3): undefined reference to `nf_get_att_text_'
> input_module.f:(.text+0x2207): undefined reference to `nf_get_att_int_'
> input_module.f:(.text+0x222b): undefined reference to `nf_get_att_real_'
> input_module.f:(.text+0x224f): undefined reference to `nf_get_att_real_'
> input_module.f:(.text+0x2273): undefined reference to `nf_get_att_real_'
> input_module.f:(.text+0x2297): undefined reference to `nf_get_att_real_'
> input_module.f:(.text+0x22bb): undefined reference to `nf_get_att_real_'
> input_module.o:input_module.f:(.text+0x22df): more undefined references to 
> `nf_get_att_real_' follow
> input_module.o: In function `__input_module_MOD_read_global_attrs':
> input_module.f:(.text+0x2481): undefined reference to `nf_inq_attname_'
> input_module.f:(.text+0x24a4): undefined reference to `nf_inq_att_'
> input_module.f:(.text+0x251d): undefined reference to `nf_get_att_text_'
> input_module.f:(.text+0x2698): undefined reference to `nf_get_att_int_'
> input_module.f:(.text+0x27d3): undefined reference to `nf_get_att_real_'
> input_module.o: In function `__input_module_MOD_input_close':
> input_module.f:(.text+0x2917): undefined reference to `nf_close_'
> input_module.o: In function `__input_module_MOD_arw_get_next_time':
> input_module.f:(.text+0x2964): undefined reference to `nf_inq_varid_'
> input_module.f:(.text+0x29a0): undefined reference to `nf_inq_var_'
> input_module.f:(.text+0x2a40): undefined reference to `nf_get_vara_text_'
> module_interp.o: In function `__module_interp_MOD_get_interp_info':
> module_interp.f:(.text+0x2c1a): undefined reference to `nf_inq_varid_'
> module_interp.f:(.text+0x2c3f): undefined reference to `nf_inq_varid_'
> module_interp.f:(.text+0x2d05): undefined reference to `nf_inq_varid_'
> module_interp.f:(.text+0x2d2a): undefined reference to `nf_inq_varid_'
> module_interp.f:(.text+0x2d50): undefined reference to `nf_inq_varid_'
> module_interp.o:module_interp.f:(.text+0x2d75): more undefined references to 
> `nf_inq_varid_' follow
> module_interp.o: In function `__module_interp_MOD_get_interp_info':
> module_interp.f:(.text+0x33d0): undefined reference to `nf_inq_var_'
> module_interp.f:(.text+0x3572): undefined reference to `ncvgt_'
> module_interp.f:(.text+0x3812): undefined reference to `nf_inq_varid_'
> module_interp.f:(.text+0x384d): undefined reference to `ncvgt_'
> module_interp.o: In function `__module_interp_MOD_get_interp_array':
> module_interp.f:(.text+0x4071): undefined reference to `nf_inq_varid_'
> module_interp.f:(.text+0x4096): undefined reference to `nf_inq_varid_'
> module_interp.f:(.text+0x415e): undefined reference to `nf_inq_varid_'
> module_interp.f:(.text+0x41ab): undefined reference to `nf_inq_var_'
> module_interp.f:(.text+0x4392): undefined reference to `ncvgt_'
> module_interp.f:(.text+0x4892): undefined reference to `nf_inq_varid_'
> module_interp.f:(.text+0x48df): undefined reference to `nf_inq_var_'
> module_interp.f:(.text+0x4a5f): undefined reference to `ncvgt_'
> module_interp.f:(.text+0x4c66): undefined reference to `nf_inq_varid_'
> module_interp.f:(.text+0x4c9c): undefined reference to `ncvgt_'
> module_interp.f:(.text+0x4e93): undefined reference to `nf_inq_varid_'
> module_interp.f:(.text+0x4edf): undefined reference to `nf_inq_var_'
> module_interp.f:(.text+0x5002): undefined reference to `ncvgt_'
> module_interp.f:(.text+0x513b): undefined reference to `nf_inq_varid_'
> module_interp.f:(.text+0x5187): undefined reference to `nf_inq_var_'
> module_interp.f:(.text+0x51e9): undefined reference to `ncvgt_'
> module_interp.f:(.text+0x5334): undefined reference to `nf_inq_varid_'
> module_interp.f:(.text+0x5381): undefined reference to `nf_inq_var_'
> module_interp.f:(.text+0x5539): undefined reference to `ncvgt_'
> module_interp.f:(.text+0x587f): undefined reference to `nf_inq_varid_'
> module_interp.f:(.text+0x58b3): undefined reference to `ncvgt_'
> module_interp.f:(.text+0x5e00): undefined reference to `nf_inq_varid_'
> module_interp.f:(.text+0x5e4c): undefined reference to `nf_inq_var_'
> module_interp.f:(.text+0x6208): undefined reference to `ncvgt_'
> module_interp.f:(.text+0x63bf): undefined reference to `nf_inq_varid_'
> module_interp.f:(.text+0x63f3): undefined reference to `ncvgt_'
> module_interp.o: In function `__module_interp_MOD_get_keep_array':
> module_interp.f:(.text+0x66c5): undefined reference to `nf_inq_varid_'
> module_interp.f:(.text+0x6868): undefined reference to `nf_inq_varid_'
> module_interp.f:(.text+0x6966): undefined reference to `nf_inq_var_'
> module_interp.f:(.text+0x6b39): undefined reference to `ncvgt_'
> module_interp.f:(.text+0x6d18): undefined reference to `ncvgt_'
> module_interp.f:(.text+0x6ece): undefined reference to `ncvgt_'
> collect2: ld returned 1 exit status
> make: [ARWpost.exe] Error 1 (ignored)
> 
> 
> 
Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: FYB-209020
Department: Support netCDF
Priority: Normal
Status: Closed