[GRASS-dev] [GRASS GIS] #772: Error compiling nviz in grass7 trunk

GRASS GIS trac at osgeo.org
Sat Oct 3 14:05:12 EDT 2009


#772: Error compiling nviz in grass7 trunk
--------------------------------+-------------------------------------------
 Reporter:  huhabla             |       Owner:  grass-dev at lists.osgeo.org
     Type:  defect              |      Status:  new                      
 Priority:  major               |   Milestone:  7.0.0                    
Component:  NVIZ                |     Version:  svn-trunk                
 Keywords:  nviz compile error  |    Platform:  Linux                    
      Cpu:  x86-32              |  
--------------------------------+-------------------------------------------
 An error occurred in the latest grass7 svn trunk while compiling nviz.

 grass_trunk was compiled via:
 export CFLAGS="-Wall -Werror-implicit-function-declaration -fno-common" &&
 ./configure --without-freetype && make -j4

 Error message see below:


 {{{
 soeren at Linux-T61:~/src/grass7.0/grass_trunk/visualization/nviz> make
 make -C src
 make[1]: Entering directory
 `/home/soeren/src/grass7.0/grass_trunk/visualization/nviz/src'
 gcc -I/home/soeren/src/grass7.0/grass_trunk/dist.i686-pc-linux-gnu/include
 -I/home/soeren/src/grass7.0/grass_trunk/dist.i686-pc-linux-gnu/include
 -Wall -Werror-implicit-function-declaration -fno-common
 -I/home/soeren/src/grass7.0/grass_trunk/dist.i686-pc-linux-gnu/include
 -I/home/soeren/src/grass7.0/grass_trunk/dist.i686-pc-linux-gnu/include
 -I/usr/include/gdal/     -DPACKAGE=\"\"
 -I/home/soeren/src/grass7.0/grass_trunk/dist.i686-pc-linux-gnu/include
 -I/home/soeren/src/grass7.0/grass_trunk/dist.i686-pc-linux-gnu/include -o
 OBJ.i686-pc-linux-gnu/map_obj.o -c map_obj.c
 map_obj.c: In function ‘Nnew_map_obj_cmd’:
 map_obj.c:515: error: implicit declaration of function ‘GP_set_sitemode’
 map_obj.c:515: error: ‘ST_ATT_NONE’ undeclared (first use in this
 function)
 map_obj.c:515: error: (Each undeclared identifier is reported only once
 map_obj.c:515: error: for each function it appears in.)
 map_obj.c: In function ‘get_drawmode’:
 map_obj.c:908: warning: passing argument 2 of ‘Tcl_Merge’ from
 incompatible pointer type
 map_obj.c: In function ‘get_res’:
 map_obj.c:1030: warning: passing argument 2 of ‘Tcl_Merge’ from
 incompatible pointer type
 map_obj.c: In function ‘get_wirecolor’:
 map_obj.c:1148: warning: call to function ‘int_to_tcl_color’ without a
 real prototype
 map_obj.c:17: note: ‘int_to_tcl_color’ was declared here
 map_obj.c: In function ‘get_trans’:
 map_obj.c:1194: warning: passing argument 2 of ‘Tcl_Merge’ from
 incompatible pointer type
 map_obj.c: In function ‘get_att’:
 map_obj.c:1589: warning: call to function ‘int_to_tcl_color’ without a
 real prototype
 map_obj.c:17: note: ‘int_to_tcl_color’ was declared here
 map_obj.c:1612: error: implicit declaration of function ‘GP_get_sitemode’
 map_obj.c:1616: warning: call to function ‘int_to_tcl_color’ without a
 real prototype
 map_obj.c:17: note: ‘int_to_tcl_color’ was declared here
 map_obj.c: In function ‘set_att’:
 map_obj.c:1900: error: ‘ST_ATT_SIZE’ undeclared (first use in this
 function)
 map_obj.c:1903: error: ‘ST_ATT_COLOR’ undeclared (first use in this
 function)
 map_obj.c:1906: error: ‘ST_ATT_MARKER’ undeclared (first use in this
 function)
 map_obj.c: In function ‘unset_att’:
 map_obj.c:1987: error: ‘ST_ATT_SIZE’ undeclared (first use in this
 function)
 map_obj.c:1990: error: ‘ST_ATT_COLOR’ undeclared (first use in this
 function)
 map_obj.c:1993: error: ‘ST_ATT_MARKER’ undeclared (first use in this
 function)
 map_obj.c: In function ‘get_char_marker’:
 map_obj.c:2197: warning: zero-length printf format string
 make[1]: *** [OBJ.i686-pc-linux-gnu/map_obj.o] Fehler 1
 make[1]: Leaving directory
 `/home/soeren/src/grass7.0/grass_trunk/visualization/nviz/src'
 make: *** [default] Fehler 2
 }}}




 Build config see below:


 {{{
 GRASS is now configured for:  i686-pc-linux-gnu

   Source directory:            /home/soeren/src/grass7.0/grass_trunk
   Build directory:             /home/soeren/src/grass7.0/grass_trunk
   Installation directory:      ${prefix}/grass-7.0.svn
   Startup script in directory: ${exec_prefix}/bin
   C compiler:                  gcc -Wall -Werror-implicit-function-
 declaration -fno-common
   C++ compiler:
   Building shared libraries:   yes
   64bit support:               no
   OpenGL platform:             X11

   MacOSX application:         no
   MacOSX architectures:
   MacOSX SDK:

   NVIZ:                       yes

   BLAS support:               no
   C++ support:                no
   Cairo support:              yes
   DWG support:                no
   FFMPEG support:             no
   FFTW support:               yes
   FreeType support:           no
   GDAL support:               yes
   GEOS support:               no
   JPEG support:               yes
   LAPACK support:             no
   Large File support (LFS):   no
   MySQL support:              no
   NLS support:                no
   ODBC support:               no
   OGR support:                yes
   OpenGL support:             yes
   PNG support:                yes
   PostgreSQL support:         no
   Python support:             no
   Readline support:           no
   SQLite support:             no
   Tcl/Tk support:             yes
   wxWidgets support:          no
   TIFF support:               yes
   X11 support:                yes
   Regex support:              yes
   POSIX thread support:       no
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/772>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list