Error: undefined symbol

Hello,
All of a sudden, i receive the following error when trying to convert an xlsx to a pdf ( libreoffice --headless --convert-to csv --outdir / /test.xls ):

/usr/lib/libreoffice/program/soffice.bin: symbol lookup error: /usr/lib/libreoffice/program/liborcus-parser-0.18.so.0: undefined symbol: _ZNSt10filesystem7__cxx114path14_M_split_cmptsEv

I tried to fix by reinstalling the LibreOffice, to no avail:

sudo apt-get remove --purge libreoffice*
sudo apt-get clean
sudo apt-get autoremove
sudo apt-get install LibreOffice

When i run apt-cache policy liborcus it returns
N: Unable to locate package liborcus

The tying to install it sudo apt-get install liborcus-0.13-0 ( it won’t let me deploy something higher, yet in the error it says version 0.18, it returns:

Reading package lists... Done
Building dependency tree
Reading state information... Done
liborcus-0.13-0 is already the newest version (0.13.4-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Distributor ID: Ubuntu
Description: Ubuntu 18.04.6 LTS
Release: 18.04
Codename: bionic

What could be wrong?

Thanks

Please change the tag. “base” is the tag for the database component for LibreOffice. And this thread has nothing to do with Base.

And since you work on .xlsx, I doubt it is related to writer. So, please, replace writer and common with calc and, if you deem it appropriate, headless.


LO release version?

That mangled C++ symbol corresponds to std::filesystem::__cxx11::path::_M_split_cmpts() so if that happened “all of a sudden” then you likely deinstalled some C++ compiler system library.
/usr/lib/libreoffice/program/liborcus-parser-0.18.so.0 is a bundled library so of course fiddling around with the system library doesn’t change anything.

How did you even install (and which LO version obtained from where) on your ancient Ubuntu 18.04?

I really changed nothing on the server, so it must be related to the automatic updates that serverpilot i use to manage my Ubuntu. Thing is, when check the liborcus-parser on my system, it reports a version 0.13, yet the error mention a 0.18

Well then ask your “serverpilot” where it pulls the updates from and why it installs an update that apparently is not suitable.

For the liborcus 0.13 vs 0.18 difference, as I said, 0.13 is the system library and 0.18 is the bundled library that apparently also expects a newer C++ system library, which you don’t have.

You might have to install at least g++-9 that (hopefully) comes with a newer libstdc++, if Ubuntu 18 doesn’t provide other means for a suitable libstdc++fs (I don’t know).

Same problem here. Can’t open Calc files using GUI, can’t convert to PDF headless.

cat /etc/issue
Linux Mint 19.3 Tricia \n \l

Happened after this upgrade:

Upgrade: libreoffice-math:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), liblibreoffice-java:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), uno-libs-private:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-l10n-zh-cn:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libridl-java:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-l10n-zh-tw:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libuno-salhelpergcc3-3:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libunoil-java:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-gtk3:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-java-common:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-uiconfig-base:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libjuh-java:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-base:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-core:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-l10n-en-gb:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-uiconfig-writer:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-l10n-en-za:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-uiconfig-common:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-l10n-de:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-l10n-es:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-l10n-fr:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-l10n-it:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-l10n-pt:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-l10n-ru:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), ure-java:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), python3-uno:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libuno-cppuhelpergcc3-3:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-help-pt-br:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-base-core:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libuno-purpenvhelpergcc3-3:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-impress:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-help-de:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-help-es:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-help-fr:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-help-it:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-uiconfig-impress:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-help-pt:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-help-ru:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libjurt-java:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-help-common:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-style-colibre:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), ure:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-sdbc-hsqldb:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-writer:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-common:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-help-zh-cn:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-help-zh-tw:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libuno-cppu3:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), fonts-opensymbol:amd64 (4:102.12+LibO7.6.4-0ubuntu0.18.04.1~lo1, 4:102.12+LibO7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-l10n-pt-br:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libuno-sal3:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-help-en-gb:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-help-en-us:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-gnome:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-uiconfig-calc:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libunoloader-java:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-calc:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-uiconfig-draw:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-base-drivers:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-draw:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1), libreoffice-uiconfig-math:amd64 (4:7.6.4-0ubuntu0.18.04.1~lo1, 4:7.6.5-0ubuntu0.18.04.1~lo1)

My PPA is:

deb http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic main
deb-src http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic main

Just to add, Mint 19.3 is based on Ubuntu Bionic 18.04. I think the libreoffice (official, hopefully) PPA compiled the packages wrong.

I can confirm the same problem. Ubuntu 18.04 with official libreoffice PPA, after the last version upgrade (7.6.5.2), my CALC stops working. If I run terminal command to start calc (soffice --calc), i get this error:

/usr/lib/libreoffice/program/soffice.bin: symbol lookup error: /usr/lib/libreoffice/program/liborcus-parser-0.18.so.0: undefined symbol: _ZNSt10filesystem7__cxx114path14_M_split_cmptsEv

Please contact your friendly LibreOffice PPA maintainers, they seem to be building against a libstdc++ that is not available in a standard Ubuntu 18.04 installation, and hence also not on Mint 19.3

The package maintainers have reinstated the previous version today.
I was able to fix this with:

apt-get remove libreoffice-core libreoffice-core-nogui
apt-get autoremove
apt install libreoffice=4:7.6.4-0ubuntu0.18.04.1~lo1

Looking forward for a permanent fix before I update the package again.

An update to 4:7.6.5-0ubuntu0.18.04.1~lo2 may fix that, see Calc crashes on open under Ubunut 18.04 - #4 by let.

1 Like