[Debian-on-mobile-maintainers] Bug#1123430: purple-xmpp-carbons: FTBFS: test/mocks.c:18:5: error: 'uintptr_t' undeclared (first use in this function)
Santiago Vila
sanvila at debian.org
Tue Dec 16 20:28:23 GMT 2025
Package: src:purple-xmpp-carbons
Version: 0.2.3-1.1
Severity: serious
Tags: ftbfs forky sid
Dear maintainer:
During a rebuild of all packages in unstable, this package failed to build.
Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:
https://people.debian.org/~sanvila/build-logs/202512/
About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.
If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:purple-xmpp-carbons, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
debian/rules clean
dh clean
dh_auto_clean
make -j2 clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
rm -rf ./build
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_clean
debian/rules binary
dh binary
dh_update_autotools_config
dh_autoreconf
dh_auto_configure
dh_auto_build
make -j2 INSTALL="install --strip-program=true"
make[1]: Entering directory '/<<PKGBUILDDIR>>'
mkdir -p build
cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c11 -Wall -g -Wstrict-overflow -D_XOPEN_SOURCE=700 -D_BSD_SOURCE -D_DEFAULT_SOURCE -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/libpurple -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/libxml2 -I./headers/jabber -fPIC -shared -DPURPLE_PLUGINS -c ./src/carbons.c -o build/carbons.o
cc -g -O2 -Werror=implicit-function-declaration -ffile-prefi [too-long-redacted] r/lib/x86_64-linux-gnu/purple-2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_test
make -j2 test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c11 -Wall -g -Wstrict-overflow -D_XOPEN_SOURCE=700 -D_BSD_SOURCE -D_DEFAULT_SOURCE -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/libpurple -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/libxml2 -I./headers/jabber -O0 -c test/test_carbons.c -o ./build/test.o
In file included from test/test_carbons.c:4:
test/mocks.c: In function â__wrap_purple_account_get_protocol_idâ:
test/mocks.c:18:5: error: âuintptr_tâ undeclared (first use in this function)
18 | check_expected_ptr(acc_p);
| ^~~~~~~~~~~~~~~~~~
In file included from test/test_carbons.c:10:
test/mocks.c:3:1: note: âuintptr_tâ is defined in header â<stdint.h>â; this is probably fixable by adding â#include <stdint.h>â
2 | #include <stddef.h>
+++ |+#include <stdint.h>
3 | #include <setjmp.h>
test/mocks.c:18:5: note: each undeclared identifier is reported only once for each function it appears in
18 | check_expected_ptr(acc_p);
| ^~~~~~~~~~~~~~~~~~
test/mocks.c:21:19: error: expected â)â before â_mockâ
21 | protocol_id = mock_ptr_type(char *);
| ^~~~~~~~~~~~~
test/mocks.c:21:19: note: to match this â(â
21 | protocol_id = mock_ptr_type(char *);
| ^~~~~~~~~~~~~
test/mocks.c: In function â__wrap_purple_account_get_usernameâ:
test/mocks.c:28:16: error: âuintptr_tâ undeclared (first use in this function)
28 | username = mock_ptr_type(char *);
| ^~~~~~~~~~~~~
test/mocks.c:28:16: note: âuintptr_tâ is defined in header â<stdint.h>â; this is probably fixable by adding â#include <stdint.h>â
test/mocks.c:28:16: error: expected â)â before â_mockâ
28 | username = mock_ptr_type(char *);
| ^~~~~~~~~~~~~
test/mocks.c:28:16: note: to match this â(â
28 | username = mock_ptr_type(char *);
| ^~~~~~~~~~~~~
test/mocks.c: In function â__wrap_purple_account_get_connectionâ:
test/mocks.c:36:20: error: âuintptr_tâ undeclared (first use in this function)
36 | connection_p = mock_ptr_type(PurpleConnection *);
| ^~~~~~~~~~~~~
test/mocks.c:36:20: note: âuintptr_tâ is defined in header â<stdint.h>â; this is probably fixable by adding â#include <stdint.h>â
test/mocks.c:36:20: error: expected â)â before â_mockâ
36 | connection_p = mock_ptr_type(PurpleConnection *);
| ^~~~~~~~~~~~~
test/mocks.c:36:20: note: to match this â(â
36 | connection_p = mock_ptr_type(PurpleConnection *);
| ^~~~~~~~~~~~~
test/mocks.c: In function â__wrap_purple_connection_get_accountâ:
test/mocks.c:44:17: error: âuintptr_tâ undeclared (first use in this function)
44 | account_p = mock_ptr_type(PurpleAccount *);
| ^~~~~~~~~~~~~
test/mocks.c:44:17: note: âuintptr_tâ is defined in header â<stdint.h>â; this is probably fixable by adding â#include <stdint.h>â
test/mocks.c:44:17: error: expected â)â before â_mockâ
44 | account_p = mock_ptr_type(PurpleAccount *);
| ^~~~~~~~~~~~~
test/mocks.c:44:17: note: to match this â(â
44 | account_p = mock_ptr_type(PurpleAccount *);
| ^~~~~~~~~~~~~
test/mocks.c: In function â__wrap_purple_connection_get_protocol_dataâ:
test/mocks.c:52:12: error: âuintptr_tâ undeclared (first use in this function)
52 | js_p = mock_ptr_type(JabberStream *);
| ^~~~~~~~~~~~~
test/mocks.c:52:12: note: âuintptr_tâ is defined in header â<stdint.h>â; this is probably fixable by adding â#include <stdint.h>â
test/mocks.c:52:12: error: expected â)â before â_mockâ
52 | js_p = mock_ptr_type(JabberStream *);
| ^~~~~~~~~~~~~
test/mocks.c:52:12: note: to match this â(â
52 | js_p = mock_ptr_type(JabberStream *);
| ^~~~~~~~~~~~~
test/mocks.c: In function â__wrap_purple_find_conversation_with_accountâ:
test/mocks.c:82:12: error: âuintptr_tâ undeclared (first use in this function)
82 | pc_p = mock_ptr_type(PurpleConversation *);
| ^~~~~~~~~~~~~
test/mocks.c:82:12: note: âuintptr_tâ is defined in header â<stdint.h>â; this is probably fixable by adding â#include <stdint.h>â
test/mocks.c:82:12: error: expected â)â before â_mockâ
82 | pc_p = mock_ptr_type(PurpleConversation *);
| ^~~~~~~~~~~~~
test/mocks.c:82:12: note: to match this â(â
82 | pc_p = mock_ptr_type(PurpleConversation *);
| ^~~~~~~~~~~~~
test/mocks.c: In function â__wrap_purple_conversation_writeâ:
test/mocks.c:89:5: error: âuintptr_tâ undeclared (first use in this function)
89 | check_expected_ptr(conv_p);
| ^~~~~~~~~~~~~~~~~~
test/mocks.c:89:5: note: âuintptr_tâ is defined in header â<stdint.h>â; this is probably fixable by adding â#include <stdint.h>â
test/mocks.c: In function â__wrap_purple_conversation_newâ:
test/mocks.c:99:5: error: âuintptr_tâ undeclared (first use in this function)
99 | check_expected_ptr(account);
| ^~~~~~~~~~~~~~~~~~
test/mocks.c:99:5: note: âuintptr_tâ is defined in header â<stdint.h>â; this is probably fixable by adding â#include <stdint.h>â
test/mocks.c:103:14: error: expected â)â before â_mockâ
103 | conv_p = mock_ptr_type(PurpleConversation *);
| ^~~~~~~~~~~~~
test/mocks.c:103:14: note: to match this â(â
103 | conv_p = mock_ptr_type(PurpleConversation *);
| ^~~~~~~~~~~~~
test/mocks.c: In function â__wrap_purple_accounts_get_handleâ:
test/mocks.c:113:16: error: âuintptr_tâ undeclared (first use in this function)
113 | handle_p = mock_ptr_type(void *);
| ^~~~~~~~~~~~~
test/mocks.c:113:16: note: âuintptr_tâ is defined in header â<stdint.h>â; this is probably fixable by adding â#include <stdint.h>â
test/mocks.c:113:16: error: expected â)â before â_mockâ
113 | handle_p = mock_ptr_type(void *);
| ^~~~~~~~~~~~~
test/mocks.c:113:16: note: to match this â(â
113 | handle_p = mock_ptr_type(void *);
| ^~~~~~~~~~~~~
test/mocks.c: In function â__wrap_purple_plugins_find_with_idâ:
test/mocks.c:121:16: error: âuintptr_tâ undeclared (first use in this function)
121 | plugin_p = mock_ptr_type(PurplePlugin *);
| ^~~~~~~~~~~~~
test/mocks.c:121:16: note: âuintptr_tâ is defined in header â<stdint.h>â; this is probably fixable by adding â#include <stdint.h>â
test/mocks.c:121:16: error: expected â)â before â_mockâ
121 | plugin_p = mock_ptr_type(PurplePlugin *);
| ^~~~~~~~~~~~~
test/mocks.c:121:16: note: to match this â(â
121 | plugin_p = mock_ptr_type(PurplePlugin *);
| ^~~~~~~~~~~~~
test/mocks.c: In function â__wrap_purple_signal_connectâ:
test/mocks.c:130:5: error: âuintptr_tâ undeclared (first use in this function)
130 | check_expected_ptr(instance);
| ^~~~~~~~~~~~~~~~~~
test/mocks.c:130:5: note: âuintptr_tâ is defined in header â<stdint.h>â; this is probably fixable by adding â#include <stdint.h>â
test/mocks.c: In function â__wrap_purple_signal_connect_priorityâ:
test/mocks.c:144:5: error: âuintptr_tâ undeclared (first use in this function)
144 | check_expected_ptr(instance);
| ^~~~~~~~~~~~~~~~~~
test/mocks.c:144:5: note: âuintptr_tâ is defined in header â<stdint.h>â; this is probably fixable by adding â#include <stdint.h>â
test/mocks.c: In function â__wrap_purple_accounts_get_all_activeâ:
test/mocks.c:155:23: error: âuintptr_tâ undeclared (first use in this function)
155 | active_accounts = mock_ptr_type(GList *);
| ^~~~~~~~~~~~~
test/mocks.c:155:23: note: âuintptr_tâ is defined in header â<stdint.h>â; this is probably fixable by adding â#include <stdint.h>â
test/mocks.c:155:23: error: expected â)â before â_mockâ
155 | active_accounts = mock_ptr_type(GList *);
| ^~~~~~~~~~~~~
test/mocks.c:155:23: note: to match this â(â
155 | active_accounts = mock_ptr_type(GList *);
| ^~~~~~~~~~~~~
test/test_carbons.c: In function âtest_carbons_xml_received_cb_invalid_sender_receivedâ:
test/test_carbons.c:360:5: error: âuintptr_tâ undeclared (first use in this function)
360 | assert_non_null(received_carbons_node_p);
| ^~~~~~~~~~~~~~~
test/test_carbons.c:11:1: note: âuintptr_tâ is defined in header â<stdint.h>â; this is probably fixable by adding â#include <stdint.h>â
10 | #include "mocks.c"
+++ |+#include <stdint.h>
11 |
test/test_carbons.c: In function âtest_carbons_xml_received_cb_invalid_sender_sentâ:
test/test_carbons.c:396:5: error: âuintptr_tâ undeclared (first use in this function)
396 | assert_non_null(received_carbons_node_p);
| ^~~~~~~~~~~~~~~
test/test_carbons.c:396:5: note: âuintptr_tâ is defined in header â<stdint.h>â; this is probably fixable by adding â#include <stdint.h>â
test/test_carbons.c: In function âtest_carbons_xml_received_cb_received_successâ:
test/test_carbons.c:433:5: error: âuintptr_tâ undeclared (first use in this function)
433 | assert_ptr_not_equal(xmlnode_get_child(received_carbons_node_p, "body"), NULL);
| ^~~~~~~~~~~~~~~~~~~~
test/test_carbons.c:433:5: note: âuintptr_tâ is defined in header â<stdint.h>â; this is probably fixable by adding â#include <stdint.h>â
test/test_carbons.c: In function âtest_carbons_xml_received_cb_received_no_forwardedâ:
test/test_carbons.c:469:5: error: âuintptr_tâ undeclared (first use in this function)
469 | assert_ptr_equal(xmlnode_get_child(received_carbons_node_p, "body"), NULL);
| ^~~~~~~~~~~~~~~~
test/test_carbons.c:469:5: note: âuintptr_tâ is defined in header â<stdint.h>â; this is probably fixable by adding â#include <stdint.h>â
test/test_carbons.c: In function âtest_carbons_xml_received_cb_received_no_messageâ:
test/test_carbons.c:499:5: error: âuintptr_tâ undeclared (first use in this function)
499 | assert_ptr_equal(xmlnode_get_child(received_carbons_node_p, "body"), NULL);
| ^~~~~~~~~~~~~~~~
test/test_carbons.c:499:5: note: âuintptr_tâ is defined in header â<stdint.h>â; this is probably fixable by adding â#include <stdint.h>â
test/test_carbons.c: In function âtest_carbons_xml_received_cb_sent_successâ:
test/test_carbons.c:536:5: error: âuintptr_tâ undeclared (first use in this function)
536 | assert_ptr_not_equal(xmlnode_get_child(received_carbons_node_p, "body"), NULL);
| ^~~~~~~~~~~~~~~~~~~~
test/test_carbons.c:536:5: note: âuintptr_tâ is defined in header â<stdint.h>â; this is probably fixable by adding â#include <stdint.h>â
test/test_carbons.c: In function âtest_carbons_xml_received_cb_sent_no_forwardedâ:
test/test_carbons.c:573:5: error: âuintptr_tâ undeclared (first use in this function)
573 | assert_ptr_equal(xmlnode_get_child(received_carbons_node_p, "body"), NULL);
| ^~~~~~~~~~~~~~~~
test/test_carbons.c:573:5: note: âuintptr_tâ is defined in header â<stdint.h>â; this is probably fixable by adding â#include <stdint.h>â
test/test_carbons.c: In function âtest_carbons_xml_received_cb_sent_no_messageâ:
test/test_carbons.c:603:5: error: âuintptr_tâ undeclared (first use in this function)
603 | assert_ptr_equal(xmlnode_get_child(received_carbons_node_p, "body"), NULL);
| ^~~~~~~~~~~~~~~~
test/test_carbons.c:603:5: note: âuintptr_tâ is defined in header â<stdint.h>â; this is probably fixable by adding â#include <stdint.h>â
test/test_carbons.c: In function âtest_carbons_xml_stripped_cb_successâ:
test/test_carbons.c:647:5: error: âuintptr_tâ undeclared (first use in this function)
647 | assert_non_null(stripped_carbons_node_p);
| ^~~~~~~~~~~~~~~
test/test_carbons.c:647:5: note: âuintptr_tâ is defined in header â<stdint.h>â; this is probably fixable by adding â#include <stdint.h>â
test/test_carbons.c: In function âtest_carbons_xml_stripped_cb_success_new_convâ:
test/test_carbons.c:687:5: error: âuintptr_tâ undeclared (first use in this function)
687 | assert_non_null(stripped_carbons_node_p);
| ^~~~~~~~~~~~~~~
test/test_carbons.c:687:5: note: âuintptr_tâ is defined in header â<stdint.h>â; this is probably fixable by adding â#include <stdint.h>â
make[1]: *** [Makefile:121: test] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_test: error: make -j2 test returned exit code 2
make: *** [debian/rules:9: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
More information about the Debian-on-mobile-maintainers
mailing list