LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   GCC suddenly broken? (https://www.linuxquestions.org/questions/linux-software-2/gcc-suddenly-broken-446810/)

UnknownFear 05-20-2006 04:26 PM

GCC suddenly broken?
 
Okay, this is the most weird thing I ever experienced untill now using a linux machine. I just wanted to install sBNC which requires TCL, so I thought, lets install TCL!
Code:

bash-3.1$ yum install tcl
Loading "installonlyn" plugin
You need to be root to perform this command.
bash-3.1$ exit
exit
[root@p2p-hosting home]# yum install tcl
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
core                                                                [1/3]
core                      100% |=========================| 1.1 kB    00:00
extras                                                              [2/3]
extras                    100% |=========================| 1.1 kB    00:00
updates                                                              [3/3]
updates                  100% |=========================|  951 B    00:00
Reading repository metadata in from local files
primary.xml.gz            100% |=========================| 1.1 MB    00:04
extras    : ################################################## 3269/3269
Added 139 new packages, deleted 74 old in 4.89 seconds
primary.xml.gz            100% |=========================| 325 kB    00:00
updates  : ################################################## 985/985
Added 40 new packages, deleted 22 old in 1.43 seconds
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for tcl to pack into transaction set.
tcl-8.4.12-4.i386.rpm    100% |=========================|  28 kB    00:00
---> Package tcl.i386 0:8.4.12-4 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                Arch      Version          Repository        Size
=============================================================================
Installing:
 tcl                    i386      8.4.12-4        core              954 k

Transaction Summary
=============================================================================
Install      1 Package(s)
Update      0 Package(s)
Remove      0 Package(s)
Total download size: 954 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): tcl-8.4.12-4.i386. 100% |=========================| 954 kB    00:22
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: tcl                          ######################### [1/1]
/sbin/ldconfig: /lib/libstdc++.so.5 is not a symbolic link


Installed: tcl.i386 0:8.4.12-4
Complete!

So far so good eh?

Code:

[root@p2p-hosting home]# su cyber
bash-3.1$ ./configure
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables
See `config.log' for more details.

GCC appearing to be gone?!

Code:


bash-3.1$ exit
exit
[root@p2p-hosting home]# yum install gcc
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

  /lib/libgcc_s.so.1: version `GCC_3.3.1' not found (required by /usr/lib/librpmio-4.4.so)

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.4.2 (#1, Feb 12 2006, 03:59:46)
[GCC 4.1.0 20060210 (Red Hat 4.1.0-0.24)]

If you cannot solve this problem yourself, please go to
the yum faq at:
  http://wiki.linux.duke.edu/YumFaq


Okay, this really beats my brains out, the only thing that went wrong as far as I see is:
Code:

/sbin/ldconfig: /lib/libstdc++.so.5 is not a symbolic link
So well, I thought lets fix that if you want a symlink:

Code:

[root@p2p-hosting lib]# ldconfig
ldconfig: /lib/libstdc++.so.5 is not a symbolic link

[root@p2p-hosting lib]# mv libstdc++.so.5 libstdc++.so.5.bak
[root@p2p-hosting lib]# ln -s libstdc++.so
libstdc++.so        libstdc++.so.5.0.3  libstdc++.so.5.bak
[root@p2p-hosting lib]# ln -s libstdc++.so.5.0.3 libstdc++.so.5
[root@p2p-hosting lib]# ldconfig
[root@p2p-hosting lib]# rpm
rpm: /lib/libgcc_s.so.1: version `GCC_3.3.1' not found (required by /usr/lib/librpmio-4.4.so)
rpm: /lib/libgcc_s.so.1: version `GCC_3.3' not found (required by /usr/lib/libstdc++.so.6)
rpm: /lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)

Anybody have any ideas what the hell is going on here and how I get this solved?

Thanks

UnknownFear 05-20-2006 04:39 PM

FYI:

[root@p2p-hosting lib]# uname --all
Linux p2p-hosting 2.6.15-1.2054_FC5smp #1 SMP Tue Mar 14 16:05:46 EST 2006 i686 i686 i386 GNU/Linux

socrates71 10-19-2006 01:22 AM

I'm getting a similar thing here, running Ubunutu. Completely baffled. My system is absolutely fine in all other respects apart from when I try to run the game Darwinia...

I get -

Code:

./lib/darwinia.bin.x86: ./lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
weird.

Anyone else come across this and/or found a solution?

EDIT: The only thing I can think of is that it is a graphics card driver problem... Particularly NVidia...

bads 09-12-2007 01:44 PM

I know this is a long time since the last post but I was having the same problem with Darwinia and found a fix somewhere else after visiting here so I'll just post it.

I am using CentOS 5 and if you just remove the provided libgcc_s.so.1 it works fine for me.

Code:

mv /usr/local/games/darwinia_demo/lib/libgcc_s.so.1 /usr/local/games/darwinia_demo/lib/libgcc_s.so.1_bak


All times are GMT -5. The time now is 12:59 AM.