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

960701: building netCDF-2.4.2 on SGI Power Challenge with `-n32' option



Christi,

>Date: Mon, 1 Jul 1996 09:11:09 -0600 (MDT) 
>From: Christi Forsythe <address@hidden>
>Organization: Sandia National Laboratory
>To: address@hidden (Steve Emmerson)
>Subject: Re: 960701: building netCDF-2.4.2 on SGI Power Challenge with `-n32' 
option 
>Keywords: 199606282323.AA10779

In the above message you wrote:

> Steve,
> 
> I'll put all the information you requested in this email along with
> what I sent you the other day.
> Just to review, we need to compile our version of netcdf 2.4.2 with
> the -n32 option
> 
> wallaby 55% uname -a
> IRIX64 wallaby 6.1 07121823 IP21 mips
> 
> 1. I set all the environment variables to turn off the c++ and 
> include the -n32 flag 
> OS=irix64 
> CXX= 
> CXXCPPFLAGS= 
> CXXFLAGS= 
> CFLAGS=-O -n32 -xansi 
> (I tried this with both CFLAGS=-O -n32 and CFLAGS=-O -n32 -xansi 
> and got the same results both times) 
>  
> 2. ./configure --prefix=/scr2/caforsy/netcdf > cf.log 
> configure: warning: ./configure: Can't find program `neqn'; setting to `cat' 
> configure: warning: ./configure: Can't find program `tbl'; setting to `cat' 
> expanding `include's in file `Makefile' 
> expanding `include's in file `xdr/Makefile' 
> expanding `include's in file `libsrc/Makefile' 
> expanding `include's in file `fortran/Makefile' 
> expanding `include's in file `cxx/Makefile' 
> expanding `include's in file `ncgen/Makefile' 
> expanding `include's in file `ncdump/Makefile' 
> expanding `include's in file `nctest/Makefile' 
> expanding `include's in file `doc/Makefile' 
> expanding `include's in file `port/master.mk' 
> expanding `include's in file `port/Makefile' 
>  

Interesting.  My IRIX64 6.1 system has both the neqn(1) and tbl(1)
utilities.  It's odd (but irrelevant) that your's doesn't.

> cf.log
> creating cache ./config.cache
> checking for catman... no
> checking for fill-value usage... new usage
> checking the installation prefix... /scr2/caforsy/netcdf
> checking the installation exec-prefix... /scr2/caforsy/netcdf
> checking for c89... no
> checking for cc... cc
> checking type of operating system... irix64
> checking type of machine... ip21
> checking for ranlib... :
> checking how to run the C preprocessor... cc -E
> checking the C preprocessor... works
> checking for f77... f77
> checking for C++ compiler...
> checking for yacc... yacc
> checking for neqn... cat
> checking for tbl... cat
> checking for ar... ar
> checking for makeinfo... no
> checking for tar flags... -chof
> checking for dependency generation mechanism... cc -M
> checking whether cross-compiling... no
> checking size of int... 4
> checking size of long... 4
> checking type of nclong... long
> checking endianess... big endian
> checking type of netlong... long
> checking type of internal netlong... long
> checking for XDR header-file... -I/usr/include/rpc
> checking for XDR library...
> checking for xdr_long in default library... yes
> checking XDR implementation... ok
> checking type pointed to by inline XDR function... long
> checking XDR library for xdr_getint()... yes

The last line above indicates the problem.  The configure script decided
that your system has the xdr_getint() function when (in actuality) it
doesn't.  We'll have to upgrade your configure script.

Try this: edit your configure script, change the following:

        echo $ac_n "checking XDR library for xdr_getint()""... $ac_c" 1>&6
        case "$OS" in
            irix64)
                echo "$ac_t""yes" 1>&6
                HAS_XDR_GETINT=1;;
            *)  echo "$ac_t""no" 1>&6
                HAS_XDR_GETINT=0;;
        esac
        cat >> confdefs.h <<EOF
    #define HAS_XDR_GETINT $HAS_XDR_GETINT
    EOF

to this (remove the 4-blank indentation on each line):

        echo $ac_n "checking XDR structure xdr_ops for x_getint member""... 
$ac_c" 1
    >&6
        cat > conftest.$ac_ext <<EOF
    #line 2184 "configure"
    #include "confdefs.h"

    #include <rpc/types.h>
    #include <rpc/xdr.h>,

    int main() { return 0; }
    int t() {

    struct xdr_ops ops;
    ops.x_getint = (int(*)())0;

    ; return 0; }
    EOF
    if { (eval echo configure:2198: \"$ac_compile\") 1>&5; (eval $ac_compile) 
2>&5;
    }; then
      rm -rf conftest*
                echo "$ac_t""yes" 1>&6
                HAS_XDR_GETINT=1

    else
      rm -rf conftest*
                echo "$ac_t""no" 1>&6
                HAS_XDR_GETINT=0

    fi
    rm -f conftest*
        cat >> confdefs.h <<EOF
    #define HAS_XDR_GETINT $HAS_XDR_GETINT
    EOF

Then, remove the file `config.cache' and re-execute the configure script.

Please let me know if this helps.

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