GLIBCXX - Selectively picking up the version

S

smohideen

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
 
F

Flash Gordon

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 " .

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.
 
J

jacob navia

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
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

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.
 
S

smohideen

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.- 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
 
J

jacob navia

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.- 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

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
 
C

CBFalconer

jacob navia said:
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.
 
F

Flash Gordon

Spoon wrote, On 05/09/07 14:50:
There is no "glibc 3.4.5".

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

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,772
Messages
2,569,593
Members
45,104
Latest member
LesliVqm09
Top