The " version `GCC_4.2.0' not found " error

View: New views
3 Messages — Rating Filter:   Alert me  

The " version `GCC_4.2.0' not found " error

by roger5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi
I am trying to compile a package called pdftk-1.41-3.fc6.i386.rpm. When I install the RPM I get:
/lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)

ldd  /usr/lib/libstdc++.so.6
gives
/usr/lib/libstdc++.so.6: /lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
        linux-gate.so.1 =>  (0x00566000)
        libm.so.6 => /lib/libm.so.6 (0x00b28000)
        libc.so.6 => /lib/libc.so.6 (0x00111000)
        /lib/ld-linux.so.2 (0x00567000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00c57000)

I have gcc 4.2.0 installed on my system, which is a Fedora 4.

What does this mean and how do I solve it?

Thanks
roger5

Re: The " version `GCC_4.2.0' not found " error

by Benjamin Kosnik :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



> What does this mean and how do I solve it?

It means that the package you installed (pdftk-1.41-3.fc6.i386.rpm) was
compiled with a gcc other than what is expected on your system. The
dependency checking on the rpm should have caught this, but perhaps
pdftk's spec file did not catch this, or perhaps you foiled it with
some special way your system is set up.

The easiest way to solve it (to me) would be to download
pdftk-1.41-3.fc6.srpm and rebuild it on your system.
(rpmbuild -ba pdftk.spec).

-benjamin



Re: The " version `GCC_4.2.0' not found " error

by roger5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Thanks for replying.
I found a src rpm, ran the command you suggested, got this:

[~]# rpmbuild -ba pdftk-1.12-0.src.rpm
rpmbuild: /lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)

The same error.