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

[netCDF #JMU-224694]: NetCDF4 make check problem

> Greeting,
> I am installing netcdf-4.1.1 and it failed during make check
> /home3/scheung/netcdf-4.1.1/nf_test/test_put.F:5035: undefined reference to 
> `nf_put_varm_text_'
> /home3/scheung/netcdf-4.1.1/nf_test/test_put.F:5047: undefined reference to 
> `nf_put_varm_text_'
> It is because the netcdf-4.1.1/libsrc4/.libs/libnetcdf.a defined with 2 
> underscores
> %nm libnetcdf.a | grep nf_put_varm_text
> 0000000000000000 T nf_put_varm_text__
> U nf_put_varm_text_
> How do I resolve this problem?
> My Fortran and C compilers are Intelâs
> My HDF5 1.8.5 is configured with --enable-parallel
> My MPI library is MVAPICH2 1.5.1.p1 installed with --enable-romio
> My netcdf4 is configure with
> setenv CC mpicc
> setenv FC mpif90
> setenv F77 mpif77
> setenv CXX mpicxx
> ./configure --enable-parallel 
> --prefix=/home3/scheung/opt/netcdf-4.1.1_HDF5intelmvp  --with-zlib=/usr/lib   
> --with-hdf5=/home3/scheung/opt/hdf5-1.8.5
> Thank you very much for your time and suggestion!
> ~Samson

Howdy Samson!

The problem is that our Fortran building code depends on the name of your 
fortran compiler to figure out what kind of compiler you are using. Since you 
are using an MPI wrapper, it gets confused. So set CPPFLAGS to -DpgiFortran to 
tell the configure how to handle your fortran compiler.

I am very interested in high performance netCDF users! Can you tell me a little 
about what you are using netCDF for, and on what kind of hardware?



Ticket Details
Ticket ID: JMU-224694
Department: Support netCDF
Priority: High
Status: Closed

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.