<div dir="ltr"><div>Michael,</div><div><br></div><div>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</div><div><br></div><div>Markus M</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 6, 2018 at 12:06 AM, Michael Barton <span dir="ltr"><<a href="mailto:Michael.Barton@asu.edu" target="_blank">Michael.Barton@asu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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,<br>
<div class="HOEnZb"><div class="h5"><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="http://csdc.asu.edu" rel="noreferrer" target="_blank">http://csdc.asu.edu</a>, <a href="http://shesc.asu.edu" rel="noreferrer" target="_blank">http://shesc.asu.edu</a><br>
                                <a href="http://www.public.asu.edu/~cmbarton" rel="noreferrer" target="_blank">http://www.public.asu.edu/~<wbr>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.<wbr>org</a>" <<a href="mailto:grass-dev-bounces@lists.osgeo.org">grass-dev-bounces@lists.<wbr>osgeo.org</a> on behalf of <a href="mailto:grass-dev-request@lists.osgeo.org">grass-dev-request@lists.osgeo.<wbr>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_<wbr>V9t09PvcVi1GhwiT85HVncZQ@mail.<wbr>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>
______________________________<wbr>_________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/grass-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/grass-dev</a></div></div></blockquote></div><br></div>