Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dep: update libxml to 2.12.0 (with explicit -lpthread linkline) #3026

Closed
wants to merge 6 commits into from

Conversation

flavorjones
Copy link
Member

@flavorjones flavorjones commented Nov 17, 2023

What problem is this PR intended to solve?

Closes #3031

update libxml to 2.12.0 and libxslt to 1.1.39, though note that libxslt was also previously updated to 1.1.39 on the v1.15.x branch (#3025)

This approach attempts to explicitly link with -lpthread to handle libxml2 changes to thread local storage. See #3031 for more discussion.

@flavorjones

This comment was marked as outdated.

because extconf contains the recipe by which libxml2/libxslt are built
libxml 2.12 has a hard dependency on pthread symbols on older systems
with glibc version < 2.34.

note that we also remove the patch for libxml threaded support from
2.11, since we're now explicitly specifying libpthread.
because link-time behavior is important for the libpthread changes
being made.
@flavorjones
Copy link
Member Author

flavorjones commented Nov 18, 2023

OK, so just a summary of what's going on in this PR as of 985d15b ...

The error on musl systems is:

Error loading shared library ld-linux-x86-64.so.2: No such file or directory

which I think is being pulled in by explicitly linking to libpthread on a glibc system.

See #3031 for discussion on this and alternative approaches.

@flavorjones flavorjones changed the title dep: update libxml to 2.12.0 and libxslt to 1.1.39 dep: update libxml to 2.12.0 (with explicit -lpthread linkline) Nov 18, 2023
@flavorjones
Copy link
Member Author

Closing because #3032 is a more promising approach.

@flavorjones flavorjones deleted the fj-dep-libxml-2.12.0 branch November 18, 2023 20:35
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.

Update to libxml 2.12.0 or later
1 participant