Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 947689 - sci-libs/gdal-3.9.1 fails to compile error: struct std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>::__xfer_bufptrs’ redeclared
Summary: sci-libs/gdal-3.9.1 fails to compile error: struct std::__cxx11::basic_string...
Status: IN_PROGRESS
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sci-geo Project
URL: https://github.com/OSGeo/gdal/commit/...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2025-01-07 21:55 UTC by Attila Tóth
Modified: 2025-01-26 14:27 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gdal-3.9.1-gcc14-sstream-adapted-ada4fa75910dab127ee4b79256a676da6d4636c0.patch (gdal-3.9.1-gcc14-sstream-adapted-ada4fa75910dab127ee4b79256a676da6d4636c0.patch,1.02 KB, patch)
2025-01-07 21:57 UTC, Attila Tóth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Attila Tóth 2025-01-07 21:55:05 UTC
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
Comment 1 Attila Tóth 2025-01-07 21:57:42 UTC
Created attachment 916077 [details, diff]
gdal-3.9.1-gcc14-sstream-adapted-ada4fa75910dab127ee4b79256a676da6d4636c0.patch

Works for me.
Comment 2 José María Fernández González 2025-01-23 23:49:55 UTC
The very same issue has arisen while trying to recompile gdal because poppler was upgraded from 24.11.0-r1 to 25.01.0
Comment 3 José María Fernández González 2025-01-24 00:09:11 UTC
I have just disabled 'pdf' USE flag on gdal, and the recompilation and installation of the package has worked.
Comment 4 Attila Tóth 2025-01-24 06:34:18 UTC
(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?
Comment 5 José María Fernández González 2025-01-24 10:33:38 UTC
(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!
Comment 6 Maciej Mrozowski gentoo-dev 2025-01-26 14:27:33 UTC
FYI, this patch is applied in gdal-3.9.1-r1.