mkdir -p /tmp/.grass6/addons/i.spec.sam/bin mkdir -p /tmp/.grass6/addons/i.spec.sam/etc make OBJ.x86_64-pc-linux-gnu make[1]: Entering directory '/work/src/grass-addons/grass6/imagery/i.spec.sam' test -d OBJ.x86_64-pc-linux-gnu || mkdir -p OBJ.x86_64-pc-linux-gnu make[1]: Leaving directory '/work/src/grass-addons/grass6/imagery/i.spec.sam' gcc -I/work/src/grass64/dist.x86_64-pc-linux-gnu/include -g -O2 -DPACKAGE=\""grassmods"\" -I/work/src/grass64/dist.x86_64-pc-linux-gnu/include -o OBJ.x86_64-pc-linux-gnu/hist.o -c hist.c make OBJ.x86_64-pc-linux-gnu make[1]: Entering directory '/work/src/grass-addons/grass6/imagery/i.spec.sam' make[1]: 'OBJ.x86_64-pc-linux-gnu' is up to date. make[1]: Leaving directory '/work/src/grass-addons/grass6/imagery/i.spec.sam' gcc -I/work/src/grass64/dist.x86_64-pc-linux-gnu/include -g -O2 -DPACKAGE=\""grassmods"\" -I/work/src/grass64/dist.x86_64-pc-linux-gnu/include -o OBJ.x86_64-pc-linux-gnu/open.o -c open.c In file included from global.h:3, from open.c:16: matrix.h:181:8: warning: type defaults to ‘int’ in declaration of ‘m_free’ [-Wimplicit-int] extern m_free(MAT *),v_free(VEC *),px_free(PERM *); ^~~~~~ matrix.h:181:22: warning: type defaults to ‘int’ in declaration of ‘v_free’ [-Wimplicit-int] extern m_free(MAT *),v_free(VEC *),px_free(PERM *); ^~~~~~ matrix.h:181:36: warning: type defaults to ‘int’ in declaration of ‘px_free’ [-Wimplicit-int] extern m_free(MAT *),v_free(VEC *),px_free(PERM *); ^~~~~~~ make OBJ.x86_64-pc-linux-gnu make[1]: Entering directory '/work/src/grass-addons/grass6/imagery/i.spec.sam' make[1]: 'OBJ.x86_64-pc-linux-gnu' is up to date. make[1]: Leaving directory '/work/src/grass-addons/grass6/imagery/i.spec.sam' gcc -I/work/src/grass64/dist.x86_64-pc-linux-gnu/include -g -O2 -DPACKAGE=\""grassmods"\" -I/work/src/grass64/dist.x86_64-pc-linux-gnu/include -o OBJ.x86_64-pc-linux-gnu/main.o -c main.c In file included from global.h:3, from main.c:19: matrix.h:181:8: warning: type defaults to ‘int’ in declaration of ‘m_free’ [-Wimplicit-int] extern m_free(MAT *),v_free(VEC *),px_free(PERM *); ^~~~~~ matrix.h:181:22: warning: type defaults to ‘int’ in declaration of ‘v_free’ [-Wimplicit-int] extern m_free(MAT *),v_free(VEC *),px_free(PERM *); ^~~~~~ matrix.h:181:36: warning: type defaults to ‘int’ in declaration of ‘px_free’ [-Wimplicit-int] extern m_free(MAT *),v_free(VEC *),px_free(PERM *); ^~~~~~~ main.c:29:1: warning: parameter names (without types) in function declaration CELL myround (x); ^~~~ main.c: In function ‘main’: main.c:31:5: warning: type of ‘argc’ defaults to ‘int’ [-Wimplicit-int] int main(argc,argv) ^~~~ make OBJ.x86_64-pc-linux-gnu make[1]: Entering directory '/work/src/grass-addons/grass6/imagery/i.spec.sam' make[1]: 'OBJ.x86_64-pc-linux-gnu' is up to date. make[1]: Leaving directory '/work/src/grass-addons/grass6/imagery/i.spec.sam' gcc -I/work/src/grass64/dist.x86_64-pc-linux-gnu/include -g -O2 -DPACKAGE=\""grassmods"\" -I/work/src/grass64/dist.x86_64-pc-linux-gnu/include -o OBJ.x86_64-pc-linux-gnu/spec_angle.o -c spec_angle.c In file included from spec_angle.c:23: matrix.h:181:8: warning: type defaults to ‘int’ in declaration of ‘m_free’ [-Wimplicit-int] extern m_free(MAT *),v_free(VEC *),px_free(PERM *); ^~~~~~ matrix.h:181:22: warning: type defaults to ‘int’ in declaration of ‘v_free’ [-Wimplicit-int] extern m_free(MAT *),v_free(VEC *),px_free(PERM *); ^~~~~~ matrix.h:181:36: warning: type defaults to ‘int’ in declaration of ‘px_free’ [-Wimplicit-int] extern m_free(MAT *),v_free(VEC *),px_free(PERM *); ^~~~~~~ gcc -L/work/src/grass64/dist.x86_64-pc-linux-gnu/lib -Wl,--export-dynamic -Wl,-rpath-link,/work/src/grass64/dist.x86_64-pc-linux-gnu/lib -o /tmp/.grass6/addons/i.spec.sam/bin/i.spec.sam OBJ.x86_64-pc-linux-gnu/hist.o OBJ.x86_64-pc-linux-gnu/open.o OBJ.x86_64-pc-linux-gnu/main.o OBJ.x86_64-pc-linux-gnu/spec_angle.o -lgrass_I.6.4.6svn -lgrass_gis.6.4.6svn -lgrass_datetime.6.4.6svn -lz -lgrass_gmath.6.4.6svn -lgrass_gis.6.4.6svn -lgrass_datetime.6.4.6svn -lz -lgrass_gis.6.4.6svn -lgrass_datetime.6.4.6svn -lz -lm -lz /usr/bin/ld: OBJ.x86_64-pc-linux-gnu/main.o: in function `main': /home/landa/src/grass-addons/grass6/imagery/i.spec.sam/main.c:92: undefined reference to `get_row' /usr/bin/ld: /home/landa/src/grass-addons/grass6/imagery/i.spec.sam/main.c:97: undefined reference to `get_row' /usr/bin/ld: /home/landa/src/grass-addons/grass6/imagery/i.spec.sam/main.c:100: undefined reference to `v_free' /usr/bin/ld: /home/landa/src/grass-addons/grass6/imagery/i.spec.sam/main.c:103: undefined reference to `v_free' /usr/bin/ld: /home/landa/src/grass-addons/grass6/imagery/i.spec.sam/main.c:136: undefined reference to `svd' /usr/bin/ld: /home/landa/src/grass-addons/grass6/imagery/i.spec.sam/main.c:137: undefined reference to `v_foutput' /usr/bin/ld: /home/landa/src/grass-addons/grass6/imagery/i.spec.sam/main.c:136: undefined reference to `svd' /usr/bin/ld: /home/landa/src/grass-addons/grass6/imagery/i.spec.sam/main.c:137: undefined reference to `v_foutput' /usr/bin/ld: /home/landa/src/grass-addons/grass6/imagery/i.spec.sam/main.c:167: undefined reference to `v_get' /usr/bin/ld: /home/landa/src/grass-addons/grass6/imagery/i.spec.sam/main.c:180: undefined reference to `v_free' /usr/bin/ld: /home/landa/src/grass-addons/grass6/imagery/i.spec.sam/main.c:177: undefined reference to `get_row' /usr/bin/ld: /home/landa/src/grass-addons/grass6/imagery/i.spec.sam/main.c:183: undefined reference to `v_free' /usr/bin/ld: /home/landa/src/grass-addons/grass6/imagery/i.spec.sam/main.c:208: undefined reference to `m_free' /usr/bin/ld: OBJ.x86_64-pc-linux-gnu/open.o: in function `open_files': /home/landa/src/grass-addons/grass6/imagery/i.spec.sam/open.c:36: undefined reference to `m_finput' /usr/bin/ld: /home/landa/src/grass-addons/grass6/imagery/i.spec.sam/open.c:46: undefined reference to `m_foutput' /usr/bin/ld: OBJ.x86_64-pc-linux-gnu/spec_angle.o: in function `spectral_angle': /home/landa/src/grass-addons/grass6/imagery/i.spec.sam/spec_angle.c:49: undefined reference to `v_star' /usr/bin/ld: /home/landa/src/grass-addons/grass6/imagery/i.spec.sam/spec_angle.c:50: undefined reference to `_v_norm1' /usr/bin/ld: /home/landa/src/grass-addons/grass6/imagery/i.spec.sam/spec_angle.c:51: undefined reference to `_v_norm2' /usr/bin/ld: /home/landa/src/grass-addons/grass6/imagery/i.spec.sam/spec_angle.c:52: undefined reference to `_v_norm2' /usr/bin/ld: /home/landa/src/grass-addons/grass6/imagery/i.spec.sam/spec_angle.c:54: undefined reference to `v_free' collect2: error: ld returned 1 exit status make: *** [/home/landa/src/grass64/dist.x86_64-pc-linux-gnu/include/Make/Module.make:15: /tmp/.grass6/addons/i.spec.sam/bin/i.spec.sam] Error 1