[GRASS-user] I.vi.mpi
Chemin, Yann (IWMI)
Y.Chemin at cgiar.org
Wed Mar 28 07:27:24 EDT 2012
You are trying to compile a GRASS 7 version module on a GRASS 6 install.
________________________________________
From: grass-user-bounces at lists.osgeo.org [grass-user-bounces at lists.osgeo.org] on behalf of Ripsime Khachatryan [kuli13 at mail.ru]
Sent: Wednesday, March 28, 2012 2:01 PM
To: grass-user
Subject: [GRASS-user] I.vi.mpi
Hi all
I have error related to GRASS GIS make:
This is my Makefile:
MODULE_TOPDIR =/localuser/soft/grass6/grass-6.4.2RC2
PGM = i.vi.mpi
LIBES = $(RASTERLIB) $(GISLIB) $(MATHLIB)
DEPENDENCIES = $(RASTERDEP) $(GISDEP)
include $(MODULE_TOPDIR)/include/Make/Module.make
default: cmd
CC = mpicc
This is my PATh
> echo $PATH command I get next :
/usr/kerberos/bin:/opt/edg/bin:/opt/glite/bin:/opt/globus/bin:/opt/lcg/bin:/usr/local/bin:/bin:/usr/bin:/localuser/ripsime/bin:/localuser/soft/grass6/grass-6.4.2RC2/bin/:/localuser/soft/grass6/grass-6.4.2RC2/include/
This is my LD_LIBRARY_PATh
> echo $LD_LIBRARY_PATH command I get :
/opt/c-ares/lib:/opt/classads/lib64:/opt/glite/lib64:/opt/globus/lib:/opt/lcg/lib:/usr/local/lib:/opt/edg/lib:/localuser/soft/grass6/grass-6.4.2RC2/lib/
But when I do make, I am getting this error :
/localuser/soft/grass6/grass-6.4.2RC2/include/Make/Module.make:25: warning: overriding commands for target `install'
/localuser/soft/grass6/grass-6.4.2RC2/include/Make/Rules.make:90: warning: ignoring old commands for target `install'
test -d OBJ. || mkdir -p OBJ.
mpicc -I/localuser/soft/grass6/grass-6.4.2RC2/include -g -O2 -DPACKAGE=\""grassmods"\" -I/localuser/soft/grass6/grass-6.4.2RC2/include -o OBJ./main.o -c main.c
main.c: In function ‘main’:
main.c:80: warning: implicit declaration of function ‘G_add_keyword’
main.c:212: warning: implicit declaration of function ‘Rast_open_old’
main.c:213: warning: implicit declaration of function ‘Rast_map_type’
main.c:214: warning: implicit declaration of function ‘Rast_allocate_buf’
main.c:214: warning: assignment makes pointer from integer without a cast
main.c:217: warning: assignment makes pointer from integer without a cast
main.c:221: warning: assignment makes pointer from integer without a cast
main.c:226: warning: assignment makes pointer from integer without a cast
main.c:231: warning: assignment makes pointer from integer without a cast
main.c:236: warning: assignment makes pointer from integer without a cast
main.c:238: warning: implicit declaration of function ‘Rast_window_rows’
main.c:239: warning: implicit declaration of function ‘Rast_window_cols’
main.c:241: warning: implicit declaration of function ‘Rast_open_new’
main.c:242: warning: implicit declaration of function ‘Rast_allocate_d_buf’
main.c:242: warning: assignment makes pointer from integer without a cast
main.c:266: warning: implicit declaration of function ‘Rast_get_row’
main.c:371: warning: implicit declaration of function ‘Rast_is_d_null_value’
main.c:467: warning: implicit declaration of function ‘Rast_put_d_row’
main.c:691: warning: implicit declaration of function ‘Rast_close’
main.c:714: warning: implicit declaration of function ‘Rast_init_colors’
main.c:717: warning: implicit declaration of function ‘Rast_add_c_color_rule’
main.c:718: warning: implicit declaration of function ‘Rast_short_history’
main.c:719: warning: implicit declaration of function ‘Rast_command_history’
main.c:720: warning: implicit declaration of function ‘Rast_write_history’
main.c:68: warning: unused variable ‘data_type_output’
main.c:56: warning: unused variable ‘name’
main.c:53: warning: unused variable ‘flag1’
main.c:47: warning: unused variable ‘mapset’
main.c:46: warning: unused variable ‘cellhd’
main.c:726: warning: unused variable ‘row_n’
main.c:941: warning: control reaches end of non-void function
main.c:71: warning: ‘data_type_greenchan’ may be used uninitialized in this function
main.c:65: warning: ‘inrast_greenchan’ may be used uninitialized in this function
main.c:59: warning: ‘infd_greenchan’ may be used uninitialized in this function
main.c:72: warning: ‘data_type_bluechan’ may be used uninitialized in this function
main.c:66: warning: ‘inrast_bluechan’ may be used uninitialized in this function
main.c:59: warning: ‘infd_bluechan’ may be used uninitialized in this function
main.c:73: warning: ‘data_type_chan5chan’ may be used uninitialized in this function
main.c:66: warning: ‘inrast_chan5chan’ may be used uninitialized in this function
main.c:60: warning: ‘infd_chan5chan’ may be used uninitialized in this function
main.c:74: warning: ‘data_type_chan7chan’ may be used uninitialized in this function
main.c:66: warning: ‘inrast_chan7chan’ may be used uninitialized in this function
main.c:60: warning: ‘infd_chan7chan’ may be used uninitialized in this function
main.c:48: warning: ‘row’ may be used uninitialized in this function
mpicc -L/localuser/soft/grass6/grass-6.4.2RC2/lib -Wl,--export-dynamic -Wl,-rpath-link,/localuser/soft/grass6/grass-6.4.2RC2/lib -o /localuser/soft/grass6/grass-6.4.2RC2/bin/i.vi.mpi OBJ./main.o -lgrass_raster.6.4.2RC2 -lgrass_pngdriver.6.4.2RC2 -lgrass_driver.6.4.2RC2 -lgrass_gis.6.4.2RC2 -lgrass_datetime.6.4.2RC2 -lz -lgrass_gis.6.4.2RC2 -lgrass_datetime.6.4.2RC2 -lz -lpng -lz -lm -lgrass_psdriver.6.4.2RC2 -lgrass_driver.6.4.2RC2 -lgrass_gis.6.4.2RC2 -lgrass_datetime.6.4.2RC2 -lz -lgrass_gis.6.4.2RC2 -lgrass_datetime.6.4.2RC2 -lz -lgrass_driver.6.4.2RC2 -lgrass_gis.6.4.2RC2 -lgrass_datetime.6.4.2RC2 -lz -lgrass_gis.6.4.2RC2 -lgrass_datetime.6.4.2RC2 -lz -lgrass_gis.6.4.2RC2 -lgrass_datetime.6.4.2RC2 -lz -lm -lm -lz
OBJ./main.o: In function `main':
/localuser/soft/i.vi.mpi/main.c:80: undefined reference to `G_add_keyword'
/localuser/soft/i.vi.mpi/main.c:81: undefined reference to `G_add_keyword'
/localuser/soft/i.vi.mpi/main.c:212: undefined reference to `Rast_open_old'
/localuser/soft/i.vi.mpi/main.c:213: undefined reference to `Rast_map_type'
/localuser/soft/i.vi.mpi/main.c:214: undefined reference to `Rast_allocate_buf'
/localuser/soft/i.vi.mpi/main.c:215: undefined reference to `Rast_open_old'
/localuser/soft/i.vi.mpi/main.c:216: undefined reference to `Rast_map_type'
/localuser/soft/i.vi.mpi/main.c:217: undefined reference to `Rast_allocate_buf'
/localuser/soft/i.vi.mpi/main.c:219: undefined reference to `Rast_open_old'
/localuser/soft/i.vi.mpi/main.c:220: undefined reference to `Rast_map_type'
/localuser/soft/i.vi.mpi/main.c:221: undefined reference to `Rast_allocate_buf'
/localuser/soft/i.vi.mpi/main.c:224: undefined reference to `Rast_open_old'
/localuser/soft/i.vi.mpi/main.c:225: undefined reference to `Rast_map_type'
/localuser/soft/i.vi.mpi/main.c:226: undefined reference to `Rast_allocate_buf'
/localuser/soft/i.vi.mpi/main.c:229: undefined reference to `Rast_open_old'
/localuser/soft/i.vi.mpi/main.c:230: undefined reference to `Rast_map_type'
/localuser/soft/i.vi.mpi/main.c:231: undefined reference to `Rast_allocate_buf'
/localuser/soft/i.vi.mpi/main.c:234: undefined reference to `Rast_open_old'
/localuser/soft/i.vi.mpi/main.c:235: undefined reference to `Rast_map_type'
/localuser/soft/i.vi.mpi/main.c:236: undefined reference to `Rast_allocate_buf'
/localuser/soft/i.vi.mpi/main.c:238: undefined reference to `Rast_window_rows'
/localuser/soft/i.vi.mpi/main.c:239: undefined reference to `Rast_window_cols'
/localuser/soft/i.vi.mpi/main.c:241: undefined reference to `Rast_open_new'
/localuser/soft/i.vi.mpi/main.c:242: undefined reference to `Rast_allocate_d_buf'
/localuser/soft/i.vi.mpi/main.c:266: undefined reference to `Rast_get_row'
/localuser/soft/i.vi.mpi/main.c:267: undefined reference to `Rast_get_row'
/localuser/soft/i.vi.mpi/main.c:269: undefined reference to `Rast_get_row'
/localuser/soft/i.vi.mpi/main.c:272: undefined reference to `Rast_get_row'
/localuser/soft/i.vi.mpi/main.c:275: undefined reference to `Rast_get_row'
OBJ./main.o:/localuser/soft/i.vi.mpi/main.c:278: more undefined references to `Rast_get_row' follow
OBJ./main.o: In function `main':
/localuser/soft/i.vi.mpi/main.c:371: undefined reference to `Rast_is_d_null_value'
/localuser/soft/i.vi.mpi/main.c:374: undefined reference to `Rast_is_d_null_value'
/localuser/soft/i.vi.mpi/main.c:377: undefined reference to `Rast_is_d_null_value'
/localuser/soft/i.vi.mpi/main.c:380: undefined reference to `Rast_is_d_null_value'
/localuser/soft/i.vi.mpi/main.c:383: undefined reference to `Rast_is_d_null_value'
OBJ./main.o:/localuser/soft/i.vi.mpi/main.c:386: more undefined references to `Rast_is_d_null_value' follow
OBJ./main.o: In function `main':
/localuser/soft/i.vi.mpi/main.c:467: undefined reference to `Rast_put_d_row'
/localuser/soft/i.vi.mpi/main.c:484: undefined reference to `Rast_get_row'
/localuser/soft/i.vi.mpi/main.c:485: undefined reference to `Rast_get_row'
/localuser/soft/i.vi.mpi/main.c:487: undefined reference to `Rast_get_row'
/localuser/soft/i.vi.mpi/main.c:490: undefined reference to `Rast_get_row'
/localuser/soft/i.vi.mpi/main.c:493: undefined reference to `Rast_get_row'
OBJ./main.o:/localuser/soft/i.vi.mpi/main.c:496: more undefined references to `Rast_get_row' follow
OBJ./main.o: In function `main':
/localuser/soft/i.vi.mpi/main.c:591: undefined reference to `Rast_is_d_null_value'
/localuser/soft/i.vi.mpi/main.c:594: undefined reference to `Rast_is_d_null_value'
/localuser/soft/i.vi.mpi/main.c:597: undefined reference to `Rast_is_d_null_value'
/localuser/soft/i.vi.mpi/main.c:600: undefined reference to `Rast_is_d_null_value'
/localuser/soft/i.vi.mpi/main.c:603: undefined reference to `Rast_is_d_null_value'
OBJ./main.o:/localuser/soft/i.vi.mpi/main.c:606: more undefined references to `Rast_is_d_null_value' follow
OBJ./main.o: In function `main':
/localuser/soft/i.vi.mpi/main.c:686: undefined reference to `Rast_put_d_row'
/localuser/soft/i.vi.mpi/main.c:691: undefined reference to `Rast_close'
/localuser/soft/i.vi.mpi/main.c:693: undefined reference to `Rast_close'
/localuser/soft/i.vi.mpi/main.c:696: undefined reference to `Rast_close'
/localuser/soft/i.vi.mpi/main.c:700: undefined reference to `Rast_close'
/localuser/soft/i.vi.mpi/main.c:704: undefined reference to `Rast_close'
OBJ./main.o:/localuser/soft/i.vi.mpi/main.c:708: more undefined references to `Rast_close' follow
OBJ./main.o: In function `main':
/localuser/soft/i.vi.mpi/main.c:714: undefined reference to `Rast_init_colors'
/localuser/soft/i.vi.mpi/main.c:717: undefined reference to `Rast_add_c_color_rule'
/localuser/soft/i.vi.mpi/main.c:718: undefined reference to `Rast_short_history'
/localuser/soft/i.vi.mpi/main.c:719: undefined reference to `Rast_command_history'
/localuser/soft/i.vi.mpi/main.c:720: undefined reference to `Rast_write_history'
collect2: ld returned 1 exit status
make: *** [/localuser/soft/grass6/grass-6.4.2RC2/bin/i.vi.mpi] Error 1
Tell me, please!!! How can I solve this problem??
Thanks in advance for any help.
Regards,
Ripsime
More information about the grass-user
mailing list