Greetings! > Hi, > > ./configure --prefix=/home/john/netcdf/INSTAL CC=/usr/bin/gcc > F77=/usr/bin/f77 FC=/usr/bin/gfortran CPPFLAGS="-fPIC" > FFLAGS="-I/usr/include -I/home/john/netcdf" and then try to run make test > after running make.We want to use gnu compilers. make test fails by giving > errors like : > > > Argument #4 of `ncvgt1' is one type at (2) but is some other type at (1) > [info -f g77 M GLOBALS] > /bin/sh ../libtool --tag=F77 --mode=link /usr/bin/f77 -I../fortran > -I../libsrc -I../fortran -I../f90 -I/usr/include -I/home/john/netcdf > -o ftest ftest.o fortlib.o ../libsrc/libnetcdf.la > libtool: link: /usr/bin/f77 -I../fortran -I../libsrc -I../fortran -I../f90 > -I/usr/include -I/home/john/netcdf -o ftest ftest.o fortlib.o > ../libsrc/.libs/libnetcdf.a > /usr/bin/gfortran -I../fortran -I../f90 -I../libsrc -I../fortran > -I../f90 -g -O2 -c -o tst_f90.o tst_f90.f90 > /bin/sh ../libtool --mode=link /usr/bin/gfortran -I../fortran > -I../f90 -I../libsrc -I../fortran -I../f90 -g -O2 -o tst_f90 > tst_f90.o ../libsrc/libnetcdf.la > libtool: link: /usr/bin/gfortran -I../fortran -I../f90 -I../libsrc > -I../fortran -I../f90 -g -O2 -o tst_f90 tst_f90.o > ../libsrc/.libs/libnetcdf.a > ../libsrc/.libs/libnetcdf.a(netcdf.o): In function > `__netcdf__nf90_inq_libvers': > /home/garuda/garuda5/np_cs/netcdf/netcdf-3.6.3/f90/netcdf_file.f90:5: > undefined reference to `nf_inq_libvers_' > ../libsrc/.libs/libnetcdf.a(netcdf.o): In function > `__netcdf__nf90_strerror': > /home/garuda/garuda5/np_cs/netcdf/netcdf-3.6.3/f90/netcdf_file.f90:12: > undefined reference to `nf_strerror_' > ../libsrc/.libs/libnetcdf.a(netcdf.o): In function `__netcdf__nf90_create': > /home/garuda/garuda5/np_cs/netcdf/netcdf-3.6.3/f90/netcdf_file.f90:50: > undefined reference to `nf__create_' > > what can be done to run all tests? > > Would you mind sending your full configure, make, and make check logs? Also, is there a reason you are wanting to use f77 instead of gfortran? Generally, f77 and gfortran do not mix. You may want to try doing a `make distclean` and re-run the configure script without specifying an f77 compiler; then, run make and make test to see if the problem goes away. Thanks! Sean Ticket Details =================== Ticket ID: KOA-895991 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.