Bug 159502 - missing XML2 version
Summary: missing XML2 version
Status: CLOSED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Installation (show other bugs)
Version:
(earliest affected)
24.2.0.3 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Michael Stahl (allotropia)
URL:
Whiteboard: target:24.8.0 target:24.2.2 target:7.6.6
Keywords:
: 159784 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-02-01 10:50 UTC by roberto.stroili
Modified: 2024-09-18 11:07 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description roberto.stroili 2024-02-01 10:50:54 UTC
After installing Libreoffice24_02 on AlmaLinux 9 the program does not run because of a problem with a missing version information:

libreoffice24.2 
/opt/libreoffice24.2/program/soffice.bin: /usr/lib64/libxml2.so.2: version `LIBXML2_GLOBAL_VARIABLES' not found (required by /opt/libreoffice24.2/program/libmergedlo.so)
/opt/libreoffice24.2/program/soffice.bin: /usr/lib64/libxml2.so.2: version `LIBXML2_GLOBAL_VARIABLES' not found (required by /opt/libreoffice24.2/program/libraptor2-lo.so.0)


My OS is AlmaLinux 9.3:

uname -a
Linux nbstroili 5.14.0-362.18.1.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jan 29 07:05:48 EST 2024 x86_64 x86_64 x86_64 GNU/Linux

and I have installed the following version of libxml2:

dnf list installed  "*xml2*"
Installed Packages
libxml2.x86_64                         2.9.13-5.el9_3                 @baseos   
libxml2-devel.x86_64                   2.9.13-5.el9_3                 @appstream
mingw64-libxml2.noarch                 2.9.14-1.el9                   @epel     
python3-libxml2.x86_64                 2.9.13-5.el9_3                 @baseos 

Best regards

   Roberto
Comment 1 Michael Stahl (allotropia) 2024-02-01 11:20:34 UTC
iirc LIBXML2_GLOBAL_VARIABLES is something i added to the bundled libxml2 to appease Solaris ld some 15 years ago... but TDF releases should use the system libxml2 on Linux, so it should never use that patched map file and it's entirely unclear how it can have this dependency?
Comment 2 roberto.stroili 2024-02-05 15:30:16 UTC
the same problem happens on CentOS 7 (Linux pclab3.pd.infn.it 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux)
Comment 3 roberto.stroili 2024-02-15 10:21:19 UTC
Tried release 24.2.1.1, still the same problem....
Comment 4 Christian Lohmaier 2024-02-15 12:07:27 UTC
To make sure: are you taking about TDF provided builds? If so, those do ship libxml2 and both soffice.bin as well as libraptor individually are supposed to be using that version:

$ ldd /opt/libreoffice24.2/program/soffice.bin  |grep xml2
	libxml2.so.2 => /opt/libreoffice24.2/program/libxml2.so.2 (0x00007f96440a5000)
$ ldd /opt/libreoffice24.2/program/libraptor2-lo.so.0 |grep xml2
	libxml2.so.2 => /opt/libreoffice24.2/program/libxml2.so.2 (0x00007fb4ab1f1000)

it's provided in the libreoffice24.2-ure rpm that in turn is required by the libobasis24.2-core one.

So what's the output of 

rpm -V libreoffice24.2-ure libobasis24.2-core

do you have libxml2.so.2 in LO's program directory?
Comment 5 roberto.stroili 2024-02-15 12:37:01 UTC
I have libxml2-devel installed and this clashes with LibreOffice one:

 ➤ ldd /opt/libreoffice24.2/program/soffice.bin  |grep xml2
/opt/libreoffice24.2/program/soffice.bin: /usr/lib64/libxml2.so.2: version `LIBXML2_GLOBAL_VARIABLES' not found (required by /opt/libreoffice24.2/program/libmergedlo.so)
/opt/libreoffice24.2/program/soffice.bin: /usr/lib64/libxml2.so.2: version `LIBXML2_GLOBAL_VARIABLES' not found (required by /opt/libreoffice24.2/program/libraptor2-lo.so.0)
	libxml2.so.2 => /usr/lib64/libxml2.so.2 (0x00007f2e37a77000)


➤ rpm -V libreoffice24.2-ure libobasis24.2-core

no output


and yes, libxml2.so is present in LibreOffice directory
Comment 6 Commit Notification 2024-02-16 09:39:18 UTC
Michael Stahl committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/6f6364e572a0570fb097fec098314bffadc5b474

tdf#159502 remove --without-system-libxml from LibreOfficeLinux.conf

It will be available in 24.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 7 Commit Notification 2024-02-16 09:39:20 UTC
Michael Stahl committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/eebdda4e221327cae5a9177893394819ca510d5f

tdf#159502 libxml2: apply Solaris ld patch only on Solaris

It will be available in 24.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 8 Michael Stahl (allotropia) 2024-02-16 09:52:15 UTC
well there i was thinking that we have not shipped libxml2.so.2 with LibreOffice on Linux for the last 10 years but i was completely wrong because i didn't look at distro-configs/LibreOfficeLinux.conf

hope it should be fixed on master
Comment 9 Julien Nabet 2024-02-20 10:12:46 UTC
*** Bug 159784 has been marked as a duplicate of this bug. ***
Comment 10 Steve Kelem 2024-02-22 04:42:28 UTC
I downloaded LibreOfficeDev_24.8.0.0.alpha0_Linux_x86-64_deb.tar.gz and installed it. I then moved it to /opt/libreoffice/libreoffice24.8, and tried running:
% /opt/libreoffice/libreoffice24.8/program/scalc 
/local/opt/libreoffice/libreoffice24.8/program/soffice.bin: /lib/x86_64-linux-gnu/libxml2.so.2: version `LIBXML2_GLOBAL_VARIABLES' not found (required by /opt/libreoffice/current/program/libmergedlo.so)
/local/opt/libreoffice/libreoffice24.8/program/soffice.bin: /lib/x86_64-linux-gnu/libxml2.so.2: version `LIBXML2_GLOBAL_VARIABLES' not found (required by /opt/libreoffice/current/program/libraptor2-lo.so.0)
Comment 11 Steve Kelem 2024-02-22 06:59:10 UTC
Revision...

I fixed LD_LIBRARY_PATH so it includes /opt/libreoffice24.2/program/
and now it works!
Yay!
Comment 12 Steve Kelem 2024-02-22 07:25:07 UTC
Success was premature...

When I run scalc or swriter, I get:
The application cannot be started.
The component manager is not available.
("Cannot open uno ini file:///lib/x86_64-linux-gnu/unorc at ./cppuhelper/source/defaultbootstrap.cxx:53")
warn:desktop:228335:228335:/home/tdf/lode/jenkins/workspace/lo_gerrit/tb/src_master/desktop/source/app/crashreport.cxx:61: minidump generated: /tmp/91944bee-e432-41d9-664d3ba0-374c3ed7.dmp

I have no idea what /home/tdf is. It's not on my system.

I moved ~/.config/libreoffice to a backup folder.

If I unsetenv LD_LIBRARY_PATH, it gets a bit better. scalc opens, but the following errors appear in the Console:
% scalc
warn:unotools.misc:229483:229483:unotools/source/misc/mediadescriptor.cxx:372: url: 'private:factory/scalc' com.sun.star.ucb.ContentCreationException message: "No Content Provider available for URL: private:factory/scalc at /home/tdf/lode/jenkins/workspace/lo_gerrit/tb/src_master/ucbhelper/source/client/content.cxx:208" eError: (com.sun.star.ucb.ContentCreationError) NO_CONTENT_PROVIDER
warn:vcl.builder:229483:229483:vcl/source/window/builder.cxx:3496: probably need to implement NotebookBarAddonsMenuMergePoint
warn:vcl:229483:229483:vcl/source/image/ImplImage.cxx:93: Failed to load scaled image from cmd/sc_insertsparkline.png at 1
warn:vcl:229483:229483:vcl/source/image/ImplImage.cxx:117: Failed to load stock icon cmd/sc_insertsparkline.png
warn:vcl:229483:229483:vcl/source/window/builder.cxx:3664: priority set for not supported item
warn:vcl.builder:229483:229483:vcl/source/window/builder.cxx:3858: unknown packing: tab-fill
warn:vcl.schedule:229483:229483:vcl/source/app/scheduler.cxx:610: Stop the task before changing the priority, as it will just change after the task was scheduled with the old prio!
Comment 13 Commit Notification 2024-03-01 10:58:58 UTC
Michael Stahl committed a patch related to this issue.
It has been pushed to "libreoffice-24-2":

https://git.libreoffice.org/core/commit/7f939fee0ee20a63272267fbf6cecdb034e1bbd6

tdf#159502 libxml2: apply Solaris ld patch only on Solaris

It will be available in 24.2.2.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 14 Commit Notification 2024-03-01 11:01:11 UTC
Michael Stahl committed a patch related to this issue.
It has been pushed to "libreoffice-7-6":

https://git.libreoffice.org/core/commit/1f8e5f673f7dd0cd531b3fb0a5cb5a7d2535b36f

tdf#159502 libxml2: apply Solaris ld patch only on Solaris

It will be available in 7.6.6.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 15 Commit Notification 2024-03-07 10:55:28 UTC
Michael Stahl committed a patch related to this issue.
It has been pushed to "libreoffice-24-2":

https://git.libreoffice.org/core/commit/b20f17ce082f30b0a2afd0d311f63f6b2ad8a99a

tdf#159502 remove --without-system-libxml from LibreOfficeLinux.conf

It will be available in 24.2.2.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 16 Buovjaga 2024-03-09 19:32:41 UTC
(In reply to Steve Kelem from comment #12)
> Success was premature...
> 
> When I run scalc or swriter, I get:
> The application cannot be started.
> The component manager is not available.
> ("Cannot open uno ini file:///lib/x86_64-linux-gnu/unorc at
> ./cppuhelper/source/defaultbootstrap.cxx:53")
> warn:desktop:228335:228335:/home/tdf/lode/jenkins/workspace/lo_gerrit/tb/
> src_master/desktop/source/app/crashreport.cxx:61: minidump generated:
> /tmp/91944bee-e432-41d9-664d3ba0-374c3ed7.dmp
> 
> I have no idea what /home/tdf is. It's not on my system.
> 
> I moved ~/.config/libreoffice to a backup folder.
> 
> If I unsetenv LD_LIBRARY_PATH, it gets a bit better. scalc opens, but the
> following errors appear in the Console:
> % scalc
> warn:unotools.misc:229483:229483:unotools/source/misc/mediadescriptor.cxx:
> 372: url: 'private:factory/scalc' com.sun.star.ucb.ContentCreationException
> message: "No Content Provider available for URL: private:factory/scalc at
> /home/tdf/lode/jenkins/workspace/lo_gerrit/tb/src_master/ucbhelper/source/
> client/content.cxx:208" eError: (com.sun.star.ucb.ContentCreationError)
> NO_CONTENT_PROVIDER
> warn:vcl.builder:229483:229483:vcl/source/window/builder.cxx:3496: probably
> need to implement NotebookBarAddonsMenuMergePoint
> warn:vcl:229483:229483:vcl/source/image/ImplImage.cxx:93: Failed to load
> scaled image from cmd/sc_insertsparkline.png at 1
> warn:vcl:229483:229483:vcl/source/image/ImplImage.cxx:117: Failed to load
> stock icon cmd/sc_insertsparkline.png
> warn:vcl:229483:229483:vcl/source/window/builder.cxx:3664: priority set for
> not supported item
> warn:vcl.builder:229483:229483:vcl/source/window/builder.cxx:3858: unknown
> packing: tab-fill
> warn:vcl.schedule:229483:229483:vcl/source/app/scheduler.cxx:610: Stop the
> task before changing the priority, as it will just change after the task was
> scheduled with the old prio!

Note that warnings are not errors.
Comment 17 Amos Keister 2024-04-15 09:55:17 UTC
(In reply to Commit Notification from comment #15)
> Michael Stahl committed a patch related to this issue.
> It has been pushed to "libreoffice-24-2":
> 
> https://git.libreoffice.org/core/commit/ https://geometry-dash-online.com
> b20f17ce082f30b0a2afd0d311f63f6b2ad8a99a
> 
> tdf#159502 remove --without-system-libxml from LibreOfficeLinux.conf
> 
> It will be available in 24.2.2.
> 
> The patch should be included in the daily builds available at
> https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
> information about daily builds can be found at:
> https://wiki.documentfoundation.org/Testing_Daily_Builds
> 
> Affected users are encouraged to test the fix and report feedback.

Thanks for the answer.
Comment 18 roberto.stroili 2024-04-15 15:14:47 UTC
(In reply to Commit Notification from comment #15)
> Michael Stahl committed a patch related to this issue.
> It has been pushed to "libreoffice-24-2":
> 
> https://git.libreoffice.org/core/commit/
> b20f17ce082f30b0a2afd0d311f63f6b2ad8a99a
> 
> tdf#159502 remove --without-system-libxml from LibreOfficeLinux.conf
> 
> It will be available in 24.2.2.
> 
> The patch should be included in the daily builds available at
> https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
> information about daily builds can be found at:
> https://wiki.documentfoundation.org/Testing_Daily_Builds
> 
> Affected users are encouraged to test the fix and report feedback.

I don't see the problem any longer.
Thanks

   Roberto
Comment 19 sarahlison 2024-05-09 06:37:07 UTC
(In reply to roberto.stroili from comment #0)
> After installing Libreoffice24_02 on AlmaLinux 9 the program does not run
> because of a problem with a missing version information:
> 
> libreoffice24.2 
> /opt/libreoffice24.2/program/soffice.bin: /usr/lib64/libxml2.so.2: version
> `LIBXML2_GLOBAL_VARIABLES' not found (required by
> /opt/libreoffice24.2/program/libmergedlo.so)
> /opt/libreoffice24.2/program/soffice.bin: /usr/lib64/libxml2.so.2: version
> `LIBXML2_GLOBAL_VARIABLES' not found (required by
> /opt/libreoffice24.2/program/libraptor2-lo.so.0)
> 
> 
> My OS is AlmaLinux 9.3:
> 
> uname -a
> Linux nbstroili 5.14.0-362.18.1.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jan
> 29 07:05:48 EST 2024 x86_64 x86_64 x86_64 GNU/Linux
> 
> and I have installed the following version of libxml2:
> 
> dnf list installed  "*xml2*"
> Installed Packages
> libxml2.x86_64                         2.9.13-5.el9_3                
> @baseos   
> libxml2-devel.x86_64                   2.9.13-5.el9_3                
> @appstream
> mingw64-libxml2.noarch                 2.9.14-1.el9                   @epel 
> 
> python3-libxml2.x86_64                 2.9.13-5.el9_3                
> @baseos 
> 
> Best regards
> 
>    Roberto

(In reply to roberto.stroili from comment #18)
> (In reply to Commit Notification from comment #15)
> > Michael Stahl committed a patch related to this issue.
> > It has been pushed to "libreoffice-24-2":
> > 
> > https://git.libreoffice.org/core/commit/
> > b20f17ce082f30b0a2afd0d311f63f6b2ad8a99a
> > 
> > tdf#159502 remove --without-system-libxml from LibreOfficeLinux.conf
> > 
> > It will be available in 24.2.2.
> > 
> > The patch should be included in the daily builds available at
> > https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
> > information about daily builds can be found at:
> > https://wiki.documentfoundation.org/Testing_Daily_Builds/https://bobtherobber.io
> > 
> > Affected users are encouraged to test the fix and report feedback.
> 
> I don't see the problem any longer.
> Thanks
> 
>    Roberto

l problems have been resolved
Comment 20 sarahlison 2024-05-09 06:39:42 UTC
(In reply to roberto.stroili from comment #0)
> After installing Libreoffice24_02 on AlmaLinux 9 the program does not run
> because of a problem with a missing version information:
> 
> libreoffice24.2 
> /opt/libreoffice24.2/program/soffice.bin: /usr/lib64/libxml2.so.2: version
> `LIBXML2_GLOBAL_VARIABLES' not found (required by
> /opt/libreoffice24.2/program/libmergedlo.so)
> /opt/libreoffice24.2/program/soffice.bin: /usr/lib64/libxml2.so.2: version
> `LIBXML2_GLOBAL_VARIABLES' not found (required by
> /opt/libreoffice24.2/program/libraptor2-lo.so.0)
> 
> 
> My OS is AlmaLinux 9.3:
> 
> uname -a
> Linux nbstroili 5.14.0-362.18.1.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jan
> 29 07:05:48 EST 2024 x86_64 x86_64 x86_64 GNU/Linux
> 
> and I have installed the following version of libxml2:
> 
> dnf list installed  "*xml2*"
> Installed Packages
> libxml2.x86_64                         2.9.13-5.el9_3                
> @baseos   
> libxml2-devel.x86_64                   2.9.13-5.el9_3                
> @appstream
> mingw64-libxml2.noarch                 2.9.14-1.el9                   @epel 
> 
> python3-libxml2.x86_64                 2.9.13-5.el9_3                
> @baseos 
> 
> Best regards
> 
>    Roberto

(In reply to roberto.stroili from comment #18)
> (In reply to Commit Notification from comment #15)
> > Michael Stahl committed a patch related to this issue.
> > It has been pushed to "libreoffice-24-2":
> > 
> > https://git.libreoffice.org/core/commit/
> > b20f17ce082f30b0a2afd0d311f63f6b2ad8a99a
> > 
> > tdf#159502 remove --without-system-libxml from LibreOfficeLinux.conf
> > 
> > It will be available in 24.2.2.
> > 
> > The patch should be included in the daily builds available at
> > https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
> > information about daily builds can be found at:
> > https://wiki.documentfoundation.org/Testing_Daily_Builds https://bobtherobber.io
> > 
> > Affected users are encouraged to test the fix and report feedback.
> 
> I don't see the problem any longer.
> Thanks
> 
>    Roberto

l problems have been resolved
Comment 21 Danny Shannon 2024-09-18 03:09:23 UTC Comment hidden (spam)