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

20010717: NetCDF build problem: missing f77compat library



Yu-Jin Choi,

>Date: Tue, 17 Jul 2001 17:43:52 -0400 (EDT)
>From: Yu-Jin Choi <address@hidden>
>Organization: University of Maryland
>To: Steve Emmerson <address@hidden>
>Subject: Re: 20010717: NetCDF build problem: missing f77compat library 
>Keywords: 200107122230.f6CMUA103891

The above message contained the following:

> Below is the error msg on my window
> 
> Undefined                       first referenced
>  symbol                             in file
> __f90_unit_pointer_table /opt/SUNWspro/WS6/lib/libf77compat.a(f90.o)
> __f90_default_output_unit /opt/SUNWspro/WS6/lib/libf77compat.a(close.o)
> __f90_unit_number_table /opt/SUNWspro/WS6/lib/libf77compat.a(f90.o)
> __f90_default_input_unit /opt/SUNWspro/WS6/lib/libf77compat.a(close.o)
> __f90_unit_number_mask /opt/SUNWspro/WS6/lib/libf77compat.a(f90.o)
> __f90_flush_all /opt/SUNWspro/WS6/lib/libf77compat.a(__f77_sigdie.o)
> __f90_expand_unit_table_a /opt/SUNWspro/WS6/lib/libf77compat.a(f90.o)
> __f90_units_max /opt/SUNWspro/WS6/lib/libf77compat.a(f90.o)
> __f90_cleanup /opt/SUNWspro/WS6/lib/libf77compat.a(__f77_exit.o)
> __f90_initio_done /opt/SUNWspro/WS6/lib/libf77compat.a(__f77_init.o)
> __f90_no_of_units /opt/SUNWspro/WS6/lib/libf77compat.a(f90.o)
> __f90_start_time /opt/SUNWspro/WS6/lib/libf77compat.a(f90.o)
> __f90_release_unit /opt/SUNWspro/WS6/lib/libf77compat.a(dfe.o)
> __f90_io_master_lock /opt/SUNWspro/WS6/lib/libf77compat.a(close.o)
> __f90_small_unit_pointer_table /opt/SUNWspro/WS6/lib/libf77compat.a(close.o)
> __f90_default_error_unit /opt/SUNWspro/WS6/lib/libf77compat.a(close.o)
> __f90_units_limit /opt/SUNWspro/WS6/lib/libf77compat.a(f90.o)
> ld: fatal: Symbol referencing errors. No output written to nf_test
> make: Fatal error: Command failed for target `nf_test'
> 
> Below is the log file for that command
> 
> /opt/SUNWspro/bin/f77 -o nf_test -O -w  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 -L/opt/SUNWspro/WS6/lib -lf77compat -lm
> *** Error code 1

Well, I'm stumped.  Apparently, the Fortran-77 compatibility library is
referencing symbols that it doesn't define and that the Fortran-90
compiler/linker can't locate.  You might try searching the libraries in
"/opt/SUNWspro/WS6/lib" for definitions of the above symbols.  If you
find it, then append it to the FLIBS macro in "macros.make".

Otherwise, I don't know what the problem is or what to tell you.

Good luck.

Regards,
Steve Emmerson   <http://www.unidata.ucar.edu>