#1145539 at-spi2-core: atkversion.h missing G_BEGIN_DECLS/G_END_DECLS, breaks C++ consumers #1145539
- Package:
- at-spi2-core
- Source:
- at-spi2-core
- Description:
- Assistive Technology Service Provider Interface (dbus core)
- Submitter:
- Valentin Haudiquet
- Date:
- 2026-09-04 09:19:03 UTC
- Severity:
- normal
- Tags:
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
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 1145539@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Samuel Thibault <sthibault@debian.org> (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 ftpmaster@ftp-master.debian.org)
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 <pkg-a11y-devel@alioth-lists.debian.net>
Changed-By: Samuel Thibault <sthibault@debian.org>
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-----