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

[netCDF #HUZ-904606]: library linking problem



> Ed,
> 
> Thank you kindly for your reply!
> 
> I replaced the library
> name with netcdf as you suggested and got to another error,
> found your answer on the web which is that I can't use a precompiled
> binary on my Mac Book!  32 bit something rather than 64. Dooh!
> 
> Am back to trying to compile myself.
> 
> FYI went to the precompiled
> 3.6.0 cause I got further with that than with 3.6.1 which didn't
> download into the proper 4 directories - lib, bin, include ...
> But never mind, won't work here anyway.
> 
> Ok, now I download (3.6.1) and ./configure all seems ok.
> 
> I have g77 for a fortran compiler and no f90.
> 
> When I type make I get this error
> 
> Making `all' in directory /pru/netcdf-3.6.1/src/ncgen
> 
> cc -o ncgen -g -O2  main.o load.o ncgentab.o escapes.o getfill.o init.o
> genlib.o ../libsrc/libnetcdf.a
> 
> Returning to directory /pru/netcdf-3.6.1/src
> 
> 
> Making `all' in directory /pru/netcdf-3.6.1/src/ncdump
> 
> cc -o ncdump -g -O2  ncdump.o vardata.o dumplib.o ../libsrc/libnetcdf.a
> 
> Returning to directory /pru/netcdf-3.6.1/src
> 
> 
> Making `all' in directory /pru/netcdf-3.6.1/src/cxx
> 
> ar cru libnetcdf_c++.a netcdf.o ncvalues.o
> ranlib libnetcdf_c++.a
> g++ -o nctst -g -O2  nctst.o libnetcdf_c++.a ../libsrc/libnetcdf.a
> 
> Returning to directory /pru/netcdf-3.6.1/src
> 
> 
> Making `all' in directory /pru/netcdf-3.6.1/src/fortran
> 
> cc -c -g -O2 -I.. -I../libsrc   -Df2cFortran fort-attio.c
> In file included from fort-attio.c:6:
> ncfortran.h:27:42: error: NF_INT_IS_C_... not defined: No such file or
> director
> fort-attio.c:12: error: parse error before 'NF_INTEGER'
> ....
> 
> and so.
> 
> Found a reference to this error on your support pages, but
> <http://www.unidata.ucar.edu/support/help/MailArchives/netcdf/msg03264.html>
> which led me to
> <http://www.unidata.ucar.edu/software/netcdf/docs/known_symptoms.html#NF_INT_IS_C>
> which led me to
> <http://www.unidata.ucar.edu/software/netcdf/docs/known_symptoms.html#ifort_config>
> Which didn't make any sense to me ...
> 
> Sorry to be daft, but I can't find libimf.so or ifortvars.sh (which
> maybe I dont need with g77?)
> 
> Thanks AGAIN! for your help,
> 
> Pru
> 

Howdy Pru!

I would like you to get the latest netCDF daily snapshot instead of 3.6.1. I am 
about to release the snapshot as 3.6.2, and it builds better on macs than 3.6.1.

Get the snapshot here:
ftp://ftp.unidata.ucar.edu/pub/netcdf/snapshot/netcdf-daily.tar.gz

Since you don't have F90, build it like this:

./configure --disable-f90 > out.txt
make check >> out.txt

If this does not work for you out of the box, then send me the complete ascii 
output of the configure and the make (i.e. the file out.txt).

Thanks,

Ed


Ticket Details
===================
Ticket ID: HUZ-904606
Department: Support netCDF
Priority: Normal
Status: Open