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

Re: 941201: netCDF package under Solaris 2.3



> Organization: University of Kansas
> Keywords: 199412011638.AA18088 netCDF build Solaris 2.3

Donna,

> The only compiler I have on this computer is the Sun compiler so that is
> the only one it is possible to use.  I did make clean, configure, and 
> make test again with the same results.  I did see that the -Dconst
> was used under the compiler options.  I actually have errors during 
> the compile for reasons unknown and these could be causing everything
> else to fail.  Should I overwrite the compile options selected by configure
> and if so how would I do it?  I will append my latest log file to this 
> message and you can see if it reveals anything.  Let me know if there is any
> other information you need.

There are some warning messages that we can't suppress when compiling netCDF
with the Solaris compiler, so I don't think those are the problem.  I would
like to find out why configure isn't working the way it should on your
platform, since we can't reproduce the problem here under Solaris 2.3.  I
suspect it is a PATH or other environment variable problem.  It would help
if you would send me the results of executing the following commands.  I've
shown what my results are when I execute these, just for comparison (I
expect no output from the first two).  Your results don't need to be the
same, but seeing what you get will help us diagnose the problem.  Also, we
need a copy of the `config.status' file that was generated by configure when
you ran it.  I've also appended our Solaris 2.3 config.status for
comparison, in case you're interested, but feel free to ignore it.

 % printenv CC
 % printenv CFLAGS
 % which cc
 /opt/SUNWspro/bin/cc
 % printenv LD_LIBRARY_PATH
 /opt/SUNWspro/lib:/opt/SUNWmotif/lib:/usr/openwin/lib:/usr/local/X11R5/lib
 % version `which cc`
 SC3.0 15 Dec 1993

--Russ

----------------- expected config.status for SunOS 2.3 --------------------
#!/bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host buddy:
#
# ./configure --prefix=/home/russ/build

for arg
do
  case "$arg" in
    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    exec /bin/sh ./configure --prefix=/home/russ/build ;;
    *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
  esac
done

trap 'rm -f     Makefile     xdr/Makefile     libsrc/Makefile     
fortran/Makefile     ncgen/Makefile     ncdump/Makefile     nctest/Makefile     
doc/Makefile      port/Makefile port/master.mk libsrc/netcdf.h; exit 1' 1 3 15
CPPFLAGS='-DNDEBUG'
CFLAGS='-O'
OS='sunos'
LIBOBJS=''
PORT_HEADERS=''
PORT_MANIFEST=' which'
PORT_SUBDIRS=''
CC='cc'
AR='ar'
RANLIB='@:'
OLD_FILLVALUES='0'
TRANSFORMEES='port/Makefile port/master.mk libsrc/netcdf.h'
FFLAGS=''
LEX='lex'
YACC='yacc'
XDRFILE='xdrposix'
MACHINE='sun4m'
WHICH='which'
CPP='cc -E'
FC='f77'
NEQN='neqn'
TBL='tbl'
INSTALL='/usr/ucb/install -c'
INSTALL_PROGRAM='$(INSTALL)'
INSTALL_DATA='$(INSTALL) -m 664'
MAKEINFO='makeinfo'
SWAP=''
NETLONG=''
CPP_XDR='-I/usr/include/rpc'
DEFS=' -I/usr/include/rpc'
LIBS=''
XDR_LIBOBJS='xdr.o xdrfloat.o xdrstdio.o xdrarray.o'
XDR_INSTALL_DEPS='installed_headers'
LD_XDR=''
FTPDIR='/home/ftp/pub/sdm'
VERSION='2.3.2'
MAJOR_NO='2'
MINOR_NO='3'
srcdir='.'
DEFS=' -I/usr/include/rpc'
prefix='/home/russ/build'
exec_prefix='/home/russ/build/bin'
prsub='s%^prefix\([     ]*\)=\([        ]*\).*$%prefix\1=\2/home/russ/build%
s%^exec_prefix\([       ]*\)=\([        
]*\).*$%exec_prefix\1=\2/home/russ/build/bin%'

top_srcdir=$srcdir
for file in .. \
    Makefile \
    xdr/Makefile \
    libsrc/Makefile \
    fortran/Makefile \
    ncgen/Makefile \
    ncdump/Makefile \
    nctest/Makefile \
    doc/Makefile \
     ${TRANSFORMEES-}; do if [ "x$file" != "x.." ]; then
  srcdir=$top_srcdir
  # Remove last slash and all that follows it.  Not all systems have dirname.
  dir=`echo $file|sed 's%/[^/][^/]*$%%'`
  if test "$dir" != "$file"; then
    test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
    test ! -d $dir && mkdir $dir
  fi
  echo creating $file
  rm -f $file
  case $file in
    *.c|*.h) echo "/* Generated automatically from `echo $file|sed 
's|.*/||'`.in by configure. */" > $file;;
    *) echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by 
configure." > $file;;
  esac
  sed -e "
$prsub
s%@CPPFLAGS@%$CPPFLAGS%g
s%@CFLAGS@%$CFLAGS%g
s%@OS@%$OS%g
s%@LIBOBJS@%$LIBOBJS%g
s%@PORT_HEADERS@%$PORT_HEADERS%g
s%@PORT_MANIFEST@%$PORT_MANIFEST%g
s%@PORT_SUBDIRS@%$PORT_SUBDIRS%g
s%@CC@%$CC%g
s%@AR@%$AR%g
s%@RANLIB@%$RANLIB%g
s%@OLD_FILLVALUES@%$OLD_FILLVALUES%g
s%@TRANSFORMEES@%$TRANSFORMEES%g
s%@FFLAGS@%$FFLAGS%g
s%@LEX@%$LEX%g
s%@YACC@%$YACC%g
s%@XDRFILE@%$XDRFILE%g
s%@MACHINE@%$MACHINE%g
s%@WHICH@%$WHICH%g
s%@CPP@%$CPP%g
s%@FC@%$FC%g
s%@NEQN@%$NEQN%g
s%@TBL@%$TBL%g
s%@INSTALL@%$INSTALL%g
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
s%@INSTALL_DATA@%$INSTALL_DATA%g
s%@MAKEINFO@%$MAKEINFO%g
s%@SWAP@%$SWAP%g
s%@NETLONG@%$NETLONG%g
s%@CPP_XDR@%$CPP_XDR%g
s%@DEFS@%$DEFS%g
s%@LIBS@%$LIBS%g
s%@XDR_LIBOBJS@%$XDR_LIBOBJS%g
s%@XDR_INSTALL_DEPS@%$XDR_INSTALL_DEPS%g
s%@LD_XDR@%$LD_XDR%g
s%@FTPDIR@%$FTPDIR%g
s%@VERSION@%$VERSION%g
s%@MAJOR_NO@%$MAJOR_NO%g
s%@MINOR_NO@%$MINOR_NO%g
s%@srcdir@%$srcdir%g
s%@DEFS@%$DEFS%
" $top_srcdir/${file}.in >> $file
fi; done

cat << EOF_CONFTEST_C > conftest.c
#include <stdio.h>
main()
{
    return readsub((char*)NULL) ? 0 : 1;
}
readsub(inpath)
    char        *inpath;
{
    char        buf[2048], path[1024];
    FILE        *fp     = inpath == NULL
                                ? stdin
                                : fopen(inpath, "r");
    if (fp == NULL) {
        (void) perror(inpath);
        return 0;
    }
    buf[sizeof(buf)-1]  = 0;
    while (fgets(buf, sizeof(buf), fp) != NULL) {
        if (sscanf(buf, "include%*[] \t[]%s", path) == 1) {
            if (!readsub(path))
                return 0;
        } else {
            (void) fputs(buf, stdout);
        }
    }
    return 1;
}
EOF_CONFTEST_C
if cc -o conftest conftest.c; then
    conftest=`pwd`/conftest
    set     Makefile     xdr/Makefile     libsrc/Makefile     fortran/Makefile  
   ncgen/Makefile     ncdump/Makefile     nctest/Makefile     doc/Makefile      
port/Makefile
    for file do
      echo post processing makefile \`$file\'
      sd=`pwd`/`echo $file | sed 's,[^/]*$,,'`
      base=`basename $file`
      (cd $sd; $conftest < $base > conftest.mk && mv conftest.mk $base)
    done
fi
rm conftest conftest.c