Skip to content

Fix 599 (Ubuntu 26.04 compat) by statically linking libxml2.so - #605

Open
Patrick Nelson (plnelson) wants to merge 2 commits into
mainfrom
panelson-microsoft-fix-599
Open

Fix 599 (Ubuntu 26.04 compat) by statically linking libxml2.so#605
Patrick Nelson (plnelson) wants to merge 2 commits into
mainfrom
panelson-microsoft-fix-599

Conversation

@plnelson

@plnelson Patrick Nelson (plnelson) commented Aug 19, 2026

Copy link
Copy Markdown
Member
Summary

Fix compatibility with Ubuntu 26.04 by statically linking 26.04
This fixes 26.04 support while maintaining compatibility with older versions

Change Log
  • Changed CMakeLists to statically link libxml2.so
  • Add THIRD-PARTY-NOTICES.txt since we are now bundling libxml2
Test Methodology

Verify build and Nagler on both Ubuntu 24.04 and 26.04

@plnelson

Copy link
Copy Markdown
Member Author

Wiktor Kopec (@wiktork)

Comment thread THIRD-PARTY-NOTICES.txt
Comment thread src/CMakeLists.txt

if(CMAKE_SYSTEM_NAME STREQUAL Linux)
target_link_options(LibXml2 INTERFACE
"LINKER:--exclude-libs,libxml2.a"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't entirely understand this exclusion

Comment thread src/CMakeLists.txt

FetchContent_Declare(
libxml2
URL https://download.gnome.org/sources/libxml2/2.15/libxml2-2.15.3.tar.xz

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this be a netiso issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

libInstrumentationEngine.so fails to load on Ubuntu 26.04 (works on 24.04)

3 participants