Bug#1073318: gupnp-av: FTBFS: ../libgupnp-av/gupnp-didl-lite-parser.c:233:9: error: ‘xmlRecoverMemory’ is deprecated [-Werror=deprecated-declarations]
Lucas Nussbaum
lucas at debian.org
Sun Jun 16 13:52:04 BST 2024
Source: gupnp-av
Version: 0.14.1-2
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at 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):
> cc -Ilibgupnp-av/libgupnp-av-1.0.so.3.14.1.p -Ilibgupnp-av -I../libgupnp-av -Iinternal -I../internal -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libxml2 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -Werror=deprecated-declarations -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -Wno-int-conversion -MD -MQ libgupnp-av/libgupnp-av-1.0.so.3.14.1.p/gupnp-didl-lite-parser.c.o -MF libgupnp-av/libgupnp-av-1.0.so.3.14.1.p/gupnp-didl-lite-parser.c.o.d -o libgupnp-av/libgupnp-av-1.0.so.3.14.1.p/gupnp-didl-lite-parser.c.o -c ../libgupnp-av/gupnp-didl-lite-parser.c
> ../libgupnp-av/gupnp-didl-lite-parser.c: In function ‘gupnp_didl_lite_parser_parse_didl_recursive’:
> ../libgupnp-av/gupnp-didl-lite-parser.c:233:9: error: ‘xmlRecoverMemory’ is deprecated [-Werror=deprecated-declarations]
> 233 | doc = xmlRecoverMemory (didl, strlen (didl));
> | ^~~
> In file included from /usr/include/libxml2/libxml/tree.h:17,
> from ../libgupnp-av/gupnp-didl-lite-object.h:20,
> from ../libgupnp-av/gupnp-av.h:13,
> from ../libgupnp-av/gupnp-didl-lite-parser.c:22:
> /usr/include/libxml2/libxml/parser.h:988:17: note: declared here
> 988 | xmlRecoverMemory (const char *buffer,
> | ^~~~~~~~~~~~~~~~
> cc1: some warnings being treated as errors
> [19/49] cc -Ilibgupnp-av/libgupnp-av-1.0.so.3.14.1.p -Ilibgupnp-av -I../libgupnp-av -Iinternal -I../internal -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libxml2 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -Werror=deprecated-declarations -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -Wno-int-conversion -MD -MQ libgupnp-av/libgupnp-av-1.0.so.3.14.1.p/gupnp-didl-lite-container.c.o -MF libgupnp-av/libgupnp-av-1.0.so.3.14.1.p/gupnp-didl-lite-container.c.o.d -o libgupnp-av/libgupnp-av-1.0.so.3.14.1.p/gupnp-didl-lite-container.c.o -c ../libgupnp-av/gupnp-didl-lite-container.c
> [20/49] cc -Ilibgupnp-av/libgupnp-av-1.0.so.3.14.1.p -Ilibgupnp-av -I../libgupnp-av -Iinternal -I../internal -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libxml2 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -Werror=deprecated-declarations -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -Wno-int-conversion -MD -MQ libgupnp-av/libgupnp-av-1.0.so.3.14.1.p/gupnp-feature-list-parser.c.o -MF libgupnp-av/libgupnp-av-1.0.so.3.14.1.p/gupnp-feature-list-parser.c.o.d -o libgupnp-av/libgupnp-av-1.0.so.3.14.1.p/gupnp-feature-list-parser.c.o -c ../libgupnp-av/gupnp-feature-list-parser.c
> FAILED: libgupnp-av/libgupnp-av-1.0.so.3.14.1.p/gupnp-feature-list-parser.c.o
> cc -Ilibgupnp-av/libgupnp-av-1.0.so.3.14.1.p -Ilibgupnp-av -I../libgupnp-av -Iinternal -I../internal -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libxml2 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -Werror=deprecated-declarations -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -Wno-int-conversion -MD -MQ libgupnp-av/libgupnp-av-1.0.so.3.14.1.p/gupnp-feature-list-parser.c.o -MF libgupnp-av/libgupnp-av-1.0.so.3.14.1.p/gupnp-feature-list-parser.c.o.d -o libgupnp-av/libgupnp-av-1.0.so.3.14.1.p/gupnp-feature-list-parser.c.o -c ../libgupnp-av/gupnp-feature-list-parser.c
> ../libgupnp-av/gupnp-feature-list-parser.c: In function ‘gupnp_feature_list_parser_parse_text’:
> ../libgupnp-av/gupnp-feature-list-parser.c:117:9: error: ‘xmlRecoverMemory’ is deprecated [-Werror=deprecated-declarations]
> 117 | doc = xmlRecoverMemory (text, strlen (text));
> | ^~~
> In file included from /usr/include/libxml2/libxml/tree.h:17,
> from ../libgupnp-av/gupnp-didl-lite-object.h:20,
> from ../libgupnp-av/gupnp-av.h:13,
> from ../libgupnp-av/gupnp-feature-list-parser.c:23:
> /usr/include/libxml2/libxml/parser.h:988:17: note: declared here
> 988 | xmlRecoverMemory (const char *buffer,
> | ^~~~~~~~~~~~~~~~
> cc1: some warnings being treated as errors
> [21/49] cc -Ilibgupnp-av/libgupnp-av-1.0.so.3.14.1.p -Ilibgupnp-av -I../libgupnp-av -Iinternal -I../internal -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libxml2 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -Werror=deprecated-declarations -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -Wno-int-conversion -MD -MQ libgupnp-av/libgupnp-av-1.0.so.3.14.1.p/gupnp-feature.c.o -MF libgupnp-av/libgupnp-av-1.0.so.3.14.1.p/gupnp-feature.c.o.d -o libgupnp-av/libgupnp-av-1.0.so.3.14.1.p/gupnp-feature.c.o -c ../libgupnp-av/gupnp-feature.c
> [22/49] cc -Ilibgupnp-av/libgupnp-av-1.0.so.3.14.1.p -Ilibgupnp-av -I../libgupnp-av -Iinternal -I../internal -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libxml2 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -Werror=deprecated-declarations -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -Wno-int-conversion -MD -MQ libgupnp-av/libgupnp-av-1.0.so.3.14.1.p/gupnp-didl-lite-writer.c.o -MF libgupnp-av/libgupnp-av-1.0.so.3.14.1.p/gupnp-didl-lite-writer.c.o.d -o libgupnp-av/libgupnp-av-1.0.so.3.14.1.p/gupnp-didl-lite-writer.c.o -c ../libgupnp-av/gupnp-didl-lite-writer.c
> [23/49] cc -Ilibgupnp-av/libgupnp-av-1.0.so.3.14.1.p -Ilibgupnp-av -I../libgupnp-av -Iinternal -I../internal -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libxml2 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -Werror=deprecated-declarations -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -Wno-int-conversion -MD -MQ libgupnp-av/libgupnp-av-1.0.so.3.14.1.p/gupnp-last-change-parser.c.o -MF libgupnp-av/libgupnp-av-1.0.so.3.14.1.p/gupnp-last-change-parser.c.o.d -o libgupnp-av/libgupnp-av-1.0.so.3.14.1.p/gupnp-last-change-parser.c.o -c ../libgupnp-av/gupnp-last-change-parser.c
> [24/49] cc -Ilibgupnp-av/libgupnp-av-1.0.so.3.14.1.p -Ilibgupnp-av -I../libgupnp-av -Iinternal -I../internal -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libxml2 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -Werror=deprecated-declarations -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -Wno-int-conversion -MD -MQ libgupnp-av/libgupnp-av-1.0.so.3.14.1.p/gupnp-didl-lite-resource.c.o -MF libgupnp-av/libgupnp-av-1.0.so.3.14.1.p/gupnp-didl-lite-resource.c.o.d -o libgupnp-av/libgupnp-av-1.0.so.3.14.1.p/gupnp-didl-lite-resource.c.o -c ../libgupnp-av/gupnp-didl-lite-resource.c
> [25/49] cc -Ilibgupnp-av/libgupnp-av-1.0.so.3.14.1.p -Ilibgupnp-av -I../libgupnp-av -Iinternal -I../internal -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libxml2 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -Werror=deprecated-declarations -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -Wno-int-conversion -MD -MQ libgupnp-av/libgupnp-av-1.0.so.3.14.1.p/gupnp-didl-lite-object.c.o -MF libgupnp-av/libgupnp-av-1.0.so.3.14.1.p/gupnp-didl-lite-object.c.o.d -o libgupnp-av/libgupnp-av-1.0.so.3.14.1.p/gupnp-didl-lite-object.c.o -c ../libgupnp-av/gupnp-didl-lite-object.c
> ninja: build stopped: subcommand failed.
> dh_auto_build: error: cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 ninja -j8 -v returned exit code 1
> make: *** [debian/rules:8: binary] Error 25
The full build log is available from:
http://qa-logs.debian.net/2024/06/15/gupnp-av_0.14.1-2_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.
More information about the pkg-gnome-maintainers
mailing list