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

20040428: NetCDF Install problem: missing nf_open



Cril,

> I have attach to mail the neccesary doc.
> Thank you for your help.
> A. Le Nechet
...
> Making `all' in directory 
> /home/fsaf/outils/visa/netcdf-3.5.1_oscar/src/fortran
> 
> make[2]: Entre dans le répertoire 
> `/home/fsaf/outils/visa/netcdf-3.5.1_oscar/src/fortran'
> make[2]: *** Warning: File `../macros.make' has modification time in the 
> future (2004-04-26 15:29:23 > 2004-04-26 15:28:55.751339)
> ar cru ../libsrc/libnetcdf.a fort-attio.o fort-control.o fort-dim.o 
> fort-genatt.o fort-geninq.o fort-genvar.o fort-lib.o fort-misc.o 
> fort-v2compat.o fort-vario.o fort-var1io.o fort-varaio.o fort-varmio.o 
> fort-varsio.o
> ranlib ../libsrc/libnetcdf.a
> make[2]: warning:  Clock skew detected.  Your build may be incomplete.
> make[2]: Quitte le répertoire 
> `/home/fsaf/outils/visa/netcdf-3.5.1_oscar/src/fortran'

The warning messages about "clock skew" and "modification time" indicate
a problem with your computer.  You should fix this before continuing.

The above also does not contain any compilation commands, so I can't
see how the object files were created.

> Making `test' in directory 
> /home/fsaf/outils/visa/netcdf-3.5.1_oscar/src/nf_test
> 
> make[2]: Entre dans le répertoire 
> `/home/fsaf/outils/visa/netcdf-3.5.1_oscar/src/nf_test'
> make[2]: *** Warning: File `../macros.make' has modification time in the 
> future (2004-04-26 15:29:23 > 2004-04-26 15:29:12.258841)
> /usr/cluster/opt/intel_fc_80/bin/ifc -o nf_test -O  test_get.o test_put.o 
> nf_error.o nf_test.o test_read.o test_write.o util.o fortlib.o 
> ../libsrc/libnetcdf.a  -lm 
> ifc: warning: The Intel Fortran driver is now named ifort.  You can suppress 
> this message with '-quiet'
> test_get.o(.text+0x26): In function `test_nf_get_var1_text_':
> : référence indéfinie vers « nf_open_ »
> test_get.o(.text+0xd8): In function `test_nf_get_var1_text_':
...

The above error message indicates that the linker couldn't resolve the
symbol "nf_open_".  This symbol should have been in the netCDF library
(libnetcdf.a) in the top-level source-directory.

The file "macros.make" indicated that the object files were created
using the C macro "f2cFortran":

    CPPFLAGS        = $(INCLUDES) $(DEFINES) -Df2cFortran

This is incorrect for the ifc(1) compiler.  The example at

    
http://www.unidata.ucar.edu/packages/netcdf/other-builds.html#intel-ifc%203.5.1-beta13

shows that the relevant C macro is "pgiFortran".

Please try the following:

    1.  Fix the problem with the clock and file-times on your computer

    2.  Go to the top-level source directory of the netCDF package.

    3.  Perform steps 3 and 4 described at

            
http://my.unidata.ucar.edu/content/software/netcdf/INSTALL.html#ReportingProblems

    4.  Set environment variables according to

            
http://www.unidata.ucar.edu/packages/netcdf/other-builds.html#intel-ifc%203.5.1-beta13

        and

            
http://www.unidata.ucar.edu/packages/netcdf/other-builds.html#intel-ifc

    5.  Perform steps 6 through 9 described at

            
http://my.unidata.ucar.edu/content/software/netcdf/INSTALL.html#ReportingProblems

Regards,
Steve Emmerson