Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.