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

960730: NetCDF 2.4.2 installation problem: undefined XDR symbols



Dear Super-User,

> To: address@hidden
> From: Super-User <address@hidden>
> Subject: NetCDF installation problem
> Organization: IRPEM-CNR
> Keywords: 199607301748.AA18939

In the above message you wrote:

> I have just downloaded the latest version of NetCDF (2.4.2) and I am
> trying to install it on a Sun Ultra-1 with Solaris 2.5, SPARCompiler C
> 4.0 and SPARCompiler FORTRAN 77 4.0; I did the installation process,
> during the "make all" phase I got this kind of error message:
> ________________________________________________________________________
> 
> "error.c", line 130: va_start: argument mismatch
> "error.c", line 203: va_start: argument mismatch
> "error.c", line 150: warning: improper pointer/integer combination: op
> "="
> ________________________________________________________________________
> 
> then making the test, it stops with these messages:
> ________________________________________________________________________
> 
> *** Testing nctypelen ...     ok ***
> 
> returning to directory /opt/util/netcdf/netcdf-2.4.2/src
> 
> 
> making `test' in directory /opt/util/netcdf/netcdf-2.4.2/src/fortran
> 
> ./fortc -L . -O sunos5 jackets.src > jackets.c
> cc -c -O -I../libsrc  -Dconst= jackets.c
> ar rcuv ../libsrc/libnetcdf.a jackets.o
> a - jackets.o
> ar: writing ../libsrc/libnetcdf.a
> ranlib ../libsrc/libnetcdf.a
> ./fortc -L . -O sunos5 common.inc > netcdf.inc
> ./fortc -L . -O sunos5 ftest.src > ftest.f
> f77 -c  ftest.f
> ftest.f:
>  MAIN ftest:
>       tncacpy:
>       tncadel:
>       tncagt:
>       tncapt:
>  BLOCK DATA:
>       tncddef:
>       tncinq:
>       tncredf:
>       tncvdef:
>       tncvgt:
>       tncvgt1:
>       tncvpt:
>       tncvpt1:
>       tfills:
> f77 -o ftest ftest.o -L../libsrc -lnetcdf
> Undefined                     first referenced
>  symbol                           in file
> xdr_enum                            ../libsrc/libnetcdf.a(array.o)
> xdr_float                           ../libsrc/libnetcdf.a(cdf.o)
> xdr_int                             ../libsrc/libnetcdf.a(array.o)
> xdr_vector                          ../libsrc/libnetcdf.a(sharray.o)
> xdr_u_long                          ../libsrc/libnetcdf.a(array.o)
> xdr_double                          ../libsrc/libnetcdf.a(cdf.o)
> xdr_long                            ../libsrc/libnetcdf.a(dim.o)
> xdr_opaque                          ../libsrc/libnetcdf.a(array.o)
> ld: fatal: Symbol referencing errors. No output written to ftest
> *** Error code 1
> make: Fatal error: Command failed for target `ftest'
> Current working directory /opt/util/netcdf/netcdf-2.4.2/src/fortran
> *** Error code 1
> make: Fatal error: Command failed for target `fortran/test'
> ________________________________________________________________________

It would appear that the configuration script isn't deciding that it
needs to add a reference to the networking support library (-lnsl) to
all link lines.  This is odd since it correctly does this on our Solaris
2.5 systems.

Would you please do the following:

    1.  Go to the top-level source directory.

    2.  Execute the command `rm -f config.cache'.

    3.  Execute the `configure' script as you did before and send me the
        output.

    4.  Send me the file `config.log'.

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