<div dir="ltr"><div>[Response to Re: [GRASS-dev] grass-dev Digest, Vol 149, Issue 11]</div><div><br></div><div>Hi Michael,</div><div><br></div><div>I'm not able to reproduce this issue on Linux with clang (which is used on Mac) even with more strict compiler settings:<br></div><div><br></div><div>clang  -O2 -fno-common -Wall -pedantic -Wextra ...<br></div><div><div class="gmail_extra"><br></div><div class="gmail_extra">Since both "installation/dist" and source paths appear in the command line, even the error message says the function is there (actually, already in the installed/dist path), the includes were not changed (in r72940), and the errors are only related to the newly added functions (f_ceil, f_floor), I suggest just updating and recompiling again and making sure that two source codes or installations are not tangled together.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><div>For the record, this is not related to m.nviz.image changes. It might be related to r72940 r.mapcalc: +ceil, +floor (fixes #769).</div><div><br></div><div>Best,<br></div></div><div class="gmail_extra">Vaclav<br></div><div class="gmail_extra"></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 5, 2018 at 5:14 PM, 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">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 the same errors.<br>
<br>
Michael<br>
<br>
<br>
========== error ==========<br>
Errors in:<br>
/Users/cmbarton/grass_source/<wbr>trunk/lib/calc<br>
--<br>
In case of errors please change into the directory with error and run 'make'.<br>
If you get multiple errors, you need to deal with them in the order they<br>
appear in the error log. If you get an error building a library, you will<br>
also get errors from anything which uses the library.<br>
--<br>
Finished compilation: Thu Jul  5 13:47:36 MST 2018<br>
make: *** [default] Error 1<br>
cmb-imaccsdc:trunk cmbarton$ cd /Users/cmbarton/grass_source/<wbr>trunk/lib/calc<br>
cmb-imaccsdc:calc cmbarton$ make<br>
/Applications/GRASS-7.5.app/<wbr>Contents/Resources/bin/clang -I/Applications/GRASS-7.5.app/<wbr>Contents/Resources/include -g -O2  -fno-common -I/Applications/GRASS-7.5.app/<wbr>Contents/Resources/include -I/Users/cmbarton/grass_<wbr>source/trunk/dist.x86_64-<wbr>apple-darwin17.6.0/include -I/Users/cmbarton/grass_<wbr>source/trunk/dist.x86_64-<wbr>apple-darwin17.6.0/include    -DPACKAGE=\""grasslibs"\"   -I/Users/cmbarton/grass_<wbr>source/trunk/dist.x86_64-<wbr>apple-darwin17.6.0/include -I/Users/cmbarton/grass_<wbr>source/trunk/dist.x86_64-<wbr>apple-darwin17.6.0/include -DRELDIR=\"lib/calc\" -o OBJ.x86_64-apple-darwin17.6.0/<wbr>function.o -c 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 mean 'f_float'?<br>
    {"floor", c_unop, f_floor},<br>
                      ^~~~~~~<br>
                      f_float<br>
/Applications/GRASS-7.5.app/<wbr>Contents/Resources/include/<wbr>grass/defs/calc.h:63:15: note: 'f_float' declared here<br>
extern func_t f_float;<br>
              ^<br>
2 errors generated.<br>
make: *** [OBJ.x86_64-apple-darwin17.6.<wbr>0/function.o] Error 1<br>
<br>
<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, 12:00 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, 05 Jul 2018 03:23:44 -0000<br>
    From: "GRASS GIS" <<a href="mailto:trac@osgeo.org">trac@osgeo.org</a>><br>
    To: undisclosed-recipients: ;<br>
    Cc: <a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
    Subject: Re: [GRASS-dev] [GRASS GIS] #2998: m.nviz.image fails with X<br>
        Error BadValue integer parameter out of range for operation<br>
    Message-ID: <<a href="mailto:060.01ef0c91d1c90d09d0aa6600166f8b24@osgeo.org">060.<wbr>01ef0c91d1c90d09d0aa6600166f8b<wbr>24@osgeo.org</a>><br>
    Content-Type: text/plain; charset="utf-8"<br>
<br>
    #2998: m.nviz.image fails with X Error BadValue integer parameter out of range for<br>
    operation<br>
    -------------------------+----<wbr>------------------------------<wbr>---------------<br>
      Reporter:  wenzeslaus  |      Owner:  grass-dev@…<br>
          Type:  defect      |     Status:  closed<br>
      Priority:  normal      |  Milestone:  7.2.4<br>
    Component:  LibOpenGL   |    Version:  svn-trunk<br>
    Resolution:  fixed       |   Keywords:  m.nviz.image, NVIZ, 3D, GLX,<br>
                             |  X_GLXCreateContext, g.gui.animation<br>
           CPU:  x86-64      |   Platform:  Linux<br>
    -------------------------+----<wbr>------------------------------<wbr>---------------<br>
<br>
    Comment (by hcho):<br>
<br>
    Oh! I'm on Linux (Slackware 14.2). Is there a way to reproduce your issue?<br>
    Any sample data set and command line? Maybe, it was related to my mistake<br>
    in write_img.c, which is just fixed in r72951?<br>
<br>
    -- <br>
    Ticket URL: <<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__trac.osgeo.org_grass_ticket_2998-23comment-3A19&d=DwIGaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=dAPexcceMdlawW6E7rSolX7s8mY6Jql0drLwOwoKKfc&s=5uNzqfWlMr40jdzC0Ny-QDAl8hVGhUxCxrhXgMOr2gQ&e=" rel="noreferrer" target="_blank">https://urldefense.<wbr>proofpoint.com/v2/url?u=https-<wbr>3A__trac.osgeo.org_grass_<wbr>ticket_2998-23comment-3A19&d=<wbr>DwIGaQ&c=l45AxH-<wbr>kUV29SRQusp9vYR0n1GycN4_<wbr>2jInuKy6zbqQ&r=lk-<wbr>7X7CEOMDN8GaGVhiDsuO6gEp1wbG6n<wbr>fT1XEEEtR0&m=<wbr>dAPexcceMdlawW6E7rSolX7s8mY6Jq<wbr>l0drLwOwoKKfc&s=<wbr>5uNzqfWlMr40jdzC0Ny-<wbr>QDAl8hVGhUxCxrhXgMOr2gQ&e=</a>><br>
    GRASS GIS <<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__grass.osgeo.org&d=DwIGaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=dAPexcceMdlawW6E7rSolX7s8mY6Jql0drLwOwoKKfc&s=RZLKiXtG8s2xqATPclFfuTwSQ6hpancGROIW78AqtI4&e=" rel="noreferrer" target="_blank">https://urldefense.<wbr>proofpoint.com/v2/url?u=https-<wbr>3A__grass.osgeo.org&d=DwIGaQ&<wbr>c=l45AxH-<wbr>kUV29SRQusp9vYR0n1GycN4_<wbr>2jInuKy6zbqQ&r=lk-<wbr>7X7CEOMDN8GaGVhiDsuO6gEp1wbG6n<wbr>fT1XEEEtR0&m=<wbr>dAPexcceMdlawW6E7rSolX7s8mY6Jq<wbr>l0drLwOwoKKfc&s=<wbr>RZLKiXtG8s2xqATPclFfuTwSQ6hpan<wbr>cGROIW78AqtI4&e=</a>><br>
<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></blockquote></div><br></div></div></div>