Hi Davide, > Running the configure script for netcdf4.1.3-beta1 fails (making the > install on bluefire more challenging than usual) > > The root cause of this problem is that configure "forgets" to use the > required includes. > > For example, calling > > ./configure --enable-netcdf-4 --with-udunits --with-libcf > --with-hdf5=/contrib/hdf5-1.8.6_seq --with-zlib=/contrib/zlib/ > --with-szlib=/contrib/szip/ --prefix=/contrib/somewhere > > will produce the following (which fails) in config.log for 4.1.3-beta1 > > configure:26283: checking for H5Fflush in -lhdf5 > configure:26308: xlc_r -o conftest -qarch=auto -qtune=auto -qcache=auto > -L/contrib/szip/lib -L/contrib/zlib/lib conftest.c -lhdf5 -lz -lm -lm > -lsz >&5 > > whereas it produced the following (which succeeded) in 4.1.2: > > configure:26822: checking for H5Fflush in -lhdf5 > configure:26847: xlc_r -o conftest -qarch=auto -qtune=auto -qcache=auto > -I/contrib/zlib//include -I/contrib/hdf5-1.8.6_seq/include > -I/contrib/szip//include -L/contrib/szip/lib -L/contrib/zlib/lib -L/contri > b/zlib//lib -L/contrib/hdf5-1.8.6_seq/lib -L/contrib/szip//lib > conftest.c -lhdf5 -lz -lm -lsz >&5 When 4.1.3-beta1 was announced, the following was included (but not very prominently) in the netcdfgroup announcement: This release also includes a simplification of the netCDF build process. Several configure options have been removed, including the --with-hdf5 option. (Instead set CPPFLAGS and LDFLAGS to appropriate values.) In particular, the location of the HDF5, zlib, and (if built into HDF5) the szip header files and libraries are now all specified in the CPPFLAGS and LDFLAGS environment variables, instead of with "--with-hdf5", "--with-zlib", or "--with-szlib" options. The new, simpler way to build netCDF-4 with HDF5 is documented in a simpler installation guide: http://www.unidata.ucar.edu/netcdf/docs_beta/netcdf-install.html#Quick-Instructions So I think things should work by setting LDFLAGS and CPPFLAGS appropriately. This change was intended to make netCDF work more like other open source installations, but it may cause problems initially. Please let us know if using environment variables to specify the locations for dependent libraries and include files doesn't work for you ... --Russ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: LHQ-297925 Department: Support netCDF Priority: Normal Status: Closed
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.