<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi All.<div><br></div><div>from a gdal-dev list+irc discussion,</div><div><br></div><div><br></div><div>the old patch no longer work on the up-to date gdal trunk.</div><div><br></div><div>the old patch was applied in the trunk plus modification to have the gdal-grass plug-in</div><div>working on grass version < 7 and = 7.</div><div><br></div><div>but that sophistication has been broken by a recent change in grass.</div><div><br></div><div>probably the reason of the current failure is the addition/removal of one of the grass lib,</div><div><span>have a "grass-config" script would help certainly to avoid this kind of failure each time a new lib will be added/removed.</span></div><div><br></div><div><span></span><br></div><div><br></div><div><span></span>thanks for any interest in this direction.</div><div><br></div><div>regards,</div><div>Massimo.<br><div><br><div>Inizio messaggio inoltrato:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>Da: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Massimo Di Stefano <<a href="mailto:massimodisasha@yahoo.it">massimodisasha@yahoo.it</a>></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>Data: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">14 ottobre 2009 21:37:04 GMT+02:00</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>A: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Markus Neteler <<a href="mailto:neteler@osgeo.org">neteler@osgeo.org</a>></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>Cc: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica"><a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>Oggetto: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica"><b>Re: [gdal-dev] grass lib not found : gdal-grass plug-in (grass-7.0)</b></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div> </div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks Markus,<div><br></div><div>i tried to apply the patch, but it fails on the actually gdal-trunk (revision : Revision: 17810 )</div><div><br></div><div>i'm tring to see how to apply the patch manually .. but it is 6000 lines :'(</div><div><br></div><div>this the log tring to apply the patch :</div><div><br></div><div><br></div><div><span class="Apple-style-span" style="font-family: Times; "><pre style="word-wrap: break-word; white-space: pre-wrap; ">geofem@geofem:/usr/local/src/gdal$ patch -p0 < /home/geofem/Downloads/gdal_grass7_plugin.diff
patching file frmts/grass/pkg/configure.in
Hunk #2 succeeded at 152 (offset 9 lines).
patching file frmts/grass/pkg/configure
Hunk #62 FAILED at 3395.
Hunk #65 FAILED at 3446.
Hunk #67 FAILED at 3534.
Hunk #68 succeeded at 3630 (offset 78 lines).
Hunk #69 succeeded at 3694 (offset 78 lines).
Hunk #70 succeeded at 3712 (offset 78 lines).
Hunk #71 succeeded at 3793 (offset 78 lines).
Hunk #72 succeeded at 3854 (offset 78 lines).
Hunk #73 succeeded at 3978 (offset 78 lines).
Hunk #74 succeeded at 4008 (offset 78 lines).
Hunk #75 succeeded at 4023 (offset 78 lines).
Hunk #76 succeeded at 4136 (offset 78 lines).
patch: **** malformed patch at line 5577: @@ -3895,7 +4587,9 @@
geofem@geofem:/usr/local/src/gdal$ </pre></span></div><div><br></div><div>Have you any ideas?</div><div>idea .. (but i guess it is totally wrong)</div><div>can i download gdal-grass plug-in from the gdal-revision you applied the patch</div><div>and use it on the actual gdal trunk?</div><div><br></div><div>thanks for any suggestion!</div><div><br></div><div>Massimo.</div><div><div><div><br></div><div>il giorno 14/ott/09, alle ore 19:09, Markus Neteler ha scritto:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On Wed, Oct 14, 2009 at 12:02 PM, Massimo Di Stefano<br><<a href="mailto:massimodisasha@yahoo.it">massimodisasha@yahoo.it</a>> wrote:<br><blockquote type="cite">Hi All.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I'm tring to build the gdal-grass plug-in (i'm using gdal from svn)<br></blockquote><blockquote type="cite">on a debian sid machine,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">i had this problem :<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">geofem@geofem:/usr/local/src/gdal/frmts/grass/gdal-grass-1.7.0$ ./configure<br></blockquote><blockquote type="cite">--with-gdal=/usr/local/bin/gdal-config<br></blockquote><blockquote type="cite">--with-grass=/usr/local/grass-7.0.svn/<br></blockquote>...<br><blockquote type="cite">configure: error: --with-grass=/usr/local/grass-7.0.svn requested, but<br></blockquote><blockquote type="cite">libraries not found! Perhaps you need to set LD_LIBRARY_PATH to include<br></blockquote><blockquote type="cite">/usr/local/grass-7.0.svn/lib?<br></blockquote><blockquote type="cite">geofem@geofem:/usr/local/src/gdal/frmts/grass/gdal-grass-1.7.0$<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">i have :<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">cat /etc/ld.so.conf.d/grass.conf<br></blockquote><blockquote type="cite">/usr/local/grass-7.0.svn/lib<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">have you any clue on how to fix the gdal-grass build ?<br></blockquote><br>Yes, see the patch in<br><a href="http://trac.osgeo.org/gdal/ticket/2953">http://trac.osgeo.org/gdal/ticket/2953</a><br><br>Markus<br></div></blockquote></div><br></div></div></blockquote></div><br></div></body></html>