Your message dated Tue, 26 Aug 2025 12:05:28 +0000
with message-id <[email protected]>
and subject line Bug#1111626: fixed in libxml2 2.14.5+dfsg-0.2
has caused the Debian Bug report #1111626,
regarding libxml2: initGenericErrorDefaultFunc(NULL) fails to compile
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1111626: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1111626
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libxml2
Version: 2.14.5+dfsg-0.1
Severity: serious
Tags: patch upstream
Justification: Makes packages FTBFS
Forwarded: https://gitlab.gnome.org/GNOME/libxml2/-/merge_requests/336
Hello,
This simple program fails to build:
#include <stddef.h>
#include <libxml/xmlerror.h>
int main(void) {
initGenericErrorDefaultFunc(NULL);
}
/usr/include/libxml2/libxml/xmlerror.h:23:45: error: invalid use of void
expression
23 | xmlSetGenericErrorFunc(NULL, (h) ? *(h) : NULL)
The compatibility macro is indeed wrong in the NULL case. The attached
patch, submitted upstream, fixes this.
Samuel
-- System Information:
Debian Release: 13.0
APT prefers testing
APT policy: (990, 'testing'), (500, 'testing-debug'), (500,
'stable-security'), (500, 'stable-debug'), (500,
'oldoldstable-proposed-updates-debug'), (500, 'oldoldstable'), (500,
'buildd-unstable'), (500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (1,
'experimental-debug'), (1, 'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, arm64
Kernel: Linux 6.16.0 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages libxml2 depends on:
ii libc6 2.41-11
ii liblzma5 5.8.1-1
ii zlib1g 1:1.3.dfsg+really1.3.1-1+b1
libxml2 recommends no packages.
libxml2 suggests no packages.
-- no debconf information
commit 5bd6b44d139758652a259ee8cead6d8c61692fe3
Author: Samuel Thibault <[email protected]>
Date: Wed Aug 20 10:18:25 2025 +0200
Fix initGenericErrorDefaultFunc(NULL)
Calling initGenericErrorDefaultFunc(NULL) currently yields to
/usr/include/libxml2/libxml/xmlerror.h:23:45: error: invalid use of void
expression
23 | xmlSetGenericErrorFunc(NULL, (h) ? *(h) : NULL)
Indeed, even if h is nul, the compiler will try to give a type to *(h),
which can't work.
diff --git a/include/libxml/xmlerror.h b/include/libxml/xmlerror.h
index 0cd4e1b5..017411e4 100644
--- a/include/libxml/xmlerror.h
+++ b/include/libxml/xmlerror.h
@@ -25,7 +25,7 @@ extern "C" {
* @deprecated Use #xmlSetGenericErrorFunc
*/
#define initGenericErrorDefaultFunc(h) \
- xmlSetGenericErrorFunc(NULL, (h) ? *(h) : NULL)
+ xmlSetGenericErrorFunc(NULL, (h) ? *((xmlGenericErrorFunc *) (h)) : NULL)
/**
* Indicates the level of an error
--- End Message ---
--- Begin Message ---
Source: libxml2
Source-Version: 2.14.5+dfsg-0.2
Done: Matthias Klose <[email protected]>
We believe that the bug you reported is fixed in the latest version of
libxml2, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Matthias Klose <[email protected]> (supplier of updated libxml2 package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Tue, 26 Aug 2025 09:31:15 +0200
Source: libxml2
Architecture: source
Version: 2.14.5+dfsg-0.2
Distribution: unstable
Urgency: medium
Maintainer: Debian XML/SGML Group <[email protected]>
Changed-By: Matthias Klose <[email protected]>
Closes: 1078673 1111626 1111803
Changes:
libxml2 (2.14.5+dfsg-0.2) unstable; urgency=medium
.
* Non-maintainer upload.
* Update to the 2.14 branch 20250826. Closes: #1111626, #1111803.
* Fix nopython build profile (Helmut Grohne). Closes: #1078673.
Checksums-Sha1:
34c9927efe99ca3b8f6904c83dbf75159f574786 2985 libxml2_2.14.5+dfsg-0.2.dsc
1e2d59095073410464278d6e57c88215be0daf23 36732
libxml2_2.14.5+dfsg-0.2.debian.tar.xz
bc95f7a59556d442af6b0232939597f24b46516a 5890
libxml2_2.14.5+dfsg-0.2_source.buildinfo
Checksums-Sha256:
aab11cfd5bde97a6ed630533cb30ef1cf289b4590e54e6071aa03f08761afeb6 2985
libxml2_2.14.5+dfsg-0.2.dsc
74738ecc18cb40e94d3241cfaff43fb4318045f79a0ee44ef9c21b4c786cc2d8 36732
libxml2_2.14.5+dfsg-0.2.debian.tar.xz
0d91df58cba3e0c0a8d0b119b04ea01ccbc661ea47e132be9b6215e00251a43c 5890
libxml2_2.14.5+dfsg-0.2_source.buildinfo
Files:
3cfd71d71109b1321a58d474d2cf6f16 2985 libs optional libxml2_2.14.5+dfsg-0.2.dsc
3456e86c542b9a5133399523f854fc93 36732 libs optional
libxml2_2.14.5+dfsg-0.2.debian.tar.xz
b8a59e527a0939b3c9fcbce84e449928 5890 libs optional
libxml2_2.14.5+dfsg-0.2_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJEBAEBCgAuFiEE1WVxuIqLuvFAv2PWvX6qYHePpvUFAmitmSQQHGRva29AZGVi
aWFuLm9yZwAKCRC9fqpgd4+m9Z1cD/9AhPkqt4bApVZ5DEKwkpq2SPrFAIJI+M4W
uebWGNucsK4M7zY1DB6xewkHmU6X6oWvl9LzlGeX1luftbogrnhCqX0S5ACH9Xe+
bE3CWjJXLm6r0gu1EYPWhozzn+iyCzRy4OsLe8krUabvkt1YSotFksnm/yEx9dxN
cU6nIdd8W2XggzUW51F7WrvXppQL0d/oDsNQw0gASdrnJYA8NOOo1Y1L+fNxP+if
3N3Qz78bd2E9y3kmaENr/tjACXHlASUohuXU2Iu/1psVXeFodcx5fWgp837tSUZn
gNNKnY/v46vAIDihDz8F00cDk0s2ZClozVxkuLvNTNsxINx7cVOV7x/Zks6GtTOq
6yPNC/C63bK0kYTKzQiRiut9WBkP4n4Rb80TXDut0ZEOCFuqpXrohuIWCQrQiE4s
ueJWyBb5Zqbs7HVvoyC+1XtxAK7ZJbmkLvFel6r7898mo1QDyZ+lNSc1qpQcrGkk
A/wz7K1KhQwaW8JgIPZr8oGaozXcVTuoYNe/7UduL9iUsoRwT5//pxRvvULsNENr
oaOmoP00KeXQhydpKEYV8MNUUpFGAsW+JBlHgO/VmfDWDXvEGa0uA4PR2tLmRTzD
e4qcKSRsucL40mORo1hIQIAq4g2MHxIwrvPpmVKOfNkReyuwE0aRUwGgEl5Vb2Qb
wtF78KjtwA==
=YV9O
-----END PGP SIGNATURE-----
pgphSk9yBH8fE.pgp
Description: PGP signature
--- End Message ---