asterisk / asterisk

The official Asterisk Project repository.
https://www.asterisk.org
Other
1.97k stars 924 forks source link

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

Open gtjoseph opened 2 weeks ago

gtjoseph commented 2 weeks ago

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...

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