<div dir="ltr"><div dir="ltr">From this twitter convo:<div><br></div><div><a href="https://twitter.com/pwramsey/status/1057699360257916930">https://twitter.com/pwramsey/status/1057699360257916930</a><br></div><div><br></div><div>It looks like the problem is that the installation of /usr/proj49/lib/libproj.so doesn't remove /usr/libproj.so and as a result postgis is picking up the version in /usr/ before the new version that has the symbols we want. </div><div><br></div><div>- So, can the proj49 package obsolete the proj package? </div><div>- Just out of curiosity, why the change into a specific version-named package instead of the old name?</div><div><br></div><div>P.</div></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Oct 25, 2018 at 10:29 PM Regina Obe <<a href="mailto:lr@pcorp.us">lr@pcorp.us</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div class="m_-1127473867157198530WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Proj 4.9.3 is definitely fine. I packaged the windows 2.5.0 builds with 4.9.3 proj and have had no issues.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">From what I have observed, I can swap out the proj 4.8 with the 4.9 and not have issue.  The other way around won't work if you compiled PostGIS with the newer proj.  <u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">I would guess what Darafei is saying is the issue and it's using the system one or the one you compiled GDAL with and perhaps your GDAL is compiled against proj 4.8 or lower or that is what is installed in the system.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">It's normally fine to do that (use a lower version of proj than what you compiled PostGIS with except for 4.9 up because proj is undergoing major enhancements.  The 5+ stuff I don't think we are using yet, but probably will in PostGIS 3.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">We do have conditional logic for proj < 4.9, proj >= 4.9 since 4.9 introduced some geographicLib api stuff that gave better answers for geography area and other measurements than what our internal postgis functions provided. When PostGIS is compiled against 4.9 or above, it switches to using the proj 4.9+ api instead of our internal less accurate one.  so if it can't find those newer functions in your proj library, you'll get that error below if you compiled with the >= 4.9 version.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt"><div><div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> postgis-devel [mailto:<a href="mailto:postgis-devel-bounces@lists.osgeo.org" target="_blank">postgis-devel-bounces@lists.osgeo.org</a>] <b>On Behalf Of </b>Darafei "Kom?pa" Praliaskouski<br><b>Sent:</b> Thursday, October 25, 2018 10:08 AM<br><b>To:</b> PostGIS Development Discussion <<a href="mailto:postgis-devel@lists.osgeo.org" target="_blank">postgis-devel@lists.osgeo.org</a>><br><b>Subject:</b> Re: [postgis-devel] Error creating postgis extension<u></u><u></u></span></p></div></div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal" style="margin-bottom:12.0pt">It looks like you built it against proj 4.9 but forgot to ship it.<u></u><u></u></p><div><div><p class="MsoNormal">On Thu, Oct 25, 2018 at 5:06 PM Devrim Gündüz <<a href="mailto:devrim@gunduz.org" target="_blank">devrim@gunduz.org</a>> wrote:<u></u><u></u></p></div><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><p class="MsoNormal"><br>Hi,<br><br>On Thu, 2018-10-25 at 12:45 +0100, Paul Ramsey wrote:<br>> Looks like a libproj version mismatch? Maybe the spec file for 2.5 needs to<br>> peg a minimum libproj version? Let me confirm…<br><br>I built it against Proj 4.9.3. I can work on packaging Proj 5.2, but it also<br>requires a custom GDAL package as well, so the amount of work is non-trivial.<br>I'll do that , if I really have to.<br><br>Regards,<br>-- <br>Devrim Gündüz<br>EnterpriseDB: <a href="https://www.enterprisedb.com" target="_blank">https://www.enterprisedb.com</a><br>PostgreSQL Consultant, Red Hat Certified Engineer<br>Twitter: @DevrimGunduz , @DevrimGunduzTR<br>_______________________________________________<br>postgis-devel mailing list<br><a href="mailto:postgis-devel@lists.osgeo.org" target="_blank">postgis-devel@lists.osgeo.org</a><br><a href="https://lists.osgeo.org/mailman/listinfo/postgis-devel" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-devel</a><u></u><u></u></p></blockquote></div><p class="MsoNormal"><br clear="all"><u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal">-- <u></u><u></u></p><div><p class="MsoNormal">Darafei "Komяpa" Praliaskouski<br>OSM BY Team - <a href="http://openstreetmap.by/" target="_blank">http://openstreetmap.by/</a><br><a href="mailto:xmpp%3Ame@komzpa.net" target="_blank">xmpp:me@komzpa.net</a> mailto:<a href="mailto:me@komzpa.net" target="_blank">me@komzpa.net</a><u></u><u></u></p></div></div></div></div></div>_______________________________________________<br>
postgis-devel mailing list<br>
<a href="mailto:postgis-devel@lists.osgeo.org" target="_blank">postgis-devel@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-devel" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-devel</a></blockquote></div>