Skip to content

libxml2 2.14 recent updates and legacy - problems in Archlinux #45

@m040601

Description

@m040601

I am not sure this is a specific Archlinux problem or a generic
"libxml2" and its dependants one. It recently updated from 2.13 to 2.14.

Because "rdrview" depends on "libxml2" maybe there is something for it
"to do" ?

TLDR:

on Archlinux:

/usr/lib/libxml2.so.16 is now libxml2  2.14
/usr/lib/libxml2.so.2 is now libxml2-legacy 2.13

Fact. I am on Archlinux,

Name            : linux
Version         : 6.14.4.arch1-2

Name            : libseccomp
Version         : 2.5.6-1

Name            : libxml2
Version         : 2.14.2-2
Provides        : libxml2.so=16-64

Fact. The tool "rdrview" stoped working as of 2025-05-02,

$ rdrview 'https://en.wikipedia.org/wiki/World_wide_web'

rdrview: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory

The PKGBUILD used to install it on Archlinux,
https://aur.archlinux.org/packages/rdrview-git#comment-1022253

yay -Si rdrview-git

Name                          : rdrview-git
Version                       : 20210213.b887583-1
Depends On                    : curl  libxml2  libseccomp
Conflicts With                : rdrview
Last Modified                 : Wed 05 May 2021 04:30:52 AM WEST
Maintainer                    : parkerlreed

This PKGBUILD "rdrview-git" also doesnt build as of 2025-05-02 ,

src/rdrview.c: In function ‘save_node_to_file’:
src/rdrview.c:507:9: error: implicit declaration of function ‘xmlShellPrintNode’; did you mean ‘xmlChildrenNode’? [-Wimplicit-function-declaration]
  507 |         xmlShellPrintNode(node);
      |         ^~~~~~~~~~~~~~~~~
      |         xmlChildrenNode
make: *** [Makefile:38: src/rdrview.o] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: rdrview-git-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
rdrview-git - exit status 4

I am speculating here. Maybe it is related to the recent Archlinux official
package "libxml2" update ???

I saw a lot of official Archlinux packages being rebuilt just because
they depended "libxml2"

pacman -Si libxml2

Name            : libxml2
Version         : 2.14.2-2
Provides        : libxml2.so=16-64
Depends On      : bash  glibc  icu  readline  xz  zlib
Packager        : Jan Alexander Steffens (heftig) <heftig@archlinux.org>
Build Date      : Sat 26 Apr 2025 11:57:54 PM WEST

pacman -Ql libxml2

....
libxml2 /usr/lib/libxml2.so
libxml2 /usr/lib/libxml2.so.16
libxml2 /usr/lib/libxml2.so.16.0.2
....


locate libxml2.so

/usr/lib/libxml2.so
/usr/lib/libxml2.so.16
/usr/lib/libxml2.so.16.0.2



So there is no "libxml2.so.2" anymore in a recent "libmxl2" on Archlinux,


pacman -F libxml2.so.2

extra/libxml2-legacy 2.13.8-1
usr/lib/libxml2-legacy/lib/libxml2.so.2
usr/lib/libxml2.so.2


Seems it moved into this "legacy" one.


Any help or suggestion ?

Thank you in advance.



Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions