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

Re: 19980729: problems with netcdf configure..



>To: address@hidden
>From: m verlander <address@hidden>
>Subject: problems with netcdf configure..
>Organization: .
>Keywords: 199807291437.IAA00397

Hi Morris,

> hoping that someone could help us.  problems
> compiling netcdf-3.4.
> 
> 'ftest' hangs @ :
> 
> "g77 -o ftest -O ftest.o ../libsrc/libnetcdf.a
> ftest.o: In function 'MAIN__':
> ftest.o(.test+0x14) : undefined reference to 'ncpopt_'
> ...and on
> 
> note:  configure reports:
> 
> checking for Fortran "byte" is C "short"... no
> checking for Fortran "byte" is C "int"... no
> checking for Fortran "byte" is C "long"... no
> 
> compiling this on Linux/i586 v2.0.29
> gcc version 2.7.2.1
> g77 version 0.5.19.1
> 
> would _deeply_ appreciate some help.
> 
> thanks..morris verlander
>         address@hidden
>         504.273.4805

We don't have access to a g77 under Linux that works, so our INSTALL
document recommends the use of /usr/bin/fort77 as the Fortran compiler
instead.  INSTALL includes a couple of configure settings that worked
for us.

Phil Austin <address@hidden> reported that the following worked on his
Debian 1.3 Linux system with g77:

    $ uname -a
    Linux curlew 2.0.27 #2 Tue May 6 17:57:24 PDT 1997 i686

    CPPFLAGS='-Df2cFortran -DNDEBUG'
    CC=/usr/bin/cc # version 2.7.2.1-4
    CFLAGS=-O
    FC=g77 # version 0.5.19.1-1
    FFLAGS=-O
    CXX=/usr/bin/c++

Jan Polcher reported that he added "-ff2c" to his FFLAGS option and it
worked.

So all I can recommend is that you try one of these alternatives.
Please let us know the details if you find a combination that works.

--Russ

_____________________________________________________________________

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