[GRASS-dev] [GRASS GIS] #1720: r.viewshed doesn't compile in GRASS 7

GRASS GIS trac at osgeo.org
Mon Sep 3 14:01:39 PDT 2012


#1720: r.viewshed doesn't compile in GRASS 7
-------------------------+--------------------------------------------------
 Reporter:  cmbarton     |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  normal       |   Milestone:  7.0.0                    
Component:  Compiling    |     Version:  svn-trunk                
 Keywords:  r.viewshed   |    Platform:  Unspecified              
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------
 i don't know exactly when this started, but it is recent.

 {{{
 Last login: Mon Sep  3 13:55:06 on ttys000
 Michaels-MacBook-Air:~ cmbarton$ cd
 /Users/Shared/grass_dev/grass70_dev/raster/r.viewshed
 Michaels-MacBook-Air:r.viewshed cmbarton$ make
 c++  -arch i386 -isysroot /Developer/SDKs/MacOSX10.6.sdk
 -I/Users/Shared/grass_dev/grass70_dev/dist.x86_64-apple-
 darwin12.1.0/include -I/Users/Shared/grass_dev/grass70_dev/dist.x86_64
 -apple-darwin12.1.0/include  -D_FILE_OFFSET_BITS=64 -DUSER=\"cmbarton\"
 -Wno-sign-compare -DPACKAGE=\""grassmods"\"
 -I/Users/Shared/grass_dev/grass70_dev/dist.x86_64-apple-
 darwin12.1.0/include -I/Users/Shared/grass_dev/grass70_dev/dist.x86_64
 -apple-darwin12.1.0/include -o OBJ.x86_64-apple-darwin12.1.0/distribute.o
 -c distribute.cpp
 In file included from distribute.cpp:52:
 In file included from /Users/Shared/grass_dev/grass70_dev/dist.x86_64
 -apple-darwin12.1.0/include/grass/iostream/ami.h:56:
 In file included from /Users/Shared/grass_dev/grass70_dev/dist.x86_64
 -apple-darwin12.1.0/include/grass/iostream/empq_impl.h:43:
 In file included from /Users/Shared/grass_dev/grass70_dev/dist.x86_64
 -apple-darwin12.1.0/include/grass/iostream/empq.h:51:
 /Users/Shared/grass_dev/grass70_dev/dist.x86_64-apple-
 darwin12.1.0/include/grass/iostream/embuffer.h:1140:56: error:
       default arguments cannot be added to an out-of-line definition of a
 member
       of a class template
 long em_buffer<T,Key>::insert(AMI_STREAM<T>* str, long bos=0) {
                                                        ^   ~
 In file included from distribute.cpp:52:
 In file included from /Users/Shared/grass_dev/grass70_dev/dist.x86_64
 -apple-darwin12.1.0/include/grass/iostream/ami.h:56:
 In file included from /Users/Shared/grass_dev/grass70_dev/dist.x86_64
 -apple-darwin12.1.0/include/grass/iostream/empq_impl.h:43:
 In file included from /Users/Shared/grass_dev/grass70_dev/dist.x86_64
 -apple-darwin12.1.0/include/grass/iostream/empq.h:53:
 /Users/Shared/grass_dev/grass70_dev/dist.x86_64-apple-
 darwin12.1.0/include/grass/iostream/minmaxheap.h:512:7: error:
       reference to non-static member function must be called; did you mean
 to
       call it with no arguments?
   if (size) {
       ^~~~
           ()
 distribute.cpp:89:15: warning: format string is not a string literal
       (potentially insecure) [-Wformat-security]
     G_message(_("Start distributed sweeping."));
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 /Users/Shared/grass_dev/grass70_dev/dist.x86_64-apple-
 darwin12.1.0/include/grass/glocale.h:10:16: note:
       expanded from macro '_'
 #define _(str) G_gettext(PACKAGE,(str))
                ^~~~~~~~~~~~~~~~~~~~~~~~
 distribute.cpp:149:15: warning: format string is not a string literal
       (potentially insecure) [-Wformat-security]
     G_message(_("Distribution sweeping done."));
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 /Users/Shared/grass_dev/grass70_dev/dist.x86_64-apple-
 darwin12.1.0/include/grass/glocale.h:10:16: note:
       expanded from macro '_'
 #define _(str) G_gettext(PACKAGE,(str))
                ^~~~~~~~~~~~~~~~~~~~~~~~
 2 warnings and 2 errors generated.
 make: *** [OBJ.x86_64-apple-darwin12.1.0/distribute.o] Error 1
 Michaels-MacBook-Air:r.viewshed cmbarton$

 }}}

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



More information about the grass-dev mailing list