Project

General

Profile

Actions

Bug #1427

open

lttng-tools fails to compile with libxml2 2.14.0+

Added by Peter Marko 4 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
05/05/2025
Due date:
% Done:

0%

Estimated time:

Description

| In file included from /srv/pokybuild/yocto-worker/qemux86-alt/build/build/tmp/work/core2-32-poky-linux/lttng-tools/2.13.15/recipe-sysroot/usr/include/libxml2/libxml/parser.h:25,
|                  from ../../../../lttng-tools-2.13.15/src/common/config/session-config.c:29:
| /srv/pokybuild/yocto-worker/qemux86-alt/build/build/tmp/work/core2-32-poky-linux/lttng-tools/2.13.15/recipe-sysroot/usr/include/libxml2/libxml/encoding.h:173:7: note: declared here
|   173 |     } input XML_DEPRECATED_MEMBER;
|       |       ^~~~~
| ../../../../lttng-tools-2.13.15/src/common/config/session-config.c:432:15: error: called object is not a function or function pointer
|   432 |         ret = handler->input(out_str, &out_len, (const xmlChar *) in_str, &in_len);
|       |               ^~~~~~~
| At top level:
| cc1: note: unrecognized command-line option '-Wno-incomplete-setjmp-declaration' may have been intended to silence earlier diagnostics

Trivial patch based on https://gitlab.gnome.org/GNOME/libxml2/-/commit/38f475072aefe032fff1dc058df3e56c1e7062fa resulted in green build, but lot of tests have failed showing that this needs to be looked at by someone who understands the code.

diff --git a/src/common/config/session-config.c b/src/common/config/session-config.c
index bb4e9fe..413812b 100644
--- a/src/common/config/session-config.c
+++ b/src/common/config/session-config.c
@@ -429,7 +429,7 @@ static xmlChar *encode_string(const char *in_str)
                goto end;
        }

-       ret = handler->input(out_str, &out_len, (const xmlChar *) in_str, &in_len);
+       ret = handler->input.legacyFunc(out_str, &out_len, (const xmlChar *) in_str, &in_len);
        if (ret < 0) {
                xmlFree(out_str);
                out_str = NULL;

No data to display

Actions

Also available in: Atom PDF