LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Libreoffice not working after May 11st 2020 Slack64-current upgrade (https://www.linuxquestions.org/questions/slackware-14/libreoffice-not-working-after-may-11st-2020-slack64-current-upgrade-4175675033/)

gauchao 05-11-2020 04:35 PM

Libreoffice not working after May 11st 2020 Slack64-current upgrade
 
Libreoffice 6.4.3 (Slackware -current 64) from AlienBOB's repository.

Everything was working fine, until system has been upgraded to May 11st changes. Slackware 64-current almost out-of-the-box.

Error message from console:

Quote:

bash-5.0$ libreoffice
Warning: failed to read path from javaldx
/usr/lib64/libreoffice/program/soffice.bin: error while loading shared libraries: libboost_locale.so.1.72.0: cannot open shared object file: No such file or directory
And then, back to the prompt.

Any ideas? Thank you!

hitest 05-11-2020 04:41 PM

Quote:

Originally Posted by gauchao (Post 6121913)
Libreoffice 6.4.3 (Slackware -current 64) from AlienBOB's repository.

Everything was working fine, until system has been upgraded to May 11st changes. Slackware 64-current almost out-of-the-box.

I have the same experience. I'm using Calligra Words until this gets sorted out.

kgha 05-11-2020 04:44 PM

It's the upgraded boost package that causes this. Install AlienBob's latest boost-compat package and you're good.

Paulo2 05-11-2020 04:48 PM

This is due to the libboost upgrade.
A workaround is to create some symlinks, libboost_locale, libboost_system, libboost_iostreams and libboost_filesystem,
in other place than /usr/lib64 to not polute the system,
then run LibreOffice with 'LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path-to-links libreoffice'

I don't know if this has side effects on LibreOffice functionality.
I had to run it today and it worked ok.

edit- kgha beat me to it and offered the proper solution :)

gauchao 05-11-2020 05:13 PM

Thank you guys! I have installed boost-compat from AlienBOB's repository and libreoffice is running again.

ehartman 05-11-2020 06:44 PM

Quote:

Originally Posted by gauchao (Post 6121925)
Thank you guys! I have installed boost-compat from AlienBOB's repository and libreoffice is running again.

This, by the way, is true for all 3rd party packages that depend on libboost.
As soon as - in this case - AlienBob has recompiled LibreOffice you won't need the boost-compat package anymore, but you may as well leave it as installed, it doesn't hurt, just contains older versions of the libboost libraries. When next time the boost package is updated you will need a NEWER version of boost-compat again, as now it will have to include the just replaced version of the library too.

kingbeowulf 05-11-2020 08:43 PM

ugh. I hate to have extra complexity. just bumped into boost-1.73 glitch compiling gridcoinresearch gui after recent updates (thought at 1st it was qt5-5.13). weird that just doing symlinks and 'LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path-to-links' works for libreoffice and gridcoinresearch; which is my stop gap for now.

gauchao 05-11-2020 09:27 PM

What does boost-compat do? And boost?

ehartman 05-11-2020 10:30 PM

Quote:

Originally Posted by gauchao (Post 6121981)
What does boost-compat do? And boost?

boost are libraries for C++ programs to implement fast standard functions for many algorithmns. It saves the developer having to REinvent the wheel:
Quote:

Use of high-quality libraries like Boost speeds initial development, results in fewer bugs, reduces reinvention-of-the-wheel, and cuts long-term maintenance costs. And since Boost libraries tend to become de facto or de jure standards, many programmers are already familiar with them.
The problem with boost is that every release is a major one, so that all applications that use them will have to be recompiled. The boost-compat packages in effect bundles some of the older releases' libraries, so that applications, compiled against those older libraries, will still work. This gives the packager of those applications a bit more time to recomnpile them, while the user can still use the application.
Pat himself will recompile all of the standard applications every time he upgrades boost, but 3rd party applications often need a bit more time.

From the -current ChangeLog:
Code:

Sat May  9 20:49:43 UTC 2020
ap/pamixer-1.4-i586-5.txz:  Rebuilt.
  Recompiled against boost-1.73.0.
kde/calligra-2.9.11-i586-35.txz:  Rebuilt.
  Recompiled against boost-1.73.0.
l/akonadi-1.13.0-i586-15.txz:  Rebuilt.
  Recompiled against boost-1.73.0.
l/boost-1.73.0-i586-1.txz:  Upgraded.
  Shared library .so-version bump.

so the major version of boost is now 73 (1.73) and several other packages had to be recompiled against it.

That's why alien created boost-compat, it contains the 72, 71, 70 as well as some of the 6x versions of those shared libraries, so non-recompiled programs still can find them.

bassmadrigal 05-11-2020 10:32 PM

Quote:

Originally Posted by gauchao (Post 6121981)
What does boost-compat do? And boost?

This is the wikipedia page on boost and I'm just going to copy the top line.

Quote:

Boost is a set of libraries for the C++ programming language that provide support for tasks and structures such as linear algebra, pseudorandom number generation, multithreading, image processing, regular expressions, and unit testing.
As for boost-compat, whenever boost is updated, it breaks anything that links against, it, including libreoffice. The boost-compat package contains the older versions that previous programs were built against so they can function until they can be recompiled. Once libreofice is updated, you should be able to remove boost-compat package until boost is upgraded again.

kgha 05-12-2020 01:44 AM

Quote:

Originally Posted by bassmadrigal (Post 6121991)
Once libreofice is updated, you should be able to remove boost-compat package until boost is upgraded again.

Provided, of course, that libreoffice is the only 3rd party application in your system that needs boost. There might be others. And there's no need to remove boost-compat, it won't create conflicts.

I always keep Eric's invaluable boost-compat, icu4c-compat and poppler-compat packages on my system to avoid nasty surprises. And here's his exhaustive explanation on what's happening when boost, icu4c, or poppler gets and upgrade, well worth storing in memory:

https://alien.slackbook.org/blog/lib...-version-bump/

bassmadrigal 05-12-2020 10:32 AM

Quote:

Originally Posted by kgha (Post 6122043)
Provided, of course, that libreoffice is the only 3rd party application in your system that needs boost. There might be others. And there's no need to remove boost-compat, it won't create conflicts.

Good point. I don't run -current and while I pretty much only see complaints about libreoffice being broken when boost is updated, it's likely there's other programs out there as well.

Luckylin 05-12-2020 11:59 AM

Thanks for the info, I use Slack current and I had this problem yesterday, with Libreoffice 6.4.3. I will use 5.1 until the correction.
:)

gauchao 05-13-2020 06:59 AM

Thank you guys for all the useful information.

Since I have migrated from 14.2 to -Current some months ago, I haven't faced this kind of library bump yet.

I will keep it in mind and watch more closely the changelogs.

Mr Eric has explained it very clearly in his blog (https://alien.slackbook.org/blog/lib...-version-bump/).

I will marked this one as solved.

Thank you and stay safe!

dchmelik 05-17-2020 04:47 AM

Installed alienBOB's boost-compat-1.73, libreoffice-6.4.3... nothing happened. What has been omitted, or what else might've gone wrong?


All times are GMT -5. The time now is 06:22 PM.