LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-27-2006, 08:33 AM   #1
grezly
Member
 
Registered: May 2006
Distribution: Slackware
Posts: 46

Rep: Reputation: 15
GCC update error


A few days ago I did an update on my Slackware 10.1 box to a slackware-current version.
This was almost problem-free, except some packages.
But 1 package carried a pretty big problem with it.
GCC.
I upgraded gcc from 3.3.4 to 3.4.6.

After this all, I did want to copmile mysql-5.0.21.
While compiling I get an error.

/usr/lib/../i486-slackware-linux/bin/ld: cannot find -lgcc

It looks like I've got a problem with the library gcc.
So I checked if the library exist.

locate libgcc
/lib/libgcc_s.so.1
/opt/openoffice.org2.0/program/libgcc_s.so.1.1.1
/opt/openoffice.org2.0/program/libgcc3_uno.so.1.1
/opt/openoffice.org2.0/program/libgcc_s.so.1
/opt/openoffice.org2.0/program/libgcc3_uno.so
/usr/lib/gcc/i486-slackware-linux/3.4.6/libgcc_eh.a
/usr/lib/gcc/i486-slackware-linux/3.4.6/libgcc.a
/usr/lib/libgcc_s.so.1
/usr/lib/libgcc_s.so
/usr/lib/vmware/lib/libgcc_s.so.1
/usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1
/usr/local/oo/program/libgcc_s.so.1
/usr/local/oo/program/libgcc3_uno.so
/usr/local/lib/libgcc_s.so.1
/usr/local/lib/libgcc_s.so
/home/dave/vmware-distrib/lib/lib/libgcc_s.so.1
/home/dave/vmware-distrib/lib/lib/libgcc_s.so.1/libgcc_s.so.1
/download/vmware-distrib/lib/lib/libgcc_s.so.1
/download/vmware-distrib/lib/lib/libgcc_s.so.1/libgcc_s.so.1



As you can see above, libgcc_s.so* exist (in /usr/lib).

I've tried to downgrade to 3.3.6 but this also doesn't solve the problem (the problem still exist).

I've also tried to compile gcc by my own. (3.4.6).
This also doesn't work
While compile I get a different error:



: undefined reference to `__dlopen'



dfcn.h is also in /usr/lib.

So I think gcc is just messed-up.
But now I can't think of a fix about it.
 
Old 05-28-2006, 04:18 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Ahhh! When you switch versions it's important to backup. A minor change 3.3.x isn't a big deal, but when switching 3.3.x to 3.4.x or even better 3.3.x to 4.x you've got to be ready for anything!

I'd probably check to see if it's just a messed up ld.so.conf file, re-run ldconfig and try again. Be sure to updatedb before searching after making the major changes.

If it doesn't work out, you may be able to salvage quite a bit and then just re-install.

Good Luck!

Cool
 
Old 05-29-2006, 02:32 AM   #3
grezly
Member
 
Registered: May 2006
Distribution: Slackware
Posts: 46

Original Poster
Rep: Reputation: 15
Wink

I did check my ld.so.conf file for configuration.
But that file was good.
In the meantime, I did a re-install of the library.
Everything is solved now.

But I still don't know why it went wrong..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error compiling gcc 3.3.6 with 64bit gcc 4.0.3 cs-cam Linux - Software 0 04-22-2006 05:20 AM
gcc update linuxhippy Slackware 4 02-13-2006 05:14 PM
gcc update help! evilchild Mandriva 3 10-23-2004 08:00 AM
how do I update my gcc? ajgamer Linux - Software 7 10-16-2003 12:55 AM
gcc update j-ray Linux - Software 11 08-05-2002 10:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration