[GRASS5] Bugreport GRASS 5

Below is the result of your feedback form. It was submitted by
(giovanni.colatosti@sgi.com) on Tuesday, July 18, 2000 at 16:37:35
---------------------------------------------------------------------------

subject: Bugreport GRASS 5

platform: SGI/Irix

vendor: -- select --

cputype: -- select --

grassversion: -- select --

cvsyesno: yes, I am using the latest GRASS from CVS

bugreport: ./configure
loading cache ./config.cache
checking host system type... mips-sgi-irix6.5
checking for gcc... (cached) cc
checking whether the C compiler (cc ) works... yes
checking whether the C compiler (cc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) no
checking whether cc accepts -g... (cached) yes
checking whether ld -s works... yes
checking for a BSD compatible install... ./install-sh -c
checking for flex... (cached) flex
checking for yywrap in -lfl... (cached) no
checking for ranlib... (cached) :
checking for env... (cached) env
checking for f77... no
checking for g77... no
checking how to run the C preprocessor... (cached) cc -E
checking for X... (cached) libraries , headers
checking for dnet_ntoa in -ldnet... (cached) no
checking for dnet_ntoa in -ldnet_stub... (cached) no
checking for gethostbyname... (cached) yes
checking for connect... (cached) yes
checking for remove... (cached) yes
checking for shmat... (cached) yes
checking for IceConnectionNumber in -lICE... (cached) yes
checking for ANSI C header files... (cached) yes
checking for curses.h... (cached) yes
checking for limits.h... (cached) yes
checking for termio.h... (cached) yes
checking for termios.h... (cached) yes
checking for unistd.h... (cached) yes
checking for values.h... (cached) yes
checking for sys/ioctl.h... (cached) yes
checking for sys/mtio.h... (cached) yes
checking for sys/resource.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for sys/timeb.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/utsname.h... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached) yes
checking for off_t... (cached) yes
checking for uid_t in sys/types.h... (cached) yes
checking curses.h WINDOW structure component... NONE
checking for ftime... (cached) yes
checking for gethostname... (cached) yes
checking for gettimeofday... (cached) yes
checking for lseek... (cached) yes
checking for nice... (cached) yes
checking for time... (cached) yes
checking for uname... (cached) yes
checking for seteuid... (cached) yes
checking for setpriority... (cached) yes
checking for setreuid... (cached) yes
checking for setruid... (cached) yes
checking whether setpgrp takes no argument... (cached) yes
checking for initscr in -lncurses... (cached) no
checking for initscr in -lcurses... (cached) yes
checking for gtty in -lcompat... (cached) no
checking for tgetent in -ltermlib... (cached) yes
checking for xdr_int in -lsun... (cached) yes
checking for gtty in -lcompat... (cached) no
checking for tgetent in -ltermlib... (cached) yes
checking for xdr_int in -lsun... (cached) yes
creating ./config.status
creating Makefile
creating src/CMD/head/head
creating src/scripts/shells/create_fifos.sh
creating src/include/config.h
src/include/config.h is unchanged
ONYX1 73# setenv GRASSSRC `pwd`/src
ONYX1 74# setenv GMAKE `pwd`/src/CMD/gmake5.0
ONYX1 75# sh src/CMD/generic/GISGEN.sh
GISBASE=/usr/local/grass-5.0b
SRC=/giovanni1/grass5.0beta/src
CMD=/giovanni1/grass5.0beta/src/CMD
HEADER=head
ARCH=mips-sgi-irix6.5
####################################################################
GISGEN Tue Jul 18 15:53:14 CEST 2000
GISBASE = /usr/local/grass-5.0b
SRC = /giovanni1/grass5.0beta/src
CMD = /giovanni1/grass5.0beta/src/CMD
HEADER = head
ARCH = mips-sgi-irix6.5

first step: src/libes/segment

GISGEN: src/libes/segment - Tue Jul 18 15:53:14 CEST 2000

#################################################################
/giovanni1/grass5.0beta/src/libes/segment
  make -f OBJ.mips-sgi-irix6.5/make.rules

        rm -f OBJ.mips-sgi-irix6.5/get_row.o
        cc -g -I/giovanni1/grass5.0beta/src/include -c get_row.c
cc-3316 cc: ERROR File = get_row.c, Line = 29
  The expression must be a pointer to a complete object type.

        buf += size;
        ^

1 error detected in the compilation of "get_row.c".
*** Error code 2 (bu21)
GISGEN failure at STEP: src/libes/segment
---------------------------------------------------------------------------------------------------------------------------------------------------------------
previous errors
--------------------------------------------------------------------------------
GISGEN: src/libes/segment - Tue Jul 18 15:47:14 CEST 2000

#################################################################
/giovanni1/grass5.0beta/src/libes/segment
  mkdir OBJ.mips-sgi-irix6.5
  make -f OBJ.mips-sgi-irix6.5/make.rules

        rm -f OBJ.mips-sgi-irix6.5/address.o
        cc -g -I/giovanni1/grass5.0beta/src/include -c address.c
        mv address.o OBJ.mips-sgi-irix6.5/address.o
        rm -f OBJ.mips-sgi-irix6.5/flush.o
        cc -g -I/giovanni1/grass5.0beta/src/include -c flush.c
        mv flush.o OBJ.mips-sgi-irix6.5/flush.o
        rm -f OBJ.mips-sgi-irix6.5/format.o
        cc -g -I/giovanni1/grass5.0beta/src/include -c format.c
        mv format.o OBJ.mips-sgi-irix6.5/format.o
        rm -f OBJ.mips-sgi-irix6.5/get.o
        cc -g -I/giovanni1/grass5.0beta/src/include -c get.c
        mv get.o OBJ.mips-sgi-irix6.5/get.o
        rm -f OBJ.mips-sgi-irix6.5/get_row.o
        cc -g -I/giovanni1/grass5.0beta/src/include -c get_row.c
cc-3316 cc: ERROR File = get_row.c, Line = 29
  The expression must be a pointer to a complete object type.

        buf += size;
        ^

1 error detected in the compilation of "get_row.c".
*** Error code 2 (bu21)
GISGEN failure at STEP: src/libes/segment
*** Error code 1 (bu21)

compiler: cc

compiler_version: 7.2.1

name: giovanni colatosti

---------------------------------------------------------------------------

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

giovanni.colatosti@sgi.com wrote:
..

first step: src/libes/segment

GISGEN: src/libes/segment - Tue Jul 18 15:53:14 CEST 2000

#################################################################
/giovanni1/grass5.0beta/src/libes/segment
  make -f OBJ.mips-sgi-irix6.5/make.rules

        rm -f OBJ.mips-sgi-irix6.5/get_row.o
        cc -g -I/giovanni1/grass5.0beta/src/include -c get_row.c
cc-3316 cc: ERROR File = get_row.c, Line = 29
  The expression must be a pointer to a complete object type.

        buf += size;
        ^

1 error detected in the compilation of "get_row.c".
*** Error code 2 (bu21)
GISGEN failure at STEP: src/libes/segment

hi,

this problems stems from the fact that buf is defined as a void pointer.
But IMHO pointer arithmetics with void pointers is not allowed.
Different compilers behave differently on this, GNU GCC obviously does
not recognizes this error.

This was introduced by the bug fix from Pierre de Mouveaux, but i have
no fix as i am not familiar with the source.

cu,

Andreas

--
Andreas Lange, 65187 Wiesbaden, Germany, Tel. +49 611 807850
Andreas.Lange@Rhein-Main.de - A.C.Lange@GMX.net

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'