• Bug#1065762: libaudio-cd-perl: FTBFS on arm{el,hf}: cddb_lookup.c:53:16

    From Sebastian Ramacher@21:1/5 to All on Sat Mar 9 21:30:01 2024
    Source: libaudio-cd-perl
    Version: 0.05-12
    Severity: serious
    Tags: ftbfs
    Justification: fails to build from source (but built successfully in the past) X-Debbugs-Cc: sramacher@debian.org

    https://buildd.debian.org/status/fetch.php?pkg=libaudio-cd-perl&arch=armhf&ver=0.05-12%2Bb3&stamp=1709806818&raw=0

    "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- CD.bs blib/arch/auto/Audio/CD/CD.bs 644
    cddb_lookup.c: In function ‘inexact_selection’:
    cddb_lookup.c:53:16: error: implicit declaration of function ‘strtol’ [-Werror=implicit-function-declaration]
    53 | return strtol(inbuffer, NULL, 10);
    | ^~~~~~
    cddb_lookup.c: In function ‘cddb_lookup’:
    cddb_lookup.c:100:40: error: implicit declaration of function ‘malloc’ [-Werror=implicit-function-declaration]
    100 | proxy = (struct cddb_server *)malloc(sizeof(struct cddb_server));
    | ^~~~~~
    cddb_lookup.c:24:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
    23 | #include "stdio.h"
    +++ |+#include <stdlib.h>
    24 |
    cddb_lookup.c:100:40: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
    100 | proxy = (struct cddb_server *)malloc(sizeof(struct cddb_server));
    | ^~~~~~
    cddb_lookup.c:100:40: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
    cddb_lookup.c:103:13: error: implicit declaration of function ‘free’ [-Werror=implicit-function-declaration]
    103 | free(proxy);
    | ^~~~
    cddb_lookup.c:103:13: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
    cddb_lookup.c:103:13: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
    cddb_lookup.c:103:13: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
    cddb_lookup.c:108:13: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
    108 | free(proxy);
    | ^~~~
    cddb_lookup.c:108:13: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
    cddb_lookup.c:113:10: error: implicit declaration of function ‘strncpy’ [-Werror=implicit-function-declaration]
    113 | strncpy(hello.hello_program, PACKAGE, 256);
    | ^~~~~~~
    cddb_lookup.c:24:1: note: include ‘<string.h>’ or provide a declaration of ‘strncpy’
    23 | #include "stdio.h"
    +++ |+#include <string.h>
    24 |
    cddb_lookup.c:113:10: warning: incompatible implicit declaration of built-in function ‘strncpy’ [-Wbuiltin-declaration-mismatch]
    113 | strncpy(hello.hello_program, PACKAGE, 256);
    | ^~~~~~~
    cddb_lookup.c:113:10: note: include ‘<string.h>’ or provide a declaration of ‘strncpy’
    cddb_lookup.c:141:33: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
    141 | if(conf.conf_proxy) free(proxy);
    | ^~~~
    cddb_lookup.c:141:33: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
    cddb_lookup.c:153:36: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
    153 | if(conf.conf_proxy) free(proxy);
    | ^~~~
    cddb_lookup.c:153:36: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
    cddb_lookup.c:162:36: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
    162 | if(conf.conf_proxy) free(proxy);
    | ^~~~
    cddb_lookup.c:162:36: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
    cddb_lookup.c:166:13: error: implicit declaration of function ‘shutdown’ [-Werror=implicit-function-declaration]
    166 | shutdown(sock, 2);
    | ^~~~~~~~
    cddb_lookup.c:167:13: error: implicit declaration of function ‘close’; did you mean ‘pclose’? [-Werror=implicit-function-declaration]
    167 | close(sock);
    | ^~~~~
    | pclose
    cddb_lookup.c:171:36: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
    171 | if(conf.conf_proxy) free(proxy);
    | ^~~~
    cddb_lookup.c:171:36: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
    cddb_lookup.c:181:36: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
    181 | if(conf.conf_proxy) free(proxy);
    | ^~~~
    cddb_lookup.c:181:36: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
    cddb_lookup.c:190:30: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
    190 | if(conf.conf_proxy) free(proxy);
    | ^~~~
    cddb_lookup.c:190:30: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
    cddb_lookup.c:196:16: error: implicit declaration of function ‘strlen’ [-Werror=implicit-function-declaration]
    196 | if(strlen(query.query_list[0].list_artist) > 0)
    | ^~~~~~
    cddb_lookup.c:196:16: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
    cddb_lookup.c:196:16: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
    cddb_lookup.c:196:16: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
    cddb_lookup.c:227:18: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
    227 | if(strlen(query.query_list[index].list_artist) < 1)
    | ^~~~~~
    cddb_lookup.c:227:18: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
    cddb_lookup.c: In function ‘inexact_selection’:
    cddb_lookup.c:52:9: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    52 | fgets(inbuffer, sizeof(inbuffer), stdin);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    cp CD.pm blib/lib/Audio/CD.pm
    mv CD.xsc CD.c
    arm-linux-gnueabihf-gcc -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-
    protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -DVERSION=\"0.05\" -DXS_VERSION=\"0.05\" -fPIC "-I/usr/lib/arm-linux-gnueabihf/perl/5.
    38/CORE" -g CD.c
    cc1: some warnings being treated as errors
    make[1]: *** [Makefile:342: cddb_lookup.o] Error 1

    Cheers
    --
    Sebastian Ramacher

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

    tag -1 pending
    Bug #1065762 [src:libaudio-cd-perl] libaudio-cd-perl: FTBFS on arm{el,hf}: cddb_lookup.c:53:16: error: implicit declaration of function ‘strtol’ [-Werror=implicit-function-declaration]
    Added tag(s) pending.

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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From gregor herrmann@21:1/5 to All on Sun Mar 10 13:30:01 2024
    Control: tag -1 pending

    Hello,

    Bug #1065762 in libaudio-cd-perl reported by you has been fixed in the
    Git repository and is awaiting an upload. You can see the commit
    message below and you can check the diff of the fix at:

    https://salsa.debian.org/perl-team/modules/packages/libaudio-cd-perl/-/commit/ce7ee2af1623b0dedc81a80fc676de24f123b36f

    ------------------------------------------------------------------------
    Add patch to add missing #includes.

    Closes: #1065762 ------------------------------------------------------------------------

    (this message was generated automatically)
    --
    Greetings

    https://bugs.debian.org/1065762

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

    Your message dated Sun, 10 Mar 2024 12:37:48 +0000
    with message-id <E1rjIR2-009b57-FO@fasolo.debian.org>
    and subject line Bug#1065762: fixed in libaudio-cd-perl 0.05-13
    has caused the Debian Bug report #1065762,
    regarding libaudio-cd-perl: FTBFS on arm{el,hf}: cddb_lookup.c:53:16: error: implicit declaration of function ‘strtol’ [-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.)


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

    Received: (at submit) by bugs.debian.org; 9 Mar 2024 20:17:54 +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=-105.7 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, 56; hammy, 150; neutral, 136; 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: <sramacher@debian.org>
    Received: from stravinsky.debian.org (