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

[netCDF #GHJ-989919]: problems with netcdf



Hello,

I am puzzled by why this is occurring; it should not, as you are doing things 
correctly.  What happens if you remove netcdf-c and reinstall it static-only, 
e.g. pass `--disable-shared --enable-static` when running `configure` for 
netcdf-c?  This should fix the issue, as the tests will be built using the 
static library and will not look for a shared library at runtime.  If the issue 
persists, then we know that the test is still using the wrong library.

Alternatively, you can probably assume that the library is safe to use.  It has 
built without error, and the failure from `make check` is a result of something 
strange going on with the shared-library loader at runtime; it is not a failure 
within the test itself.  

-Ward

> Dear,
> Netcdf-c of version 4.3.3 seems installed success.
> Then, netcdf-fortran-4.4.2 has some errors when "make check" after suceessful 
> configure and make as follows:
> 
> ../fortran/.libs/libnetcdff.so: undefined reference to `ncsfil_'
> ../fortran/.libs/libnetcdff.so: undefined reference to `ncdid_'
> ../fortran/.libs/libnetcdff.so: undefined reference to `ncvid_'
> ../fortran/.libs/libnetcdff.so: undefined reference to `ncopn_'
> ../fortran/.libs/libnetcdff.so: undefined reference to `nccre_'
> ../fortran/.libs/libnetcdff.so: undefined reference to `ncddef_'
> ../fortran/.libs/libnetcdff.so: undefined reference to `ncvdef_'
> ../fortran/.libs/libnetcdff.so: undefined reference to `nctlen_'
> make[2]: *** [tst_f90] error 2
> make[1]: *** [check-am] error 2
> make: *** [check-recursive] error 1
> 
> The processes are :
> setenv CC pgcc
> setenv CFLAGS "-O tp=p7-64"
> setenv CXX pgCC
> setenv CXXFLAGS "-O tp=p7-64"
> setenv FC pgf90
> setenv FCFLAGS "-O tp=p7-64"
> setenv F77 pgf90
> setenv F90 pgf90
> setenv FFLAGS "-O tp=p7-64"
> setenv CPPFLAGS "-DpgiFortran"
> 
> setenv LD_LIBRARY_PATH /opt/netCDF/lib:${LD_LIBRARY_PATH}
> setenv CFLAGS "-O tp=p7-64 -I/opt/netCDF/include -I/opt/hdf5/include 
> -I/opt/zlib/include"
> setenv FCFLAGS "-O tp=p7-64 -I/opt/netCDF/include -I/opt/hdf5/include 
> -I/opt/zlib/include"
> setenv FFLAGS "-O tp=p7-64 -I/opt/netCDF/include -I/opt/hdf5/include 
> -I/opt/zlib/include"
> setenv CPPFLAGS "-DpgiFortran -I/opt/netCDF/include -I/opt/hdf5/include 
> -I/opt/zlib/include"
> unsetenv LDFLAGS
> 
> 
> ./configure --prefix=/opt/netCDF >& config.log
> make LDFLAGS="-L/opt/netCDF/lib -L/opt/hdf5/lib -L/opt/zlib/lib" 
> LIBS="-lnetcdf -lhdf5 -lhdf5_hl" >& make.log
> make check LDFLAGS="-L/opt/netCDF/lib -L/opt/hdf5/lib -L/opt/zlib/lib" 
> LIBS="-lnetcdf -lhdf5 -lhdf5_hl" > make_check.log
> 
> The configure logs are attached.
> Looking forward to your reply. Thanks very much for your helps.
> 


Ticket Details
===================
Ticket ID: GHJ-989919
Department: Support netCDF
Priority: Normal
Status: Closed