<html xmlns:v="urn:schemas-microsoft-com:vml" 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:"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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",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:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-CA" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Markus -
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Yes, I am using proj 6.0.0 – built with no errors.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">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?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">~ Eric.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Markus Metz <markus.metz.giswork@gmail.com>
<br>
<b>Sent:</b> May 22, 2019 12:25<br>
<b>To:</b> Markus Neteler <neteler@osgeo.org><br>
<b>Cc:</b> Patton, Eric (NRCan/RNCan) <eric.patton@canada.ca>; grass-user@lists.osgeo.org<br>
<b>Subject:</b> Re: [GRASS-user] Multiple errors building Grass 7.7svn<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><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.<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">No, it's a problem with the #ifdef's in do_proj.c accounting for different versions of PROJ<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">><o:p> </o:p></p>
</div>
<p class="MsoNormal">> 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).<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">This must be PROJ 6.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">do_proj.c should be fixed in master 7c3e8de:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="https://github.com/OSGeo/grass/commit/7c3e8de11b877f7c6240b5f94868ec27464d6c9f">https://github.com/OSGeo/grass/commit/7c3e8de11b877f7c6240b5f94868ec27464d6c9f</a><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>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>