sci-libs/gdal-3.9.1 fails to compile: FAILED: frmts/pdf/CMakeFiles/gdal_PDF.dir/ogrpdflayer.cpp.o FAILED: frmts/pdf/CMakeFiles/gdal_PDF.dir/pdfio.cpp.o FAILED: frmts/pdf/CMakeFiles/gdal_PDF.dir/pdfobject.cpp.o FAILED: frmts/pdf/CMakeFiles/gdal_PDF.dir/pdfwritabledataset.cpp.o FAILED: frmts/pdf/CMakeFiles/gdal_PDF.dir/pdfreadvectors.cpp.o FAILED: frmts/pdf/CMakeFiles/gdal_PDF.dir/pdfdataset.cpp.o FAILED: frmts/pdf/CMakeFiles/gdal_PDF.dir/pdfcreatecopy.cpp.o FAILED: frmts/pdf/CMakeFiles/gdal_PDF.dir/pdfcreatefromcomposition.cpp.o In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/chrono:45, from /usr/include/poppler/CryptoSignBackend.h:15, from /usr/include/poppler/PDFDoc.h:57, from /var/tmp/portage/sci-libs/gdal-3.9.1-r1/work/gdal-3.9.1/frmts/pdf/pdfsdk_headers.h:73, from /var/tmp/portage/sci-libs/gdal-3.9.1-r1/work/gdal-3.9.1/frmts/pdf/gdal_pdf.h:55, from /var/tmp/portage/sci-libs/gdal-3.9.1-r1/work/gdal-3.9.1/frmts/pdf/pdfcreatefromcomposition.cpp:30: /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/sstream:457:7: error: ‘struct std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>::__xfer_bufptrs’ redeclared with different access 457 | struct __xfer_bufptrs | ^~~~~~ Reproducible: Always It is probably related to sys-devel/gcc-13+ and app-text/poppler-24+: https://gitlab.archlinux.org/archlinux/packaging/packages/gdal/-/blob/main/PKGBUILD?ref_type=heads#L29
Created attachment 916077 [details, diff] gdal-3.9.1-gcc14-sstream-adapted-ada4fa75910dab127ee4b79256a676da6d4636c0.patch Works for me.
The very same issue has arisen while trying to recompile gdal because poppler was upgraded from 24.11.0-r1 to 25.01.0
I have just disabled 'pdf' USE flag on gdal, and the recompilation and installation of the package has worked.
(In reply to José María Fernández González from comment #3) > I have just disabled 'pdf' USE flag on gdal, and the recompilation and > installation of the package has worked. Did you give the patch a try?
(In reply to Attila Tóth from comment #4) > (In reply to José María Fernández González from comment #3) > > I have just disabled 'pdf' USE flag on gdal, and the recompilation and > > installation of the package has worked. > > Did you give the patch a try? Hi, Attila! I did not realize about the patch, sorry. I have just given it a try, adding it to the corresponding /etc/portage/patches subfolder, re-enabling pdf USE flag, re-installing the package, and it works!! Thanks!
FYI, this patch is applied in gdal-3.9.1-r1.