[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #YMH-285647]: make check fail in netcdf-fortran.4.2
- Subject: [netCDF #YMH-285647]: make check fail in netcdf-fortran.4.2
- Date: Mon, 16 Mar 2015 09:09:49 -0600
Hello,
It appears that you may need to specify LD_LIBRARY_PATH when running make check
(or,alternatively, add it to your .bashrc) as follows:
$ LD_LIBRARY_PATH=/path/to/netcdf/dir make check
Let me know if this works; if it doesn't, can you please provide the config.log
file generated when you configure netcdf-fortran?
Thanks, have a good day,
-Ward
> Full Name: Miguel Vargas
> Email Address: address@hidden
> Organization: UNC
> Package Version:
> Operating System:
> Hardware:
> Description of problem: Hi there, I have successfully built the C version of
> netcdf-4.3.1.1 and after that, I have installed successfully
> netcdf-fortran-4.2. However I 've a problem when I run make check. I've
> setting in my .bashrc the follows variables:
>
> export LIBS="-lhdf5 -lhdf5_hl -lnetcdf -lnetcdff"
> export NETCDF_LIBS="-lhdf5 -lhdf5_hl -lnetcdf -lnetcdff"
>
> but still seems that netcdf can not link with the shared library
>
> I hope you can help me.
> Thanks in advance.
>
> Miguel
>
> the ouput
>
>
> +-------------------------------------------------------------+
> | Congratulations! You have successfully installed the netCDF |
> | Fortran libraries. |
> | |
> | You can use script "nf-config" to find out the relevant |
> | compiler options to build your application. Enter |
> | |
> | nf-config --help |
> | |
> | for additional information. |
> | |
> | CAUTION: |
> | |
> | If you have not already run "make check", then we strongly |
> | recommend you do so. It does not take very long. |
> | |
> | Before using netCDF to store important data, test your |
> | build with "make check". |
> | |
> | NetCDF is tested nightly on many platforms at Unidata |
> | but your platform is probably different in some ways. |
> | |
> | If any tests fail, please see the netCDF web site: |
> | http://www.unidata.ucar.edu/software/netcdf/ |
> | |
> | NetCDF is developed and maintained at the Unidata Program |
> | Center. Unidata provides a broad array of data and software |
> | tools for use in geoscience education and research. |
> | http://www.unidata.ucar.edu |
> +-------------------------------------------------------------+
>
> make[3]: se sale del directorio `/home/lvc0107/netCDF/netcdf-fortran-4.2'
> make[2]: se sale del directorio `/home/lvc0107/netCDF/netcdf-fortran-4.2'
> make[1]: se sale del directorio `/home/lvc0107/netCDF/netcdf-fortran-4.2'
> ------CHECK---------
> Making check in f90
> make[1]: se ingresa al directorio
> `/home/lvc0107/netCDF/netcdf-fortran-4.2/f90'
> make check-am
> make[2]: se ingresa al directorio
> `/home/lvc0107/netCDF/netcdf-fortran-4.2/f90'
> make[2]: No se hace nada para `check-am'.
> make[2]: se sale del directorio `/home/lvc0107/netCDF/netcdf-fortran-4.2/f90'
> make[1]: se sale del directorio `/home/lvc0107/netCDF/netcdf-fortran-4.2/f90'
> Making check in fortran
> make[1]: se ingresa al directorio
> `/home/lvc0107/netCDF/netcdf-fortran-4.2/fortran'
> make check-am
> make[2]: se ingresa al directorio
> `/home/lvc0107/netCDF/netcdf-fortran-4.2/fortran'
> make[2]: se sale del directorio
> `/home/lvc0107/netCDF/netcdf-fortran-4.2/fortran'
> make[1]: se sale del directorio
> `/home/lvc0107/netCDF/netcdf-fortran-4.2/fortran'
> Making check in nf_test
> make[1]: se ingresa al directorio
> `/home/lvc0107/netCDF/netcdf-fortran-4.2/nf_test'
> make nf_test tst_f90
> make[2]: se ingresa al directorio
> `/home/lvc0107/netCDF/netcdf-fortran-4.2/nf_test'
> gfortran -DHAVE_CONFIG_H -I. -I.. -I../fortran
> -I/home/lvc0107/netCDF/netcdf-4.3.3.1/include -I../fortran -I../f90 -g -O2
> -c -o test_get.o test_get.F
> gfortran -DHAVE_CONFIG_H -I. -I.. -I../fortran
> -I/home/lvc0107/netCDF/netcdf-4.3.3.1/include -I../fortran -I../f90 -g -O2
> -c -o test_put.o test_put.F
> gfortran -DHAVE_CONFIG_H -I. -I.. -I../fortran
> -I/home/lvc0107/netCDF/netcdf-4.3.3.1/include -I../fortran -I../f90 -g -O2
> -c -o nf_error.o nf_error.F
> gfortran -DHAVE_CONFIG_H -I. -I.. -I../fortran
> -I/home/lvc0107/netCDF/netcdf-4.3.3.1/include -I../fortran -I../f90 -g -O2
> -c -o nf_test.o nf_test.F
> gfortran -DHAVE_CONFIG_H -I. -I.. -I../fortran
> -I/home/lvc0107/netCDF/netcdf-4.3.3.1/include -I../fortran -I../f90 -g -O2
> -c -o test_read.o test_read.F
> gfortran -DHAVE_CONFIG_H -I. -I.. -I../fortran
> -I/home/lvc0107/netCDF/netcdf-4.3.3.1/include -I../fortran -I../f90 -g -O2
> -c -o test_write.o test_write.F
> gfortran -DHAVE_CONFIG_H -I. -I.. -I../fortran
> -I/home/lvc0107/netCDF/netcdf-4.3.3.1/include -I../fortran -I../f90 -g -O2
> -c -o util.o util.F
> depbase=`echo fortlib.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
> gcc -DHAVE_CONFIG_H -I. -I.. -I../fortran
> -I/home/lvc0107/netCDF/netcdf-4.3.3.1/include -g -O2 -MT fortlib.o -MD -MP
> -MF $depbase.Tpo -c -o fortlib.o fortlib.c &&\
> mv -f $depbase.Tpo $depbase.Po
> /bin/sh ../libtool --tag=F77 --mode=link gfortran -I../fortran -I../f90 -g
> -O2 -L/home/lvc0107/netCDF/netcdf-4.3.3.1/lib -o nf_test test_get.o
> test_put.o nf_error.o nf_test.o test_read.o test_write.o util.o fortlib.o
> ../fortran/libnetcdff.la
> libtool: link: gfortran -I../fortran -I../f90 -g -O2 -o .libs/nf_test
> test_get.o test_put.o nf_error.o nf_test.o test_read.o test_write.o util.o
> fortlib.o -L/home/lvc0107/netCDF/netcdf-4.3.3.1/lib
> ../fortran/.libs/libnetcdff.so -Wl,-rpath -Wl,/home/lvc0107/netCDF/lib
> ../fortran/.libs/libnetcdff.so: undefined reference to `nc_put_vara_short'
> ../fortran/.libs/libnetcdff.so: undefined reference to `nc_get_vara_short'
> ../fortran/.libs/libnetcdff.so: undefined reference to `ncattdel'
> ../fortran/.libs/libnetcdff.so: undefined reference to `nc_get_att_float'
> ../fortran/.libs/libnetcdff.so: undefined reference to `nc_get_vara_schar'
> ../fortran/.libs/libnetcdff.so: undefined reference to `nc_inq_attname'
> ../fortran/.libs/libnetcdff.so: undefined reference to `nc_set_default_format'
> ../fortran/.libs/libnetcdff.so: undefined reference to `nc_inq_dimname'
> ../fortran/.libs/libnetcdff.so: undefined reference to `nc_get_vara_double'
> ../fortran/.libs/libnetcdff.so: undefined reference to `nc_put_vara_text'
> ../fortran/.libs/libnetcdff.so: undefined reference to `nc_put_var_schar'
> ../fortran/.libs/libnetcdff.so: undefined reference to `nc_inq_dim'
> ../fortran/.libs/libnetcdff.so: undefined reference to `nc_put_vars_schar'
>
>
>
>
Ticket Details
===================
Ticket ID: YMH-285647
Department: Support netCDF
Priority: Normal
Status: Closed