Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 917564 - sci-libs/gdal-3.8.0 w/ dev-libs/libxml2-2.12.0: port/cpl_xml_validate.cpp:917:48: error: invalid conversion from ‘const xmlError*’ {aka ‘const _xmlError*’} to ‘xmlErrorPtr’ {aka ‘_xmlError*’} [-fpermissive]
Summary: sci-libs/gdal-3.8.0 w/ dev-libs/libxml2-2.12.0: port/cpl_xml_validate.cpp:917...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sci-geo Project
URL:
Whiteboard:
Keywords:
: 923302 (view as bug list)
Depends on:
Blocks: libxml2-2.12
  Show dependency tree
 
Reported: 2023-11-18 12:35 UTC by Andreas Sturmlechner
Modified: 2024-01-30 08:24 UTC (History)
1 user (show)

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


Attachments
sci-libs:gdal-3.8.0:20231118-121645.log (sci-libs:gdal-3.8.0:20231118-121645.log,109.92 KB, text/plain)
2023-11-18 12:35 UTC, Andreas Sturmlechner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Sturmlechner gentoo-dev 2023-11-18 12:35:15 UTC
Created attachment 875136 [details]
sci-libs:gdal-3.8.0:20231118-121645.log

Famous last words:

> [30/1139] /usr/bin/x86_64-pc-linux-gnu-g++ -DDONT_DEPRECATE_SPRINTF -DENABLE_DEFLATE64 -DENABLE_UFFD -DGDAL_COMPILATION -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_CURL -DHAVE_ICONV -DHAVE_LIBARCHIVE -DHAVE_LIBXML2 -DHAVE_LIBZ -DHAVE_LZMA -DHAVE_OPENSSL_CRYPTO -DHAVE_PREAD64 -DHAVE_SSE_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_ZLIB -DHAVE_ZLIB_H -DINST_DATA=\"/usr/share/gdal\" -DSYSCONFDIR=\"/etc\" -DZIP_SUPPORT -I../port -I.._build/portport -I/var/tmp/portage/sci-libs/gdal-3.8.0/work/gdal-3.8.0/frmts/zlib/contrib/infback9 -I/usr/include/json-c -I/usr/include/libxml2  -O2 -march=native -pipe -fvisibility=hidden -std=gnu++11 -fPIC -Wall -Wextra -Winit-self -Wunused-parameter -Wmissing-declarations -Wlogical-op -Wshadow -Wmissing-include-dirs -Wformat -Werror=format-security -Wno-format-nonliteral -Werror=vla -Wno-clobbered -Wdate-time -Wnull-dereference -Wextra-semi -Wfloat-conversion -Wnon-virtual-dtor -Woverloaded-virtual -Wsuggest-override -fno-operator-names -Wzero-as-null-pointer-constant -Wold-style-cast -Weffc++ -MD -MT port/CMakeFiles/cpl.dir/cpl_xml_validate.cpp.o -MF port/CMakeFiles/cpl.dir/cpl_xml_validate.cpp.o.d -o port/CMakeFiles/cpl.dir/cpl_xml_validate.cpp.o -c ../port/cpl_xml_validate.cpp
> [31mFAILED: [0mport/CMakeFiles/cpl.dir/cpl_xml_validate.cpp.o 
> /usr/bin/x86_64-pc-linux-gnu-g++ -DDONT_DEPRECATE_SPRINTF -DENABLE_DEFLATE64 -DENABLE_UFFD -DGDAL_COMPILATION -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_CURL -DHAVE_ICONV -DHAVE_LIBARCHIVE -DHAVE_LIBXML2 -DHAVE_LIBZ -DHAVE_LZMA -DHAVE_OPENSSL_CRYPTO -DHAVE_PREAD64 -DHAVE_SSE_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_ZLIB -DHAVE_ZLIB_H -DINST_DATA=\"/usr/share/gdal\" -DSYSCONFDIR=\"/etc\" -DZIP_SUPPORT -I../port -I.._build/portport -I/var/tmp/portage/sci-libs/gdal-3.8.0/work/gdal-3.8.0/frmts/zlib/contrib/infback9 -I/usr/include/json-c -I/usr/include/libxml2  -O2 -march=native -pipe -fvisibility=hidden -std=gnu++11 -fPIC -Wall -Wextra -Winit-self -Wunused-parameter -Wmissing-declarations -Wlogical-op -Wshadow -Wmissing-include-dirs -Wformat -Werror=format-security -Wno-format-nonliteral -Werror=vla -Wno-clobbered -Wdate-time -Wnull-dereference -Wextra-semi -Wfloat-conversion -Wnon-virtual-dtor -Woverloaded-virtual -Wsuggest-override -fno-operator-names -Wzero-as-null-pointer-constant -Wold-style-cast -Weffc++ -MD -MT port/CMakeFiles/cpl.dir/cpl_xml_validate.cpp.o -MF port/CMakeFiles/cpl.dir/cpl_xml_validate.cpp.o.d -o port/CMakeFiles/cpl.dir/cpl_xml_validate.cpp.o -c ../port/cpl_xml_validate.cpp
> ../port/cpl_xml_validate.cpp: In function ‘void CPLLibXMLWarningErrorCallback(void*, const char*, ...)’:
> ../port/cpl_xml_validate.cpp:917:48: error: invalid conversion from ‘const xmlError*’ {aka ‘const _xmlError*’} to ‘xmlErrorPtr’ {aka ‘_xmlError*’} [-fpermissive]
>   917 |         xmlErrorPtr pErrorPtr = xmlGetLastError();
>       |                                 ~~~~~~~~~~~~~~~^~
>       |                                                |
>       |                                                const xmlError* {aka const _xmlError*}
Comment 1 Larry the Git Cow gentoo-dev 2023-11-21 22:36:08 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34ed053b36d0d8f3985ff95d1052bbe9effffed3

commit 34ed053b36d0d8f3985ff95d1052bbe9effffed3
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2023-11-21 20:22:07 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2023-11-21 22:19:57 +0000

    sci-libs/gdal: Fix build with dev-libs/libxml2-2.12.0
    
    Closes: https://bugs.gentoo.org/917564
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../gdal/files/gdal-3.8.0-libxml2-2.12-1.patch     | 22 ++++++++++++++++++
 .../gdal/files/gdal-3.8.0-libxml2-2.12-2.patch     | 27 ++++++++++++++++++++++
 sci-libs/gdal/gdal-3.8.0.ebuild                    |  1 +
 3 files changed, 50 insertions(+)
Comment 2 Andreas Sturmlechner gentoo-dev 2024-01-30 08:24:37 UTC
*** Bug 923302 has been marked as a duplicate of this bug. ***