FC3: GCC broken?
I've been having some soundcard problems that ultimately came to my having to install ALSA in stand alone mode. However, ALSA's autoconf wan't able to get good output from GCC, and neither am I:
Code:
[jorenko@skylark /var/tmp/alsa]$ ./configure --with-cards=audigyls --with-sequencer=yes Code:
[jorenko@skylark ~]$ cat hello.c A little background on the system: It was originally FC2 about 4 months ago. There were some GCC problems then, too, and I tried a few different ways of reinstalling it manually, none of which worked. Once my soundcard problems arose, in addition to my gcc problems, FC3 had been released, so I updated to it. Yum says GCC is up to date and nothing else seems to be broken. Any suggestions? Thanks in advance. |
I had a problem like that a few months ago. What I did was reinstall GCC. Download all the GCC RPMs and run this command as the root user for each of the rpms:
rpm -Uhv --force location_of_rpm |
I tried your suggestion with the following RPMs, in this order:
libgcc-3.4.2-6.fc3.i386.rpm gcc-3.4.2-6.fc3.i386.rpm gcc-java-3.4.2-6.fc3.i386.rpm gcc-c++-3.4.2-6.fc3.i386.rpm gcc-gnat-3.4.2-6.fc3.i386.rpm I am still receiving the ld error message when I try to compile hello.c. For the record, I can gcc -c hello.c to get hello.o, but then gcc hello.o returns the same ld error. Also, g++ works just fine on a similar hello.cpp. Also, I'm curious, how easy is it to retain my data without making an external backup if I want to do a clean reinstall of FC3? |
There is one way but I can't garintee it will work. You can do what I told you to do with the GCC RPMS for all the RPMS on the Fedora Core CDs. :(
|
you can save your data if you ask for don't format when you are creating partitions in the install process. select the pre-existing partitions, edit each one, name it as it was in the previous install (/, /home, etc.), and tell it not to format. it will leave any data you may have placed on the system intact.
|
Code:
[michael@rizon ~]$ cat /etc/fedora-release Code:
[michael@rizon ~]$ cat hello.c Code:
[michael@rizon ~]$ gcc -o hello hello.c Code:
[michael@rizon ~]$ ./hello |
All times are GMT -5. The time now is 09:37 AM. |