• Bug#1066367: libsearpc: FTBFS: searpc-demo-packet.h:40:34: error: impli

    From Lucas Nussbaum@21:1/5 to All on Wed Mar 13 13:10:07 2024
    Source: libsearpc
    Version: 3.3.0+really3.3+git20230527.783141f-3.1
    Severity: serious
    Justification: FTBFS
    Tags: trixie sid ftbfs
    User: lucas@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=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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Fri Mar 15 20:50:01 2024
    Processing control commands:

    tags 1066367 + patch
    Bug #1066367 [src:libsearpc] libsearpc: FTBFS: searpc-demo-packet.h:40:34: error: implicit declaration of function ‘write’; did you mean ‘writen’? [-Werror=implicit-function-declaration]
    Bug #1065977 [src:libsearpc] libsearpc: FTBFS on arm{el,hf}: searpc-demo-packet.h:40:34: error: implicit declaration of function ‘write’; did you mean ‘writen’? [-Werror=implicit-function-declaration]
    Added tag(s) patch.
    Added tag(s) patch.
    tags 1066367 + pending
    Bug #1066367 [src:libsearpc] libsearpc: FTBFS: searpc-demo-packet.h:40:34: error: implicit declaration of function ‘write’; did you mean ‘writen’? [-Werror=implicit-function-declaration]
    Bug #1065977 [src:libsearpc] libsearpc: FTBFS on arm{el,hf}: searpc-demo-packet.h:40:34: error: implicit declaration of function ‘write’; did you mean ‘writen’? [-Werror=implicit-function-declaration]
    Added tag(s) pending.
    Added tag(s) pending.

    --
    1065977: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1065977
    1066367: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066367
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Sat Mar 16 00:10:01 2024
    This is a multi-part message in MIME format...

    Your message dated Fri, 15 Mar 2024 22:59:35 +0000
    with message-id <E1rlGWV-0029eh-FC@fasolo.debian.org>
    and subject line Bug#1066367: fixed in libsearpc 3.3.0+really3.3+git20230527.783141f-3.2
    has caused the Debian Bug report #1066367,
    regarding libsearpc: FTBFS: searpc-demo-packet.h:40:34: error: implicit declaration of function ‘write’; did you mean ‘writen’? [-Werror=implicit-function-declaration]
    to be marked as done.

    This means that you claim that the problem has been dealt with.
    If this is not the case it is now your responsibility to reopen the
    Bug report if necessary, and/or fix the problem forthwith.

    (NB: If you are a system administrator and have no idea what this
    message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org
    immediately.)


    --
    1066367: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066367
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 13 Mar 2024 11:49:46 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-106.1 required=4.0 tests=BAYES_00,DKIMWL_WL_HIGH,
    DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,
    FROMDEVELOPER,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,
    UNPARSEABLE_RELAY,USER_IN_DKIM_WELCOMELIST,USER_IN_DKIM_WHITELIST
    autolearn=ham autolearn_force=no
    version=3.4.6-bugs.debian.org_2005_01_02
    X-Spam-Bayes: score:0.0000 Tokens: new, 9; hammy, 150; neutral, 282; spammy,
    0. spammytokens:
    hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
    0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
    0.000-+--H*RT:311, 0.000-+--H*RT:108
    Return-path: <lucas@debian.org>
    Received: from stravinsky.debian.org ([200