<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Lucida Grande";
        panose-1:2 11 6 0 4 5 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Thanks Markus,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Include/defs/calc.h did update too. But perhaps the problem lies in that piece of code somehow?
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Michael<o:p></o:p></p>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Helvetica;color:black">______________________________</span><span style="font-size:10.0pt;font-family:"Lucida Grande",sans-serif;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Helvetica;color:black">C. Michael Barton </span><span style="font-size:10.0pt;font-family:"Lucida Grande",sans-serif;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Helvetica;color:black">Director, Center for Social Dynamics & Complexity</span><span style="font-size:10.0pt;font-family:"Lucida Grande",sans-serif;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Helvetica;color:black">Professor of Anthropology, School of Human Evolution & Social Change</span><span style="font-size:10.0pt;font-family:"Lucida Grande",sans-serif;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Helvetica;color:black">Head, Graduate Faculty in Complex Adaptive Systems Science</span><span style="font-size:10.0pt;font-family:"Lucida Grande",sans-serif;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Helvetica;color:black">Arizona State University</span><span style="font-size:10.0pt;font-family:"Lucida Grande",sans-serif;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Helvetica;color:black">Tempe, AZ  85287-2402</span><span style="font-size:10.0pt;font-family:"Lucida Grande",sans-serif;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Helvetica;color:black">USA</span><span style="font-size:10.0pt;font-family:"Lucida Grande",sans-serif;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Lucida Grande",sans-serif;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Lucida Grande",sans-serif;color:black">voice:    480-965-6262 (SHESC), 480-965-8130/</span><span style="font-size:9.0pt;font-family:Helvetica;color:black">727-9746 (CSDC)</span><span style="font-size:10.0pt;font-family:Helvetica;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Helvetica;color:black">fax:          480-965-7671(SHESC), 480-727-0709 (CSDC)</span><span style="font-size:10.0pt;font-family:"Lucida Grande",sans-serif;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Helvetica;color:black">www:      http://csdc.asu.edu, http://shesc.asu.edu</span><span style="font-size:10.0pt;font-family:"Lucida Grande",sans-serif;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Helvetica;color:black">                                http://www.public.asu.edu/~cmbarton</span><span style="font-size:10.0pt;font-family:"Lucida Grande",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">Markus Metz <markus.metz.giswork@gmail.com><br>
<b>Date: </b>Thursday, July 5, 2018 at 11:16 PM<br>
<b>To: </b>Michael Barton <Michael.Barton@asu.edu><br>
<b>Cc: </b>Vaclav Petras <wenzeslaus@gmail.com>, GRASS developers list <grass-dev@lists.osgeo.org><br>
<b>Subject: </b>Re: [GRASS-dev] Compiler error in /lib/calc<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">Michael,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">the includes changed with trunk r72940, you also need to update include/ because f_ceil and f_floor are declared in include/defs/calc.h<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Markus M<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Fri, Jul 6, 2018 at 12:06 AM, Michael Barton <<a href="mailto:Michael.Barton@asu.edu" target="_blank">Michael.Barton@asu.edu</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">PS: The errors are undeclared identifiers. Is there something missing that needs to be there on the Mac? Or do these need to be declared in a different place in function.c to be recognized?
<br>
<br>
function.c<br>
function.c:14:22: error: use of undeclared identifier 'f_ceil'<br>
     {"ceil", c_unop, f_ceil},<br>
                      ^<br>
function.c:15:23: error: use of undeclared identifier 'f_floor'; did you<br>
mean 'f_float'?<br>
     {"floor", c_unop, f_floor},<br>
<br>
Thanks Vaclav,<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><br>
I tried this first with a make distclean and svn update.<br>
Then, to be sure, I deleted all files and trunk and restored them fresh. <br>
Same problem. <br>
This all compiled with no errors a week or two back. <br>
<br>
When I did the svn up, the items that had changed in lib/calc since my last update are<br>
<br>
U    lib/calc/function.c<br>
A    lib/calc/xceil.c<br>
A    lib/calc/xfloor.c<br>
<br>
Michael<br>
<br>
______________________________<br>
C. Michael Barton <br>
Director, Center for Social Dynamics & Complexity<br>
Professor of Anthropology, School of Human Evolution & Social Change<br>
Head, Graduate Faculty in Complex Adaptive Systems Science<br>
Arizona State University<br>
Tempe, AZ  85287-2402<br>
USA<br>
<br>
voice:    480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)<br>
fax:          480-965-7671(SHESC), 480-727-0709 (CSDC)<br>
www:      <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__csdc.asu.edu&d=DwMFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=hHikQicGl6t48Jqqxi9dz917Qrb1kz1-9ovZI57-JF0&s=JFHCY8yzcWpjyMriH6OIOD8Gp6uqqFOoNqksKBgSDuc&e=" target="_blank">
http://csdc.asu.edu</a>, <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__shesc.asu.edu&d=DwMFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=hHikQicGl6t48Jqqxi9dz917Qrb1kz1-9ovZI57-JF0&s=vlGFh0qvy9SqddC-VR6ZGJN6vOeso9MI_ZmzmSllf94&e=" target="_blank">
http://shesc.asu.edu</a><br>
                                <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.public.asu.edu_-7Ecmbarton&d=DwMFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=hHikQicGl6t48Jqqxi9dz917Qrb1kz1-9ovZI57-JF0&s=_AbSfNfwZvHjuQ9Gov4mR1azDDcms9ytXxXznfCImZo&e=" target="_blank">
http://www.public.asu.edu/~cmbarton</a><br>
<br>
On 7/5/18, 2:54 PM, "grass-dev on behalf of <a href="mailto:grass-dev-request@lists.osgeo.org">
grass-dev-request@lists.osgeo.org</a>" <<a href="mailto:grass-dev-bounces@lists.osgeo.org">grass-dev-bounces@lists.osgeo.org</a> on behalf of
<a href="mailto:grass-dev-request@lists.osgeo.org">grass-dev-request@lists.osgeo.org</a>> wrote:<br>
<br>
    Date: Thu, 5 Jul 2018 17:54:24 -0400<br>
    From: Vaclav Petras <<a href="mailto:wenzeslaus@gmail.com">wenzeslaus@gmail.com</a>><br>
    To: Michael Barton <<a href="mailto:Michael.Barton@asu.edu">Michael.Barton@asu.edu</a>><br>
    Cc: "<a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a>" <<a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a>><br>
    Subject: [GRASS-dev] Compiler error in /lib/calc<br>
    Message-ID:<br>
        <CABo5uVsCZT=<a href="mailto:Vz3odmBD76zsNF_V9t09PvcVi1GhwiT85HVncZQ@mail.gmail.com">Vz3odmBD76zsNF_V9t09PvcVi1GhwiT85HVncZQ@mail.gmail.com</a>><br>
    Content-Type: text/plain; charset="utf-8"<br>
<br>
    [Response to Re: [GRASS-dev] grass-dev Digest, Vol 149, Issue 11]<br>
<br>
    Hi Michael,<br>
<br>
    I'm not able to reproduce this issue on Linux with clang (which is used on<br>
    Mac) even with more strict compiler settings:<br>
<br>
    clang  -O2 -fno-common -Wall -pedantic -Wextra ...<br>
<br>
    Since both "installation/dist" and source paths appear in the command line,<br>
    even the error message says the function is there (actually, already in the<br>
    installed/dist path), the includes were not changed (in r72940), and the<br>
    errors are only related to the newly added functions (f_ceil, f_floor), I<br>
    suggest just updating and recompiling again and making sure that two source<br>
    codes or installations are not tangled together.<br>
<br>
    For the record, this is not related to m.nviz.image changes. It might be<br>
    related to r72940 r.mapcalc: +ceil, +floor (fixes #769).<br>
<br>
    Best,<br>
    Vaclav<br>
<br>
    On Thu, Jul 5, 2018 at 5:14 PM, Michael Barton <<a href="mailto:Michael.Barton@asu.edu">Michael.Barton@asu.edu</a>><br>
    wrote:<br>
<br>
    >To try and test the fix to m.nviz.image, I just now did for trunk:<br>
    ><br>
    >Make distclean<br>
    >Svn update<br>
    >Configure (no problem)<br>
    >Compile<br>
    ><br>
    >I got a compiler error in /lib/calc (error below)<br>
    >Is this due to the recent fix?<br>
    ><br>
    >I also tried it with a completely new version of trunk downloaded and got<br>
    >the same errors.<br>
    ><br>
    >Michael<br>
    ><br>
<br>
<br>
_______________________________________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.osgeo.org_mailman_listinfo_grass-2Ddev&d=DwMFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=hHikQicGl6t48Jqqxi9dz917Qrb1kz1-9ovZI57-JF0&s=euppTD184bxico_IDC2sRYIrUcRPBoSlmOT3gUgdYcQ&e=" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-dev</a><o:p></o:p></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>