[Debian-on-mobile-maintainers] Bug#1066710: purple-lurch: FTBFS: ./test/test_lurch_util.c:69:5: error: implicit declaration of function ‘lurch_util_axc_log_func’ [-Werror=implicit-function-declaration]

Lucas Nussbaum lucas at debian.org
Wed Mar 13 11:55:57 GMT 2024


Source: purple-lurch
Version: 0.7.0-2
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20240313 ftbfs-trixie ftbfs-impfuncdef

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

This is most likely caused by a change in dpkg 1.22.6, that enabled
-Werror=implicit-function-declaration. For more information, see
https://wiki.debian.org/qa.debian.org/FTBFS#A2024-03-13_-Werror.3Dimplicit-function-declaration

Relevant part (hopefully):
> 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 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  -I/usr/include/libpurple -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  -I/usr/include/libxml2 -I/usr/include/libomemo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  -I/usr/include/axc -I/usr/include/signal  -I/usr/include/signal  -I./headers/jabber -O0 -c ./test/test_lurch_util.c -o build/test_lurch_util.o
> ./test/test_lurch_util.c: In function ‘test_lurch_util_axc_log_func_error’:
> ./test/test_lurch_util.c:69:5: error: implicit declaration of function ‘lurch_util_axc_log_func’ [-Werror=implicit-function-declaration]
>    69 |     lurch_util_axc_log_func(AXC_LOG_ERROR, "test", 4, axc_ctx_p);
>       |     ^~~~~~~~~~~~~~~~~~~~~~~
> ./test/test_lurch_api.c: In function ‘test_lurch_api_status_im_handler_disabled’:
> ./test/test_lurch_api.c:831:92: warning: passing argument 4 of ‘lurch_api_status_im_handler’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>   831 |     lurch_api_status_im_handler(NULL, other_bare_jid, lurch_api_status_im_handler_cb_mock, mock_user_data);
>       |                                                                                            ^~~~~~~~~~~~~~
> In file included from ./test/test_lurch_api.c:13:
> ./test/../src/lurch_api.h:128:163: note: expected ‘void *’ but argument is of type ‘const char *’
>   128 | void lurch_api_status_im_handler(PurpleAccount * acc_p, const char * contact_bare_jid, void (*cb)(int32_t err, lurch_status_t status, void * user_data_p), void * user_data_p);
>       |                                                                                                                                                            ~~~~~~~^~~~~~~~~~~
> ./test/test_lurch_api.c: In function ‘test_lurch_api_status_im_handler_not_supported’:
> ./test/test_lurch_api.c:866:92: warning: passing argument 4 of ‘lurch_api_status_im_handler’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>   866 |     lurch_api_status_im_handler(NULL, other_bare_jid, lurch_api_status_im_handler_cb_mock, mock_user_data);
>       |                                                                                            ^~~~~~~~~~~~~~
> ./test/../src/lurch_api.h:128:163: note: expected ‘void *’ but argument is of type ‘const char *’
>   128 | void lurch_api_status_im_handler(PurpleAccount * acc_p, const char * contact_bare_jid, void (*cb)(int32_t err, lurch_status_t status, void * user_data_p), void * user_data_p);
>       |                                                                                                                                                            ~~~~~~~^~~~~~~~~~~
> ./test/test_lurch_api.c: In function ‘test_lurch_api_status_im_handler_no_session’:
> ./test/test_lurch_api.c:905:92: warning: passing argument 4 of ‘lurch_api_status_im_handler’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>   905 |     lurch_api_status_im_handler(NULL, other_bare_jid, lurch_api_status_im_handler_cb_mock, mock_user_data);
>       |                                                                                            ^~~~~~~~~~~~~~
> ./test/../src/lurch_api.h:128:163: note: expected ‘void *’ but argument is of type ‘const char *’
>   128 | void lurch_api_status_im_handler(PurpleAccount * acc_p, const char * contact_bare_jid, void (*cb)(int32_t err, lurch_status_t status, void * user_data_p), void * user_data_p);
>       |                                                                                                                                                            ~~~~~~~^~~~~~~~~~~
> ./test/test_lurch_api.c: In function ‘test_lurch_api_status_im_handler_ok’:
> ./test/test_lurch_api.c:944:92: warning: passing argument 4 of ‘lurch_api_status_im_handler’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>   944 |     lurch_api_status_im_handler(NULL, other_bare_jid, lurch_api_status_im_handler_cb_mock, mock_user_data);
>       |                                                                                            ^~~~~~~~~~~~~~
> ./test/../src/lurch_api.h:128:163: note: expected ‘void *’ but argument is of type ‘const char *’
>   128 | void lurch_api_status_im_handler(PurpleAccount * acc_p, const char * contact_bare_jid, void (*cb)(int32_t err, lurch_status_t status, void * user_data_p), void * user_data_p);
>       |                                                                                                                                                            ~~~~~~~^~~~~~~~~~~
> ./test/test_lurch_api.c: In function ‘test_lurch_api_status_im_handler_err’:
> ./test/test_lurch_api.c:967:92: warning: passing argument 4 of ‘lurch_api_status_im_handler’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>   967 |     lurch_api_status_im_handler(NULL, other_bare_jid, lurch_api_status_im_handler_cb_mock, mock_user_data);
>       |                                                                                            ^~~~~~~~~~~~~~
> ./test/../src/lurch_api.h:128:163: note: expected ‘void *’ but argument is of type ‘const char *’
>   128 | void lurch_api_status_im_handler(PurpleAccount * acc_p, const char * contact_bare_jid, void (*cb)(int32_t err, lurch_status_t status, void * user_data_p), void * user_data_p);
>       |                                                                                                                                                            ~~~~~~~^~~~~~~~~~~
> ./test/test_lurch_api.c: In function ‘test_lurch_api_status_chat_handler_disabled’:
> ./test/test_lurch_api.c:994:104: warning: passing argument 4 of ‘lurch_api_status_chat_handler’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>   994 |     lurch_api_status_chat_handler(NULL, test_conversation_name, lurch_api_status_chat_handler_cb_mock, mock_user_data);
>       |                                                                                                        ^~~~~~~~~~~~~~
> ./test/../src/lurch_api.h:137:176: note: expected ‘void *’ but argument is of type ‘const char *’
>   137 | void lurch_api_status_chat_handler(PurpleAccount * acc_p, const char * full_conversation_name, void (*cb)(int32_t err, lurch_status_chat_t status, void * user_data_p), void * user_data_p);
>       |                                                                                                                                                                         ~~~~~~~^~~~~~~~~~~
> ./test/test_lurch_api.c: In function ‘test_lurch_api_status_chat_handler_enabled’:
> ./test/test_lurch_api.c:1022:104: warning: passing argument 4 of ‘lurch_api_status_chat_handler’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>  1022 |     lurch_api_status_chat_handler(NULL, test_conversation_name, lurch_api_status_chat_handler_cb_mock, mock_user_data);
>       |                                                                                                        ^~~~~~~~~~~~~~
> ./test/../src/lurch_api.h:137:176: note: expected ‘void *’ but argument is of type ‘const char *’
>   137 | void lurch_api_status_chat_handler(PurpleAccount * acc_p, const char * full_conversation_name, void (*cb)(int32_t err, lurch_status_chat_t status, void * user_data_p), void * user_data_p);
>       |                                                                                                                                                                         ~~~~~~~^~~~~~~~~~~
> ./test/test_lurch_api.c: In function ‘test_lurch_api_status_chat_discover_cb_anonymous’:
> ./test/test_lurch_api.c:1060:26: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>  1060 |     cb_data->user_data_p = mock_user_data;
>       |                          ^
> ./test/test_lurch_api.c: In function ‘test_lurch_api_status_chat_discover_cb_no_devicelist’:
> ./test/test_lurch_api.c:1101:26: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>  1101 |     cb_data->user_data_p = mock_user_data;
>       |                          ^
> ./test/test_lurch_api.c:1112:17: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>  1112 |         .name = test_conversation_name
>       |                 ^~~~~~~~~~~~~~~~~~~~~~
> ./test/test_lurch_api.c: In function ‘test_lurch_api_status_chat_discover_cb_ok’:
> ./test/test_lurch_api.c:1185:26: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>  1185 |     cb_data->user_data_p = mock_user_data;
>       |                          ^
> ./test/test_lurch_api.c:1196:17: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>  1196 |         .name = test_conversation_name
>       |                 ^~~~~~~~~~~~~~~~~~~~~~
> ./test/test_lurch_api.c: In function ‘test_lurch_api_status_chat_discover_cb_error’:
> ./test/test_lurch_api.c:1247:26: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>  1247 |     cb_data->user_data_p = mock_user_data;
>       |                          ^
> cc1: some warnings being treated as errors
> make[1]: *** [Makefile:154: build/test_lurch_util.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2024/03/13/purple-lurch_0.7.0-2_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240313;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240313&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the Debian-on-mobile-maintainers mailing list