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

20020509: netCDF installation trouble on SGI (cont.)



>From: "Kristin"
>Organization: Lockheed Martin Space Operations
>Keywords: 200204302300.g3UN0Za25954 netCDF SGI configure problems

Kristin,

>I tried your suggestion and the resulting log files are attached. The *.log 
>files are from the run with CPPFLAGS=-DNDEBUG and the *.logANSI are from the 
>run with CPPFLAGS='-ansi -DNDEBUG' -- neither run worked although the second 
>one got a bit farther. What should I try next?

It would be useful for us to get a login to your machine, preferably as
the user doing this build, so we can poke around.

If this is not possible (security, etc.), then we need get you going
and defer finding out where the configure problem is until later.  This
should be pretty easy to do:

o run 'make distclean' to clean up the netCDF source tree
o use whichever set of environment variable defines that will match
  the compiler invocations that you will eventually use:

  If you will build your own applications using 'cc':

CC=/bin/cc
CPP='/bin/cc -E'
FC=/bin/f90
CXX=
CPPFLAGS=-DNDEBUG
CFLAGS=-O
FFLAGS=-O

  If you will build your own applications using 'c89':

CC=/bin/c89
CPP='/bin/c89 -E'
FC=/bin/f90
CXX=
CPPFLAGS=-DNDEBUG
CFLAGS=-O
FFLAGS=-O

o rerun configure

After configure runs (and it should run to completion in each of these
scenarios), edit the libsrc/ncconfig.h file and comment out the
line that defines ptrdiff_t.  This should look like:

#define ptrdiff_t int

Comment it out to look like:

/* #define ptrdiff_t int */

After modifying ncconfig.h, you should be able to run make with no errors
(the errors were coming from the define of ptrdiff_t from configure and
the existence of a 'typedef int ptrdiff_t' in a system include file.

If your build errors with an additional error that looks like the 
ptrdiff_t error:
  
  cc-1084 c89: ERROR File = /usr/include/stddef.h, Line = 37
    The indicated declaration has an invalid combination of type specifiers.
  
    typedef int         ptrdiff_t;
                        ^
  
  1 error detected in the compilation of "attr.c".
  *** Error code 2 (bu21)
  *** Error code 1 (bu21)
  *** Error code 1 (bu21)


Follow the same procedure of editing libsrc/ncconfig.h to remove the define
of that variable.

The login to your site would be the most useful thing for us to really
understand why you alone of all of our IRIX64 users experience this problem.

Tom