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

[netCDF #KVR-965537]: Building netcdf-4.0 on mac os x - make check



> Hi,
>
> If I build the fortran interface make check fails in nf_test with
>
> libtool: link: /opt/local/bin/gfortran-mp-4.3 -I../fortran -I../libsrc
> -I../fortran -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
> Undefined symbols:
> "_nf_put_var_real_", referenced from:
> _test_nf_put_var_real_ in test_put.o
> _test_nf_put_var_real_ in test_put.o
> _test_nf_put_var_real_ in test_put.o
> _test_nf_put_var_real_ in test_put.o
> _test_nf_put_var_real_ in test_put.o
> etc.

Howdy David,

To solve this problem you need to set CPPFLAGS to -DpgiFortran, and then rerun
the configure and make. (Do a make distclean before you rerun configure, to
start off clean.)


>
> all the undefined symbols start with _nf_ except _max_float_,
> _max_short_, _max_double_, _min_schar_, etc.

This sounds like a macintosh problem. Could you try setting LIBS=-lm to include
the math library before you rebuild netCDF?

Please let me know if this doesn't help.

Thanks,

Ed

Ticket Details
===================
Ticket ID: KVR-965537
Department: Support netCDF
Priority: Normal
Status: Closed