Opened 11 years ago

Closed 11 years ago

#772 closed defect (fixed)

Error compiling nviz in grass7 trunk

Reported by: huhabla Owned by: grass-dev@…
Priority: major Milestone: 7.0.0
Component: Tcl/Tk NVIZ Version: svn-trunk
Keywords: nviz compile error Cc:
CPU: x86-32 Platform: Linux

Description

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

Change History (2)

comment:2 Changed 11 years ago by marisn

Resolution: fixed
Status: newclosed

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.

Note: See TracTickets for help on using tickets.