• 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: ld: warning: using ld_classic
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ld: warning: using ld_classic


  • Subject: Re: ld: warning: using ld_classic
  • From: Avi Drissman <email@hidden>
  • Date: Mon, 27 Aug 2012 09:20:09 -0400

I would let it go.

For some reason, I don't know why, Xcode pre 4.4 has decided that i386 kexts need something special that only the old linker can do. Unless you know specifically why, and you know that it's safe to do so, I would leave it alone. You said the output worked? If so, I'd recommend not worrying about it.

Avi

On Aug 27, 2012, at 4:03, Jean Suisse <email@hidden> wrote:

Well, it seemed too simple to be true.
While using "-Wl,-new_linker" in "Other Linker Flags" did the Job on Xcode < 4.4. Using '-classic_linker' on the Xcode 4.4 was somehow rejected:

clang: warning: argument unused during compilation: '-classic_linker'
ld: framework not found NI488
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Any suggestions ?


On 27 août 2012, at 09:52, Jean Suisse wrote:

I found the answer to my question in the source code file pointed by Jeff :
-classic_linker is the one.
(see http://www.scribd.com/doc/81835005/release-notes-xcode44dp)

Cheers,
Jean

On 27 août 2012, at 09:48, Jean Suisse wrote:

Hi Jeff, Hi Avi

Thank you very much for your replies.
I added the flags to use the new linker, and now the warning is gone.

If you upgrade to Xcode 4.4 then ld was taught the tricks that ld_classic had to use for i386 kexts and then you won't see that message. If you don't upgrade, the message is harmless.

http://www.scribd.com/doc/81835005/release-notes-xcode44dp

Avi

Well, actually, I can't upgrade to XCode 4.4, due to a framework issue. 
(see: http://prod.lists.apple.com/archives/xcode-users/2012/Aug/msg00137.html)

But now I think about it, after some trials I was eventually stuck on a linker error… could it be so simple ?
Do you know the reverse flag name ? I mean, how, to use the previous "old" linker on Xcode 4.4 ?
(This issue is also the one tying me down to 10.7 btw)

Best regards,
Jean


On 27 août 2012, at 03:27, Jeff Johnson wrote:

Hi Jean.

You can make Xcode use the new linker with OTHER_LDFLAGS = "-Wl,-new_linker".

Here's the linker source code that prints the "using ld_classic" warning:

http://www.opensource.apple.com/source/ld64/ld64-133.3/src/ld/Options.cpp

-Jeff


On Aug 26, 2012, at 2:36 PM, Jean Suisse wrote:

Dear All,

When compiling my kext, I get the following warning :

ld: warning: using ld_classic

I know what ld_classic is. I guess there should be a replacement, but I don't know how to make Xcode use it.
Anyway, my kext is working just fine, should I ignore this warning or further attempt to fix it ?

Best regards,
Jean




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >ld: warning: using ld_classic (From: Jean Suisse <email@hidden>)
 >Re: ld: warning: using ld_classic (From: Jeff Johnson <email@hidden>)
 >Re: ld: warning: using ld_classic (From: Jean Suisse <email@hidden>)
 >Re: ld: warning: using ld_classic (From: Jean Suisse <email@hidden>)
 >Re: ld: warning: using ld_classic (From: Jean Suisse <email@hidden>)

  • Prev by Date: Re: Performance Tuning 10.8 (and 10.7) for 10Gig Raw Sockets..
  • Next by Date: Re: Blocking / Holding data from NKE
  • Previous by thread: Re: ld: warning: using ld_classic
  • Next by thread: Re: ld: warning: using ld_classic
  • Index(es):
    • Date
    • Thread