* lttng-tools-2.14.0-rc1: fails to compile with libxml2-2.14.4
@ 2025-06-17 14:15 Norbert Lange via lttng-dev
2025-06-17 14:19 ` Kienan Stewart via lttng-dev
2025-06-17 14:50 ` Kienan Stewart via lttng-dev
0 siblings, 2 replies; 5+ messages in thread
From: Norbert Lange via lttng-dev @ 2025-06-17 14:15 UTC (permalink / raw)
To: lttng-dev
/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
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: lttng-tools-2.14.0-rc1: fails to compile with libxml2-2.14.4 2025-06-17 14:15 lttng-tools-2.14.0-rc1: fails to compile with libxml2-2.14.4 Norbert Lange via lttng-dev @ 2025-06-17 14:19 ` Kienan Stewart via lttng-dev 2025-06-17 14:50 ` Kienan Stewart via lttng-dev 1 sibling, 0 replies; 5+ messages in thread From: Kienan Stewart via lttng-dev @ 2025-06-17 14:19 UTC (permalink / raw) To: Norbert Lange, lttng-dev 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: lttng-tools-2.14.0-rc1: fails to compile with libxml2-2.14.4 2025-06-17 14:15 lttng-tools-2.14.0-rc1: fails to compile with libxml2-2.14.4 Norbert Lange via lttng-dev 2025-06-17 14:19 ` Kienan Stewart via lttng-dev @ 2025-06-17 14:50 ` Kienan Stewart via lttng-dev 2025-06-17 15:08 ` Norbert Lange via lttng-dev 1 sibling, 1 reply; 5+ messages in thread From: Kienan Stewart via lttng-dev @ 2025-06-17 14:50 UTC (permalink / raw) To: Norbert Lange, lttng-dev Hi Norbert, 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. > Regarding the "necessary flags" for libxml2 when building the lttng binary, could you indicate clearly the error you have? All uses of libxml2 are via libconfig, and the libxml2 LD flags are added to lttng via libconfig.la. When performing the final link of lttng, I see `-lxml2` in the command line. thanks, kienan > Regards, Norbert ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: lttng-tools-2.14.0-rc1: fails to compile with libxml2-2.14.4 2025-06-17 14:50 ` Kienan Stewart via lttng-dev @ 2025-06-17 15:08 ` Norbert Lange via lttng-dev 2025-06-17 17:29 ` Kienan Stewart via lttng-dev 0 siblings, 1 reply; 5+ messages in thread From: Norbert Lange via lttng-dev @ 2025-06-17 15:08 UTC (permalink / raw) To: Kienan Stewart; +Cc: lttng-dev Am Di., 17. Juni 2025 um 16:50 Uhr schrieb Kienan Stewart <kstewart@efficios.com>: > > Hi Norbert, > > 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. > > > > Regarding the "necessary flags" for libxml2 when building the lttng > binary, could you indicate clearly the error you have? > > All uses of libxml2 are via libconfig, and the libxml2 LD flags are > added to lttng via libconfig.la. > > When performing the final link of lttng, I see `-lxml2` in the command line. > > thanks, > kienan > > Regards, Norbert > The error is, that I don't see -lxml2 in the commandline (unless I use the global LDFLAGS), libconfig.la does not contain the flags either. However, the Makefiles all contain them: src/common/Makefile:libxml2_CFLAGS = -I/tmp/dev_develop_libxml2/usr/include/libxml2 src/common/Makefile:libxml2_LIBS = /tmp/dev_develop_libxml2/usr/local/lib/libxml2.so I dont use pkgconf, I set the variables directly (libxml2 is not a part of our production filesystem + compiler and right now I just barely managed to compile lttng somehow). Regards, Norbert ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: lttng-tools-2.14.0-rc1: fails to compile with libxml2-2.14.4 2025-06-17 15:08 ` Norbert Lange via lttng-dev @ 2025-06-17 17:29 ` Kienan Stewart via lttng-dev 0 siblings, 0 replies; 5+ messages in thread From: Kienan Stewart via lttng-dev @ 2025-06-17 17:29 UTC (permalink / raw) To: Norbert Lange; +Cc: lttng-dev Hi Norbert, thanks for the context. Using pkg-config is the expected method to find the link flags. It sounds like you are building in an unsupported environment, but here are some options you can try: * When configuring, use: `libxml2_LIBS=-lxml2 ./configure` * Use pkg-config and have an entry `PKG_CONFIG_PATH` for the directory containing the .pc for your libxml build * Use `LDFLAGS` as you are doing thanks, kienan On 6/17/25 11:08 AM, Norbert Lange wrote: > Am Di., 17. Juni 2025 um 16:50 Uhr schrieb Kienan Stewart > <kstewart@efficios.com>: >> >> Hi Norbert, >> >> 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. >>> >> >> Regarding the "necessary flags" for libxml2 when building the lttng >> binary, could you indicate clearly the error you have? >> >> All uses of libxml2 are via libconfig, and the libxml2 LD flags are >> added to lttng via libconfig.la. >> >> When performing the final link of lttng, I see `-lxml2` in the command line. >> >> thanks, >> kienan >>> Regards, Norbert >> > > The error is, that I don't see -lxml2 in the commandline (unless I use > the global LDFLAGS), libconfig.la does not contain the flags either. > However, the Makefiles all contain them: > > src/common/Makefile:libxml2_CFLAGS = > -I/tmp/dev_develop_libxml2/usr/include/libxml2 > src/common/Makefile:libxml2_LIBS = > /tmp/dev_develop_libxml2/usr/local/lib/libxml2.so > > I dont use pkgconf, I set the variables directly (libxml2 is not a > part of our production filesystem + compiler and right now I just > barely managed to compile lttng somehow). > > Regards, Norbert ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-06-17 17:29 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2025-06-17 14:15 lttng-tools-2.14.0-rc1: fails to compile with libxml2-2.14.4 Norbert Lange via lttng-dev 2025-06-17 14:19 ` Kienan Stewart via lttng-dev 2025-06-17 14:50 ` Kienan Stewart via lttng-dev 2025-06-17 15:08 ` Norbert Lange via lttng-dev 2025-06-17 17:29 ` Kienan Stewart via lttng-dev
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox