Link Error: indirect symbol table entry
Link Error: indirect symbol table entry
- Subject: Link Error: indirect symbol table entry
- From: Dave MacLachlan <email@hidden>
- Date: Wed, 6 Jun 2007 14:25:41 -0700
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 would think that -undefined dynamic_lookup should help the fact
that symbols BarTest is trying to link against may not be available
in the symbol table, and this does work in other cases we are doing
this. Any ideas appreciated....
I can get around the error if I don't strip BarTestApp, but this
should work shouldn't it?
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