<div dir="ltr">Installing v.kriging (on GRASS dev, Linux) addons fails with the following:<br><br><span style="font-family:monospace,monospace">GRASS 7.1.svn (latlon):~ > g.extension v.kriging<br>WARNING: Extension <v.kriging> already installed. Re-installing...<br>Fetching <v.kriging> from GRASS GIS Addons repository (be patient)...<br>Compiling...<br>In file included from geostat.c:1:0:<br>local_proto.h:72:3: error: unknown type name ‘mat_struct’<br>   mat_struct *trend;<br>   ^<br>local_proto.h:113:3: error: unknown type name ‘mat_struct’<br>   mat_struct *gamma;    // experimental variogram matrix<br>   ^<br>local_proto.h:124:3: error: unknown type name ‘mat_struct’<br>   mat_struct *A;           // plan matrix<br>   ^<br>local_proto.h:125:3: error: unknown type name ‘mat_struct’<br>   mat_struct *T;           // coefficients of theoretical variogram<br>   ^<br>local_proto.h:126:3: error: unknown type name ‘mat_struct’<br>   mat_struct *GM;          // GM = theor_var(dist: input, output points)<br>   ^<br>local_proto.h:218:1: error: unknown type name ‘mat_struct’<br> mat_struct *LSM(mat_struct *, mat_struct *);<br> ^<br>local_proto.h:218:17: error: unknown type name ‘mat_struct’<br> mat_struct *LSM(mat_struct *, mat_struct *);<br>                 ^<br>local_proto.h:218:31: error: unknown type name ‘mat_struct’<br> mat_struct *LSM(mat_struct *, mat_struct *);<br>                               ^<br>local_proto.h:219:1: error: unknown type name ‘mat_struct’<br> mat_struct *nonlin_LMS(int , double *, double *);<br> ^<br>local_proto.h:226:24: error: unknown type name ‘mat_struct’<br> double bivar_sill(int, mat_struct *);<br>                        ^<br>local_proto.h:245:68: error: unknown type name ‘mat_struct’<br> void write2file_variogram_E(struct int_par *, struct parameters *, mat_struct *);<br>                                                                    ^<br>local_proto.h:250:1: error: unknown type name ‘mat_struct’<br> mat_struct *set_up_G(struct points *, struct parameters *, struct write *);<br> ^<br>local_proto.h:251:1: error: unknown type name ‘mat_struct’<br> mat_struct *set_up_g0(struct int_par *, struct points *, struct ilist *, double *, struct parameters *);<br> ^<br>local_proto.h:252:1: error: unknown type name ‘mat_struct’<br> mat_struct *submatrix(struct ilist *, mat_struct *, struct write *);<br> ^<br>local_proto.h:252:39: error: unknown type name ‘mat_struct’<br> mat_struct *submatrix(struct ilist *, mat_struct *, struct write *);<br>                                       ^<br>local_proto.h:253:49: error: unknown type name ‘mat_struct’<br> double result(struct points *, struct ilist *,  mat_struct *);<br>                                                 ^<br>geostat.c: In function ‘E_variogram’:<br>geostat.c:101:5: error: unknown type name ‘mat_struct’<br>     mat_struct *gamma_M;        // gamma matrix (hz, vert or bivar)<br>     ^<br>geostat.c:102:5: error: unknown type name ‘mat_struct’<br>     mat_struct *c_M;            // matrix of # of dissimilarities<br>     ^<br>geostat.c:145:9: warning: assignment makes pointer from integer without a cast [enabled by default]<br>     c_M = G_matrix_init(nrows, ncols, nrows);   // temporal matrix of counts<br>         ^<br>geostat.c:146:13: warning: assignment makes pointer from integer without a cast [enabled by default]<br>     gamma_M = G_matrix_init(nrows, ncols, nrows);       // temporal matrix (vector) of gammas<br>             ^<br>geostat.c:158:13: error: request for member ‘vals’ in something not a structure or union<br>     c = &c_M->vals[0];<br>             ^<br>geostat.c:159:21: error: request for member ‘vals’ in something not a structure or union<br>     gamma = &gamma_M->vals[0];<br>                     ^<br>geostat.c:308:21: warning: assignment makes pointer from integer without a cast [enabled by default]<br>     var_pars->gamma = G_matrix_copy(gamma_M);<br>                     ^<br>geostat.c: In function ‘ordinary_kriging’:<br>geostat.c:516:5: error: unknown type name ‘mat_struct’<br>     mat_struct *GM;<br>     ^<br>geostat.c:517:5: error: unknown type name ‘mat_struct’<br>     mat_struct *GM_sub;         // submatrix of selected points<br>     ^<br>geostat.c:518:5: error: unknown type name ‘mat_struct’<br>     mat_struct *GM_Inv;         // inverted GM (GM_sub) matrix<br>     ^<br>geostat.c:519:5: error: unknown type name ‘mat_struct’<br>     mat_struct *g0;             // diffences between known and unknown values = theor_var(dist)<br>     ^<br>geostat.c:520:5: error: unknown type name ‘mat_struct’<br>     mat_struct *w0;             // weights of values located on the input points <br>     ^<br>geostat.c:545:17: warning: assignment makes pointer from integer without a cast [enabled by default]<br>     var_par->GM = G_matrix_copy(GM);    // copy matrix because of cross validation<br>                 ^<br>geostat.c:589:28: warning: assignment makes pointer from integer without a cast [enabled by default]<br>                     GM_sub = submatrix(list, GM, report);       // make submatrix for selected points<br>                            ^<br>geostat.c:590:28: warning: assignment makes pointer from integer without a cast [enabled by default]<br>                     GM_Inv = G_matrix_inverse(GM_sub);  // invert submatrix<br>                            ^<br>geostat.c:594:24: warning: assignment makes pointer from integer without a cast [enabled by default]<br>                     w0 = G_matrix_product(GM_Inv, g0);  // Vector of weights, condition SUM(w) = 1 in last row<br>                        ^<br>make: *** [OBJ.x86_64-unknown-linux-gnu/geostat.o] Error 1<br>ERROR: Compilation failed, sorry. Please check above error messages.</span><br><br></div>