• 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: Link Error: indirect symbol table entry
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Link Error: indirect symbol table entry


  • Subject: Re: Link Error: indirect symbol table entry
  • From: Dave MacLachlan <email@hidden>
  • Date: Wed, 6 Jun 2007 14:51:42 -0700


On Jun 6, 2007, at 14:25 , Dave MacLachlan wrote:

Does anyone know how to deal with "indirect symbol table entry"? I'm running into it trying to build my unittests in release configuration.

First I build BarTestApp.

Ld "/Users/dmaclach/cleansource/foo/bar/build/BarTestApp.build/ Release/BarTestApp.build/Objects-normal/i386/BarTestApp" normal i386
cd /Users/dmaclach/cleansource/foo/bar
/usr/bin/g++-4.0 -o /Users/dmaclach/cleansource/foo/bar/build/ BarTestApp.build/Release/BarTestApp.build/Objects-normal/i386/ BarTestApp -L/Users/dmaclach/cleansource/foo/bar/build/Release -F/ Users/dmaclach/cleansource/foo/bar/build/Release -filelist /Users/ dmaclach/cleansource/foo/bar/build/BarTestApp.build/Release/ BarTestApp.build/Objects-normal/i386/BarTestApp.LinkFileList - framework Carbon -framework Security -framework Foundation - framework AppKit -framework QuickTime -framework Quartz -framework SecurityFoundation -framework SystemConfiguration -arch i386 -Wl,-Y, 1455 -mmacosx-version-min=10.4 -Wl,-dead_strip -isysroot /Developer/ SDKs/MacOSX10.4u.sdk


Then it gets stripped in a post build phase.

Strip "/Users/dmaclach/cleansource/foo/bar/build/Release/ BarTestApp.app/Contents/MacOS/BarTestApp"
cd /Users/dmaclach/cleansource/foo/bar
/usr/bin/strip /Users/dmaclach/cleansource/foo/bar/build/ Release/BarTestApp.app/Contents/MacOS/BarTestApp


Then I build a UnitTest bundle (BarTest ) that uses BarTestApp as it's bundle-loader.

Ld /Users/dmaclach/cleansource/foo/bar/build/Release/BarTest.octest/ Contents/MacOS/BarTest normal i386
cd /Users/dmaclach/cleansource/foo/bar
/usr/bin/gcc-4.0 -o /Users/dmaclach/cleansource/foo/bar/build/ Release/BarTest.octest/Contents/MacOS/BarTest -L/Users/dmaclach/ cleansource/foo/bar/build/Release -F/Users/dmaclach/cleansource/foo/ bar/build/Release -filelist /Users/dmaclach/cleansource/foo/bar/ build/bar.build/Release/BarTest.build/Objects-normal/i386/ BarTest.LinkFileList -framework Foundation -framework SenTestingKit -framework OCMock -arch i386 -Wl,-Y,1455 -bundle -mmacosx-version- min=10.4 -Wl,-dead_strip -bundle_loader /Users/dmaclach/cleansource/ foo/bar/build/Release/BarTestApp.app/Contents/MacOS/BarTestApp - undefined dynamic_lookup -isysroot /Developer/SDKs/MacOSX10.4u.sdk


and I receive:

/usr/bin/ld: /Users/dmaclach/cleansource/foo/bar/build/Release/ BarTestApp.app/Contents/MacOS/BarTestApp indirect symbol table entry 3 past the end of the symbol table
collect2: ld returned 1 exit status

I can fix this by removing -bundle_loader /Users/dmaclach/cleansource/ foo/bar/build/Release/BarTestApp.app/Contents/MacOS/BarTestApp from the linkage of BarTest. This would seem to be a bug in ld.


I don't have a simple test case to repro. Apple folks, is this sufficient for a radar for you? I'll happily file one.

Cheers,
Dave
_______________________________________________
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


References: 
 >Link Error: indirect symbol table entry (From: Dave MacLachlan <email@hidden>)

  • Prev by Date: Re: Overriding functions in static library
  • Next by Date: Re: Dylib Dependencies (again)
  • Previous by thread: Link Error: indirect symbol table entry
  • Next by thread: Open using Rosetta checkbox mar disappears
  • Index(es):
    • Date
    • Thread