lttng-tools-2.14.0-rc1: fails to compile with libxml2-2.14.4

Kienan Stewart kstewart at efficios.com
Tue Jun 17 10:19:04 EDT 2025


Hi Norbert,

thanks for the report.

The libxml build failure is fixed in 
2d2e77ddc9e3e63c3c658e824fb754f5a534a6ab, which in the stable-2.14 
branch[1] post-rc1.

thanks,
kienan

[1]: 
https://github.com/lttng/lttng-tools/commit/2d2e77ddc9e3e63c3c658e824fb754f5a534a6ab

On 6/17/25 10:15 AM, Norbert Lange via lttng-dev wrote:
> /tmp/dev_develop_libxml2/usr/include/libxml2/libxml/encoding.h:173:7:
> note: declared here
>    173 |     } input XML_DEPRECATED_MEMBER;
>        |       ^~~~~
> ../../../src/common/config/session-config.cpp:297:75: error: no match
> for call to '(_xmlCharEncodingHandler::<unnamed union>) (xmlChar*&,
> int*, const xmlChar*, int*)'
>    297 |  ret = handler->input(out_str, &out_len, (const xmlChar *)
> in_str, &in_len);
>        |
>             ^
> 
> Changing the call to handler->input.legacyFunc seems to fix it.
> 
> Also lttng seems to need libxml2, but doesnt add the necessary flags.
> 
> Regards, Norbert



More information about the lttng-dev mailing list