This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hi Sean, > I'm trying to install NetCDF 4.2.1.1, which has the separate C and Fortran > Libraries. Separate from the HDF4 problem I emailed earlier, I'm having > difficulties with the Fortran Libraries. I get this error message: > > libtool: link: ifort -I../fortran -I../f90 -I../f90 -g -o .libs/f90tst_vars > f90tst_vars.o -L/usr/local/lib ../fortran/.libs/libnetcdff.dylib > /usr/local/lib/libnetcdf.dylib /usr/local/lib/libhdf5_hl.dylib > /usr/local/lib/libhdf5.dylib -lm -lz > Undefined symbols for architecture x86_64: > "_netcdf_mp_nf90_create_", referenced from: > _MAIN__ in f90tst_vars.o > "_netcdf_mp_nf90_def_dim_", referenced from: > _MAIN__ in f90tst_vars.o > "_netcdf_mp_nf90_def_var_manydims_", referenced from: > _MAIN__ in f90tst_vars.o > "_netcdf_mp_nf90_def_var_chunking_", referenced from: > _MAIN__ in f90tst_vars.o > "_netcdf_mp_nf90_enddef_", referenced from: > _MAIN__ in f90tst_vars.o > "_netcdf_mp_nf90_put_var_2d_fourbyteint_", referenced from: > _MAIN__ in f90tst_vars.o > "_netcdf_mp_nf90_close_", referenced from: > _MAIN__ in f90tst_vars.o > "_netcdf_mp_nf90_open_", referenced from: > _MAIN__ in f90tst_vars.o > "_netcdf_mp_nf90_inquire_", referenced from: > _MAIN__ in f90tst_vars.o > "_netcdf_mp_nf90_inq_var_chunking_", referenced from: > _MAIN__ in f90tst_vars.o > "_netcdf_mp_nf90_get_var_2d_fourbyteint_", referenced from: > _MAIN__ in f90tst_vars.o > "_netcdf_mp_nf90_strerror_", referenced from: > _f90tst_vars_IP_handle_err_ in f90tst_vars.o > ld: symbol(s) not found for architecture x86_64 > make[2]: *** [f90tst_vars] Error 1 > make[1]: *** [check-am] Error 2 > make: *** [check-recursive] Error 1 > > when I attempt make check. Any idea what's going on? I attached the full > output below. I see you're using the "-m64" option to gcc to indicate compiling for64-bit, but you aren't using a similar flag for the ifort compiler. Try specifying FCFLAGS="-m64" and FFLAGS="-m64" to configure before building the Makefiles. --Russ > > ====================================== > Sean Crowell > Postdoctoral Research Associate > College of Atmospheric and Geographic Sciences > University of Oklahoma > Office: NWC 5420 > Phone: (405)325-1089 > address@hidden > > > > > > > Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: API-346739 Department: Support netCDF Priority: Normal Status: Closed