Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

libstdc++ weirdness

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
debiandoode
Posts: 21
Joined: 2013-12-03 17:36

libstdc++ weirdness

#1 Post by debiandoode »

I am running a binary we've built but keep getting these errors.

./our_binary: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by ./our_binary)
./our_binary: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by ./our_binary)

So, it seemed that libstdc++ was missing. However, now I'm at a loss on where to start, not wanting to wreck the OS, not sure what I should be removing or adding.

Code: Select all

# apt-get install libstdc++
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libstdc++6-4.4-doc' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.7-pic' for regex 'libstdc+'
Note, selecting 'libstdc++5' for regex 'libstdc+'
Note, selecting 'libstdc++6' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.1-dbg' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.1-doc' for regex 'libstdc+'
Note, selecting 'libstdc++2.9-dev' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.4-pic' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.5-dbg' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.5-doc' for regex 'libstdc+'
Note, selecting 'libstdc++-dev' for regex 'libstdc+'
Note, selecting 'libstdc++2.10-dev' for regex 'libstdc+'
Note, selecting 'libstdc++2.9-glibc2.1-dev' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.2-dbg' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.2-doc' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.6-dbg' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.6-dev' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.6-doc' for regex 'libstdc+'
Note, selecting 'libstdc++5-dbg' for regex 'libstdc+'
Note, selecting 'libstdc++5-doc' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.3-dbg' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.3-dev' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.3-doc' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.6-pic' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.0-dbg' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.0-doc' for regex 'libstdc+'
Note, selecting 'libstdc++2.8-dev' for regex 'libstdc+'
Note, selecting 'libstdc++5-3.3-dbg' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.7-dbg' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.7-dev' for regex 'libstdc+'
Note, selecting 'libstdc++5-3.3-doc' for regex 'libstdc+'
Note, selecting 'libstdc++3.0-dev' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.7-doc' for regex 'libstdc+'
Note, selecting 'libstdc++6-dbg' for regex 'libstdc+'
Note, selecting 'libstdc++6-doc' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.4-dbg' for regex 'libstdc+'
Note, selecting 'libstdc++6-4.4-dev' for regex 'libstdc+'
libstdc++6 is already the newest version.
libstdc++6-4.7-dev is already the newest version.
libstdc++6-4.7-dev set to manually installed.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libstdc++6-4.6-dbg : Conflicts: libstdc++6-4.4-dbg but 4.4.7-2 is to be installed
 libstdc++6-4.6-doc : Conflicts: libstdc++6-4.4-doc but 4.4.7-2 is to be installed
 libstdc++6-4.7-dbg : Conflicts: libstdc++6-4.4-dbg but 4.4.7-2 is to be installed
                      Conflicts: libstdc++6-4.6-dbg but 4.6.3-14 is to be installed
 libstdc++6-4.7-doc : Conflicts: libstdc++6-4.4-doc but 4.4.7-2 is to be installed
                      Conflicts: libstdc++6-4.6-doc but 4.6.3-14 is to be installed
E: Unable to correct problems, you have held broken packages.


User avatar
squeeze
Posts: 299
Joined: 2010-06-14 23:16
Location: thimbleweedpark

Re: libstdc++ weirdness

#2 Post by squeeze »

.
Last edited by squeeze on 2016-04-29 01:02, edited 1 time in total.
“Have you tried turning it off and on again?”

debiandoode
Posts: 21
Joined: 2013-12-03 17:36

Re: libstdc++ weirdness

#3 Post by debiandoode »

According to the dev, he built it on Ubuntu;

Linux turing 4.2.0-19-generic #23-Ubuntu SMP Wed Nov 11 11:39:30 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

But is wanting to make it work on Debian Wheezy 7.
Linux wrt 3.2.0-4-amd64 #1 SMP Debian 3.2.65-1+deb7u2 x86_64 GNU/Linux

This is a test version.
Didn't install anything out of repo that I know of.

User avatar
squeeze
Posts: 299
Joined: 2010-06-14 23:16
Location: thimbleweedpark

Re: libstdc++ weirdness

#4 Post by squeeze »

.
Last edited by squeeze on 2016-04-29 01:02, edited 1 time in total.
“Have you tried turning it off and on again?”

debiandoode
Posts: 21
Joined: 2013-12-03 17:36

Re: libstdc++ weirdness

#5 Post by debiandoode »

Thank you, I'll pass this on to the dev.

Does it work the other way around? Something compiled on Debian will work on Ubuntu?
Basically we would like to see the binary run on as many flavors as possible which are Debian based.

User avatar
squeeze
Posts: 299
Joined: 2010-06-14 23:16
Location: thimbleweedpark

Re: libstdc++ weirdness

#6 Post by squeeze »

.
Last edited by squeeze on 2016-04-29 01:02, edited 1 time in total.
“Have you tried turning it off and on again?”

debiandoode
Posts: 21
Joined: 2013-12-03 17:36

Re: libstdc++ weirdness

#7 Post by debiandoode »

Why help others if all it does is to inflate your own ego? That's kind of dinosaur age stuff these days don't you think?
I did research but it didn't lead to anything I could understand and sometimes, it takes human interaction to better understand something.
Last edited by debiandoode on 2016-04-28 22:59, edited 1 time in total.

User avatar
squeeze
Posts: 299
Joined: 2010-06-14 23:16
Location: thimbleweedpark

Re: libstdc++ weirdness

#8 Post by squeeze »

.
Last edited by squeeze on 2016-04-29 01:02, edited 1 time in total.
“Have you tried turning it off and on again?”

debiandoode
Posts: 21
Joined: 2013-12-03 17:36

Re: libstdc++ weirdness

#9 Post by debiandoode »

Would you give it a rest please. I never asked for anything for free. I simply asked a question of others. You don't have to respond if you'll get all huffed up about it. Guys like you are so boring it's amazing forums are used at all anymore. Go find something else to argue about instead of making stuff up about what I've done or not. What the heck do you know.

Grow up.

User avatar
squeeze
Posts: 299
Joined: 2010-06-14 23:16
Location: thimbleweedpark

Re: libstdc++ weirdness

#10 Post by squeeze »

.
Last edited by squeeze on 2016-04-29 01:01, edited 1 time in total.
“Have you tried turning it off and on again?”

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

Re: libstdc++ weirdness

#11 Post by stevepusser »

Generally, but not always, binaries compiled on an older version of libc6 will work on newer version. You have a better chance if you compile static binaries.

Another solution would be to actually build versions on Debian and Ubuntu. The openSUSE Build Service can make this rather painless if you have debianized source code files--for example, I can upload one set of source files for Pale Moon and have it build all these versions:

https://build.opensuse.org/package/show ... r/palemoon
MX Linux packager and developer

Post Reply