Bug#1073302: gmerlin: FTBFS: devicedesc.c:66:3: error: implicit declaration of function ‘free’ [-Werror=implicit-function-declaration]
Source: gmerlin
Version: 2.0.0~svn6298~dfsg0-3.1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas@debian.org
Usertags: ftbfs-20240615 ftbfs-trixie
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> /bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../include -I../../include -Wdate-time -D_FORTIFY_SOURCE=2 -DBUILD_DATE=\"2024/02/28\" -I/usr/include/uuid -DLOCALE_DIR=\"/usr/share/locale\" -DPLUGIN_DIR=\"/usr/lib/x86_64-linux-gnu/gmerlin/plugins\" -DDOC_DIR=\"/usr/share/doc/libgmerlin-doc\" -DDATA_DIR=\"/usr/share/gmerlin\" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_REENTRANT -D_FILE_OFFSET_BITS=64 -O3 -fomit-frame-pointer -ffast-math -Wall -Wmissing-declarations -Wdeclaration-after-statement -I/usr/include/libxml2 -c -o ssdp_device.lo ssdp_device.c
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../include -I../../include -Wdate-time -D_FORTIFY_SOURCE=2 -DBUILD_DATE=\"2024/02/28\" -I/usr/include/uuid -DLOCALE_DIR=\"/usr/share/locale\" -DPLUGIN_DIR=\"/usr/lib/x86_64-linux-gnu/gmerlin/plugins\" -DDOC_DIR=\"/usr/share/doc/libgmerlin-doc\" -DDATA_DIR=\"/usr/share/gmerlin\" -g -O2 -Werror=implicit-function-declaration "-ffile-prefix-map=/<<PKGBUILDDIR>>=." -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_REENTRANT -D_FILE_OFFSET_BITS=64 -O3 -fomit-frame-pointer -ffast-math -Wall -Wmissing-declarations -Wdeclaration-after-statement -I/usr/include/libxml2 -c eventlistener.c -fPIC -DPIC -o .libs/eventlistener.o
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../include -I../../include -Wdate-time -D_FORTIFY_SOURCE=2 -DBUILD_DATE=\"2024/02/28\" -I/usr/include/uuid -DLOCALE_DIR=\"/usr/share/locale\" -DPLUGIN_DIR=\"/usr/lib/x86_64-linux-gnu/gmerlin/plugins\" -DDOC_DIR=\"/usr/share/doc/libgmerlin-doc\" -DDATA_DIR=\"/usr/share/gmerlin\" -g -O2 -Werror=implicit-function-declaration "-ffile-prefix-map=/<<PKGBUILDDIR>>=." -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_REENTRANT -D_FILE_OFFSET_BITS=64 -O3 -fomit-frame-pointer -ffast-math -Wall -Wmissing-declarations -Wdeclaration-after-statement -I/usr/include/libxml2 -c devicedesc.c -fPIC -DPIC -o .libs/devicedesc.o
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../include -I../../include -Wdate-time -D_FORTIFY_SOURCE=2 -DBUILD_DATE=\"2024/02/28\" -I/usr/include/uuid -DLOCALE_DIR=\"/usr/share/locale\" -DPLUGIN_DIR=\"/usr/lib/x86_64-linux-gnu/gmerlin/plugins\" -DDOC_DIR=\"/usr/share/doc/libgmerlin-doc\" -DDATA_DIR=\"/usr/share/gmerlin\" -g -O2 -Werror=implicit-function-declaration "-ffile-prefix-map=/<<PKGBUILDDIR>>=." -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_REENTRANT -D_FILE_OFFSET_BITS=64 -O3 -fomit-frame-pointer -ffast-math -Wall -Wmissing-declarations -Wdeclaration-after-statement -I/usr/include/libxml2 -c didl.c -fPIC -DPIC -o .libs/didl.o
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../include -I../../include -Wdate-time -D_FORTIFY_SOURCE=2 -DBUILD_DATE=\"2024/02/28\" -I/usr/include/uuid -DLOCALE_DIR=\"/usr/share/locale\" -DPLUGIN_DIR=\"/usr/lib/x86_64-linux-gnu/gmerlin/plugins\" -DDOC_DIR=\"/usr/share/doc/libgmerlin-doc\" -DDATA_DIR=\"/usr/share/gmerlin\" -g -O2 -Werror=implicit-function-declaration "-ffile-prefix-map=/<<PKGBUILDDIR>>=." -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_REENTRANT -D_FILE_OFFSET_BITS=64 -O3 -fomit-frame-pointer -ffast-math -Wall -Wmissing-declarations -Wdeclaration-after-statement -I/usr/include/libxml2 -c event.c -fPIC -DPIC -o .libs/event.o
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../include -I../../include -Wdate-time -D_FORTIFY_SOURCE=2 -DBUILD_DATE=\"2024/02/28\" -I/usr/include/uuid -DLOCALE_DIR=\"/usr/share/locale\" -DPLUGIN_DIR=\"/usr/lib/x86_64-linux-gnu/gmerlin/plugins\" -DDOC_DIR=\"/usr/share/doc/libgmerlin-doc\" -DDATA_DIR=\"/usr/share/gmerlin\" -g -O2 -Werror=implicit-function-declaration "-ffile-prefix-map=/<<PKGBUILDDIR>>=." -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_REENTRANT -D_FILE_OFFSET_BITS=64 -O3 -fomit-frame-pointer -ffast-math -Wall -Wmissing-declarations -Wdeclaration-after-statement -I/usr/include/libxml2 -c ssdp.c -fPIC -DPIC -o .libs/ssdp.o
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../include -I../../include -Wdate-time -D_FORTIFY_SOURCE=2 -DBUILD_DATE=\"2024/02/28\" -I/usr/include/uuid -DLOCALE_DIR=\"/usr/share/locale\" -DPLUGIN_DIR=\"/usr/lib/x86_64-linux-gnu/gmerlin/plugins\" -DDOC_DIR=\"/usr/share/doc/libgmerlin-doc\" -DDATA_DIR=\"/usr/share/gmerlin\" -g -O2 -Werror=implicit-function-declaration "-ffile-prefix-map=/<<PKGBUILDDIR>>=." -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_REENTRANT -D_FILE_OFFSET_BITS=64 -O3 -fomit-frame-pointer -ffast-math -Wall -Wmissing-declarations -Wdeclaration-after-statement -I/usr/include/libxml2 -c client.c -fPIC -DPIC -o .libs/client.o
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../include -I../../include -Wdate-time -D_FORTIFY_SOURCE=2 -DBUILD_DATE=\"2024/02/28\" -I/usr/include/uuid -DLOCALE_DIR=\"/usr/share/locale\" -DPLUGIN_DIR=\"/usr/lib/x86_64-linux-gnu/gmerlin/plugins\" -DDOC_DIR=\"/usr/share/doc/libgmerlin-doc\" -DDATA_DIR=\"/usr/share/gmerlin\" -g -O2 -Werror=implicit-function-declaration "-ffile-prefix-map=/<<PKGBUILDDIR>>=." -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_REENTRANT -D_FILE_OFFSET_BITS=64 -O3 -fomit-frame-pointer -ffast-math -Wall -Wmissing-declarations -Wdeclaration-after-statement -I/usr/include/libxml2 -c soap.c -fPIC -DPIC -o .libs/soap.o
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../include -I../../include -Wdate-time -D_FORTIFY_SOURCE=2 -DBUILD_DATE=\"2024/02/28\" -I/usr/include/uuid -DLOCALE_DIR=\"/usr/share/locale\" -DPLUGIN_DIR=\"/usr/lib/x86_64-linux-gnu/gmerlin/plugins\" -DDOC_DIR=\"/usr/share/doc/libgmerlin-doc\" -DDATA_DIR=\"/usr/share/gmerlin\" -g -O2 -Werror=implicit-function-declaration "-ffile-prefix-map=/<<PKGBUILDDIR>>=." -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_REENTRANT -D_FILE_OFFSET_BITS=64 -O3 -fomit-frame-pointer -ffast-math -Wall -Wmissing-declarations -Wdeclaration-after-statement -I/usr/include/libxml2 -c ssdp_device.c -fPIC -DPIC -o .libs/ssdp_device.o
> devicedesc.c: In function ‘bg_upnp_device_description_create’:
> devicedesc.c:66:3: error: implicit declaration of function ‘free’ [-Werror=implicit-function-declaration]
> 66 | free(tmp_string);
> | ^~~~
> devicedesc.c:30:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
> 29 | #include <gmerlin/utils.h>
> +++ |+#include <stdlib.h>
> 30 |
> devicedesc.c:66:3: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
> 66 | free(tmp_string);
> | ^~~~
> devicedesc.c:66:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
> devicedesc.c: In function ‘bg_upnp_device_description_set_uuid’:
> devicedesc.c:138:3: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
> 138 | free(tmp_string);
> | ^~~~
> devicedesc.c:138:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
> devicedesc.c: In function ‘bg_upnp_device_description_add_icon’:
> devicedesc.c:206:3: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
> 206 | free(tmp_string);
> | ^~~~
> devicedesc.c:206:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
> devicedesc.c: In function ‘get_url_base’:
> devicedesc.c:240:3: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
> 240 | free(host);
> | ^~~~
> devicedesc.c:240:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
> devicedesc.c: In function ‘check_device’:
> devicedesc.c:306:6: error: implicit declaration of function ‘atoi’ [-Werror=implicit-function-declaration]
> 306 | if(atoi(type + 1) < version)
> | ^~~~
> devicedesc.c: In function ‘check_icon’:
> devicedesc.c:593:10: error: implicit declaration of function ‘abs’ [-Werror=implicit-function-declaration]
> 593 | ret += abs(width - size);
> | ^~~
> devicedesc.c:593:10: note: include ‘<stdlib.h>’ or provide a declaration of ‘abs’
> /bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../include -I../../include -Wdate-time -D_FORTIFY_SOURCE=2 -DBUILD_DATE=\"2024/02/28\" -I/usr/include/uuid -DLOCALE_DIR=\"/usr/share/locale\" -DPLUGIN_DIR=\"/usr/lib/x86_64-linux-gnu/gmerlin/plugins\" -DDOC_DIR=\"/usr/share/doc/libgmerlin-doc\" -DDATA_DIR=\"/usr/share/gmerlin\" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_REENTRANT -D_FILE_OFFSET_BITS=64 -O3 -fomit-frame-pointer -ffast-math -Wall -Wmissing-declarations -Wdeclaration-after-statement -I/usr/include/libxml2 -c -o upnputils.lo upnputils.c
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../include -I../../include -Wdate-time -D_FORTIFY_SOURCE=2 -DBUILD_DATE=\"2024/02/28\" -I/usr/include/uuid -DLOCALE_DIR=\"/usr/share/locale\" -DPLUGIN_DIR=\"/usr/lib/x86_64-linux-gnu/gmerlin/plugins\" -DDOC_DIR=\"/usr/share/doc/libgmerlin-doc\" -DDATA_DIR=\"/usr/share/gmerlin\" -g -O2 -Werror=implicit-function-declaration "-ffile-prefix-map=/<<PKGBUILDDIR>>=." -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_REENTRANT -D_FILE_OFFSET_BITS=64 -O3 -fomit-frame-pointer -ffast-math -Wall -Wmissing-declarations -Wdeclaration-after-statement -I/usr/include/libxml2 -c upnputils.c -fPIC -DPIC -o .libs/upnputils.o
> cc1: some warnings being treated as errors
> make[3]: *** [Makefile:548: devicedesc.lo] Error 1
The full build log is available from:
http://qa-logs.debian.net/2024/06/15/gmerlin_2.0.0~svn6298~dfsg0-3.1_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240615;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240615&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.
Reply to: