Greetings Irena! The error says that several symbols are not found being in ./fortran/.libs/libnetcdff.so, so let's check if there are any symbols that resemble what cannot be found. Please go to the directory that contains libnetcdff.so (<netCDf build dir>/fortran/.libs) and execute the following command: readelf -Ws /usr/lib64/libnetcdff.so.5.0.0 | grep nf_open The output will look something like this: 437: 0000000000016ea0 284 FUNC GLOBAL DEFAULT 11 nf_open_par_ 485: 000000000000ed80 240 FUNC GLOBAL DEFAULT 11 nf_open_ Would you please send me the output for your copy of libnetcdff.so? Thanks! Sean Arms > Dear Support Staff, > > I compiled netcdf-4.1.2 for gcc-4.6.0 without errors but when I did a check > on the built, it complained about undefined references. > > > Could you please help, > > Thank you, > Irena Johnson > > > > > Below is the output for "make check" > ------------------- > Making check in nf_test > make[1]: Entering directory `/local/ijohnson/netcdf-4.1.2/nf_test' > make nf_test tst_f77_v2 ftest tst_f90 > make[2]: Entering directory `/local/ijohnson/netcdf-4.1.2/nf_test' > gfortran4 -DHAVE_CONFIG_H -I. -I.. -I../fortran -I../include -I../liblib > -I../fortran -I../f90 -I../include -I../liblib -g -O2 -c -o test_get.o > test_get.F > gfortran4 -DHAVE_CONFIG_H -I. -I.. -I../fortran -I../include -I../liblib > -I../fortran -I../f90 -I../include -I../liblib -g -O2 -c -o test_put.o > test_put.F > gfortran4 -DHAVE_CONFIG_H -I. -I.. -I../fortran -I../include -I../liblib > -I../fortran -I../f90 -I../include -I../liblib -g -O2 -c -o nf_error.o > nf_error.F > gfortran4 -DHAVE_CONFIG_H -I. -I.. -I../fortran -I../include -I../liblib > -I../fortran -I../f90 -I../include -I../liblib -g -O2 -c -o nf_test.o > nf_test.F > gfortran4 -DHAVE_CONFIG_H -I. -I.. -I../fortran -I../include -I../liblib > -I../fortran -I../f90 -I../include -I../liblib -g -O2 -c -o test_read.o > test_read.F > gfortran4 -DHAVE_CONFIG_H -I. -I.. -I../fortran -I../include -I../liblib > -I../fortran -I../f90 -I../include -I../liblib -g -O2 -c -o test_write.o > test_write.F > gfortran4 -DHAVE_CONFIG_H -I. -I.. -I../fortran -I../include -I../liblib > -I../fortran -I../f90 -I../include -I../liblib -g -O2 -c -o util.o util.F > depbase=`echo fortlib.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ > gcc4 -DHAVE_CONFIG_H -I. -I.. -I../fortran -I../include -I../liblib -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 gfortran4 -I../fortran -I../f90 > -I../include -I../liblib -g -O2 -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 -lm ../liblib/libnetcdf.la > libtool: link: gfortran4 -I../fortran -I../f90 -I../include -I../liblib -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 ../fortran/.libs/libnetcdff.so > /usr/pppl/gcc/4.6.0/lib/../lib64/libgfortran.so > /usr/pppl/gcc/4.6.0/lib/../lib64/libquadmath.so -lm > ../liblib/.libs/libnetcdf.so -Wl,-rpath > -Wl,/usr/pppl/gcc/4.6-pkgs/netcdf-4.1.2/lib -Wl,-rpath > -Wl,/usr/pppl/gcc/4.6.0/lib/../lib64 > test_get.o: In function `test_nf_get_var1_text_': > /local/ijohnson/netcdf-4.1.2/nf_test/test_get.F:25: undefined reference to > `nf_open_' > /local/ijohnson/netcdf-4.1.2/nf_test/test_get.F:34: undefined reference to > `nf_get_var1_text_' > /local/ijohnson/netcdf-4.1.2/nf_test/test_get.F:38: undefined reference to > `nf_get_var1_text_' > /local/ijohnson/netcdf-4.1.2/nf_test/test_get.F:43: undefined reference to > `nf_get_var1_text_' > /local/ijohnson/netcdf-4.1.2/nf_test/test_get.F:93: undefined reference to > `nf_close_' > /local/ijohnson/netcdf-4.1.2/nf_test/test_get.F:61: undefined reference to > `nf_get_var1_text_' > > > ..... > > ../fortran/.libs/libnetcdff.so: undefined reference to `nf_set_base_pe_' > ../fortran/.libs/libnetcdff.so: undefined reference to `nf__open_mp_' > ../fortran/.libs/libnetcdff.so: undefined reference to `nf_inq_base_pe_' > ../fortran/.libs/libnetcdff.so: undefined reference to `nf__enddef_' > ../fortran/.libs/libnetcdff.so: undefined reference to `nf__create_mp_' > ../fortran/.libs/libnetcdff.so: undefined reference to `nf__open_' > ../fortran/.libs/libnetcdff.so: undefined reference to `nf__create_' > collect2: ld returned 1 exit status > make[2]: *** [nf_test] Error 1 > make[2]: Leaving directory `/local/ijohnson/netcdf-4.1.2/nf_test' > make[1]: *** [check-am] Error 2 > make[1]: Leaving directory `/local/ijohnson/netcdf-4.1.2/nf_test' > make: *** [check-recursive] Error 1 > > Ticket Details =================== Ticket ID: AIX-484936 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.