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

Re: 950822: Solaris 2.4 installation (netCDF)



>Keywords: 199508222140.AA12696

Hi Joel,

> When I attempted to make "all" on my SPARCstation 20
> running Solaris 2.4, a number of error messages were
> observed (see log file attached below).  These errors
> cause the "test" of the XDR library to fail.
> 
> What solution do you suggest ?
> 
> thanks,
> 
> Joel Burley
 ...
> making `all' in directory /usr/local/netcdf/netcdf-232pl2/port
> 
> cc -c -I.  -Dconst= -O uddummy.c

Are you using the Sun C compiler?  If so, it appears as if you might have
forgotten to run `configure' before running `make', because the compiler
flags that your `make' is using are different from what should have been
generated by first running `configure'.  For example, where your `make'
output began with:

> cc -c -I. -DNDEBUG -Dconst= -O uddummy.c

we see

  cc -c -I. -DNDEBUG -O uddummy.c

instead on our Solaris 2.4 system using Sun's compiler, because the
configure step has figured out that the compiler supports "const"
declarations properly, as any ANSI C compiler should.

Another possibility is that your PATH environment variable is set to find
the wrong compiler.  What do you get when you invoke

  which cc

(if you use csh), or

  whence cc

(if you use sh or ksh)?  If you get /usr/ucb/cc, that compiler for the BSD
compatibility package doesn't really work very well, and is not an ANSI C
compiler.  Set your PATH so it finds an ANSI C compiler, if you have one.

Also, before running `configure', if you have previously built netCDF for
another platform or built it unsuccessfully, you should run `make clean' to
get rid of any left over object files or libraries.

Please let us know if this doesn't solve the problem, and we'll investigate
further.

______________________________________________________________________________

Russ Rew                                           UCAR Unidata Program
address@hidden                              http://www.unidata.ucar.edu