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

Re: 980304: netcdf Linux Installation problems



Michael,

> To: address@hidden
> cc: address@hidden ()
> From: address@hidden
> Subject: netcdf Linux Installation problems
> Organization: NASA/GSFC
> Keywords: 199803041947.MAA25833

In the above message, you wrote:

>   I am trying to install NetCDF 3.3.1 on a PPro 200 running Linux.
> The Linux kernel is 2.0.32 and it is the Red Hat 5.0 distribution.
> Configure fails with an error that states 'can not run test program
> while cross compiling' immediately after 'checking whether char is
> unsigned'. I am using gcc, g++, and g77 (the 'usual' GNU C and 
> Fortran package). Any ideas? My config.log file is as follows:
> 
> - -------------------------------------
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
> 
> configure:1017: /usr/bin/cc -c -O -Df2cFortran -DNDEBUG conftest.c 1>&5
> configure:1150: /usr/bin/c++ -c  -Df2cFortran -DNDEBUG conftest.C 1>&5
> configure:1217: /usr/bin/cc -E -Df2cFortran -DNDEBUG conftest.c >/dev/null 
> 2>conftest.out
> configure:1316: g77 -c -O conftest.f
> configure:1415: g77 -o conftest -O conftest.F  
> configure:1456: g77 -c -O conftest.f
> configure:1491: g77 -c -O conftest.f
> configure:1514: g77 -c -O conftest.f
> configure:1548: /usr/bin/cc -c -Df2cFortran -DNDEBUG -O conftest.c
> configure:1550: g77 -o conftest -O  conftestf.f conftest.o 
> configure:1552: ./conftest
> configure:1590: /usr/bin/cc -c -Df2cFortran -DNDEBUG -O conftest.c
> configure:1592: g77 -o conftest -O  conftestf.f conftest.o 
> configure:1594: ./conftest
> configure:1632: /usr/bin/cc -c -Df2cFortran -DNDEBUG -O conftest.c
> configure:1634: g77 -o conftest -O  conftestf.f conftest.o 
> configure:1636: ./conftest
> configure:1678: /usr/bin/cc -c -Df2cFortran -DNDEBUG -O conftest.c
> configure:1680: g77 -o conftest -O  conftestf.f conftest.o 
> configure:1682: ./conftest
> configure:1720: /usr/bin/cc -c -Df2cFortran -DNDEBUG -O conftest.c
> configure:1722: g77 -o conftest -O  conftestf.f conftest.o 
> configure:1724: ./conftest
> configure:1764: /usr/bin/cc -c -Df2cFortran -DNDEBUG -O conftest.c
> configure:1766: g77 -o conftest -O  conftestf.f conftest.o 
> configure:1768: ./conftest
> configure:1764: /usr/bin/cc -c -Df2cFortran -DNDEBUG -O conftest.c
> configure:1766: g77 -o conftest -O  conftestf.f conftest.o 
> configure:1768: ./conftest
> configure:1806: /usr/bin/cc -c -Df2cFortran -DNDEBUG -O conftest.c
> configure:1808: g77 -o conftest -O  conftestf.f conftest.o 
> configure:1810: ./conftest
> configure:1806: /usr/bin/cc -c -Df2cFortran -DNDEBUG -O conftest.c
> configure:1808: g77 -o conftest -O  conftestf.f conftest.o 
> configure:1810: ./conftest
> configure:1848: /usr/bin/cc -c -Df2cFortran -DNDEBUG -O conftest.c
> configure:1850: g77 -o conftest -O  conftestf.f conftest.o 
> configure:1852: ./conftest
> configure:1848: /usr/bin/cc -c -Df2cFortran -DNDEBUG -O conftest.c
> configure:1850: g77 -o conftest -O  conftestf.f conftest.o 
> configure:1852: ./conftest
> configure:1882: g77 -c -O conftest.f
> configure:1903: g77 -c -O conftest.f
> configure:1943: /usr/bin/cc -o conftest -O -Df2cFortran -DNDEBUG  conftest.c 
> -lc   1>&5
> /tmp/cca187731.o: In function `t':
> /tmp/cca187731.o(.text+0x14): undefined reference to `tanh'
> configure:1977: /usr/bin/cc -o conftest -O -Df2cFortran -DNDEBUG  conftest.c 
> -lm   1>&5
> configure:2072: /usr/bin/cc -E -Df2cFortran -DNDEBUG conftest.c >/dev/null 
> 2>conftest.out
> configure:2106: /usr/bin/cc -E -Df2cFortran -DNDEBUG conftest.c >/dev/null 
> 2>conftest.out
> configure:2156: /usr/bin/cc -o conftest -O -Df2cFortran -DNDEBUG  conftest.c  
> 1>&5
> configure:2204: /usr/bin/cc -o conftest -O -Df2cFortran -DNDEBUG  conftest.c  
> 1>&5
> configure:2238: /usr/bin/cc -c -O -Df2cFortran -DNDEBUG conftest.c 1>&5
> configure:2270: /usr/bin/cc -o conftest -O -Df2cFortran -DNDEBUG  conftest.c  
> 1>&5
> configure:2351: /usr/bin/cc -E -Df2cFortran -DNDEBUG conftest.c >/dev/null 
> 2>conftest.out

I'll need more information in order to help you.  Would you please do
the following:

    1.  Go to the top-level, netCDF, source directory.

    2.  Execute the command "make clean".  Don't worry if it fails or
        even fails to execute.

    3.  Set your environment variables as before.

    4.  Execute the configure script.  Redirect standard output and
        standard error to the file "configure.log".  Send me the file.

--------
Steve Emmerson   <http://www.unidata.ucar.edu>