This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Dana, You can probably add to $CONFIGDIR/Makeinc.sol: NCOPT = "CXX= " That will skip building the C++ interface to NetCDF (which isn't used by Gempak). You might also need to do a "make distclean" from $GEMPAK/source/netcdf-3.4/src and remove any files in $NAWIPS/netcdf/sol/lib. In the latest 5.6.D.1 distribution, I packaged NetCDF 3.5.0. Don't know if that would make a difference for you. Steve Chiswell Unidata User Support >From: Dana Price <address@hidden> >Organization: UCAR/Unidata >Keywords: 200107261831.f6QIVw113008 >I'm building gempak 5.6 on a Sun enterprise 420, Solaris 8 with Sun >workshop compiler 5.0. It's dying while building netCDF. After searching >the web, I'm getting the impression that everybody who is building >netCDF is using v6.0 of the compiler. Do I need to upgrade? Any help >greatly appreciated. > >--------------------------------------------- >Dana Price <address@hidden> >Systems Administrator >Rutgers, The State University >Department of Environmental Sciences >Center for Environmental Prediction >--------------------------------------------- > >Making `all' in directory >/usr/local/gempak5.6/gempak/source/netcdf-3.4/src/cxx > >CC -c -O -I../libsrc -DNDEBUG netcdf.cc >"/usr/include/iso/wchar_iso.h", line 100: Error: Multiple declaration for >mbstate_t. >"/opt/SUNWspro/SC5.0/include/CC/./iosfwd", line 51: Error: The name >mbstate_t is ambiguous, std::mbstate_t and std::mbstate_t. >"/opt/SUNWspro/SC5.0/include/CC/./iosfwd", line 78: Error: The name >mbstate_t is ambiguous, std::mbstate_t and std::mbstate_t. >"/opt/SUNWspro/SC5.0/include/CC/rw/iotraits", line 56: Error: The name >mbstate_t is ambiguous, std::mbstate_t and std::mbstate_t. >4 Error(s) detected. >*** Error code 4 >make: Fatal error: Command failed for target `netcdf.o' >Current working directory >/usr/local/gempak5.6/gempak/source/netcdf-3.4/src/cxx >*** Error code 1 >make: Fatal error: Command failed for target `subdir_target' >Current working directory >/usr/local/gempak5.6/gempak/source/netcdf-3.4/src >*** Error code 1 >make: Fatal error: Command failed for target `cxx/all' >Current working directory >/usr/local/gempak5.6/gempak/source/netcdf-3.4/src >*** Error code 1 >make: Fatal error: Command failed for target `lnetcdf' >Current working directory /usr/local/gempak5.6/gempak/source/netcdf-3.4 >*** Error code 1 >make: Fatal error: Command failed for target >`/usr/local/gempak/netcdf/sol/lib/libnetcdf.a' >Current working directory /usr/local/gempak5.6/gempak/source/netcdf-3.4 >*** Error code 1 >make: Fatal error: Command failed for target `all' >Current working directory /usr/local/gempak5.6/gempak/source >*** Error code 1 >make: Fatal error: Command failed for target `all' >Current working directory /usr/local/gempak5.6/gempak >*** Error code 1 >make: Fatal error: Command failed for target `all' > >========================================================== >