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)