Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

Re: [netcdfgroup] [ldm-users] ERROR in linking netcdf libraries (ld: 0711-317 ERROR: Undefined symbol: .nf_open)

Very helpful is also the little tool nc-config that gets installed with your 
netcdf distribution. If you run "nc-config --all", it will tell you the 
appropriate C/C++/Fortran linker flags. They sometimes come in a weird order, 
in particular when you build netcdf against the hdf5 libraries.

Dominikus

> -----Original Message-----
> From: netcdfgroup-bounces@xxxxxxxxxxxxxxxx 
> [mailto:netcdfgroup-bounces@xxxxxxxxxxxxxxxx] On Behalf Of 
> Kevin W. Thomas
> Sent: Monday, 15 October 2012 4:10 a.m.
> To: gerry.creager@xxxxxxxx; s.arunramanathan19@xxxxxxxxx
> Cc: netcdfgroup@xxxxxxxxxxxxxxxx; ldm-users@xxxxxxxxxxxxxxxx; 
> idvusers@xxxxxxxxxxxxxxxx; netcdf-porting@xxxxxxxxxxxxxxxx; 
> libcf@xxxxxxxxxxxxxxxx
> Subject: Re: [netcdfgroup] [ldm-users] ERROR in linking 
> netcdf libraries (ld: 0711-317 ERROR: Undefined symbol: .nf_open)
> 
> >Arun
> >
> >Did you also download the Fortran element of NetCDF4? Grab, and run 
> >make on this: 
> >http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-4.0.tar.gz
> >and see if things don't get better. NetCDF has separated C 
> and Fortran 
> >bindings. I believe this is in the belief that no one uses Fortran 
> >anymore.
> >
> >gerry
> 
> Linkage rules have changed with netCDF.  It is now "-lnetcdff 
> -lnetcdf".  The Fortran interface is in its own library, libnetcdff.
> 
>       Kevin W. Thomas
>       Center for Analysis and Prediction of Storms
>       University of Oklahoma
>       Norman, Oklahoma
>       Email:  kwthomas@xxxxxx
> 
> >On Fri, Oct 12, 2012 at 1:42 PM, Arun Ramanathan 
> ><s.arunramanathan19@xxxxxxxxx> wrote:
> >> hi,
> >>     I have installed netcdf version 4.1.3 . I ran make check and i 
> >> did not get any error and my netcdf installation was fine. i used 
> >> disable netcdf 4 option during configuring netcdf. But 
> when i compile 
> >> some program involving netcdf commands like nf_open or 
> NF90_OPEN .,etc i get the following errors.
> >>
> >>
> >> **** Compiling ARWpost ****
> >>
> >>         xlf90_r -qfree=f90 -L/home/mandal/arun/lib -lm -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/home/mandal/arun/netcdf/lib 
> >> -I/home/mandal/arun/netcdf/include  -lnetcdf
> >> ld: 0711-317 ERROR: Undefined symbol: .nf_open
> >> ld: 0711-317 ERROR: Undefined symbol: .nf_inq
> >> ld: 0711-317 ERROR: Undefined symbol: .nf_inq_dim
> >> ld: 0711-317 ERROR: Undefined symbol: .nf_inq_var
> >> ld: 0711-317 ERROR: Undefined symbol: .ncvgt
> >> ld: 0711-317 ERROR: Undefined symbol: .nf_get_att_text
> >> ld: 0711-317 ERROR: Undefined symbol: .nf_get_att_int
> >> ld: 0711-317 ERROR: Undefined symbol: .nf_get_att_real
> >> ld: 0711-317 ERROR: Undefined symbol: .nf_inq_attname
> >> ld: 0711-317 ERROR: Undefined symbol: .nf_inq_att
> >> ld: 0711-317 ERROR: Undefined symbol: .nf_close
> >> ld: 0711-317 ERROR: Undefined symbol: .nf_inq_varid
> >> ld: 0711-317 ERROR: Undefined symbol: .nf_get_vara_text
> >> ld: 0711-317 ERROR: Undefined symbol: .nf_get_var_real
> >> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more 
> >> information.
> >> make: 1254-004 The error code from the last command is 8.
> >> make: 1254-005 Ignored error code 8 from last command.
> >> Target "all" is up to date.
> >>
> >>
> >> Please help me find my problem. Is the problem in setting 
> my linker 
> >> flag , cflag paths or with my netcdf installation ?
> >>
> >>
> >> with regards,
> >> ARUN RAMANATHAN.S
> >>
> >> _______________________________________________
> >> netcdfgroup mailing list
> >> netcdfgroup@xxxxxxxxxxxxxxxx
> >> For list information or to unsubscribe,  visit:
> >> http://www.unidata.ucar.edu/mailing_lists/
> >
> >_______________________________________________
> >ldm-users mailing list
> >ldm-users@xxxxxxxxxxxxxxxx
> >For list information or to unsubscribe,  visit: 
> >http://www.unidata.ucar.edu/mailing_lists/
> >
> 
> _______________________________________________
> netcdfgroup mailing list
> netcdfgroup@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe,  visit: 
> http://www.unidata.ucar.edu/mailing_lists/ 
> 

Dr. Dominikus Heinzeller
Research Scientist Energy and Automated Prediction Services
MetService
30 Salamanca Road, Kelburn, Wellington 6012
PO Box 722, Wellington 6140, New Zealand
d +64 4 4700 779    t +64 4 4700 700    m +64 29 4700 779
metservice.com  .  metraweather.com  .  Like us on Facebook  .  Follow us on 
Twitter

MetService is the Meteorological Service of New Zealand Limited - ISO 9001 
Certified. This email and any accompanying documentation may contain privileged 
and confidential information.  If you are not the intended recipient, your use 
of the information is strictly prohibited.



  • 2012 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: