[GRASS-user] i.spec.sam compilation error

Mohammed Rashad mohammedrashadkm at gmail.com
Thu Dec 6 22:50:08 PST 2012


i.spec.sam hasnt been ported to grass6.4. sorry I am working on it


On Fri, Dec 7, 2012 at 11:07 AM, 王德辉 <dehuiw at gig.ac.cn> wrote:

>
> GRASS 6.4.3svn (nc_spm_08):/usr/local/src/grass64_release > g.extension
> extension=i.spec.sam op=add
>
> Fetching <i.spec.sam> from GRASS-Addons SVN (be patient)...
> A    i.spec.sam/meminfo.h
> A    i.spec.sam/spec_angle.c
> A    i.spec.sam/open.c
> A    i.spec.sam/view.sh
> A    i.spec.sam/description.html
> A    i.spec.sam/global.h
> A    i.spec.sam/test.dat
> A    i.spec.sam/hist.c
> A    i.spec.sam/machine.h
> A    i.spec.sam/matrix.h
> A    i.spec.sam/spectrum2.dat
> A    i.spec.sam/main.c
> A    i.spec.sam/spectrum.dat
> A    i.spec.sam/matrix2.h
> A    i.spec.sam/Makefile
> A    i.spec.sam/err.h
>  U   i.spec.sam
> 取出版本 54231。
> Compiling <i.spec.sam>...
> /usr/local/grass-6.4.3svn/include/Make/Grass.make:423:
> 警告:覆盖关于目标“/media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/dist.x86_64/bin”的命令
> /usr/local/grass-6.4.3svn/include/Make/Grass.make:414:
> 警告:忽略关于目标“/media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/dist.x86_64/bin”的旧命令
> /usr/local/grass-6.4.3svn/include/Make/Module.make:25:
> 警告:覆盖关于目标“install”的命令
> /usr/local/grass-6.4.3svn/include/Make/Rules.make:99:
> 警告:忽略关于目标“install”的旧命令
> mkdir -p
> /media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/dist.x86_64/bin
> mkdir -p
> /media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/dist.x86_64/include/grass
> mkdir -p
> /media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/dist.x86_64/etc
> mkdir -p
> /media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/dist.x86_64/driver
> mkdir -p
> /media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/dist.x86_64/driver/db
> mkdir -p
> /media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/dist.x86_64/fonts
> test -d OBJ.x86_64-unknown-linux-gnu || mkdir -p
> OBJ.x86_64-unknown-linux-gnu
> gcc '-I/usr/local/grass-6.4.3svn/include'
> '-I/home/wdh/.grass6/addons/include'
> '-I/media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/dist.x86_64/include'
> -g -O2       -DPACKAGE=\""grassmods"\"
> '-I/usr/local/grass-6.4.3svn/include' '-I/home/wdh/.grass6/addons/include'
> '-I/media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/dist.x86_64/include'
> -o OBJ.x86_64-unknown-linux-gnu/hist.o -c hist.c
> gcc '-I/usr/local/grass-6.4.3svn/include'
> '-I/home/wdh/.grass6/addons/include'
> '-I/media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/dist.x86_64/include'
> -g -O2       -DPACKAGE=\""grassmods"\"
> '-I/usr/local/grass-6.4.3svn/include' '-I/home/wdh/.grass6/addons/include'
> '-I/media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/dist.x86_64/include'
> -o OBJ.x86_64-unknown-linux-gnu/main.o -c main.c
> main.c:28:1: 警告: 函数声明中出现形参名却未指定类型 [默认启用]
> main.c: 在函数‘main’中:
> main.c:203:17: 警告: 忽略声明有 warn_unused_result 属性的‘system’的返回值
> [-Wunused-result]
> gcc '-I/usr/local/grass-6.4.3svn/include'
> '-I/home/wdh/.grass6/addons/include'
> '-I/media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/dist.x86_64/include'
> -g -O2       -DPACKAGE=\""grassmods"\"
> '-I/usr/local/grass-6.4.3svn/include' '-I/home/wdh/.grass6/addons/include'
> '-I/media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/dist.x86_64/include'
> -o OBJ.x86_64-unknown-linux-gnu/open.o -c open.c
> gcc '-I/usr/local/grass-6.4.3svn/include'
> '-I/home/wdh/.grass6/addons/include'
> '-I/media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/dist.x86_64/include'
> -g -O2       -DPACKAGE=\""grassmods"\"
> '-I/usr/local/grass-6.4.3svn/include' '-I/home/wdh/.grass6/addons/include'
> '-I/media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/dist.x86_64/include'
> -o OBJ.x86_64-unknown-linux-gnu/spec_angle.o -c spec_angle.c
> gcc '-L/usr/local/grass-6.4.3svn/lib' '-L/home/wdh/.grass6/addons/lib'
> '-L/media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/dist.x86_64/lib'
> -Wl,--export-dynamic -Wl,-rpath-link,/usr/local/grass-6.4.3svn/lib    -o
> /media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/dist.x86_64/bin/i.spec.sam
> OBJ.x86_64-unknown-linux-gnu/hist.o OBJ.x86_64-unknown-linux-gnu/main.o
> OBJ.x86_64-unknown-linux-gnu/open.o
> OBJ.x86_64-unknown-linux-gnu/spec_angle.o  -lgrass_I.6.4.3svn
> -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz
> -lgrass_gmath.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn
> -lz     -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz     -lm  -lz
> OBJ.x86_64-unknown-linux-gnu/main.o:在函数‘main’中:
>
> /media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/i.spec.sam/main.c:91:对‘get_row’未定义的引用
>
> /media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/i.spec.sam/main.c:96:对‘get_row’未定义的引用
>
> /media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/i.spec.sam/main.c:99:对‘v_free’未定义的引用
>
> /media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/i.spec.sam/main.c:102:对‘v_free’未定义的引用
>
> /media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/i.spec.sam/main.c:135:对‘svd’未定义的引用
>
> /media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/i.spec.sam/main.c:136:对‘v_foutput’未定义的引用
>
> /media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/i.spec.sam/main.c:135:对‘svd’未定义的引用
>
> /media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/i.spec.sam/main.c:136:对‘v_foutput’未定义的引用
>
> /media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/i.spec.sam/main.c:166:对‘v_get’未定义的引用
>
> /media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/i.spec.sam/main.c:179:对‘v_free’未定义的引用
>
> /media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/i.spec.sam/main.c:176:对‘get_row’未定义的引用
>
> /media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/i.spec.sam/main.c:182:对‘v_free’未定义的引用
>
> /media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/i.spec.sam/main.c:207:对‘m_free’未定义的引用
> OBJ.x86_64-unknown-linux-gnu/open.o:在函数‘open_files’中:
>
> /media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/i.spec.sam/open.c:36:对‘m_finput’未定义的引用
>
> /media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/i.spec.sam/open.c:46:对‘m_foutput’未定义的引用
> OBJ.x86_64-unknown-linux-gnu/spec_angle.o:在函数‘spectral_angle’中:
>
> /media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/i.spec.sam/spec_angle.c:49:对‘v_star’未定义的引用
>
> /media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/i.spec.sam/spec_angle.c:50:对‘_v_norm1’未定义的引用
>
> /media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/i.spec.sam/spec_angle.c:51:对‘_v_norm2’未定义的引用
>
> /media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/i.spec.sam/spec_angle.c:52:对‘_v_norm2’未定义的引用
>
> /media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/i.spec.sam/spec_angle.c:54:对‘v_free’未定义的引用
> collect2: 错误: ld 返回 1
> make: ***
> [/media/wdh/data/GDBase/nc_spm_08/user1/.tmp/wdh-ThinkPad-R400/11180.0/dist.x86_64/bin/i.spec.sam]
> 错误 1
> 错误:Compilation failed, sorry. Please check above error messages.
>
>
> dehui
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
>


-- 
Regards,
   Rashad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20121207/f14eef04/attachment.html>


More information about the grass-user mailing list