Failing to build with libxml 2.14
Brought to you by:
acid_kewpie,
pere
With libxml 2.14, I get
gcc -DPACKAGE_NAME=\"lsdvd\" -DPACKAGE_TARNAME=\"lsdvd\" -DPACKAGE_VERSION=\"0.20\" -DPACKAGE_STRING=\"lsdvd\ 0.20\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"lsdvd\" -DVERSION=\"0.20\" -I. -I/usr/include/libxml2 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wformat -Werror=format-security -g -c -o lsdvd-oxml.o `test -f 'oxml.c' || echo './'`oxml.c
oxml.c: In function 'ConvertInput':
oxml.c:47:17: warning: 'input' is deprecated [-Wdeprecated-declarations]
47 | ret = handler->input(out, &out_size, (const xmlChar *) in, &temp);
| ^~~
In file included from /usr/include/libxml2/libxml/xmlIO.h:18,
from /usr/include/libxml2/libxml/xmlwriter.h:21,
from oxml.c:2:
/usr/include/libxml2/libxml/encoding.h:204:7: note: declared here
204 | } input XML_DEPRECATED_MEMBER;
| ^~~~~
oxml.c:47:23: error: called object is not a function or function pointer
47 | ret = handler->input(out, &out_size, (const xmlChar *) in, &temp);
| ^~~~~~~
make: *** [Makefile:713: lsdvd-oxml.o] Error 1
Applied the following patch to fix this in our package for Arch Linux: