[GRASS5] Error compiling g57

Radim Blazek blazek at itc.it
Thu Jan 29 06:11:00 EST 2004


Yes, 
we have found that as well, v.kernel does not compile with gcc2.*.
Stefano Menegon, original author of v.kernel, promised to solve this
until tomorrow (Italian tomorrow). 
I'l remove v.kernel from vector/Makefile for now, do the same in your local copy.

Radim

On Thursday 29 January 2004 11:13, Otto Dassau wrote:
> Dear Developers,
>
> Error compiling g57:
>
> the v.kernel module doesn't compile. I downloaded and compiled this
> morning
> from CVS.
>
>  Otto
>
> ###### error message #########
>
> make[2]: Wechsel in das Verzeichnis Verzeichnis
> »/home/dassau/software/grass57/vector/v.kernel«
> gcc -I/home/dassau/software/grass57/include
> -I/home/dassau/software/grass57/dist.i686-pc-linux-gnu/include -g -Wall
> -Wall -Wconversion -Wno-implicit-int   -I/usr/local/include
> -DUSE_GDAL_H
> -I/usr/local/pgsql/include -I/home/dassau/software/grass57/include
> -I/home/dassau/software/grass57/dist.i686-pc-linux-gnu/include \
>         -o OBJ.i686-pc-linux-gnu/main.o -c main.c
> main.c: In function `main':
> main.c:213: parse error before `double'
> main.c:218: `n' undeclared (first use in this function)
> main.c:218: (Each undeclared identifier is reported only once
> main.c:218: for each function it appears in.)
> main.c:219: `resL' undeclared (first use in this function)
> main.c:220: `sigmaConv' undeclared (first use in this function)
> main.c:222: `ii' undeclared (first use in this function)
> main.c:223: `smooth' undeclared (first use in this function)
> main.c:239: `L' undeclared (first use in this function)
> main.c:51: warning: unused variable `gausmax'
> main.c:43: warning: unused variable `term2'
> main.c:42: warning: unused variable `term1'
> main.c:37: warning: unused variable `E'
> main.c:37: warning: unused variable `N'
> main.c:36: warning: unused variable `gaussian'
> main.c:34: warning: unused variable `col'
> main.c:34: warning: unused variable `row'
> main.c:252: warning: control reaches end of non-void function
> main.c: At top level:
> main.c:254: `sigma' undeclared here (not in a function)
> main.c:254: `sigma' undeclared here (not in a function)
> main.c:254: initializer element is not constant
> main.c:254: warning: data definition has no type or storage class
> main.c:255: `sigma' undeclared here (not in a function)
> main.c:255: `sigma' undeclared here (not in a function)
> main.c:255: initializer element is not constant
> main.c:255: warning: data definition has no type or storage class
> main.c:257: `sigma' undeclared here (not in a function)
> main.c:257: initializer element is not constant
> main.c:257: warning: data definition has no type or storage class
> main.c:259: parse error before `if'
> main.c:266: conflicting types for `Points'
> main.c:261: previous declaration of `Points'
> main.c:266: warning: initialization makes integer from pointer without a
> cast
> main.c:266: initializer element is not constant
> main.c:266: warning: data definition has no type or storage class
> main.c:267: conflicting types for `SPoints'
> main.c:261: previous declaration of `SPoints'
> main.c:267: warning: initialization makes integer from pointer without a
> cast
> main.c:267: initializer element is not constant
> main.c:267: warning: data definition has no type or storage class
> main.c:268: conflicting types for `SCats'
> main.c:262: previous declaration of `SCats'
> main.c:268: warning: initialization makes integer from pointer without a
> cast
> main.c:268: initializer element is not constant
> main.c:268: warning: data definition has no type or storage class
> main.c:270: `Net' undeclared here (not in a function)
> main.c:270: initializer element is not constant
> main.c:270: warning: data definition has no type or storage class
> main.c:271: parse error before `3'
> main.c:271: warning: data definition has no type or storage class
> main.c:277: `Net' undeclared here (not in a function)
> main.c:277: `line' undeclared here (not in a function)
> main.c:277: warning: passing arg 2 of `Vect_read_line' makes pointer
> from
> integer without a cast
> main.c:277: initializer element is not constant
> main.c:277: warning: data definition has no type or storage class
> main.c:278: parse error before `if'
> main.c:280: conflicting types for `length'
> main.c:275: previous declaration of `length'
> main.c:280: warning: passing arg 1 of `Vect_line_length' makes pointer
> from
> integer without a cast
> main.c:280: initializer element is not constant
> main.c:280: warning: data definition has no type or storage class
> main.c:281: `segmax' undeclared here (not in a function)
> main.c:281: warning: data definition has no type or storage class
> main.c:282: redefinition of `length'
> main.c:280: `length' previously defined here
> main.c:282: initializer element is not constant
> main.c:282: warning: data definition has no type or storage class
> main.c:284: parse error before `3'
> main.c:284: warning: data definition has no type or storage class
> main.c:289: `seg' undeclared here (not in a function)
> main.c:289: initializer element is not constant
> main.c:289: warning: data definition has no type or storage class
> main.c:290: parse error before `&'
> main.c:292: parse error before `3'
> main.c:292: warning: data definition has no type or storage class
> main.c:294: parse error before `&'
> main.c:294: conflicting types for `compute_net_distance'
> global.h:18: previous declaration of `compute_net_distance'
> main.c:294: warning: data definition has no type or storage class
> main.c:295: parse error before `*='
> main.c:298: parse error before `3'
> main.c:298: warning: data definition has no type or storage class
> main.c:303: `seg' undeclared here (not in a function)
> main.c:303: initializer element is not constant
> main.c:303: warning: data definition has no type or storage class
> main.c:304: warning: parameter names (without types) in function
> declaration
> main.c:304: warning: data definition has no type or storage class
> main.c:306: warning: parameter names (without types) in function
> declaration
> main.c:306: warning: data definition has no type or storage class
> main.c:307: parse error before `1'
> main.c:309: parse error before `&'
> main.c:309: conflicting types for `Vect_write_line'
> /home/dassau/software/grass57/include/Vect.h:158: previous declaration
> of
> `Vect_write_line'
> main.c:309: warning: data definition has no type or storage class
> main.c:314: parse error before `&'
> main.c:314: warning: data definition has no type or storage class
> main.c:316: parse error before `&'
> main.c:316: warning: data definition has no type or storage class
> main.c:317: parse error before `&'
> main.c:317: warning: data definition has no type or storage class
> main.c:336: `row' undeclared here (not in a function)
> main.c:336: `window' undeclared here (not in a function)
> main.c:336: initializer element is not constant
> main.c:336: warning: data definition has no type or storage class
> main.c:337: `col' undeclared here (not in a function)
> main.c:337: `window' undeclared here (not in a function)
> main.c:337: initializer element is not constant
> main.c:337: warning: data definition has no type or storage class
> main.c:339: parse error before `&'
> main.c:339: conflicting types for `compute_distance'
> global.h:16: previous declaration of `compute_distance'
> main.c:339: warning: data definition has no type or storage class
> main.c:340: `col' undeclared here (not in a function)
> main.c:340: variable `output_cell' has initializer but incomplete type
> main.c:340: `multip' undeclared here (not in a function)
> main.c:340: `gaussian' undeclared here (not in a function)
> main.c:340: warning: data definition has no type or storage class
> main.c:341: parse error before `if'
> main.c:343: parse error before `2'
> main.c:343: warning: data definition has no type or storage class
> main.c:346: warning: parameter names (without types) in function
> declaration
> main.c:346: warning: data definition has no type or storage class
> main.c:347: parse error before `}'
> main.c:349: parse error before string constant
> main.c:349: warning: data definition has no type or storage class
> main.c:351: parse error before `&'
> main.c:351: warning: data definition has no type or storage class
> main.c:353: parse error before `0'
> main.c:353: conflicting types for `exit'
> /usr/include/stdlib.h:577: previous declaration of `exit'
> main.c:353: warning: data definition has no type or storage class
> main.c: In function `read_points':
> main.c:368: warning: passing arg 1 of `calloc' as unsigned due to
> prototype
> main.c: In function `compute_all_distances':
> main.c:396: warning: passing arg 1 of `calloc' as unsigned due to
> prototype
> main.c: In function `compute_all_net_distances':
> main.c:433: warning: passing arg 1 of `calloc' as unsigned due to
> prototype
> main.c: At top level:
> main.c:489: conflicting types for `compute_net_distance'
> main.c:294: previous declaration of `compute_net_distance'
> main.c:539: conflicting types for `compute_distance'
> main.c:339: previous declaration of `compute_distance'
> make[2]: *** [OBJ.i686-pc-linux-gnu/main.o] Fehler 1
> make[2]: Verlassen des Verzeichnisses Verzeichnis
> »/home/dassau/software/grass57/vector/v.kernel«
> make[1]: *** [subdirs] Fehler 1
> make[1]: Verlassen des Verzeichnisses Verzeichnis
> »/home/dassau/software/grass57/vector«
> make: *** [default] Fehler 1
>
> _______________________________________________
> grass5 mailing list
> grass5 at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass5




More information about the grass-dev mailing list