 |
 |
cc >> ranlib probs with dev tools
|
 |
|
 |
|
Jean-Pierre
|
|
after a fresh install of the dev tools off the cd i continue to have problems using cc.
[ordo:~] jmouille% cc -o hello hello.c
/usr/bin/ld: table of contents for archive: /usr/lib/libcc_dynamic.a is out of date; rerun ranlib(1) (can't load from it)
[ordo:~] jmouille%
any ideas? ideally i would be using straight gcc but the build process from the darwin source seems anything but friendly...
regards,
jean-pierre
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Feb 2000
Location: Storrs,Connecticut, USA
Status:
Offline
|
|
Well, if I remember correctly, the developer tools CD sets the creation date of the developer tools to the date on which you install them but the modification date is set to whenever they were last modified. ie sometime before the creation date. What you have is the same thing that happened to me when I ran Norton Utilities on my OS X partition and told it to "fix" those dates. I wasn't dumb enough to tell it to "fix" the problem with all of those files that begin with a period but "fixing" the modification dates messed up the dev tools. I don't know how to correct the problem. I tried reinstalling the developer tools but that didn't work. My final solution was wiping the drive and reinstalling X. I know that there is another way to get the dev tools working after you have scrambled their modification dates; I saw it posed somewhere online after I had my problem. I don't remember where I saw it or what it said to do, however. If all else fails: reformat reinstall.
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Dec 2000
Status:
Offline
|
|
Did you try rerunning ranlib?
ranlib /usr/lib/libcc_dynamic.a
|
|
|
| |
|
|
|
 |
|
 |
|
Jean-Pierre
|
|
yes that sounds about right. i recall downloading the beta of the newest norton and running it on both of my partitions. it told me that there were some date issues and of course i ignorantly chose to fix them without thinking of the ramifications really.
now if i had only saved the norton files for undoing...
when i try to run ranlib i get this error:
jmouille.ordo ~ -=> ranlib /usr/lib/libcc_dynamic.a
ranlib: file: /usr/lib/libcc_dynamic.a(_ctors.o) has no symbols
ranlib: file: /usr/lib/libcc_dynamic.a(_fixtfdi.o) has no symbols
ranlib: file: /usr/lib/libcc_dynamic.a(_fixunstfdi.o) has no symbols
ranlib: file: /usr/lib/libcc_dynamic.a(_fixunsxfdi.o) has no symbols
ranlib: file: /usr/lib/libcc_dynamic.a(_fixunsxfsi.o) has no symbols
ranlib: file: /usr/lib/libcc_dynamic.a(_fixxfdi.o) has no symbols
ranlib: file: /usr/lib/libcc_dynamic.a(_floatditf.o) has no symbols
ranlib: file: /usr/lib/libcc_dynamic.a(_floatdixf.o) has no symbols
ranlib: file: /usr/lib/libcc_dynamic.a(frame.o) has no symbols
ranlib: can't create output file: /usr/lib/libcc_dynamic.a (Permission denied)
jmouille.ordo ~ -=>
thank you both for your help, i really appreciate it.
regards,
jean-pierre
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Dec 2000
Status:
Offline
|
|
You know, I seem to recall that the "has no symbols" isn't a fatal error... It looks more like the problem is you're not root, and /usr/lib/libcc_dynamic.a isn't world-writable (a good thing). I would su to root and try ranlib again.
BTW, you know you can start up in single-user mode and run fsck to fix disk problems, right?
|
|
|
| |
|
|
|
 |
|
 |
|
Jean-Pierre
|
|
still no luck when trying ranlib as root.
[ordo:/Users/jmouille] root# ranlib /usr/lib/libcc_dynamic.a
ranlib: file: /usr/lib/libcc_dynamic.a(_ctors.o) has no symbols
ranlib: file: /usr/lib/libcc_dynamic.a(_fixtfdi.o) has no symbols
ranlib: file: /usr/lib/libcc_dynamic.a(_fixunstfdi.o) has no symbols
ranlib: file: /usr/lib/libcc_dynamic.a(_fixunsxfdi.o) has no symbols
ranlib: file: /usr/lib/libcc_dynamic.a(_fixunsxfsi.o) has no symbols
ranlib: file: /usr/lib/libcc_dynamic.a(_fixxfdi.o) has no symbols
ranlib: file: /usr/lib/libcc_dynamic.a(_floatditf.o) has no symbols
ranlib: file: /usr/lib/libcc_dynamic.a(_floatdixf.o) has no symbols
ranlib: file: /usr/lib/libcc_dynamic.a(frame.o) has no symbols
[ordo:/Users/jmouille] root#
i know that disk problems can be fixed in single user mode but the real problem here was that i wasn't really paying attention to norton as it was 'repairing' my disk and i told it to repair what i believed were date problems on my os x partition. it turns out that by norton 'fixing' the dates, it disabled my ability to run the dev tools anymore.
i have tried reinstalling without any luck and unfortunately wiping the drive isn't much of a possibility. as a last resort i may do this but only if absolutely necessary...
thanks again for the help,
jean-pierre
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Feb 2000
Location: Storrs,Connecticut, USA
Status:
Offline
|
|
I found the solution on the Omni mailing list archives. Become root and enter fixPrecomps and that should solve the problem.
|
|
|
| |
|
|
|
 |
|
 |
|
Jean-Pierre
|
|
you are right! fixPrecomps fixed the problem.
thanks again for all of your help,
jean-pierre
[ordo:/Users/jmouille] root# fixPrecomps
reading /System/Library/SystemResources/PrecompLists/phase1.precompList
reading /System/Library/SystemResources/PrecompLists/phase2.precompList
/System/Library/Frameworks/System.framework/Versions/B/Headers/bsd/libc.p...ok
/System/Library/Frameworks/System.framework/Versions/B/Headers/bsd/unistd.p...ok
/System/Library/Frameworks/System.framework/Versions/B/Headers/mach/mach.p...ok
/System/Library/Frameworks/CoreServices.framework/Versions/A/Headers/CoreServices.p...ok
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Headers/ApplicationServices.p...ok
/System/Library/Frameworks/Carbon.framework/Versions/A/Headers/Carbon.p...ok
/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/Foundation.p...ok
/System/Library/Frameworks/AppKit.framework/Versions/C/Headers/AppKit.p...ok
/System/Library/Frameworks/Scripting.framework/Versions/A/Headers/Scripting.p...ok
/System/Library/Frameworks/AppKitScripting.framework/Versions/A/Headers/AppKitScripting.p...ok
[ordo:/Users/jmouille] root# exit
exit
jmouille.ordo ~ -=> cc -o hello hello.c
jmouille.ordo ~ -=> ./hello
hello
jmouille.ordo ~ -=>
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|