Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 05-27-2006, 09:33 AM   #1
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.
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

As you can see above,* 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, 05:18 AM   #2
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 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!

Old 05-29-2006, 03:32 AM   #3
Registered: May 2006
Distribution: Slackware
Posts: 46

Original Poster
Rep: Reputation: 15

I did check my 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..


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 06:20 AM
gcc update linuxhippy Slackware 4 02-13-2006 06:14 PM
gcc update help! evilchild Mandriva 3 10-23-2004 09:00 AM
how do I update my gcc? ajgamer Linux - Software 7 10-16-2003 01:55 AM
gcc update j-ray Linux - Software 11 08-05-2002 11:57 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:14 AM.

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