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

960524: Solaris 2.5 /usr/ucb/cc compile problems



Carl,

> To: address@hidden
> From: Carl I. Steefel <address@hidden>
> Subject: STEVE: Problems compiling both udunit and netcdf
> Organization: University of South Florida
> Keywords: 199605240059.AA01593

In the above message you wrote:

>  I am helping somebody to compile crdtools which requires first 
> compiling both udunit and netcdf.  We can't get either to compile 
> at the moment, although it may be the same error.
> 
>   In 
> 
>      crdtools/udunits-1.10.7/src/port/misc
> 
> trying to compile config.c (same error message using the Makefile 
> farther up), we get 
> 
>    /usr/ucb/cc:  language optional software package not installed
>
> I can't find any reference to what this optional software might be.
> Presumably there is something missing in the C compiler here 
> (we are running Solaris 2.5).  I tried the flags suggested but 
> they have no effect.  When running configure in netcdf, it never 
> creates a Makefile because it can't find conftest apparently.
> Do you have any idea what we might be missing?
> 

Usually, the above message means that the compiler either hasn't been
purchased or hasn't been licenced for the system (i.e. there's no way
it'll do anything).

You might try another compiler (which would be a good thing regardless
because /usr/ucb/cc will probably choke on either netCDF or UDUNITS --
it's a very old and non-standard compiler).  To use another compiler, do
the following:

    1.  Go to the top-level source directory.

    2.  Set the variable CC in either the environment or in the file
        CUSTOMIZE, e.g.

            $ CC=/opt/SUNWspro/bin/cc export CC

        or

            % setenv CC /opt/SUNWspro/bin/cc

    3.  Remove the file `config.cache' if it exists.

    4.  Re-execute the configure script.  Trap the output and send it
        to me if something goes wrong.

>   Also in netcdf, is the FORTRAN required to run the code.  I found 
> a FORTRAN library under libF77.so in /usr/4lib which is perhaps 
> the old FORTRAN library for the old SunOS4.X ??  There doesn't seem 
> to be an f77 command in bin or /usr/bin (I am using somebody else's 
> machine).

On our Solaris 2.5 system, the f77 FORTRAN compiler is
/opt/SUNWspro/bin/f77.

A FORTRAN compiler isn't necessary in order to build either package --
you just won't have the FORTRAN interface as a result.  To skip the
FORTRAN portions, just set the variable FC to the empty string before
executing the configure script, e.g.

    $ FC= ./configure >configure.log 2>&1

Please let me know if this helps.

--------
Steve Emmerson   <address@hidden>