asterisk / asterisk

The official Asterisk Project repository.

Home Page:https://www.asterisk.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[bug]: libxml2-2.12 deprecates API calls asterisk uses

gtjoseph opened this issue · comments

Severity

Minor

Versions

18,20,21,master

Components/Modules

xml.c,res_calendar_caldav.c

Operating Environment

libxml2 >= 2.12

Frequency of Occurrence

Constant

Issue Description

libxml2-2.12 deprecates the following APIs...

  • xmlSubstituteEntitiesDefault - used by xml.c
  • xmlSAXUserParseMemory - used by res_calendar_caldav.c

Relevant log output

xml.c: In function ‘ast_xml_open’:
xml.c:102:9: warning: ‘xmlSubstituteEntitiesDefault’ is deprecated [-Wdeprecated-declarations]
  102 |         xmlSubstituteEntitiesDefault(1);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from xml.c:35:
/usr/include/libxml2/libxml/parser.h:953:17: note: declared here
  953 |                 xmlSubstituteEntitiesDefault(int val);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
xml.c: In function ‘ast_xslt_open’:
xml.c:508:9: warning: ‘xmlSubstituteEntitiesDefault’ is deprecated [-Wdeprecated-declarations]
  508 |         xmlSubstituteEntitiesDefault(1);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/libxml2/libxml/parser.h:953:17: note: declared here
  953 |                 xmlSubstituteEntitiesDefault(int val);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
xml.c: In function ‘ast_xslt_read_memory’:
xml.c:538:9: warning: ‘xmlSubstituteEntitiesDefault’ is deprecated [-Wdeprecated-declarations]
  538 |         xmlSubstituteEntitiesDefault(1);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/libxml2/libxml/parser.h:953:17: note: declared here
  953 |                 xmlSubstituteEntitiesDefault(int val);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

res_calendar_caldav.c: In function ‘update_caldav’:
res_calendar_caldav.c:591:9: warning: ‘xmlSAXUserParseMemory’ is deprecated [-Wdeprecated-declarations]
  591 |         xmlSAXUserParseMemory(&saxHandler, &state, ast_str_buffer(response), ast_str_strlen(response));
      |         ^~~~~~~~~~~~~~~~~~~~~
In file included from res_calendar_caldav.c:40:
/usr/include/libxml2/libxml/parser.h:1010:17: note: declared here
 1010 |                 xmlSAXUserParseMemory   (xmlSAXHandlerPtr sax,
      |                 ^~~~~~~~~~~~~~~~~~~~~

Asterisk Issue Guidelines

  • Yes, I have read the Asterisk Issue Guidelines