<div dir="ltr"><div class="gmail_extra"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">To close the loop on this, it was a name conflict with the proj4 that is in VTK</div></div><div>Details here:</div><div dir="ltr"><a href="http://vtk.1045678.n5.nabble.com/Don-t-build-vtkproj4-tp5746073p5746269.html">http://vtk.1045678.n5.nabble.com/Don-t-build-vtkproj4-tp5746073p5746269.html</a><br></div></div></div></div></div></div></div></div>
<div class="gmail_extra"><br></div>Thanks everyone for their help</div><div class="gmail_extra">Cheers</div><div class="gmail_extra">Chris</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 28 October 2017 at 11:26, Chris Marsh <span dir="ltr"><<a href="mailto:chris.marsh@usask.ca" target="_blank">chris.marsh@usask.ca</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"><div dir="ltr">Hi all,<div><br></div><div>I posted this to the proj4 mailing list and they seem pretty convinced this is a GDAL problem.</div><div><br></div><div>I have tried the September gdal 2.2.2 build as well as the latest GDAL git build, and finally have them building thanks to Even's help.</div><div><br></div><div>However, now GDAL just segfaults within the pj_init_ctx. As a reminder, it's something odd about this env as this work works flawlessly on multiple computers.</div><div><br></div><div>Would appreciate any help,</div><div><br></div><div>Cheers</div><div>Chris</div><div><br></div><div><div>[debug]: Reading forcing file data</div><div>src/tcmalloc.cc:284] Attempt to free invalid pointer 0x2aaaafa4df20 </div><div><br></div><div>Thread 1 received signal SIGABRT, Aborted.</div><div>0x00002aaac4900214 in raise () from /cvmfs/<a href="http://soft.computecanada.ca/nix/var/nix/profiles/16.09/lib/libc.so.6" target="_blank">soft.computecanada.ca/<wbr>nix/var/nix/profiles/16.09/<wbr>lib/libc.so.6</a></div><div>(gdb) bt</div><div>#0 0x00002aaac4900214 in raise () from /cvmfs/<a href="http://soft.computecanada.ca/nix/var/nix/profiles/16.09/lib/libc.so.6" target="_blank">soft.computecanada.ca/<wbr>nix/var/nix/profiles/16.09/<wbr>lib/libc.so.6</a></div><div>#1 0x00002aaac490167a in abort () from /cvmfs/<a href="http://soft.computecanada.ca/nix/var/nix/profiles/16.09/lib/libc.so.6" target="_blank">soft.computecanada.ca/<wbr>nix/var/nix/profiles/16.09/<wbr>lib/libc.so.6</a></div><div>#2 0x00002aaab5bd5748 in tcmalloc::Log (mode=mode@entry=tcmalloc::<wbr>kCrash, filename=filename@entry=<wbr>0x2aaab5bea66e "src/tcmalloc.cc", line=line@entry=284, a=..., b=..., c=..., d=...) at src/internal_logging.cc:118</div><div>#3 0x00002aaab5bca14f in (anonymous namespace)::InvalidFree (ptr=<optimized out>) at src/tcmalloc.cc:284</div><div>#4 0x00002aaab5fe7dde in pj_dealloc (ptr=<optimized out>) at pj_malloc.c:129</div><div>#5 0x00002aaab5fe7ed1 in pj_default_destructor (P=P@entry=0x13c2b40, errlev=errlev@entry=-7) at pj_malloc.c:198</div><div>#6 0x00002aaab5fe7234 in pj_init_ctx (ctx=ctx@entry=0x2aaab6219b20 <default_context>, argc=<optimized out>, argv=argv@entry=<wbr>0x7fffffff7a50) at pj_init.c:672</div><div>#7 0x00002aaab5fe7615 in pj_init_plus_ctx (ctx=0x2aaab6219b20 <default_context>, definition=0x24863340 "+proj=aea +lat_1=20 +lat_2=60 +lat_0=40 +lon_0=-96 +x_0=0 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs ")</div><div> at pj_init.c:411</div><div>#8 0x00002aaab4a71dc8 in OCTProj4NormalizeInternal(char const*) () from /home/cmarsh/CHM/build-<wbr>release/lib/gdal/lib/libgdal.<wbr>so.20</div><div>#9 0x00002aaab4a71ee6 in OCTProj4Normalize () from /home/cmarsh/CHM/build-<wbr>release/lib/gdal/lib/libgdal.<wbr>so.20</div><div>#10 0x00002aaab4a530ec in OGRSpatialReference::<wbr>importFromProj4(char const*) () from /home/cmarsh/CHM/build-<wbr>release/lib/gdal/lib/libgdal.<wbr>so.20</div><div>#11 0x0000000000520a61 in core::config_forcing (this=this@entry=<wbr>0x7fffffffab50, value=...) at /home/cmarsh/CHM/src/core.cpp:<wbr>311</div><div>#12 0x0000000000527041 in core::init (this=this@entry=<wbr>0x7fffffffab50, argc=argc@entry=3, argv=argv@entry=<wbr>0x7fffffffafe8) at /home/cmarsh/CHM/src/core.cpp:<wbr>1119</div><div>#13 0x00000000004f502f in main (argc=3, argv=0x7fffffffafe8) at /home/cmarsh/CHM/src/main.cpp:<wbr>17</div></div><div><br></div></div><div class="gmail_extra"><span class="gmail-"><br clear="all"><div><div class="gmail-m_-7836215355316144283gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span style="color:rgb(102,102,102)">Chris Marsh</span><br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">PhD Candidate</span><br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)"></span><a href="http://chrismarsh.ca/" style="color:rgb(102,102,102)" target="_blank">chrismarsh.ca</a><br style="color:rgb(102,102,102)"><br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">121 Research Drive</span><br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">University of Saskatchewan</span><br style="color:rgb(102,102,102)"></div></div></div></div></div></div></div></div></div>
<br></span><div><div class="gmail-h5"><div class="gmail_quote">On 19 October 2017 at 13:41, Chris Marsh <span dir="ltr"><<a href="mailto:chris.marsh@usask.ca" target="_blank">chris.marsh@usask.ca</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"><div dir="ltr"><div>echo 2 49 | /build-release/lib/gdal/bin/gd<wbr>altransform -s_srs EPSG:4326 -t_srs "+proj=aea +lat_1=20 +lat_2=60 +lat_0=40 +lon_0=-96 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs" --debug on</div><div>OGRCT: PROJ >= 4.8.0 features enabled</div><div>OGRCT: Using locale-safe proj version</div><div>OGRCT: Source: +proj=longlat +datum=WGS84 +no_defs</div><div>OGRCT: Target: +proj=aea +lat_1=20 +lat_2=60 +lat_0=40 +lon_0=-96 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs</div><div>OGRCT: Source: +proj=aea +lat_1=20 +lat_2=60 +lat_0=40 +lon_0=-96 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs</div><div>OGRCT: Target: +proj=longlat +datum=WGS84 +no_defs</div><div>5634252.86902731 4265258.45946341 0</div><div><div class="gmail-m_-7836215355316144283h5"><div class="gmail_extra"><br clear="all"><div><div class="gmail-m_-7836215355316144283m_-8719365120517544284gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><br style="color:rgb(102,102,102)"></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On 19 October 2017 at 13:34, Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</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"><span>On jeudi 19 octobre 2017 13:19:52 CEST Chris Marsh wrote:<br>
> Hi,<br>
><br>
> I build GDAL by specifying --with-static-proj4 on the configure command<br>
> line. This does not seem to have resolved the problem.<br>
><br>
> echo 2 49 | build-release/lib/gdal/bin/gda<wbr>ltransform -s_srs EPSG:4326<br>
><br>
> > -t_srs EPSG:32632<br>
> > -11818.9526229417 5451106.95020125 0<br>
><br>
<br>
</span>OK, so GDAL and proj.4 have some minimum level of functionnality<br>
<br>
And what about<br>
<br>
echo 2 49 | gdaltransform -s_srs EPSG:4326 -t_srs "+proj=aea +lat_1=20 +lat_2=60 +lat_0=40 +lon_0=-96 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs" --debug on<br>
<div class="gmail-m_-7836215355316144283m_-8719365120517544284HOEnZb"><div class="gmail-m_-7836215355316144283m_-8719365120517544284h5"><br>
<br>
<br>
--<br>
Spatialys - Geospatial professional services<br>
<a href="http://www.spatialys.com" rel="noreferrer" target="_blank">http://www.spatialys.com</a><br>
</div></div></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div></div>