Re: [netcdfgroup] Difficulties building ncks-4.0.1 and cdo-1.4.4 against netCDF-4.1.1

I ran into the multiple definitions too. I had to define CPPFLAGS= -DHAVE_NETCDF4_H which is similar to what Jennifer just said.

         export NETCDF4_ROOT="$(prefix)/"; \
         export NETCDF_LIB="$(prefix)/lib"; \
         export NETCDF_INC="$(prefix)/include/netcdf"; \
         export PATH="$(prefix)/bin:$(PATH)" ;\
export CPPFLAGS="$(CPPFLAGS) $(INC_SUPP) -DHAVE_NETCDF4_H -I$(prefix)/include/netcdf";\
         export LIBS="-L$(prefix)/lib $(LIB_HDF5) $(LIB_CURL)  -lm" ;\

Hope this help.
Denis


David Pierce wrote:
Hi Gary,

I ran into the multiple definitions problem as well.  Not wanting to spend
time messing with it, I simply commented out the redundant definitions in
the nco source code (the make error messages show the file and line
numbers) and that worked.   This is on a Ubundu 8.04 LTS x64 system.

Regards,

--Dave


Gary Strand wrote:
I'm having significant problems getting nco-4.0.1 and cdo-1.4.4 to
build against netCDF-4.1.1/hdf5-1.8.4patch1 on a reasonably generic
Linux 64-bit system.

'nco' reports many multiple definitions during 'make'; 'cdo' fails on
'configure' because it can't find 'nc_open'.

Does anyone have any hints/suggestions as to get past these problems?

Thanks!

Gary Strand
strandwg@xxxxxxxx



_______________________________________________
netcdfgroup mailing list
netcdfgroup@xxxxxxxxxxxxxxxx
For list information or to unsubscribe,  visit:
http://www.unidata.ucar.edu/mailing_lists/




-------------------------------------------------------------------
David W. Pierce
Division of Climate, Atmospheric Science, and Physical Oceanography
Scripps Institution of Oceanography
(858) 534-8276 (voice)  /  (858) 534-8561 (fax)    dpierce@xxxxxxxx
-------------------------------------------------------------------


_______________________________________________
netcdfgroup mailing list
netcdfgroup@xxxxxxxxxxxxxxxx
For list information or to unsubscribe, visit: http://www.unidata.ucar.edu/mailing_lists/


--
-----------------------------------------------------
Denis Nadeau, (ERT Inc.) Global Modeling and Assimilation Office (GMAO)
NASA Goddard Space Flight Center
Mailcode 610.5
8800 Greenbelt Road
Greenbelt, MD 20771
Email: denis.nadeau@xxxxxxxx
Phone: (301) 614-6828           Fax:   (301) 614-5304
-----------------------------------------------------



  • 2010 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: