Your message dated Fri, 04 Sep 2026 09:17:05 +0000
with message-id <[email protected]>
and subject line Bug#1145539: fixed in at-spi2-core 2.56.2-1+deb13u2
has caused the Debian Bug report #1145539,
regarding at-spi2-core: atkversion.h missing G_BEGIN_DECLS/G_END_DECLS, breaks 
C++ consumers
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.)


-- 
1145539: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1145539
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: at-spi2-core
Version: 2.56.2-1+deb13u1
Severity: normal
Tags: patch
X-Debbugs-Cc: [email protected]

Dear Maintainer,

The atkversion.h header shipped in libatk1.0-dev is missing
G_BEGIN_DECLS/G_END_DECLS, causing link failures when the header is
included from C++ code.

The version functions declared in atkversion.h (atk_get_major_version,
atk_get_minor_version, atk_get_micro_version, atk_get_binary_age,
atk_get_interface_age) lack C linkage declarations. When atkversion.h
is included from a C++ translation unit, the compiler generates mangled
C++ symbols for these functions, which do not match the C exports in
libatk-1.0.so. This results in linker errors such as:

  undefined reference to `atk_get_major_version()'

This was fixed upstream in
https://gitlab.gnome.org/GNOME/at-spi2-core/-/merge_requests/219
(merged 2025-12-09) and is available starting from upstream version
2.59.0. The fix is already included in trixie-backports
(2.61.1-1~bpo13+1) but not in the current trixie stable.

The attached patch adds G_BEGIN_DECLS after the #include <glib.h> and
G_END_DECLS before the final #endif in atk/atkversion.h.in. This is the
same 2-line fix as the upstream merge request.

Could this be considered for a stable update to trixie?

Regards,
Valentin Haudiquet
Author: Robert Ancell <[email protected]>
Date: Wed, 10 Dec 2025 11:02:20 +1300
Subject: Fix atk_get_major_version etc not linking on C++
Origin: upstream, commit:5ae24f981ddce448682d123fd71ff20329bdd014
Applied-Upstream: 2.59.0, commit:5ae24f981ddce448682d123fd71ff20329bdd014

These failed because the version header was missing extern "C" (via
G_BEGIN_DECLS).
.
The atkversion.h header is missing G_BEGIN_DECLS/G_END_DECLS, causing
link failures when the header is included from C++ code. The version
functions (atk_get_major_version, atk_get_minor_version, etc.) are
declared without C linkage, so C++ consumers get mangled symbols that
do not match the C exports in libatk-1.

--- a/atk/atkversion.h.in
+++ b/atk/atkversion.h.in
@@ -30,6 +30,8 @@
 
 #include <glib.h>
 
+G_BEGIN_DECLS
+
 /**
  * ATK_MAJOR_VERSION:
  *
@@ -473,4 +475,6 @@ guint atk_get_interface_age (void) G_GNUC_CONST;
 #define atk_binary_age atk_get_binary_age ()
 #define atk_interface_age atk_get_interface_age ()
 
+G_END_DECLS
+
 #endif /* __ATK_VERSION_H__ */

--- End Message ---
--- Begin Message ---
Source: at-spi2-core
Source-Version: 2.56.2-1+deb13u2
Done: Samuel Thibault <[email protected]>

We believe that the bug you reported is fixed in the latest version of
at-spi2-core, 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.
Samuel Thibault <[email protected]> (supplier of updated at-spi2-core 
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, 25 Aug 2026 19:52:58 +0200
Source: at-spi2-core
Architecture: source
Version: 2.56.2-1+deb13u2
Distribution: trixie
Urgency: medium
Maintainer: Debian Accessibility Team <[email protected]>
Changed-By: Samuel Thibault <[email protected]>
Closes: 1145539
Changes:
 at-spi2-core (2.56.2-1+deb13u2) trixie; urgency=medium
 .
   [ Valentin Haudiquet ]
   * patches/debian-atkversion-c-linkage.patch: Fix atkversion.h header for C++
     (Closes: #1145539)
Checksums-Sha1:
 c76cb73737c40d9d3bf7c9ea36f6eedf2ba07608 3824 at-spi2-core_2.56.2-1+deb13u2.dsc
 761c05518c3181aa801fb007f925c7ad5159bfce 21696 
at-spi2-core_2.56.2-1+deb13u2.debian.tar.xz
 d28bc2ca10786ae84683cc733a2d93bf88846e08 13586 
at-spi2-core_2.56.2-1+deb13u2_source.buildinfo
Checksums-Sha256:
 fdc29076f15571f77ca8cad9b8a342d620f4886488db32fa3da4a590ad60628e 3824 
at-spi2-core_2.56.2-1+deb13u2.dsc
 a83e2170d7e3defc4bcb5d0faffe953cd6f39b36fd91e8f8b2d4ad02c49af608 21696 
at-spi2-core_2.56.2-1+deb13u2.debian.tar.xz
 90d0c791473b3079c41570386071b353bed7b19aa673ae448e4c2628fe450206 13586 
at-spi2-core_2.56.2-1+deb13u2_source.buildinfo
Files:
 3e1968e2942da8f4c43047fffccc6dcf 3824 misc optional 
at-spi2-core_2.56.2-1+deb13u2.dsc
 f06e41a3e425f3e78f5cef3755a4ad6f 21696 misc optional 
at-spi2-core_2.56.2-1+deb13u2.debian.tar.xz
 d28644b6cc3cb71300873b3589167599 13586 misc optional 
at-spi2-core_2.56.2-1+deb13u2_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEDHkkXhaQVdLZstA3O2TU75284AwFAmqN27gACgkQO2TU7528
4Az4Xg/9G0nHYBaT9KtfZIypiu74IbwSekCxIxJBzgmGDKFT4tb2cK7i8GHV6wh9
790nyIS+cW6T6VtLGJ+NjsfU5Hwjz5bDlIQiekZnvlw9DZ9YVLUrpiXguIgiyKvl
60ubHYonftfr6iShvBHnWAkZw9chDR6Kp/3s6FKY0vgkifJH4kZ2YYSUe8GItCH/
BCKex38IR+E3gAj7m3Kj520TJucSoncv5WBfWRgBF+ntqydSjuMAZmWNuxXu215X
+XtU4jCbW4WE/xR2W5hjHasisrrezXKsJ57UyT33GRbxb2v4xa93eJHsDt7oIA06
tG0dxBDUeaLkjbT73u4jfu5YJkD194rdglMkGPPULsZOQ2o4ztuFDuWZEVp0BOBV
F7F+/SbNJ7DvxO/nGkTzTF+7CtuE7wQE8SWVxJq9ZCsobNTI8Mkh8B+v2rjdgcJu
1fE69GHsgMut8RbARURMfrjHK6IjkHPwqXLwZ3DTqIYhc01yHS2+yJShlTkL5tO8
W80WuCI5ZqJm+7w6/b3mWsokIrCYesPPHXbQWbyB5UUNoXMJJiVgWCM5fVIWNRuf
f4nTt3gPuho5RZCYje6QprjwrOZ1O/V/EIoIGMzhDV3ZrnFKtJgh+a1yxKFe1vWp
+tQczFqhhJLFdRM7Cl9y5dVRQYVvxrG0olQjeX+ZLDJ0XEmv4Vw=
=2j44
-----END PGP SIGNATURE-----

Attachment: pgpigv4s3s2tl.pgp
Description: PGP signature


--- End Message ---

Reply via email to