[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