[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #66506] gettext-0.23 build failure with libxml2-2.13.5 (constness o
From: |
Sam James |
Subject: |
[bug #66506] gettext-0.23 build failure with libxml2-2.13.5 (constness of xml*Error) |
Date: |
Sun, 1 Dec 2024 10:32:25 -0500 (EST) |
URL:
<https://savannah.gnu.org/bugs/?66506>
Summary: gettext-0.23 build failure with libxml2-2.13.5
(constness of xml*Error)
Group: GNU gettext
Submitter: thesamesam
Submitted: Sun 01 Dec 2024 03:32:22 PM UTC
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Sun 01 Dec 2024 03:32:22 PM UTC By: Sam James <thesamesam>
Thanks for the new release!
I see the following errors w/ libxml2-2.13.5 when building gettext-0.23:
```
libtool: compile: x86_64-pc-linux-gnu-gcc -DLOCALEDIR=\"/usr/share/locale\"
-DBISON_LOCALEDIR=\"/usr/share/locale\" -DUSEJAVA=0
-DGETTEXTJAR=\"/usr/share/gettext\"\"/gettext.jar\" -DBINDIR=\"/usr/bin\"
-DLIBDIR=\"/usr/lib64\" -DLIBEXECDIR=\"/usr/libexec\"
-DGETTEXTDATADIR=\"/usr/share/gettext\"
-DPROJECTSDIR=\"/usr/share/gettext\"\"/projects\" -DEXEEXT=\"\"
-DHAVE_CONFIG_H -I.
-I/var/tmp/portage/sys-devel/gettext-0.23/work/gettext-0.23/gettext-tools/src
-I.. -I/var/tmp/portage/sys-devel/gettext-0.23/work/gettext-0.23/gettext-tools
-I../libgrep
-I/var/tmp/portage/sys-devel/gettext-0.23/work/gettext-0.23/gettext-tools/libgrep
-I../gnulib-lib
-I/var/tmp/portage/sys-devel/gettext-0.23/work/gettext-0.23/gettext-tools/gnulib-lib
-I../../gettext-runtime/intl
-I/var/tmp/portage/sys-devel/gettext-0.23/work/gettext-0.23/gettext-tools/../gettext-runtime/intl
-I///usr/include/libxml2 -O3 -march=native -mtls-dialect=gnu2 -flto=jobserver
-fno-semantic-interposition -pipe -fcf-protection=none
-fdiagnostics-color=always -fdiagnostics-urls=never -frecord-gcc-switches
-fdiagnostics-details -fdiagnostics-set-output=text:experimental-nesting=yes
-Wa,-O2 -Wa,-mtune=znver2 -Warray-bounds -Wstrict-aliasing
-Wfree-nonheap-object -Wuninitialized -Wmaybe-uninitialized -Wreturn-type
-Werror=lto-type-mismatch -Werror=strict-aliasing -Werror=odr -Warray-bounds
-fdiagnostics-details -Wstringop-overread -Wstringop-overflow
-Wstringop-truncation -Wformat-overflow -Wformat-truncation
-Wbuiltin-declaration-mismatch -ggdb3 -Wformat -Werror=format-security -c
/var/tmp/portage/sys-devel/gettext-0.23/work/gettext-0.23/gettext-tools/src/its.c
-fPIC -DPIC -o .libs/libgettextsrc_la-its.o
/var/tmp/portage/sys-devel/gettext-0.23/work/gettext-0.23/gettext-tools/src/its.c:
In function 'its_rule_list_add_from_file':
/var/tmp/portage/sys-devel/gettext-0.23/work/gettext-0.23/gettext-tools/src/its.c:1600:36:
error: passing argument 2 of 'xmlSetStructuredErrorFunc' from incompatible
pointer type [-Wincompatible-pointer-types]
1600 | xmlSetStructuredErrorFunc (NULL, structured_error);
| ^~~~~~~~~~~~~~~~
| |
| void (*)(void *, xmlError *) {aka
void (*)(void *, struct _xmlError *)}
In file included from
/var/tmp/portage/sys-devel/gettext-0.23/work/gettext-0.23/gettext-tools/src/its.c:31:
///usr/include/libxml2/libxml/xmlerror.h:905:57: note: expected
'xmlStructuredErrorFunc' {aka 'void (*)(void *, const struct _xmlError *)'}
but argument is of type 'void (*)(void *, xmlError *)' {aka 'void (*)(void *,
struct _xmlError *)'}
905 | xmlStructuredErrorFunc handler);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/var/tmp/portage/sys-devel/gettext-0.23/work/gettext-0.23/gettext-tools/src/its.c:
In function 'its_rule_list_add_from_string':
/var/tmp/portage/sys-devel/gettext-0.23/work/gettext-0.23/gettext-tools/src/its.c:1631:36:
error: passing argument 2 of 'xmlSetStructuredErrorFunc' from incompatible
pointer type [-Wincompatible-pointer-types]
1631 | xmlSetStructuredErrorFunc (NULL, structured_error);
| ^~~~~~~~~~~~~~~~
| |
| void (*)(void *, xmlError *) {aka
void (*)(void *, struct _xmlError *)}
///usr/include/libxml2/libxml/xmlerror.h:905:57: note: expected
'xmlStructuredErrorFunc' {aka 'void (*)(void *, const struct _xmlError *)'}
but argument is of type 'void (*)(void *, xmlError *)' {aka 'void (*)(void *,
struct _xmlError *)'}
905 | xmlStructuredErrorFunc handler);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
```
See https://gitlab.gnome.org/GNOME/libxml2/-/issues/622 :(
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?66506>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
- [bug #66506] gettext-0.23 build failure with libxml2-2.13.5 (constness of xml*Error),
Sam James <=