<div dir="ltr">Hi Eric,<br><div><br>On Wed, May 22, 2019 at 6:01 PM Patton, Eric (NRCan/RNCan) <<a href="mailto:eric.patton@canada.ca">eric.patton@canada.ca</a>> wrote:<br>><br><div>> Thanks for that info. So would a suitable strategy be to try re-synching  Grass from git,</div><div><br></div><div>yes, with "git pull"<br></div><div><br></div><div>then compiling and building with proj 6.1, and if that fails, try the proj 5.9.3 release?</div><div><br></div><div>As I wrote earlier, GRASS should now build with proj 6, but coordinate operations can produce wrong results.<br></div><div><br></div><div>proj-5.2.0 is the latest proj 5 release, GRASS is working with proj-5.2.0<br></div><div><br></div><div>Markus M</div><div><br></div>> ~ Eric.<br>><br>>  <br>><br>> From: Markus Metz <<a href="mailto:markus.metz.giswork@gmail.com">markus.metz.giswork@gmail.com</a>><br>> Sent: May 22, 2019 12:57<br>> To: Patton, Eric (NRCan/RNCan) <<a href="mailto:eric.patton@canada.ca">eric.patton@canada.ca</a>><br>> Cc: <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>> Subject: Re: [GRASS-user] Multiple errors building Grass 7.7svn<br>><br>>  <br>><br>><br>><br>> On Wed, May 22, 2019 at 5:33 PM Patton, Eric (NRCan/RNCan) <<a href="mailto:eric.patton@canada.ca">eric.patton@canada.ca</a>> wrote:<br>> ><br>> > Markus -<br>> ><br>> > Yes, I am using proj 6.0.0 – built with no errors.<br>><br>>  <br>><br>> be aware that GRASS might compile with PROJ 6, but it is not working, too much has changed from PROJ 5 and all those changes are not yet considered in GRASS. Most importantly, coordinate transformations might produce wrong results.<br>><br>>  <br>><br>> Furthermore, GRASS will most likely not support PROJ 6.0, only PROJ 6.1+, because of bug fixes and important new functionality.<br>><br>> ><br>> > I believe I checked out master with ‘git clone <a href="https://github.com/OSGeo/grass.git">https://github.com/OSGeo/grass.git</a>’ – so shouldn’t that fix already be present in my source tree?<br>><br>>  <br>><br>> It depends when you updated master the last time. If in doubt, git pull again.<br>><br>>  <br>><br>> Markus M<br>><br>>  <br>><br>> > <br>><br>> >  <br>> ><br>> > ~ Eric.<br>> ><br>> >  <br>> ><br>> > From: Markus Metz <<a href="mailto:markus.metz.giswork@gmail.com">markus.metz.giswork@gmail.com</a>><br>> > Sent: May 22, 2019 12:25<br>> > To: Markus Neteler <<a href="mailto:neteler@osgeo.org">neteler@osgeo.org</a>><br>> > Cc: Patton, Eric (NRCan/RNCan) <<a href="mailto:eric.patton@canada.ca">eric.patton@canada.ca</a>>; <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>> > Subject: Re: [GRASS-user] Multiple errors building Grass 7.7svn<br>> ><br>> >  <br>> ><br>> ><br>> ><br>> > On Wed, May 22, 2019 at 4:39 PM Markus Neteler <<a href="mailto:neteler@osgeo.org">neteler@osgeo.org</a>> wrote:<br>> > ><br>> > > Hi Eric,<br>> > ><br>> > > On Wed, May 22, 2019 at 3:32 PM Patton, Eric (NRCan/RNCan)<br>> > > <<a href="mailto:eric.patton@canada.ca">eric.patton@canada.ca</a>> wrote:<br>> > > ><br>> > > > Hi Markus,<br>> > > ><br>> > > > I noted your new installation instructions for the git repo and have used those.<br>> > > ><br>> > > > The first error in error.log occurs in /usr/local/grass/lib/proj:<br>> > > ><br>> > > > test -d OBJ.x86_64-pc-linux-gnu || mkdir -p OBJ.x86_64-pc-linux-gnu<br>> > > > gcc  -g -O2  -fPIC  -I/usr/local/grass/dist.x86_64-pc-linux-gnu/include -I/usr/local/grass/dist.x86_64-pc-linux-gnu/include    -I/usr/local/include -DPACKAGE=\""grasslibs"\"   -I/usr/local/grass/dist.x86_64-pc-linux-gnu/include -I/usr/local/grass/dist.x86_64-pc-linux-gnu/include -DRELDIR=\"lib/proj\" -o OBJ.x86_64-pc-linux-gnu/convert.o -c convert.c<br>> > > > gcc  -g -O2  -fPIC  -I/usr/local/grass/dist.x86_64-pc-linux-gnu/include -I/usr/local/grass/dist.x86_64-pc-linux-gnu/include    -I/usr/local/include -DPACKAGE=\""grasslibs"\"   -I/usr/local/grass/dist.x86_64-pc-linux-gnu/include -I/usr/local/grass/dist.x86_64-pc-linux-gnu/include -DRELDIR=\"lib/proj\" -o OBJ.x86_64-pc-linux-gnu/datum.o -c datum.c<br>> > > > gcc  -g -O2  -fPIC  -I/usr/local/grass/dist.x86_64-pc-linux-gnu/include -I/usr/local/grass/dist.x86_64-pc-linux-gnu/include    -I/usr/local/include -DPACKAGE=\""grasslibs"\"   -I/usr/local/grass/dist.x86_64-pc-linux-gnu/include -I/usr/local/grass/dist.x86_64-pc-linux-gnu/include -DRELDIR=\"lib/proj\" -o OBJ.x86_64-pc-linux-gnu/do_proj.o -c do_proj.c<br>> > > > gcc  -g -O2  -fPIC  -I/usr/local/grass/dist.x86_64-pc-linux-gnu/include -I/usr/local/grass/dist.x86_64-pc-linux-gnu/include    -I/usr/local/include -DPACKAGE=\""grasslibs"\"   -I/usr/local/grass/dist.x86_64-pc-linux-gnu/include -I/usr/local/grass/dist.x86_64-pc-linux-gnu/include -DRELDIR=\"lib/proj\" -o OBJ.x86_64-pc-linux-gnu/ellipse.o -c ellipse.c<br>> > > > do_proj.c: In function ‘GPJ_init_transform’:<br>> > > > do_proj.c:136:6: error: expected ‘}’ before ‘else’<br>> > > >       else {<br>> > > >       ^~~~<br>> > > > do_proj.c: At top level:<br>> > > > do_proj.c:160:5: error: expected identifier or ‘(’ before ‘if’<br>> > > >      if (info_trans->pj == NULL)<br>> > > >      ^~<br>> > > > do_proj.c:162:5: error: expected identifier or ‘(’ before ‘if’<br>> > > >      if (info_trans->pj == NULL) {<br>> > > >      ^~<br>> > > > do_proj.c:167:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘->’ token<br>> > > >      info_trans->meters = 1.;<br>> > > >                ^~<br>> > > > do_proj.c:168:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘->’ token<br>> > > >      info_trans->zone = 0;<br>> > > >                ^~<br>> > > > do_proj.c:169:23: error: expected ‘)’ before ‘->’ token<br>> > > >      sprintf(info_trans->proj, "pipeline");<br>> > > >                        ^~<br>> > > > do_proj.c:180:5: error: expected identifier or ‘(’ before ‘return’<br>> > > >      return 1;<br>> > > >      ^~~~~~<br>> > > > do_proj.c:181:1: error: expected identifier or ‘(’ before ‘}’ token<br>> > > >  }<br>> > > >  ^<br>> > > > ../../include/Make/Compile.make:32: recipe for target 'OBJ.x86_64-pc-linux-gnu/do_proj.o' failed<br>> > > > make: *** [OBJ.x86_64-pc-linux-gnu/do_proj.o] Error 1<br>> > > > make: *** Waiting for unfinished jobs....<br>> > ><br>> > > ok, there seems to be a problem with the PROJ installation.<br>> ><br>> >  <br>> ><br>> > No, it's a problem with the #ifdef's in do_proj.c accounting for different versions of PROJ<br>> ><br>> > ><br>> ><br>> > > Which proj version do you use? Please post the names of the related<br>> > > packages here which you have installed (so that we see the precise<br>> > > version names).<br>> ><br>> >  <br>> ><br>> > This must be PROJ 6.<br>> ><br>> >  <br>> ><br>> > do_proj.c should be fixed in master 7c3e8de:<br>> ><br>> > <a href="https://github.com/OSGeo/grass/commit/7c3e8de11b877f7c6240b5f94868ec27464d6c9f">https://github.com/OSGeo/grass/commit/7c3e8de11b877f7c6240b5f94868ec27464d6c9f</a><br>> ><br>> >  <br>> ><br>> > Markus M<br>> ><br><div>> >  </div><br></div></div>