• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: mystery link warnings between System.framework and libmx.dylib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mystery link warnings between System.framework and libmx.dylib


  • Subject: Re: mystery link warnings between System.framework and libmx.dylib
  • From: Ladd Van Tol <email@hidden>
  • Date: Wed, 9 Nov 2005 23:35:36 -0800

I am getting the same symptom here when I use the 10.4u SDK, but adding -lSystem doesn't seem to cure it. This seems to happen on at least two distinct and recent versions of Xcode 2.2.

My linker output looks like this (names changed to protect the innocent):

Ld "/Users/ladd/Code/CPS/foo/bar/trunk/bax/build/Development/foo bar.app/Contents/MacOS/foo bar" normal ppc
cd /Users/ladd/Code/CPS/foo/bar/trunk/bax
/usr/bin/g++-4.0 -o /Users/ladd/Code/CPS/foo/bar/trunk/bax/build/ Development/foo\ bar.app/Contents/MacOS/foo\ bar -L/Users/ladd/Code/ CPS/foo/bar/trunk/bax/build/Development -F/Users/ladd/Code/CPS/foo/ bar/trunk/bax/build/Development -filelist /Users/ladd/Code/CPS/foo/ bar/trunk/bax/build/bax.build/Development/bax.build/Objects-normal/ ppc/foo\ bar.LinkFileList -framework fooPreferences -framework Cocoa - framework AddressBook -framework Carbon -framework CoreFoundation - framework PreferencePanes -framework QuickTime -framework WebKit - framework SystemConfiguration -lkakadu -lnetlib -lxmlcore -lfooCrypt - lfooFoundation -arch ppc -prebind -mmacosx-version-min=10.3 -lcrypto - lpcre-foo -lSystem -isysroot /Developer/SDKs/MacOSX10.4u.sdk
/usr/bin/ld: warning multiple definitions of symbol _atan2f
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple- darwin8/4.0.1/../../../libSystem.dylib(floating.o) definition of _atan2f
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple- darwin8/4.0.1/../../../libmx.dylib(single module) definition of _atan2f


(and so on, for most/all of the float-based trig functions)

Any other ideas?

- Ladd

On Oct 24, 2005, at 4:57 PM, Andrew Pontious wrote:

On Oct 13, 2005, at 10:19 AM, Sean McBride wrote:

I have these mystery link warnings:

/usr/bin/ld: warning multiple definitions of symbol _atan2f
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/
System.framework/System(floating.o) definition of _atan2f
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-
darwin8/4.0.1/../../../libmx.dylib(single module) definition of _atan2f


and 28 others just like it: sinf, asinf, etc.

Any ideas how to get rid of them, or what's causing them?  Neither
System.framework nor libmx.dylib are in my project so it's something
xCode is doing automagically, which makes it hard to troubleshoot.
[snip]

Did you ever get an answer to this?

I saw this problem recently in a home project I was working on. I also don't include System.framework or libmx is my project. I link only against Cocoa.framework.

I searched all of Apple's lists for a fix. Have a look at: http:// lists.apple.com/archives/cocoa-dev/2005/May/msg00470.html

By applying the fix from the above link -- adding -lSystem to my Other Linker Flags build setting -- I was able to make these warnings go away.

Hope that helps,

-- Andrew Pontious
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40criticalpath.com


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Re: How to fix "multiple build commands for output file" warning
  • Next by Date: (no subject)
  • Previous by thread: Re: How to fix "multiple build commands for output file" warning
  • Next by thread: (no subject)
  • Index(es):
    • Date
    • Thread