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.
>To: address@hidden >From: Jason Novotny <address@hidden> >Subject: netcdf 3.5 on solaris 8 with workshop pro >Organization: Grid Technology Group, Lawrence Berkeley Laboratory >Keywords: 200201302009.g0UK9Rx29582 Hi Jason, > I can't compile netcdf on solaris 8 using workshop pro 6.2 compilers > (C, C+_, Fortran 77/90)-- does this library build on solaris?? > > novotny@portnoy(72)>which cc > /usr/local/csnfs/lang-6.2/SUNWspro/bin/cc > novotny@portnoy(73)>setenv CC cc > novotny@portnoy(74)>./configure > loading cache ./config.cache > checking for top-level source-directory > /home/shared/src/netcdf-3.5.0/src > checking for m4 preprocessor > checking for m4... (cached) m4 > checking m4 flags... -B10000 > checking C compiler "cc="... failed to compile test program Solaris is our primary development platform for netCDF, so we always test on it first. The 3.5.0 distribution builds without problems on our Solaris 7 and 8 platforms using cc, c89, and gcc and the environment variable settings listed in the INSTALL document at http://www.unidata.ucar.edu/packages/netcdf/INSTALL.html I'm not sure whether we have "workshop pro 6.2" compilers, but I get: $ /opt/SUNWspro/bin/cc -V cc: Sun WorkShop 6 2000/06/19 C 5.1 Patch 109491-02 Are you sure your C compilation environment is set up correctly? You can look in the "config.log" file to see the reason the configure script determined that cc couldn't compile the test program. These test programs are typically very simple "Hello, world" type tests, so the reason should be evident from the error message in "config.log" ... --Russ _____________________________________________________________________ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu