Hi small_leek, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Base-service, and any of the maintainers: @谢志鹏 , @Monday , @zhujianwei001 , @hexiaowen , @caodongxia , @陈棋德
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
具体报错:
[ 91s] ../libgupnp-av/gupnp-feature-list-parser.c: In function ‘gupnp_feature_list_parser_parse_text’:
[ 91s] ../libgupnp-av/gupnp-feature-list-parser.c:117:9: error: ‘xmlRecoverMemory’ is deprecated [-Werror=deprecated-declarations]
[ 91s] 117 | doc = xmlRecoverMemory (text, strlen (text));
[ 91s] | ^~~
[ 91s] In file included from /usr/include/libxml2/libxml/globals.h:18,
[ 91s] from /usr/include/libxml2/libxml/threads.h:35,
[ 91s] from /usr/include/libxml2/libxml/xmlmemory.h:222,
[ 91s] from /usr/include/libxml2/libxml/tree.h:1310,
[ 91s] from ../libgupnp-av/gupnp-didl-lite-object.h:20,
[ 91s] from ../libgupnp-av/gupnp-av.h:13,
[ 91s] from ../libgupnp-av/gupnp-feature-list-parser.c:23:
[ 91s] /usr/include/libxml2/libxml/parser.h:872:17: note: declared here
[ 91s] 872 | xmlRecoverMemory (const char *buffer,
[ 91s] | ^~~~~~~~~~~~~~~~
[ 91s] cc1: some warnings being treated as errors
问题分析:由于gupnp升级至1.6.4版本,弃用了对xmlRecoverMemory的使用,gupnp-av依赖其编译时报错。
详情见:https://github.com/GNOME/gupnp/blob/master/NEWS
解决办法:从gupnp-av包的源码中同样删除对xmlRecoverMemory的使用。
参考链接:https://github.com/GNOME/gupnp-av/commit/9557768121d54fdcedabe7544863515d6a813354
登录 后才可以发表评论