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

3 messages Options
Embed this post
Permalink
GRASS GIS

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

Reply Threaded More More options
Print post
Permalink
#772: Error compiling nviz in grass7 trunk
--------------------------------+-------------------------------------------
 Reporter:  huhabla             |       Owner:  [hidden email]
     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@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>

_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev
GRASS GIS

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

Reply Threaded More More options
Print post
Permalink
#772: Error compiling nviz in grass7 trunk
----------------------+-----------------------------------------------------
  Reporter:  huhabla  |       Owner:  [hidden email]
      Type:  defect   |      Status:  new                      
  Priority:  major    |   Milestone:  7.0.0                    
 Component:  NVIZ     |     Version:  svn-trunk                
Resolution:           |    Keywords:  nviz compile error      
  Platform:  Linux    |         Cpu:  x86-32                  
----------------------+-----------------------------------------------------
Comment (by hamish):

 http://thread.gmane.org/gmane.comp.gis.grass.devel/35682

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

_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev
GRASS GIS

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

Reply Threaded More More options
Print post
Permalink
In reply to this post by GRASS GIS
#772: Error compiling nviz in grass7 trunk
----------------------+-----------------------------------------------------
  Reporter:  huhabla  |       Owner:  [hidden email]
      Type:  defect   |      Status:  closed                  
  Priority:  major    |   Milestone:  7.0.0                    
 Component:  NVIZ     |     Version:  svn-trunk                
Resolution:  fixed    |    Keywords:  nviz compile error      
  Platform:  Linux    |         Cpu:  x86-32                  
----------------------+-----------------------------------------------------
Changes (by marisn):

  * status:  new => closed
  * resolution:  => fixed

Comment:

 There is a reason why it's called trunk and not release branch - it can be
 broken from time to time. You have to follow devel ML if You use trunk as
 things may go really bad at times (trunk can eat small babies at
 breakfest). Anyway - NVIZ compilation is fixed with hack r39423.

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

_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev