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

[netCDF #YVN-627825]: libnetcdff.so.5: undefined symbol: ncopts



Is there any possibility that you could upgrade to the latest
netcdf-c library release?

> 
> 
> I optimized the layout of the mail, sorry about the terrible layout before.
> 
> 
> I have compiled netcdf-4.1.3 from source with the OPENMPI compiler 
> (v.3.0.0,which compiled by Intel compiler v15.0.1). Command to compile netcdf:
> 
> 
> CC=mpicc FC=mpif90 F77=mpif77 
> CPPFLAGS+="-I/vol/home/sundifu14/local/packages_parallel/include -DgFortran" 
> LDFLAGS+=-L/vol/home/sundifu14/local/packages_parallel/lib 
> ./configure--prefix=/vol/home/sundifu14/local/packages_parallel 
> --enable-pnetcdf --disable-dap-remote-tests
> 
> 
> The reason why I use -DgFortran is if I don't use it, then I will come across 
> the problem same with 
> https://www.unidata.ucar.edu/support/help/MailArchives/netcdf/msg11622.html
> 
> 
> and why I use --disable-dap-remote-tests is if I don't use it, then I will 
> come across the problem mentioned in 
> https://www.unidata.ucar.edu/support/help/MailArchives/netcdf/msg12979.html
> 
> 
> and --enable-pnetcdf to enable parallel I/O which I need.
> 
> 
> Then make&make check&make install all goes well.
> 
> 
> then I compiled a program using netcdf library, command is a little complex, 
> but most of the options are not related to my problem, cammand is:
> 
> 
> mpif90 -threads -L${esmf_lib} -L${netcdf_lib} -lnetcdff -lnetcdf -g -o 
> ccpl.exe esmf_coupling_param.o roms_swan.o ${roms}/Build/mct_coupler_params.o 
> ${roms}/Build/ocean_control.o ${roms}/Build/ocean_coupler.o 
> ${roms}/Build/propregator.o ${roms}/Build/roms_export.o 
> ${roms}/Build/roms_import.o coupled.o wrf.o -lesmf -ldl -lnsl -lutil -limf 
> -lsvml -lm -lipgo -ldecimal -liomp5 -lcilkrts -lstdc++ -lgcc_s -lgcc -lirc 
> -lpthread -lgcc_s -lgcc -lirc_s -lrt -w -ftz -align all -fno-alias -fp-model 
> precise -FR -convert big_endian -ip ${wrf}/main/module_wrf_top.o libwrflib.a 
> ${wrf}/external/fftpack/fftpack5/libfftpack.a 
> ${wrf}/external/io_grib1/libio_grib1.a 
> ${wrf}/external/io_grib_share/libio_grib_share.a 
> ${wrf}/external/io_int/libwrfio_int.a -L${wrf}/external/esmf_time_f90 
> -lesmf_time ${wrf}/external/RSL_LITE/librsl_lit.a 
> ${wrf}/frame/module_internal_header_util.o ${wrf}/frame/pack_utils.o 
> kinds_mod.o constants.o iounits.o netcdf.o grids.o timers.o remap_vars.o 
> remap_read.o remap.o -L
 ${wrf}/external/io_netcdf -lwrfio_nf -L${wrf}/external/io_pnetcdf -g -check 
uninit -ftrapuv -traceback -Vaxlib libNLM.a libMODS.a libNLM_bio.a libANA.a 
${libSWAN} -L${mct}/lib -lmct -lmpeu
> 
> 
> the compiling goes correctly but when I run it, my program breaks with the 
> following error:
> ./ccpl.exe: symbol lookup 
> error:/vol/home/sundifu14/local/packages_parallel/lib/libnetcdff.so.5:  
> undefined symbol: ncopts
> 
> 
> I checked the library libnetcdff.so and the symbol "ncopts" is undefined  (I 
> also checked another account which can run it correctly on our cluster, 
> "ncopts" in libnetcdff.so is also undefined, but didn't report this error).
> 
> 
> I have tried to rebuild the netcdf libraries -- still cannot run.
> 
> 
> Is there any workaround?
> 
> 
> Thank you in advance.
> 
> 
> ----------------
> 
> 
> Steve

=Dennis Heimbigner
  Unidata


Ticket Details
===================
Ticket ID: YVN-627825
Department: Support netCDF
Priority: Normal
Status: Open
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.