<div dir="ltr">Hi Andrew,<br><br>Thanks for the reply.   The actual command is always hidden by cmake.  (I am obviously not a cmake expert!)  Is there a way to get it to reveal more?<div><br></div><div>But this is what I see after typing "make" following the "cmake" command I posted earlier:</div><div><br></div><div>[ 95%] Linking CXX executable test_ogrsf<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:98: apps/test_ogrsf] Error 1<br>make[1]: *** [CMakeFiles/Makefile2:8644: apps/CMakeFiles/test_ogrsf.dir/all] Error 2<br>make: *** [Makefile:146: all] Error 2<br></div><div><br></div><div>The "link.txt" file from this build is this (i.e., linux64_build/apps/CMakeFiles/test_ogrsf.dir)</div><div><br></div><div>/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 </div><div><br>Thanks,</div><div><br>carl</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Mon, Apr 6, 2026 at 8:47 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 Carl,<br>
<br>
The actual build command from the failing step might be helpful.<br>
<br>
On Mon, Apr 6, 2026 at 11:33 AM 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>
> Hi,<br>
><br>
> I'm updating our GDAL and other third party libraries.  I'm usually pretty adept at this but I am having a problem building GDAL 3.12.3 on Linux RHEL8 with GCC 13.2.<br>
><br>
> The shared library builds okay, but once we get to the apps, I am getting undefined references to two PROJ functions (proj_coordinate_metadata_create & proj_crs_has_point_motion_operation).<br>
><br>
> I was struggling with this last Friday with PROJ 9.8.0 but, after this weekend's advice about ETRS89, I switched to PROJ 9.7.1 where I'm having the same problem.<br>
><br>
> I haven't seen any similar questions go by and I am stuck.  Any advice?<br>
><br>
> My GDAL 3.12.3 cmake command looks like this:<br>
><br>
>  cmake \<br>
>    -DCMAKE_BUILD_TYPE=Release \<br>
>    -DCMAKE_C_COMPILER:FILEPATH=/usr/local/gcc132/bin/gcc \<br>
>    -DCMAKE_CXX_COMPILER:FILEPATH=/usr/local/gcc132/bin/g++ \<br>
>    -DCMAKE_POSITION_INDEPENDENT_CODE=ON \<br>
>    -DCMAKE_INSTALL_PREFIX=/usr/local/devlibs/gdal-3.12.3 \<br>
>    -DBUILD_JAVA_BINDINGS:BOOL=OFF \<br>
>    -DSQLite3_INCLUDE_DIR=/usr/local/devlibs/sqlite-3.51.3/include \<br>
>    -DSQLite3_LIBRARY=/usr/local/devlibs/sqlite-3.51.3/lib/libsqlite3.so \<br>
>    -DARCHIVE_INCLUDE_DIR=/usr/local/devlibs/libarchive-3.8.6/include \<br>
>    -DARCHIVE_LIBRARY=/usr/local/devlibs/libarchive-3.8.6/lib64/libarchive.so \<br>
>    -DCURL_INCLUDE_DIR=/usr/local/devlibs/curl-8.4.0/include \<br>
>    -DCURL_LIBRARY_RELEASE=/usr/local/devlibs/curl-8.4.0/lib64/libcurl.so \<br>
>    -DPROJ_INCLUDE_DIR=/usr/local/devlibs/proj-9.7.1/include \<br>
>    -DPROJ_LIBRARY_RELEASE=/usr/local/devlibs/proj-9.7.1/lib64/libproj.so \<br>
>    -DGDAL_USE_GEOTIFF_INTERNAL:BOOL=ON \<br>
>    -DGDAL_USE_WEBP_INTERNAL:BOOL=ON \<br>
>    -DMRSID_INCLUDE_DIR=/usr/local/devlibs/MrSID_DSDK-9.5.4.4709-rhel6.x86-64.gcc531/Raster_DSDK/include \<br>
>    -DMRSID_LIBRARY=/usr/local/devlibs/MrSID_DSDK-9.5.4.4709-rhel6.x86-64.gcc531/Raster_DSDK/lib/libltidsdk.so \<br>
>    -DGDAL_ENABLE_DRIVER_JP2MRSID=ON \<br>
>    ..<br>
><br>
> and my PROJ 9.7.0 is pretty basic, and looks like this:<br>
><br>
>    cmake \<br>
>    -DCMAKE_BUILD_TYPE=Release \<br>
>    -Wno-dev -Wno-deprecated \<br>
>    -DCMAKE_C_COMPILER:FILEPATH=/usr/local/gcc132/bin/gcc \<br>
>    -DCMAKE_CXX_COMPILER:FILEPATH=/usr/local/gcc132/bin/g++ \<br>
>    -DCMAKE_POSITION_INDEPENDENT_CODE=ON \<br>
>    -DCMAKE_INSTALL_PREFIX=/usr/local/devlibs/proj-9.7.1 \<br>
>    ..<br>
><br>
> Thank you very much,<br>
><br>
> carl<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>