Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

centos7.5 version `GLIBCXX_3.4.21' not found #171

Open
xlango opened this issue Jun 9, 2020 · 4 comments
Open

centos7.5 version `GLIBCXX_3.4.21' not found #171

xlango opened this issue Jun 9, 2020 · 4 comments

Comments

@xlango
Copy link

xlango commented Jun 9, 2020

[sciter-x-api.c] Unable to load library: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/sciter/bin.lnx/x64/libsciter-gtk.so)
[sciter-x-api.c] Unable to load library: /tmp/libsciter-gtk.so: cannot open shared object file: No such file or directory

@SonnyX
Copy link

SonnyX commented Jun 9, 2020

It seems you are either missing gcc or are missing the library paths to where gcc is located.
Try running the following command (sudo may be required)

yum -y install gcc

Try running it at this point, or try using:

export LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/usr/local/lib64:/usr/lib64

and try again

@c-smile
Copy link
Owner

c-smile commented Jun 9, 2020

Hmm, it seems that I need to link C++ runtime statically on Linux too.
I do this on Windows to support everything from XP to W10.

Will do

@pravic
Copy link
Contributor

pravic commented Jun 9, 2020

@SonnyX No, it's not about GCC or a missing library. It's about the Dual ABI.

@c-smile I am not sure that this is a good idea to link libc++ statically in a shared library: https://stackoverflow.com/a/44809374

The Dual ABI document also says this:

This commonly happens when linking to a third-party library that was compiled with an older version of GCC. If the third-party library cannot be rebuilt with the new ABI then you will need to recompile your code with the old ABI.

The source issue is from here: sciter-sdk/go-sciter#237

@pravic
Copy link
Contributor

pravic commented Jun 10, 2020

I can try to recompile Sciter under different conditions and test on various OS. Will do.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants