<div dir="ltr">Hi everyone,<div><br></div><div>OF COURSE that was the problem. I wonder why I've never run into this problem in the past. But maybe the undefined references were not in the previous PROJ (which was in my LD_LIBRARY_PATH).</div><div><br></div><div>I'm all set now. Thanks VERY much,</div><div><br></div><div>carl</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Mon, Apr 6, 2026 at 10:51 AM Andrew Bell <<a href="mailto:andrew.bell.ia@gmail.com">andrew.bell.ia@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
You need to make sure that the reference to the proj library that's in<br>
libgdal can be found at link time for the test_ogrsf executable. You<br>
can do this by setting LD_LIBRARY_PATH environment variable to the<br>
directory containing the relevant proj library. You could also edit<br>
the link line to include a reference to that directory (see the<br>
-rpath-link option). I would think that an RPATH entry would be<br>
created in the GDAL library when it's built, which would take care of<br>
this, but I'm not sure why this wouldn't be happening without a bunch<br>
of investigation.<br>
<br>
This might be helpful:<br>
<br>
<a href="https://www.kaizou.org/2015/01/linux-libraries.html" rel="noreferrer" target="_blank">https://www.kaizou.org/2015/01/linux-libraries.html</a><br>
<br>
On Mon, Apr 6, 2026 at 12:42 PM Carl Godkin via gdal-dev<br>
<<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>> wrote:<br>
><br>
> Thanks to Seabastiaan's advice, I've rerun the cmake command and now the "make" gives this for the failing step:<br>
><br>
> [ 95%] Linking CXX executable test_ogrsf<br>
> cd /home/carl/build/gdal-3.12.3/linux64_build/apps && /usr/bin/cmake -E cmake_link_script CMakeFiles/test_ogrsf.dir/link.txt --verbose=1<br>
> /usr/local/gcc132/bin/g++ -fvisibility=hidden -O3 -DNDEBUG CMakeFiles/test_ogrsf.dir/test_ogrsf.cpp.o -o test_ogrsf -Wl,-rpath,/home/carl/build/gdal-3.12.3/linux64_build ../libgdal.so.38.3.12.3<br>
> /net/raid1/home/local64-rhel8/gcc132-rhel8/bin/../lib/gcc/x86_64-pc-linux-gnu/13.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../libgdal.so.38.3.12.3: undefined reference to `proj_coordinate_metadata_create'<br>
> /net/raid1/home/local64-rhel8/gcc132-rhel8/bin/../lib/gcc/x86_64-pc-linux-gnu/13.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../libgdal.so.38.3.12.3: undefined reference to `proj_crs_has_point_motion_operation'<br>
> collect2: error: ld returned 1 exit status<br>
> make[2]: *** [apps/CMakeFiles/test_ogrsf.dir/build.make:101: apps/test_ogrsf] Error 1<br>
> make[2]: Leaving directory '/home/carl/build/gdal-3.12.3/linux64_build'<br>
> make[1]: *** [CMakeFiles/Makefile2:8647: apps/CMakeFiles/test_ogrsf.dir/all] Error 2<br>
> make[1]: Leaving directory '/home/carl/build/gdal-3.12.3/linux64_build'<br>
> make: *** [Makefile:149: all] Error 2<br>
><br>
> Does that help? Thanks a lot,<br>
><br>
> carl<br>
><br>
><br>
> On Mon, Apr 6, 2026 at 9:28 AM Sebastiaan Couwenberg <<a href="mailto:sebastic@xs4all.nl" target="_blank">sebastic@xs4all.nl</a>> wrote:<br>
>><br>
>> On 4/6/26 6:12 PM, Carl Godkin via gdal-dev wrote:<br>
>> > Thanks for the reply. The actual command is always hidden by cmake. (I<br>
>> > am obviously not a cmake expert!) Is there a way to get it to reveal more?<br>
>><br>
>> -DCMAKE_VERBOSE_MAKEFILE=ON<br>
>><br>
>> <a href="https://cmake.org/cmake/help/latest/variable/CMAKE_VERBOSE_MAKEFILE.html" rel="noreferrer" target="_blank">https://cmake.org/cmake/help/latest/variable/CMAKE_VERBOSE_MAKEFILE.html</a><br>
>><br>
>> Kind Regards,<br>
>><br>
>> Bas<br>
>><br>
>> --<br>
>> PGP Key ID: 4096R/6750F10AE88D4AF1<br>
>> Fingerprint: 8182 DE41 7056 408D 6146 50D1 6750 F10A E88D 4AF1<br>
><br>
> _______________________________________________<br>
> gdal-dev mailing list<br>
> <a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
> <a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
<br>
<br>
<br>
-- <br>
Andrew Bell<br>
<a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a><br>
</blockquote></div>