Source: libsearpc
Version: 3.3.0+really3.3+git20230527.783141f-3.1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@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):
> gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 
> -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I../lib 
> -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
> -Wall -pedantic -c -o demo-async-client.o demo-async-client.c
> test-object.c:3:55: warning: ISO C does not allow extra ‘;’ outside of a 
> function [-Wpedantic]
>     3 | G_DEFINE_TYPE (TestObject, test_object, G_TYPE_OBJECT);
>       |                                                       ^
> In file included from demo-async-client.c:10:
> searpc-demo-packet.h:22:10: warning: ISO C forbids zero-size array ‘data’ 
> [-Wpedantic]
>    22 |     char data[0];
>       |          ^~~~
> searpc-demo-packet.h: In function ‘writen’:
> searpc-demo-packet.h:40:34: error: implicit declaration of function ‘write’; 
> did you mean ‘writen’? [-Werror=implicit-function-declaration]
>    40 |                 if ( (nwritten = write(fd, ptr, nleft)) <= 0) {
>       |                                  ^~~~~
>       |                                  writen
> searpc-demo-packet.h: In function ‘readn’:
> searpc-demo-packet.h:65:31: error: implicit declaration of function ‘read’; 
> did you mean ‘readn’? [-Werror=implicit-function-declaration]
>    65 |                 if ( (nread = read(fd, buf, nleft)) < 0) {
>       |                               ^~~~
>       |                               readn
> demo-async-client.c: In function ‘transport_send’:
> demo-async-client.c:39:19: warning: unused variable ‘pac_ret’ 
> [-Wunused-variable]
>    39 |     packet *pac, *pac_ret;
>       |                   ^~~~~~~
> demo-async-client.c:37:13: warning: unused variable ‘ret’ [-Wunused-variable]
>    37 |     int fd, ret;
>       |             ^~~
> demo-async-client.c:37:9: warning: unused variable ‘fd’ [-Wunused-variable]
>    37 |     int fd, ret;
>       |         ^~
> demo-async-client.c: In function ‘main’:
> demo-async-client.c:149:5: error: implicit declaration of function ‘close’; 
> did you mean ‘pclose’? [-Werror=implicit-function-declaration]
>   149 |     close(sockfd);
>       |     ^~~~~
>       |     pclose
> demo-async-client.c:92:11: warning: unused variable ‘ret_str’ 
> [-Wunused-variable]
>    92 |     char *ret_str;
>       |           ^~~~~~~
> In file included from searpc-demo-client.c:13:
> searpc-demo-packet.h:22:10: warning: ISO C forbids zero-size array ‘data’ 
> [-Wpedantic]
>    22 |     char data[0];
>       |          ^~~~
> searpc-demo-packet.h: In function ‘writen’:
> searpc-demo-packet.h:40:34: error: implicit declaration of function ‘write’; 
> did you mean ‘writen’? [-Werror=implicit-function-declaration]
>    40 |                 if ( (nwritten = write(fd, ptr, nleft)) <= 0) {
>       |                                  ^~~~~
>       |                                  writen
> searpc-demo-packet.h: In function ‘readn’:
> searpc-demo-packet.h:65:31: error: implicit declaration of function ‘read’; 
> did you mean ‘readn’? [-Werror=implicit-function-declaration]
>    65 |                 if ( (nread = read(fd, buf, nleft)) < 0) {
>       |                               ^~~~
>       |                               readn
> searpc-demo-client.c: In function ‘transport_callback’:
> searpc-demo-client.c:34:13: warning: unused variable ‘ret’ [-Wunused-variable]
>    34 |     int fd, ret;
>       |             ^~~
> searpc-demo-client.c: In function ‘rpc_string_test’:
> searpc-demo-client.c:124:5: error: implicit declaration of function ‘close’; 
> did you mean ‘pclose’? [-Werror=implicit-function-declaration]
>   124 |     close(sockfd);
>       |     ^~~~~
>       |     pclose
> In file included from searpc-demo-server.c:13:
> searpc-demo-packet.h:22:10: warning: ISO C forbids zero-size array ‘data’ 
> [-Wpedantic]
>    22 |     char data[0];
>       |          ^~~~
> In file included from searpc-demo-server.c:12:
> searpc-demo-server.c: In function ‘searpc_objlisttest’:
> test-object.h:7:38: error: implicit declaration of function 
> ‘test_object_get_type’; did you mean ‘g_object_get_type’? 
> [-Werror=implicit-function-declaration]
>     7 | #define TEST_OBJECT_TYPE            (test_object_get_type())
>       |                                      ^~~~~~~~~~~~~~~~~~~~
> searpc-demo-server.c:43:39: note: in expansion of macro ‘TEST_OBJECT_TYPE’
>    43 |         TestObject *obj=g_object_new (TEST_OBJECT_TYPE, NULL);
>       |                                       ^~~~~~~~~~~~~~~~
> In file included from searpc-demo-server.c:55:
> searpc-marshal.h: In function ‘marshal_int__string’:
> searpc-marshal.h:8:16: warning: ISO C forbids conversion of object pointer to 
> function pointer type [-Wpedantic]
>     8 |     int ret = ((int (*)(const char*, GError **))func) (param1, 
> &error);
>       |                ^
> searpc-marshal.h: In function ‘marshal_objlist__int_int_string’:
> searpc-marshal.h:24:19: warning: ISO C forbids conversion of object pointer 
> to function pointer type [-Wpedantic]
>    24 |     GList* ret = ((GList* (*)(int, int, const char*, GError **))func) 
> (param1, param2, param3, &error);
>       |                   ^
> searpc-demo-server.c: In function ‘start_rpc_service’:
> searpc-demo-server.c:69:37: warning: ISO C forbids passing argument 2 of 
> ‘searpc_server_register_function’ between function pointer and ‘void *’ 
> [-Wpedantic]
>    69 |                                     searpc_strlen,
>       |                                     ^~~~~~~~~~~~~
> In file included from ../lib/searpc.h:7,
>                  from searpc-demo-server.c:10:
> ../lib/searpc-server.h:113:49: note: expected ‘void *’ but argument is of 
> type ‘int (*)(const char *)’
>   113 |                                           void* func,
>       |                                           ~~~~~~^~~~
> searpc-demo-server.c:73:37: warning: ISO C forbids passing argument 2 of 
> ‘searpc_server_register_function’ between function pointer and ‘void *’ 
> [-Wpedantic]
>    73 |                                     searpc_objlisttest,
>       |                                     ^~~~~~~~~~~~~~~~~~
> ../lib/searpc-server.h:113:49: note: expected ‘void *’ but argument is of 
> type ‘GList * (*)(int,  int,  const char *)’ {aka ‘struct _GList * (*)(int,  
> int,  const char *)’}
>   113 |                                           void* func,
>       |                                           ~~~~~~^~~~
> searpc-demo-server.c: In function ‘main’:
> searpc-demo-server.c:132:17: warning: unused variable ‘error’ 
> [-Wunused-variable]
>   132 |         GError *error = NULL;
>       |                 ^~~~~
> In file included from searpc-demo-client.c:14:
> searpc-demo-client.c: In function ‘rpc_glist_test’:
> test-object.h:7:38: error: implicit declaration of function 
> ‘test_object_get_type’; did you mean ‘g_object_get_type’? 
> [-Werror=implicit-function-declaration]
>     7 | #define TEST_OBJECT_TYPE            (test_object_get_type())
>       |                                      ^~~~~~~~~~~~~~~~~~~~
> searpc-demo-client.c:133:44: note: in expansion of macro ‘TEST_OBJECT_TYPE’
>   133 |                                            TEST_OBJECT_TYPE, &error, 
> 3,
>       |                                            ^~~~~~~~~~~~~~~~
> searpc-demo-client.c: In function ‘main’:
> searpc-demo-client.c:178:11: warning: unused variable ‘ret_str’ 
> [-Wunused-variable]
>   178 |     char *ret_str;
>       |           ^~~~~~~
> cc1: some warnings being treated as errors
> make[4]: *** [Makefile:428: demo-async-client.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2024/03/13/libsearpc_3.3.0+really3.3+git20230527.783141f-3.1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240313;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240313&fusertaguser=lu...@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.

Reply via email to