You are not logged in.

#1 2015-12-28 10:53:09

mm___
Member
From: Konstanz, Germany
Registered: 2015-08-03
Posts: 21

[SOLVED] C++ library not found (GLIBCXX_3.4.20) - Apps won't start

Hello,

I recently updated my system after a two-weeks break from the PC. I started to notice that a few applications won't start, giving out errors due to C++ library.
When I try to open a pdf (with any document viewer) I get the following error:

[maxwell]Downloads» zathura Documento.pdf 
error: could not load plugin /usr/lib/zathura/pdf.so (/opt/copy/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/lib/libpoppler-glib.so.8))
error: Unknown file type: 'application/pdf'

The same happens with other apps, such as Clementine, Brasero, etc... so I guess the problem is global. It seems weird that the C++ library is searched in the Copy directory (/opt/copy/). By the way, Copy works just fine.
Is there a problem with the library linking? How can I fix it? I post the following output hoping that it will help:

[maxwell]~» strings /usr/lib/libstdc++.so.6 | grep GLIBC
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_3.4.20
GLIBCXX_3.4.21
GLIBC_2.3
GLIBC_2.2.5
GLIBC_2.14
GLIBC_2.4
GLIBC_2.18
GLIBC_2.17
GLIBC_2.3.2
GLIBCXX_DEBUG_MESSAGE_LENGTH

Last edited by mm___ (2015-12-28 13:36:58)

Offline

#2 2015-12-28 11:11:40

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: [SOLVED] C++ library not found (GLIBCXX_3.4.20) - Apps won't start


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2015-12-28 11:25:59

mm___
Member
From: Konstanz, Germany
Registered: 2015-08-03
Posts: 21

Re: [SOLVED] C++ library not found (GLIBCXX_3.4.20) - Apps won't start

[maxwell]~» ./abi.sh        
copy-agent
dropbox
google-chrome
vmd

What should I do now with the above packages? They actually all work fine.

Offline

#4 2015-12-28 11:42:26

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: [SOLVED] C++ library not found (GLIBCXX_3.4.20) - Apps won't start

You might have to recompile vmd, but the others are all precompiled, so there's nothing you can do for them.

Rereading the error, zathura is trying to use /opt/copy/libstdc++.so.6, so which isn't the system library. Remove /opt/copy from your linker path.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2015-12-28 11:48:18

mm___
Member
From: Konstanz, Germany
Registered: 2015-08-03
Posts: 21

Re: [SOLVED] C++ library not found (GLIBCXX_3.4.20) - Apps won't start

Yeah, I thought that might be the problem. How do I remove it from the linker path? Sorry for my inexperience. As a test, I temporarily moved the /opt/copy directory somewhere else, and all applications worked.

Edit: if you mean the variable LD_LIBRARY_PATH, I did not set up that variable.

Last edited by mm___ (2015-12-28 11:49:12)

Offline

#6 2015-12-28 13:15:16

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,615

Re: [SOLVED] C++ library not found (GLIBCXX_3.4.20) - Apps won't start

Zathura from [community] doesn't use /opt at all, where did you get your zathura from ?

Last edited by Lone_Wolf (2015-12-28 13:15:30)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#7 2015-12-28 13:20:40

mm___
Member
From: Konstanz, Germany
Registered: 2015-08-03
Posts: 21

Re: [SOLVED] C++ library not found (GLIBCXX_3.4.20) - Apps won't start

It is not a zathura issue. I installed Copy in the /opt/copy directory: the file /opt/copy/libstdc++.so.6 is actually a link to /usr/lib/libstdc++.so.6.

It looks like the linker looks for that library in the copy directory; other applications needing libstdc++.so.6 have the same issue. As I said, if I remove /opt/copy directory everything works fine, since I believe the library is loaded from the correct path (/usr/lib).

Last edited by mm___ (2015-12-28 13:21:59)

Offline

#8 2015-12-28 13:35:49

mm___
Member
From: Konstanz, Germany
Registered: 2015-08-03
Posts: 21

Re: [SOLVED] C++ library not found (GLIBCXX_3.4.20) - Apps won't start

Update: looks like reinstalling copy-agent fixed it. Thanks a lot Lone_Wolf and WorMzy!

Offline

Board footer

Powered by FluxBB