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

960531: xdrtest.c: 225: failed assertion `xdr_vector(xdrs, (char *)encounts, count, szof, (xdrproc_t)xdr_enum)'



Philip,

>Date: Fri, 31 May 96 08:32:57 MST 
>From: address@hidden (Philip Goisman)
>Organization: University of Arizona
>To: address@hidden
>Subject: 960531: xdrtest.c: 225: failed assertion `xdr_vector(xdrs, (char 
*)encounts, count, szof, (xdrproc_t)xdr_enum)' 
>Keywords: 199605301739.AA10718

In the above message you wrote:

>       Thanks again for your help.  I edited `configure' by
> adding the two lines you specified and reran `configure'.  The
> results from`configure' follow:
> 
> Script started on Fri May 31 08:25:23 1996
...
> # CC=gcc ./configure --prefix=/usr/local
> creating cache ./config.cache
> checking for catman... catman
> checking for fill-value usage... new usage
> checking the installation prefix... /usr/local
> checking the installation exec-prefix... /usr/local
> checking for C compiler... gcc
> checking type of operating system... osf1
> checking type of machine... alpha
> checking for ranlib... ranlib
> checking how to run the C preprocessor... gcc -E
> checking the C preprocessor... works
> checking for f77... f77
> checking for cxx... no
> checking for CC... no
> checking for cxx... no
> checking for c++... c++
> checking for yacc... yacc
> checking for neqn... neqn
> checking for tbl... tbl
> checking for ar... ar
> checking for makeinfo... no
> checking for tar flags... -chof
> checking for dependency generation mechanism... gcc -M
> checking whether cross-compiling... no
> checking size of int... 4
> checking size of long... 8
> checking type of nclong... int
> checking endianess... little endian
> checking type of netlong... int
> checking type of internal netlong... int
> checking for XDR header-file... -I/usr/include/rpc
> checking for XDR library... 
> checking for xdr_long in default library... yes
> checking XDR implementation... + test no = yes 
> + cat 
> + eval echo configure:2120: "${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS 
> conftest.$ac_ext $LIBS 1>&5" 
> + echo configure:2120: gcc -o conftest -O   conftest.c  1>&5 
> + test -s conftest 
> + echo configure: warning: problem with system-supplied XDR: using own 
> configure: warning: problem with system-supplied XDR: using own
> XDR_LIBOBJS=xdr.o xdrfloat.o xdrstdio.o xdrarray.o
> XDR_INSTALL_DEPS=installed_headers
> LD_XDR=
> + exit /#.mrg..DXsession /DXsession /bin /cdrom /cslg /dev /etc /genvmunix 
> /home /lib /mdec /mnt /nsr /opt /osf_boot /paks /proc /real.profile /sbin 
> /software /subsys /sys /tcb /test /tmp /tmp2 /ugrad /usr /usr1 /usr2 /usr3 
> /var /vmunix added 5-31-96 per Steve Emerson cxx/ doc/ fortran/ libsrc/ 
> ncdump/ ncgen/ nctest/ port/ util/ xdr/ 
> ./configure: /#.mrg..DXsession: bad number
> # exit
> 
> script done on Fri May 31 08:27:09 1996
> 
> 
>       The config.log follows here:
> 
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
...
> configure:2120: gcc -o conftest -O   conftest.c  1>&5
> + eval ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 
> 1>&5 
> + gcc -o conftest -O conftest.c 
> configure: In function `main':
> configure:2072: warning: passing arg 5 of `xdr_vector' from incompatible 
> pointer type
> configure:2076: warning: passing arg 5 of `xdr_vector' from incompatible 
> pointer type
> configure:2095: warning: passing arg 5 of `xdr_vector' from incompatible 
> pointer type
> configure:2106: warning: passing arg 5 of `xdr_vector' from incompatible 
> pointer type
> /usr/bin/ld:
> Warning: Linking some objects which contain exception information sections
>       and some which do not. This may cause fatal runtime exception handling
>       problems (last obj encountered without exceptions was /tmp/ccaanvba1.o).

Looks like the configure script had some problems building the XDR test
program.  This shouldn't have happened.  That test program has been
written with portability uppermost in mind.

The program should exist as `conftest'.  Does it?  If so, then try
running it manually.  What does it output?  What is its exit status?

I don't like the warnings from the linker (ld).  I wonder if your GNU
compiler should be rebuilt (it does need to be rebuilt every time the
operating system is upgraded).  Do you have the DEC-supplied C compiler
(cc)?  If so, try using it rather than the GNU C compiler by doing the
following:

    1.  Execute the command `make clean'.

    2.  Comment-out the 2 added lines in the `configure' file.

    3.  Execute the command `CC=cc ./configure --prefix=/usr/local'

    4.  Execute the command `make all'.  Trap the output.

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