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

Re: 19990607: nf_test for netcdf-3.4



Brian,

>Date: Mon, 7 Jun 1999 12:56:07 -0800
>From: address@hidden
>Organization: .
>To: address@hidden
>Subject: Re: 19990607: nf_test for netcdf-3.4
>Keywords: 199906070237.UAA21584

In the above message, you wrote:

...
=0D=0D
> Making `test' in directory /export/trichodon2/gmt/netcdf-3.4/src/nf_test=0D=
> =0D
> =0D=0D
> + f77 -c -O test_get.F =0D=0D
> + f77 -c -O test_put.F =0D=0D
> + f77 -c -O nf_error.F =0D=0D
> + f77 -c -O nf_test.F =0D=0D
> + f77 -c -O test_read.F =0D=0D
> + f77 -c -O test_write.F =0D=0D
> + f77 -c -O util.F =0D=0D
> cc -c -O   -DNDEBUG fortlib.c=0D=0D
> f77 -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 
=
> 
=
> 
> Undefined                     first referenced=0D=0D
>  symbol                           in file=0D=0D
> nf_get_vars_double__                test_get.o=0D=0D
> nf_inq_varnatts__                   test_read.o=0D=0D
...
> ld: fatal: Symbol referencing errors. No output written to nf_test=0D=0D
> *** Error code 1=0D=0D
> make: Fatal error: Command failed for target `nf_test'=0D=0D
> Current working directory /export/trichodon2/gmt/netcdf-3.4/src/nf_test=0D=
> =0D
> *** Error code 1=0D=0D
> make: Fatal error: Command failed for target `subdir_target'=0D=0D
> Current working directory /export/trichodon2/gmt/netcdf-3.4/src=0D=0D
> *** Error code 1=0D=0D
> make: Fatal error: Command failed for target `nf_test/test'=0D=0D
> =1B[79C  =0Dtrichodon:/export/trichodon2/gmt/netcdf-3.4/src=1B[32C  
=
> <2>-> exit=0D
> script done on Mon Jun 07 11:50:52 1999=0D
...

> Content-Description: AandC.log
> 
> Script started on Mon Jun 07 11:51:18 1999=0D
> =1B[79C  =0Dtrichodon:/export/trichodon2/gmt/netcdf-3.4/src=1B[32C  
=
> <1>-> uname -a=0D=0D=0D
> SunOS trichodon 5.5.1 Generic sun4u sparc SUNW,Ultra-1=0D=0D
> =1B[79C  =0Dtrichodon:/export/trichodon2/gmt/netcdf-3.4/src=1B[32C  
=
> <2>-> which cc=0D=0D=0D
> /usr/ucb/cc=0D=0D
> =1B[79C  =0Dtrichodon:/export/trichodon2/gmt/netcdf-3.4/src=1B[32C  
=
> <3>-> ls -l /usr/ucb/cc=0D=0D=0D
> lrwxrwxrwx   1 root     bin           18 Jun  4 09:16 /usr/ucb/cc -> =
> /usr/local/bin/gcc=0D=0D
> =1B[79C  =0Dtrichodon:/export/trichodon2/gmt/netcdf-3.4/src=1B[32C  
=
> <4>-> which f77=0D=0D=0D
> /usr/bin/f77=0D=0D
> =1B[79C  =0Dtrichodon:/export/trichodon2/gmt/netcdf-3.4/src=1B[32C  
=
> <5>-> ls -l /usr/bin/f77=0D=0D=0D
lrwxrwxrwx   1 root     bin           18 Jun  7 11:11 /usr/bin/f77 -> =
> /usr/local/bin/g77=0D=0D

Ok.  There's your problem.  When using gcc and g77 to build the netCDF
package, the C macro "f2cFortran" must be defined.

Do the following:

    1.  Perform steps 2 through 4 near the end of the INSTALL file.

    2.  Perform step 5 in the INSTALL file (defining environment
        variables) but ensure that the environment variable CPPFLAGS
        contains the string "-Df2cFortran".

    3.  Perform steps 6 through 9 in the INSTALL file.

Please let me know if this helps.

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