Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > ld error -- archive out of date?? help please

ld error -- archive out of date?? help please
Thread Tools
Arakageeta256
Junior Member
Join Date: Oct 2001
Location: Los Angeles
Status: Offline
Reply With Quote
Jan 28, 2002, 08:48 PM
 
I get the following errors when I try to compile any app-- in Proj. Builder and c++.

/usr/bin/ld: table of contents for archive: /usr/lib/libstdc++.a is out of date; rerun ranlib(1) (can't load from it)
/usr/bin/ld: table of contents for archive: /usr/lib/gcc/darwin/2.95.2/libcc_dynamic.a is out of date; rerun ranlib(1) (can't load from it)

I recently did some fink installations and ran Norton Speed Disk. I assume either one of these two processes is the cause of my problem. I read the man pages for 'ld' and 'ranlib' but it's all Greek to me. ranlib's page did mention a bug where archives can be made out-of-date, but I'm not sure how to make archive in-date. I just want my compiler to work again!!

Anyone know the solution to my problem?
     
lindberg
Dedicated MacNNer
Join Date: Jan 2001
Location: Virginia, US
Status: Offline
Reply With Quote
Jan 29, 2002, 12:29 AM
 
Not sure why those are out of date, but however... just run ranlib on them.

ranlib /usr/lib/libstdc++.a
ranlib /usr/lib/gcc/darwin/2.95.2/libcc_dynamic.a

You might need to do that as root (i.e. use sudo).
     
Arakageeta256  (op)
Junior Member
Join Date: Oct 2001
Location: Los Angeles
Status: Offline
Reply With Quote
Jan 29, 2002, 01:07 AM
 
Tried that. No go:

[localhost:/Users/me] root# ranlib /usr/lib/libstdc++.a
ranlib: file: /usr/lib/libstdc++.a(cstringi.o) has no symbols
ranlib: file: /usr/lib/libstdc++.a(builtinbuf.o) has no symbols
[localhost:/Users/me] root# ranlib /usr/lib/gcc/darwin/2.95.2/libcc_dynamic.a
ranlib: file: /usr/lib/gcc/darwin/2.95.2/libcc_dynamic.a(_ctors.o) has no symbols
ranlib: file: /usr/lib/gcc/darwin/2.95.2/libcc_dynamic.a(_fixtfdi.o) has no symbols
ranlib: file: /usr/lib/gcc/darwin/2.95.2/libcc_dynamic.a(_fixunstfdi.o) has no symbols
ranlib: file: /usr/lib/gcc/darwin/2.95.2/libcc_dynamic.a(_fixunsxfdi.o) has no symbols
ranlib: file: /usr/lib/gcc/darwin/2.95.2/libcc_dynamic.a(_fixunsxfsi.o) has no symbols
ranlib: file: /usr/lib/gcc/darwin/2.95.2/libcc_dynamic.a(_fixxfdi.o) has no symbols
ranlib: file: /usr/lib/gcc/darwin/2.95.2/libcc_dynamic.a(_floatditf.o) has no symbols
ranlib: file: /usr/lib/gcc/darwin/2.95.2/libcc_dynamic.a(_floatdixf.o) has no symbols


I think I'm just going to reinstall the dev tools.
     
Arakageeta256  (op)
Junior Member
Join Date: Oct 2001
Location: Los Angeles
Status: Offline
Reply With Quote
Jan 29, 2002, 01:33 AM
 
Well, whatever was wrong, the reintall fixed it.
     
   
 
Forum Links
Forum 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 On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 04:23 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,