Openconnect package failing to build

I'm attempting to build openconnect package on recent snapshot, build fails with error:

gpst.c: In function 'gpst_xml_or_error':
gpst.c:192:19: error: implicit declaration of function 'xmlReadMemory'; did you mean 'xmlInitMemory'? [-Werror=implicit-function-declaration]
  192 |         xml_doc = xmlReadMemory(response, strlen(response), "noname.xml", NULL,
      |                   ^~~~~~~~~~~~~
      |                   xmlInitMemory
gpst.c:192:19: warning: nested extern declaration of 'xmlReadMemory' [-Wnested-externs]
gpst.c:193:33: error: 'XML_PARSE_NOERROR' undeclared (first use in this function)
  193 |                                 XML_PARSE_NOERROR);
      |                                 ^~~~~~~~~~~~~~~~~
gpst.c:193:33: note: each undeclared identifier is reported only once for each function it appears in

Upstream fix appears to be here: