<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
I just tried updating and compiling GRASS 6.4 svn and got an error compiling r.terraflow. It could be because I am still working out how to compile on Apple OSX 10.8 (Mt. Lion), but the rest of 6.4.3 compiled without errors. I'll list the error here. If this
is really a bug, I can file a report.
<div><br>
</div>
<div>Michael</div>
<div><br>
</div>
<div>=========== r.terraflow error ============</div>
<div><br>
</div>
<div>
<div>Michaels-MacBook-Air:r.terraflow cmbarton$ make</div>
<div>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</div>
<div>In file included from main.cc:39:</div>
<div>In file included from ./common.h:27:</div>
<div>In file included from /Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-darwin12.1.0/include/grass/iostream/ami.h:39:</div>
<div>In file included from /Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-darwin12.1.0/include/grass/iostream/empq_impl.h:26:</div>
<div>In file included from /Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-darwin12.1.0/include/grass/iostream/empq.h:33:</div>
<div>/Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-darwin12.1.0/include/grass/iostream/embuffer.h:1123:56: error: </div>
<div> default arguments cannot be added to an out-of-line definition of a member</div>
<div> of a class template</div>
<div>long em_buffer<T,Key>::insert(AMI_STREAM<T>* str, long bos=0) {</div>
<div> ^ ~</div>
<div>In file included from main.cc:39:</div>
<div>In file included from ./common.h:27:</div>
<div>In file included from /Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-darwin12.1.0/include/grass/iostream/ami.h:39:</div>
<div>In file included from /Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-darwin12.1.0/include/grass/iostream/empq_impl.h:26:</div>
<div>In file included from /Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-darwin12.1.0/include/grass/iostream/empq.h:35:</div>
<div>/Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-darwin12.1.0/include/grass/iostream/minmaxheap.h:494:7: error: </div>
<div> reference to non-static member function must be called; did you mean to</div>
<div> call it with no arguments?</div>
<div> if (size) {</div>
<div> ^~~~</div>
<div> ()</div>
<div>main.cc:181:16: warning: format string is not a string literal</div>
<div> (potentially insecure) [-Wformat-security]</div>
<div> G_fatal_error(_("Unable to create temp dir"));</div>
<div> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</div>
<div>/Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-darwin12.1.0/include/grass/glocale.h:10:16: note: </div>
<div> expanded from macro '_'</div>
<div>#define _(str) G_gettext(PACKAGE,(str))</div>
<div> ^~~~~~~~~~~~~~~~~~~~~~~~</div>
<div>main.cc:191:15: warning: format string is not a string literal</div>
<div> (potentially insecure) [-Wformat-security]</div>
<div> G_warning(_("The '-q' flag is superseded and will be removed "</div>
<div> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</div>
<div>/Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-darwin12.1.0/include/grass/glocale.h:10:16: note: </div>
<div> expanded from macro '_'</div>
<div>#define _(str) G_gettext(PACKAGE,(str))</div>
<div> ^~~~~~~~~~~~~~~~~~~~~~~~</div>
<div>main.cc:367:19: warning: format string is not a string literal</div>
<div> (potentially insecure) [-Wformat-security]</div>
<div> G_fatal_error(_("cannot read range"));</div>
<div> ^~~~~~~~~~~~~~~~~~~~~~</div>
<div>/Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-darwin12.1.0/include/grass/glocale.h:10:16: note: </div>
<div> expanded from macro '_'</div>
<div>#define _(str) G_gettext(PACKAGE,(str))</div>
<div> ^~~~~~~~~~~~~~~~~~~~~~~~</div>
<div>main.cc:389:19: warning: format string is not a string literal</div>
<div> (potentially insecure) [-Wformat-security]</div>
<div> G_fatal_error(_("cannot write colors"));</div>
<div> ^~~~~~~~~~~~~~~~~~~~~~~~</div>
<div>/Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-darwin12.1.0/include/grass/glocale.h:10:16: note: </div>
<div> expanded from macro '_'</div>
<div>#define _(str) G_gettext(PACKAGE,(str))</div>
<div> ^~~~~~~~~~~~~~~~~~~~~~~~</div>
<div>main.cc:407:19: warning: format string is not a string literal</div>
<div> (potentially insecure) [-Wformat-security]</div>
<div> G_fatal_error(_("cannot read range"));</div>
<div> ^~~~~~~~~~~~~~~~~~~~~~</div>
<div>/Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-darwin12.1.0/include/grass/glocale.h:10:16: note: </div>
<div> expanded from macro '_'</div>
<div>#define _(str) G_gettext(PACKAGE,(str))</div>
<div> ^~~~~~~~~~~~~~~~~~~~~~~~</div>
<div>main.cc:414:19: warning: format string is not a string literal</div>
<div> (potentially insecure) [-Wformat-security]</div>
<div> G_fatal_error(_("cannot write colors"));</div>
<div> ^~~~~~~~~~~~~~~~~~~~~~~~</div>
<div>/Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-darwin12.1.0/include/grass/glocale.h:10:16: note: </div>
<div> expanded from macro '_'</div>
<div>#define _(str) G_gettext(PACKAGE,(str))</div>
<div> ^~~~~~~~~~~~~~~~~~~~~~~~</div>
<div>main.cc:434:44: warning: format specifies type 'int' but the argument has type</div>
<div> 'unsigned long' [-Wformat]</div>
<div> G_message( "\t\t FILL: %s [%d elements, %dB each]",</div>
<div> ~^</div>
<div> %ld</div>
<div>main.cc:437:45: warning: format specifies type 'int' but the argument has type</div>
<div> 'unsigned long' [-Wformat]</div>
<div> G_message( "\t\t FLOW: %s [%ld elements, %dB each]",</div>
<div> ~^</div>
<div> %ld</div>
<div>8 warnings and 2 errors generated.</div>
<div>make: *** [OBJ.x86_64-apple-darwin12.1.0/FLOAT/main.o] Error 1</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
<div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>
<div>____________________</div>
<div>C. Michael Barton</div>
<div>Director, Center for Social Dynamics & Complexity </div>
<div>Professor of Anthropology, School of Human Evolution & Social Change</div>
<div>Arizona State University</div>
<div><br>
</div>
voice: <span class="Apple-tab-span" style="white-space: pre; "> </span>480-965-6262 (SHESC), 480-727-9746 (CSDC)<br>
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)<br>
<div>www: <a href="http://www.public.asu.edu/~cmbarton">http://www.public.asu.edu/~cmbarton</a>,
<a href="http://csdc.asu.edu">http://csdc.asu.edu</a></div>
<br>
</div>
<br>
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</span><br class="Apple-interchange-newline">
</div>
<br>
</div>
</body>
</html>