Bugzilla – Bug 1217252
PDAL failed to build error: invalid conversion from 'const OGRSpatialReference*' to 'OGRSpatialReference*' [-fpermissive]
Last modified: 2024-01-16 19:11:52 UTC
Hello PDAL does not build on Leap 15.6. This should be fixed before Beta (Feb 2023). https://en.opensuse.org/openSUSE:Roadmap#Schedule_for_openSUSE_Leap_15.6 Build log from Leap 15.6 https://build.opensuse.org/package/live_build_log/openSUSE:Backports:SLE-15-SP6/PDAL/standard/x86_64 [ 169s] /home/abuild/rpmbuild/BUILD/PDAL-2.3.0-src/pdal/Geometry.cpp:143:59: error: invalid conversion from 'const OGRSpatialReference*' to 'OGRSpatialReference*' [-fpermissive] [ 169s] OGRSpatialReference *srs = m_geom->getSpatialReference(); [ 169s] ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ [ 169s] /home/abuild/rpmbuild/BUILD/PDAL-2.3.0-src/pdal/Geometry.cpp: In member function 'pdal::Utils::StatusWithReason pdal::Geometry::transform(pdal::SpatialReference)': [ 169s] /home/abuild/rpmbuild/BUILD/PDAL-2.3.0-src/pdal/Geometry.cpp:162:61: error: invalid conversion from 'const OGRSpatialReference*' to 'OGRSpatialReference*' [-fpermissive] [ 169s] OGRSpatialReference *inSrs = m_geom->getSpatialReference(); [ 169s] ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ [ 169s] make[2]: *** [CMakeFiles/pdal_base.dir/build.make:1899: CMakeFiles/pdal_base.dir/pdal/Geometry.cpp.o] Error 1 [ 169s] make[2]: Leaving directory '/home/abuild/rpmbuild/BUILD/PDAL-2.3.0-src/build'
PDAL got updated to latest 2.5.6 upstream revision. It build nicely for Factory and Tumbleweed but still failed for unknown reason on 15.6 and 15.5 No idea why those platform are not equivalent to TW?
https://build.opensuse.org/package/live_build_log/Application:Geo/PDAL/15.6/x86_64
This will not bee easy to fix. It failed on LEAP due to gcc7, I've completely forgotten what kine of dinosaurs we still have in Leap with no easy alternatives support... From what I've seen PDAL build with gcc10,11 but failed with 12,13 on Leap, while building on TW :-( So will see with upstream, but really not a priority for me. So Lubos should we introduce a delete request ?