<div dir="ltr"><div><div><div><div><div><br><br>On Sun, Apr 15, 2018 at 10:07 PM, Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> wrote:<br>><br>> > OK, I recompiled gdal-2.2.4 --with-static-proj4 and got<br>> ><br>> > ldd libgdal.so | grep proj<br>> >     libproj.so.13 => /usr/local/lib64/libproj.so.13 (0x00007fe2ff181000)<br>> >     libproj.so.12 => /lib64/libproj.so.12 (0x00007fe2f31c7000)<br>> > ???<br>> ><br>> > gdalinfo now runs fine and produces expected results.<br>> ><br>> > I'm still concerned about the output of ldd libgdal.so<br>><br>> Yes that's not sane. That means that GDAL links to a library that links to the<br>> system libproj (/lib64/libproj.so.12), whereas GDAL directly links to your<br>> custom libproj 5 build ( /usr/local/lib64/libproj.so.13) . That may crash as<br>> well.<br>> <br>> As proj 5.0.1 is (I believe) ABI compatible with previous releases, one<br>> potential hack is to make<br>> sudo ln -s /usr/local/lib64/libproj.so.13 /usr/local/lib64/libproj.so.12<br>> and define LD_LIBRARY_PATH to point to /usr/local/lib64/<br>> A cleaner solution would be to identify the GDAL dependenci(es) that link to <br>> /lib64/libproj.so.12 and rebuild them against the one in  /usr/local/lib64/<br>> libproj.so.13<br><br></div>Not too many on my test system. So far, GDAL is working for me now with PROJ-5.0.x. If I encounter any problems later on, I will heed your advice.<br></div></div><br></div>Thanks a lot for your help!<br><br></div>Markus M<br><div><div><br></div></div></div>