[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #GRE-251795]: netcdf make check - undefined references
- Subject: [netCDF #GRE-251795]: netcdf make check - undefined references
- Date: Mon, 29 Oct 2007 16:38:25 -0600
> Full Name: Timothy Hilton
> Email Address: address@hidden
> Organization: Pennsylvania State University
> Package Version: 3.6.2
> Operating System: Red Hat Enterprise Linux AS release 4 (Nahant Update 5)
> Hardware: x86_64
> Description of problem:
>
> I am having trouble installing the netcdf library using gfortran. I
> successfully ran configure. The 'make check' step reports many
> undefined references (see below). The '...' just snips out a great
> many undefined references similar to the one included. I have attached
> config.log. I appreciate any help you can provide.
>
> -Tim Hilton
>
> ======================
>
> make[2]: Entering directory `/home3/twh142/netcdf-3.6.2/nf_test'
> depbase=`echo fortlib.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; \
> if cc -DHAVE_CONFIG_H -I. -I. -I.. -I../fortran -g -O2 -MT fortlib.o -MD
-MP -MF "$depbase.Tpo" -c -o fortlib.o fortlib.c; \
> then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f "$depbase.Tpo"; exit 1;
fi
> /bin/sh ../libtool --tag=F77 --mode=link /usr/bin/gfortran -I../libsrc
-I../f90 -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 ../libsrc/libnetcdf.la
> libtool: link: /usr/bin/gfortran -I../libsrc -I../f90 -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 ../libsrc/.libs/libnetcdf.a
> test_get.o(.text+0x38): In function `test_nf_get_var1_text':
> /home3/twh142/netcdf-3.6.2/nf_test/test_get.F:25: undefined reference to
`nf_open_'
>
> ....
>
> collect2: ld returned 1 exit status
> make[2]: *** [nf_test] Error 1
> make[2]: Leaving directory `/home3/twh142/netcdf-3.6.2/nf_test'
> make[1]: *** [check-am] Error 2
> make[1]: Leaving directory `/home3/twh142/netcdf-3.6.2/nf_test'
> make: *** [check-recursive] Error 1
>
>
>
Howdy!
I wonder if this is a variation of the problem here:
http://www.unidata.ucar.edu/software/netcdf/docs/known_problems.html#gfortran_43
Can you try building with CPPFLAGS set to -DgFortran?
If this doesn't work, can you get the snapshot and try it?
http://www.unidata.ucar.edu/software/netcdf/builds/snapshot
If neither of those work, please let me know...
Thanks,
Ed
Ticket Details
===================
Ticket ID: GRE-251795
Department: Support netCDF
Priority: Normal
Status: Closed