[GRASS-dev] [GRASS GIS] #1714: r.terraflow does not compile

GRASS GIS trac at osgeo.org
Fri Aug 31 11:48:53 PDT 2012


#1714: r.terraflow does not compile
-------------------------+--------------------------------------------------
 Reporter:  cmbarton     |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  blocker      |   Milestone:  6.4.3                    
Component:  Default      |     Version:  svn-releasebranch64      
 Keywords:  r.terraflow  |    Platform:  Unspecified              
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------
 In the latest update of 6.4.3 svn, r.terraflow does not compile, at least
 on the Mac. Here is the error:


 {{{
 Michaels-MacBook-Air:r.terraflow cmbarton$ make
 c++ -c -I/Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-
 darwin12.1.0/include  -arch i386 -isysroot /Developer/SDKs/MacOSX10.6.sdk
 -DUSER=\"cmbarton\" -DNODATA_FIX -D_FILE_OFFSET_BITS=64
 -DPACKAGE=\""grassmods"\" -DELEV_FLOAT main.cc -o OBJ.x86_64-apple-
 darwin12.1.0/FLOAT/main.o
 In file included from main.cc:39:
 In file included from ./common.h:27:
 In file included from /Users/Shared/grass_dev/grass64_rb/dist.x86_64
 -apple-darwin12.1.0/include/grass/iostream/ami.h:39:
 In file included from /Users/Shared/grass_dev/grass64_rb/dist.x86_64
 -apple-darwin12.1.0/include/grass/iostream/empq_impl.h:26:
 In file included from /Users/Shared/grass_dev/grass64_rb/dist.x86_64
 -apple-darwin12.1.0/include/grass/iostream/empq.h:33:
 /Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-
 darwin12.1.0/include/grass/iostream/embuffer.h:1123: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 main.cc:39:
 In file included from ./common.h:27:
 In file included from /Users/Shared/grass_dev/grass64_rb/dist.x86_64
 -apple-darwin12.1.0/include/grass/iostream/ami.h:39:
 In file included from /Users/Shared/grass_dev/grass64_rb/dist.x86_64
 -apple-darwin12.1.0/include/grass/iostream/empq_impl.h:26:
 In file included from /Users/Shared/grass_dev/grass64_rb/dist.x86_64
 -apple-darwin12.1.0/include/grass/iostream/empq.h:35:
 /Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-
 darwin12.1.0/include/grass/iostream/minmaxheap.h:494:7: error:
       reference to non-static member function must be called; did you mean
 to call it with no
       arguments?
   if (size) {
       ^~~~
           ()
 main.cc:181:16: warning: format string is not a string literal
 (potentially insecure)
       [-Wformat-security]
         G_fatal_error(_("Unable to create temp dir"));
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 /Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-
 darwin12.1.0/include/grass/glocale.h:10:16: note:
       expanded from macro '_'
 #define _(str) G_gettext(PACKAGE,(str))
                ^~~~~~~~~~~~~~~~~~~~~~~~
 main.cc:191:15: warning: format string is not a string literal
 (potentially insecure)
       [-Wformat-security]
     G_warning(_("The '-q' flag is superseded and will be removed "
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 /Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-
 darwin12.1.0/include/grass/glocale.h:10:16: note:
       expanded from macro '_'
 #define _(str) G_gettext(PACKAGE,(str))
                ^~~~~~~~~~~~~~~~~~~~~~~~
 main.cc:367:19: warning: format string is not a string literal
 (potentially insecure)
       [-Wformat-security]
     G_fatal_error(_("cannot read range"));
                   ^~~~~~~~~~~~~~~~~~~~~~
 /Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-
 darwin12.1.0/include/grass/glocale.h:10:16: note:
       expanded from macro '_'
 #define _(str) G_gettext(PACKAGE,(str))
                ^~~~~~~~~~~~~~~~~~~~~~~~
 main.cc:389:19: warning: format string is not a string literal
 (potentially insecure)
       [-Wformat-security]
     G_fatal_error(_("cannot write colors"));
                   ^~~~~~~~~~~~~~~~~~~~~~~~
 /Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-
 darwin12.1.0/include/grass/glocale.h:10:16: note:
       expanded from macro '_'
 #define _(str) G_gettext(PACKAGE,(str))
                ^~~~~~~~~~~~~~~~~~~~~~~~
 main.cc:407:19: warning: format string is not a string literal
 (potentially insecure)
       [-Wformat-security]
     G_fatal_error(_("cannot read range"));
                   ^~~~~~~~~~~~~~~~~~~~~~
 /Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-
 darwin12.1.0/include/grass/glocale.h:10:16: note:
       expanded from macro '_'
 #define _(str) G_gettext(PACKAGE,(str))
                ^~~~~~~~~~~~~~~~~~~~~~~~
 main.cc:414:19: warning: format string is not a string literal
 (potentially insecure)
       [-Wformat-security]
     G_fatal_error(_("cannot write colors"));
                   ^~~~~~~~~~~~~~~~~~~~~~~~
 /Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-
 darwin12.1.0/include/grass/glocale.h:10:16: note:
       expanded from macro '_'
 #define _(str) G_gettext(PACKAGE,(str))
                ^~~~~~~~~~~~~~~~~~~~~~~~
 main.cc:434:44: warning: format specifies type 'int' but the argument has
 type 'unsigned long'
       [-Wformat]
   G_message( "\t\t FILL: %s [%d elements, %dB each]",
                                           ~^
                                           %ld
 main.cc:437:45: warning: format specifies type 'int' but the argument has
 type 'unsigned long'
       [-Wformat]
   G_message( "\t\t FLOW: %s [%ld elements, %dB each]",
                                            ~^
                                            %ld
 8 warnings and 2 errors generated.
 make: *** [OBJ.x86_64-apple-darwin12.1.0/FLOAT/main.o] Error 1
 Michaels-MacBook-Air:r.terraflow cmbarton$

 }}}

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



More information about the grass-dev mailing list