Hi Jackson, > Below log about problems, with output command nf_test. > > > nf_test]# sh -x nf_test 2>&1> /root/nf_test.log > + sed_quote_subst='s/\([`"$\\]\)/\\\1/g' > + test -n '' > + case `(set -o) 2>/dev/null` in > + set -o posix > + BIN_SH=xpg4 > + export BIN_SH > + DUALCASE=1 > + export DUALCASE > + unset CDPATH > + relink_command='(cd /usr/src/netcdf-fortran-4.2/nf_test; { test -z > "${LIBRARY_PATH+set}" || unset LIBRARY_PATH || { LIBRARY_PATH=; export > LIBRARY_PATH; }; }; { test -z "${COMPILER_PATH+set}" || unset COMPILER_PATH > || { COMPILER_PATH=; export COMPILER_PATH; }; }; { test -z > "${GCC_EXEC_PREFIX+set}" || unset GCC_EXEC_PREFIX || { GCC_EXEC_PREFIX=; > export GCC_EXEC_PREFIX; }; }; { test -z "${LD_RUN_PATH+set}" || unset > LD_RUN_PATH || { LD_RUN_PATH=; export LD_RUN_PATH; }; }; { test -z > "${LD_LIBRARY_PATH+set}" || unset LD_LIBRARY_PATH || { LD_LIBRARY_PATH=; > export LD_LIBRARY_PATH; }; }; > PATH=/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin; > export PATH; mpif90 -I../fortran -I../f90 -g -O2 -o $progdir/$file > test_get.o test_put.o nf_error.o nf_test.o test_read.o test_write.o util.o > fortlib.o -L/usr/local/lib ../fortran/.libs/libnetcdff.so > -L/usr/local/hdf5/lib /usr/local/lib/libnetcdf.a -lcurl > /usr/local/hdf5/lib/libhdf5_hl.a /usr/local/hdf5/lib/libhdf5.a -lz -lm > -Wl,-rpath -Wl,/usr/src/netcdf-fortran-4.2/fortran/.libs)' > + test '' = '%%%MAGIC variable%%%' > + test '' '!=' '%%%MAGIC variable%%%' > + file=nf_test > + ECHO='printf %s\n' > + lt_option_debug= > + func_parse_lt_options nf_test > + lt_script_arg0=nf_test > + shift > + test -n '' > ++ /bin/sed 's%/[^/]*$%%' > ++ printf '%s\n' nf_test > + thisdir=nf_test > + test xnf_test = xnf_test > + thisdir=. > ++ /bin/sed -n 's/.*-> //p' > ++ ls -ld nf_test > + file= > + test -n '' > + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=no > + test no = yes > ++ cd . > ++ pwd > + absdir=/usr/src/netcdf-fortran-4.2/nf_test > + test -n /usr/src/netcdf-fortran-4.2/nf_test > + thisdir=/usr/src/netcdf-fortran-4.2/nf_test > + program=lt-nf_test > + progdir=/usr/src/netcdf-fortran-4.2/nf_test/.libs > + test '!' -f /usr/src/netcdf-fortran-4.2/nf_test/.libs/lt-nf_test > ++ /bin/sed 1q > ++ ls -1dt /usr/src/netcdf-fortran-4.2/nf_test/.libs/lt-nf_test > /usr/src/netcdf-fortran-4.2/nf_test/.libs/../lt-nf_test > + file=/usr/src/netcdf-fortran-4.2/nf_test/.libs/lt-nf_test > + test X/usr/src/netcdf-fortran-4.2/nf_test/.libs/lt-nf_test '!=' > X/usr/src/netcdf-fortran-4.2/nf_test/.libs/lt-nf_test > + test -f /usr/src/netcdf-fortran-4.2/nf_test/.libs/lt-nf_test > + test '' '!=' '%%%MAGIC variable%%%' > + func_exec_program > + func_exec_program_core > + test -n '' > + exec /usr/src/netcdf-fortran-4.2/nf_test/.libs/lt-nf_test > Falha de segmentaÃÃo (imagem do nÃcleo gravada) I can't determine what the problem is that causes a segmentation violation when this last command is executed. This seems to work fine on my Linux system. I used slightly simpler flags for building the C library and then the Fortran library, so perhaps you could try those on a clean distribution and see if they work. First, I installed HDF5, curl, and zlib in /share/ed/local/spike. Then I built the netCDF C shared library and installed it in /usr/local by using: make clean CPPFLAGS=-I/share/ed/local/spike/include LDFLAGS=-L/share/ed/local/spike/lib CC=mpicc ./configure make check sudo make install Then I built and installed the Fortran netCDF-4.2 libraries by using: make clean LD_LIBRARY_PATH=/usr/local/lib LDFLAGS=-lnetcdf CPPFLAGS="-I/usr/local/include -DgFortran" FC=mpif90 CC=mpicc ./configure make check sudo make install and everything worked fine. As far as I know, the version of system and compilers don't matter much, but here's what I used: $ uname -a; mpif90 --version; mpicc --version Linux spike.unidata.ucar.edu 2.6.35.14-106.fc14.x86_64 #1 SMP Wed Nov 23 13:07:52 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux GNU Fortran (GCC) 4.5.1 20100924 (Red Hat 4.5.1-4) Copyright (C) 2010 Free Software Foundation, Inc. GNU Fortran comes with NO WARRANTY, to the extent permitted by law. You may redistribute copies of GNU Fortran under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING gcc (GCC) 4.5.1 20100924 (Red Hat 4.5.1-4) Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Please let us know if this helps you discover what the problem was. Thanks. --Russ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: ACS-482645 Department: Support netCDF Priority: Normal 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.