Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

GLIBCXX - Selectively picking up the version

14 views
Skip to first unread message

smoh...@gmail.com

unread,
Sep 4, 2007, 3:48:51 PM9/4/07
to
I have a known problem of GLIBCXX version mismatch while running my
binary compiled on Fedora 5 on Fedora 3. It says "version
`GLIBCXX_3.4.5' not found " .
Then I did
># strings /usr/lib/libstdc++.so.6 | grep GLIBC
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBC_2.1.3
GLIBC_2.2
GLIBC_2.3
GLIBC_2.0
GLIBC_2.1
GLIBCXX_FORCE_NEW

( this output is of Fedora 3 and note there is no 3.4.5)

My question is how to selectively pick the GLIBCXX_<any version>
during build so that my binary can run on Fedora 5 and as well on
Fedora 3.

Thanks...
Moin

Flash Gordon

unread,
Sep 4, 2007, 3:54:40 PM9/4/07
to
smoh...@gmail.com wrote, On 04/09/07 20:48:

> I have a known problem of GLIBCXX version mismatch while running my
> binary compiled on Fedora 5 on Fedora 3. It says "version
> `GLIBCXX_3.4.5' not found " .

<snip>

> My question is how to selectively pick the GLIBCXX_<any version>
> during build so that my binary can run on Fedora 5 and as well on
> Fedora 3.

This is very much a Linux specific problem so you will have to ask on a
Linux group. Personally I compile on the oldest Linux version I will
support and then test that it works on newer versions.
--
Flash Gordon

jacob navia

unread,
Sep 4, 2007, 4:06:19 PM9/4/07
to

You are in DLL Hell.

The only way to escape to purgatory is to ask the GNU people in their
newsgroups. They will provide you with magical incantations to pass
to "ld". That will set you free from DLL hell until next time...

Otherwise install glibc 3.4.5 and be done with it.

smoh...@gmail.com

unread,
Sep 4, 2007, 5:54:34 PM9/4/07
to
On Sep 4, 3:06 pm, jacob navia <ja...@jacob.remcomp.fr> wrote:
> Otherwise install glibc 3.4.5 and be done with it.- Hide quoted text -
>
> - Show quoted text -

The issue is , i do a objdump i see one line which states the
dependency on 3.4.5. Its is [00000000 F *UND*
00000019
_ZNSs4_Rep26_M_set_length_and_sharableEj@@GLIBCXX_3.4.5] .
How can we find in my source code /or any clue about why this is
there in the object file. Knowing the reason would help me to remove
the dependency and that would enable me to run on Fedora Core 3.


-Moin

jacob navia

unread,
Sep 4, 2007, 6:23:26 PM9/4/07
to

I think is in the char traits template code. Look in your header files.
Google finds a reference to it:
NSbIwSt11char_traitsIwESaIwEE4_Rep26_M_set_length_and_sharableEj@@GLIBCXX_3.4.5
FUNC GLOBAL DEFAULT

http://gcc.gnu.org/ml/gcc/2005-06/msg00654.html

CBFalconer

unread,
Sep 4, 2007, 8:26:55 PM9/4/07
to
smoh...@gmail.com wrote:
> jacob navia <ja...@jacob.remcomp.fr> wrote:
>> smohid...@gmail.com wrote:
>>
>>> I have a known problem of GLIBCXX version mismatch while running
>>> my binary compiled on Fedora 5 on Fedora 3. It says "version
>>> `GLIBCXX_3.4.5' not found " . Then I did
>>>
>>> # strings /usr/lib/libstdc++.so.6 | grep GLIBC
>>> GLIBCXX_3.4
... snip ...

>>> GLIBC_2.0
>>> GLIBC_2.1
>>> GLIBCXX_FORCE_NEW
>>
>>> ( this output is of Fedora 3 and note there is no 3.4.5)
>>
>>> My question is how to selectively pick the GLIBCXX_<any version>
>>> during build so that my binary can run on Fedora 5 and as well on
>>> Fedora 3.
>>
>> You are in DLL Hell. The only way to escape to purgatory is to
>> ask the GNU people in their newsgroups. They will provide you with
>> magical incantations to pass to "ld". That will set you free from
>> DLL hell until next time...
>>
>> Otherwise install glibc 3.4.5 and be done with it.
>
> The issue is , i do a objdump i see one line which states the
> dependency on 3.4.5. Its is [00000000 F *UND*
> 00000019
> _ZNSs4_Rep26_M_set_length_and_sharableEj@@GLIBCXX_3.4.5] .
> How can we find in my source code /or any clue about why this is
> there in the object file. Knowing the reason would help me to remove
> the dependency and that would enable me to run on Fedora Core 3.

Please do not answer off-topic questions here with other than a
reference to a suitable newsgroup. The experts, who can evaluate
answers, are not here. Jacob Navias OT answers are especially
suspect, as he has often been detected speaking of things he is not
aware of.

--
Chuck F (cbfalconer at maineline dot net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net>

--
Posted via a free Usenet account from http://www.teranews.com

Spoon

unread,
Sep 5, 2007, 9:50:29 AM9/5/07
to
jacob navia wrote:

> Otherwise install glibc 3.4.5 and be done with it.

There is no "glibc 3.4.5".

This discussion should be taken to comp.unix.programmer.

Flash Gordon

unread,
Sep 5, 2007, 2:43:23 PM9/5/07
to
Spoon wrote, On 05/09/07 14:50:

More likely a Linux group, since glibc is not general Unix.
--
Flash Gordon

0 new messages