Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode 2.3: inconsistent local symbol count



On Fri, May 26, 2006 12:51 am, Klaus Backert said:
>
> Under MacOS X 10.4.6 (with Xcode 2.3, gcc 4.0, and dwarf) I have a
> project with an application Kronecker using a framework Matrix from
> another project (if that matters). Building the framework succeeds,
> but on building the application I get the following error:
>
> /usr/bin/ld: internal error: output_local_symbols() inconsistent
> local symbol count
> collect2: ld returned 1 exit status
>

I've gotten this error before; my guess is it's DWARF-related only due to
the different/new symbol coalescing implementation. In my case the cause
was a symbol defined both in an app and a static lib: the static lib used
to be dynamic and didn't export this symbol, but when it was converted to
static I started getting the error. Unfortunately I can't remember how I
tracked down the symbol (though I vaguely remember poring over 'nm'
dumps), but after fixing the problem I did spend an hour or so trying to
duplicate the it in a simple project, with no success. The symbol in
question was a struct defined at file scope with static init data.

Hope this helps - dmt


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >Xcode 2.3: inconsistent local symbol count (From: Klaus Backert <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.