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

Re: 970502: install error



>To: address@hidden
>From: SONGYONGJIA <address@hidden>
>Subject: install error
>Organization: national climate center
>Keywords: 199705020847.CAA21313

Hi Songyongjia,

>        I have download netcdf-3.3a.tar from http://www.unidata.ucar.edu
> and I have also install it to IBM-RS6000.But I typed "make test", I got
> some errors when it was processing  "Making `test' in directory
> /home/songyj/netcdf-3.3a/src/fortran, xlf   ftest.o
> ../libsrc/libnetcdf.a -o ftest". The errors was like this: Undefined
> symbol: ncpopt, nccre, ncddef, ncvdef, ncapt, ncaptc, ncclos, ncopn,
> ncvpt1, ncvp1c, ncvgt1, ncvg1c, ncvpt, ncvptc, ncinq, ncdinq, ncdid,
> ncvinq, ncanam, ncainq, ncvgt, ncvgtc, ncagt, ncagtc, ncredf, ncdren,
> ncvid, ncvren, ncaren, ncendf, ncacpy, ncadel.
>      Could you tell me how to solve this problem?
>      Thank you!

I can't duplicate this problem when following the instructions in the
INSTALL file on an AIX 4.2 RS6000 platform.

After unpacking the netcdf-3.3a.tar.Z file and changing to the
netcdf-3.3a/src directory, I first ran the configure script, which
produced the following output:

  $ ./configure
  creating cache ./config.cache
  checking for xlf... xlf
  checking for f77... (cached) xlf
  checking for c89... c89
  checking type of operating system... aix
  checking type of machine... rs6000
  checking for ar... ar
  checking for ranlib... ranlib
  checking how to run the C preprocessor... c89 -E
  checking for stdlib.h... yes
  checking for sys/types.h... yes
  checking for strerror... yes
  checking for ftruncate... yes
  checking for st_blksize in struct stat... yes
  checking whether cross-compiling... no
  checking for IEEE floating point format... yes
  checking for ANSI C header files... yes
  checking for size_t... yes
  checking for off_t... yes
  checking for ssize_t... yes
  checking for ptrdiff_t... yes
  checking for uchar... yes
  checking whether char is unsigned... yes
  checking whether byte ordering is bigendian... yes
  checking size of short... 2
  checking size of int... 4
  checking size of long... 4
  checking size of float... 4
  checking size of double... 8
  checking size of off_t... 4
  checking size of size_t... 4
  updating cache ./config.cache
  creating ./config.status
  creating macros.make
  creating libsrc/ncconfig.h

You may have to rm "config.cache" and rerun the configure script to see
if you get similar results.  Then I just typed "make all test", and
everything worked:

  $ make all test

  Making `all' in directory /home/russ/netcdf-3/aix_4.2-rs6000/src/libsrc

          c89 -c     -D_ALL_SOURCE attr.c
          c89 -c     -D_ALL_SOURCE dim.c
          c89 -c     -D_ALL_SOURCE error.c
  ...
  Making `test' in directory /home/russ/netcdf-3/aix_4.2-rs6000/src/fortran

          ar rcuv ../libsrc/libnetcdf.a jackets.o
          ranlib ../libsrc/libnetcdf.a
          ./fortc -L . -O aix ftest.src > ftest.f
          xlf -c  -c ftest.f
          xlf   ftest.o  ../libsrc/libnetcdf.a -o ftest
          ./ftest
  *** Testing nccre ...
  *** Testing ncddef ...
  *** Testing ncvdef ...
  *** Testing ncapt, ncaptc ...

  ...

If you were using a directory where a previous netcdf distribution had
been built for another platform and did not rm "config.cache" or type
"make clean" before running the "configure" script, that might explain
why it didn't work for you.  I suggest you follow these steps from the
netcdf-3.3a/src/ directory and if it still doesn't work, send us the
output:

  rm -f config.cache
  make clean
  ./configure --prefix=<wherever you want it installed>
  make all test

--Russ

_____________________________________________________________________

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