Problems building a Universal Binary that also works on Panther
Problems building a Universal Binary that also works on Panther
- Subject: Problems building a Universal Binary that also works on Panther
- From: Felix Schwarz <email@hidden>
- Date: Thu, 27 Apr 2006 23:09:42 +0200
Hi,
I'm currently trying to compile a test program using two private
Objective-C frameworks (IOSPIRITSQLCore.framework and
IOSPIRITCore.framework).
The resulting binary should work on Panther (PPC) and on Tiger (x86).
I have set the deployment target to OS X 10.3 and also made sure any
calls to 10.4 specific routines are weak-linked and the presence of
an 10.4 or better is checked before any calls are made to 10.4
specific routines.
Now I'm stuck with a crash producing a crash log (find it below) that
does not really give me any clue as to where the problem might be
located.
There does already seem to be a problem at dynamic link / startup
time before any of my code gets executed. Yet I can't identify the
source of the problem.
The binaries work fine on 10.4.
Any help would be GREATLY appreciated. Thanks in advance!
Felix
**********
Host Name: powermac.lan
Date/Time: 2006-04-27 23:01:31 +0200
OS Version: 10.3.9 (Build 7W98)
Report Version: 2
Command: TestSQLCore
Path: /Volumes/felix/builds/IOSPIRITSQLCore/build/Release/
TestSQLCore.app/Contents/MacOS/TestSQLCore
Version: ??? (???)
PID: 598
Thread: 0
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0xfffeff00
Thread 0 Crashed:
0 <<00000000>> 0xfffeff00 0 + 0xfffeff00
1 dyld 0x8fe14294
_dyld_make_delayed_module_initializer_calls + 0x5c
2 com.yourcompany.TestSQLCore 0x00002e7c _call_mod_init_funcs +
0x34 (crt.c:305)
3 com.yourcompany.TestSQLCore 0x00002c70 _start + 0x9c (crt.c:226)
4 com.yourcompany.TestSQLCore 0x00002bd0 start + 0x3c
PPC Thread State:
srr0: 0xfffeff00 srr1: 0x4200d030 vrsave: 0x00000000
cr: 0x22000248 xer: 0x00000000 lr: 0x8fe09638 ctr: 0x01179bc0
r0: 0x8fe09638 r1: 0xbffffad0 r2: 0x8fe507cc r3: 0x011ca6d8
r4: 0x0119ea7c r5: 0x00000000 r6: 0x8fe53234 r7: 0x9016c3b8
r8: 0x00000046 r9: 0x00171bc0 r10: 0x01179bc8 r11: 0x42000242
r12: 0x01179bc0 r13: 0x00000000 r14: 0x8fe50834 r15: 0x8fe50504
r16: 0x8fe50528 r17: 0x8fe50538 r18: 0x00000001 r19: 0x66020000
r20: 0x8fe50538 r21: 0x00000001 r22: 0x8fe521fc r23: 0x8fe50834
r24: 0x8fe50528 r25: 0x8fe521fc r26: 0x8fe50504 r27: 0x8fe521fc
r28: 0x01179bc0 r29: 0x8fe54ea0 r30: 0x00000001 r31: 0x8fe09458
Binary Images Description:
0x1000 - 0x3fff com.yourcompany.TestSQLCore ??? (1.0) /
Volumes/felix/builds/IOSPIRITSQLCore/build/Release/TestSQLCore.app/
Contents/MacOS/TestSQLCore
0x205000 - 0x254fff com.iospirit.frameworks.sql ??? (1.0) /
Volumes/felix/builds/IOSPIRITSQLCore/build/Release/TestSQLCore.app/
Contents/MacOS/../Frameworks/IOSPIRITSQLCore.framework/Versions/A/
IOSPIRITSQLCore
0x1008000 - 0x11bdfff com.iospirit.frameworks.core ??? (1.0) /
Volumes/felix/builds/IOSPIRITSQLCore/build/Release/TestSQLCore.app/
Contents/MacOS/../Frameworks/IOSPIRITCore.framework/Versions/A/
IOSPIRITCore
0x806c0000 - 0x806e9fff libxslt.1.dylib /usr/lib/libxslt.1.dylib
0x80830000 - 0x8090efff libxml2.2.dylib /usr/lib/libxml2.2.dylib
0x80a50000 - 0x80ad4fff libstdc++.6.dylib /usr/lib/libstdc++.6.dylib
0x80c80000 - 0x80c88fff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib
0x81cb0000 - 0x81cc0fff com.apple.Accelerate.vecLib 3.0.3 (vecLib
3.0.3) /System/Library/Frameworks/Accelerate.framework/Versions/A/
Frameworks/vecLib.framework/Versions/A/vecLib
0x81db0000 - 0x81db3fff libmx.A.dylib /usr/lib/libmx.A.dylib
0x86119000 - 0x863c7fff com.apple.QuickTime 7.0.4 /System/Library/
Frameworks/QuickTime.framework/Versions/A/QuickTime
0x880f0000 - 0x88226fff com.apple.vImage 1.2.0 /System/Library/
Frameworks/Accelerate.framework/Versions/A/Frameworks/
vImage.framework/Versions/A/vImage
0x8a04b000 - 0x8a087fff com.apple.QTKit 7.0.4 /System/Library/
Frameworks/QTKit.framework/Versions/A/QTKit
0x8fd50000 - 0x8fd50fff com.apple.Accelerate 1.0.3 (Accelerate
1.0.3) /System/Library/Frameworks/Accelerate.framework/Versions/A/
Accelerate
0x8fe00000 - 0x8fe4ffff dyld /usr/lib/dyld
0x90000000 - 0x9014ffff libSystem.B.dylib /usr/lib/libSystem.B.dylib
0x901c0000 - 0x9026dfff com.apple.CoreFoundation 6.3.8 (299.36) /
System/Library/Frameworks/CoreFoundation.framework/Versions/A/
CoreFoundation
0x902b0000 - 0x90529fff com.apple.CoreServices.CarbonCore 10.3.7 /
System/Library/Frameworks/CoreServices.framework/Versions/A/
Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x905a0000 - 0x90610fff com.apple.framework.IOKit 1.3.6 (???) /System/
Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x90640000 - 0x906c8fff com.apple.CoreServices.OSServices 3.0.1 /
System/Library/Frameworks/CoreServices.framework/Versions/A/
Frameworks/OSServices.framework/Versions/A/OSServices
0x9071d000 - 0x9072afff com.apple.CommonPanels 1.2.1 (1.0) /System/
Library/Frameworks/Carbon.framework/Versions/A/Frameworks/
CommonPanels.framework/Versions/A/CommonPanels
0x90733000 - 0x90746fff libRIP.A.dylib /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/
CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
0x90810000 - 0x90810fff com.apple.ApplicationServices 1.0 (???) /
System/Library/Frameworks/ApplicationServices.framework/Versions/A/
ApplicationServices
0x90812000 - 0x9082ffff com.apple.audio.SoundManager 3.9 /System/
Library/Frameworks/Carbon.framework/Versions/A/Frameworks/
CarbonSound.framework/Versions/A/CarbonSound
0x90860000 - 0x908cffff libobjc.A.dylib /usr/lib/libobjc.A.dylib
0x908f5000 - 0x9090ffff com.apple.openscripting 1.2.1 (???) /System/
Library/Frameworks/Carbon.framework/Versions/A/Frameworks/
OpenScripting.framework/Versions/A/OpenScripting
0x90940000 - 0x909b3fff com.apple.DesktopServices 1.2.5 /System/
Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/
DesktopServicesPriv
0x90a02000 - 0x90a0dfff com.apple.securityhi 1.2 (90) /System/Library/
Frameworks/Carbon.framework/Versions/A/Frameworks/
SecurityHI.framework/Versions/A/SecurityHI
0x90a20000 - 0x90b7bfff com.apple.Foundation 6.3.8 (500.61) /System/
Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x90c32000 - 0x90c4cfff libPDFRIP.A.dylib /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/
CoreGraphics.framework/Versions/A/Resources/libPDFRIP.A.dylib
0x90c70000 - 0x90c8afff libGL.dylib /System/Library/Frameworks/
OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x90cb0000 - 0x90d12fff libGLU.dylib /System/Library/Frameworks/
OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x90d40000 - 0x90d40fff com.apple.Carbon 10.3 (???) /System/Library/
Frameworks/Carbon.framework/Versions/A/Carbon
0x90d50000 - 0x90d6bfff com.apple.SystemConfiguration 1.7.1 (???) /
System/Library/Frameworks/SystemConfiguration.framework/Versions/A/
SystemConfiguration
0x90d7c000 - 0x90d8ffff com.apple.speech.synthesis.framework 3.2 /
System/Library/Frameworks/ApplicationServices.framework/Versions/A/
Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x90db0000 - 0x90dbbfff com.apple.opengl 1.3.8 /System/Library/
Frameworks/OpenGL.framework/Versions/A/OpenGL
0x90e13000 - 0x90e4bfff com.apple.LaunchServices 10.3.5 (98.4) /
System/Library/Frameworks/ApplicationServices.framework/Versions/A/
Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x90ec0000 - 0x90ec0fff com.apple.Cocoa 6.3 (???) /System/Library/
Frameworks/Cocoa.framework/Versions/A/Cocoa
0x910e0000 - 0x91133fff com.apple.bom 1.2.6 (64) /System/Library/
PrivateFrameworks/Bom.framework/Versions/A/Bom
0x91141000 - 0x91141fff com.apple.CoreServices 10.3 (???) /System/
Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x91242000 - 0x9124bfff com.apple.DiskArbitration 2.0.5 /System/
Library/PrivateFrameworks/DiskArbitration.framework/Versions/A/
DiskArbitration
0x912e0000 - 0x912f7fff com.apple.LangAnalysis 1.5.4 /System/Library/
Frameworks/ApplicationServices.framework/Versions/A/Frameworks/
LangAnalysis.framework/Versions/A/LangAnalysis
0x913a0000 - 0x9145ffff ColorSync /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/
ColorSync.framework/Versions/A/ColorSync
0x914ad000 - 0x91565fff com.apple.audio.toolbox.AudioToolbox 1.3.4 /
System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x915e0000 - 0x91699fff com.apple.QD 3.4.70 (???) /System/Library/
Frameworks/ApplicationServices.framework/Versions/A/Frameworks/
QD.framework/Versions/A/QD
0x916f0000 - 0x91728fff com.apple.AE 1.4 /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/AE.framework/
Versions/A/AE
0x91760000 - 0x917f3fff com.apple.print.framework.PrintCore 3.3 /
System/Library/Frameworks/ApplicationServices.framework/Versions/A/
Frameworks/PrintCore.framework/Versions/A/PrintCore
0x91836000 - 0x9184cfff com.apple.QuartzCore 1.3 /System/Library/
Frameworks/QuartzCore.framework/Versions/A/QuartzCore
0x91859000 - 0x91869fff com.apple.ImageCapture 2.1.5 /System/Library/
Frameworks/Carbon.framework/Versions/A/Frameworks/
ImageCapture.framework/Versions/A/ImageCapture
0x9194f000 - 0x9194ffff com.apple.audio.units.AudioUnit 1.3.3 /System/
Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x91970000 - 0x919befff com.apple.print.framework.Print 3.3 /System/
Library/Frameworks/Carbon.framework/Versions/A/Frameworks/
Print.framework/Versions/A/Print
0x91a40000 - 0x91ab3fff com.apple.NavigationServices 3.3.3 /System/
Library/Frameworks/Carbon.framework/Versions/A/Frameworks/
NavigationServices.framework/Versions/A/NavigationServices
0x91b30000 - 0x91b44fff libCGATS.A.dylib /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/
CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
0x91b60000 - 0x91b6bfff libCSync.A.dylib /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/
CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
0x92070000 - 0x92096fff com.apple.FindByContent 1.4 (1.2) /System/
Library/Frameworks/ApplicationServices.framework/Versions/A/
Frameworks/FindByContent.framework/Versions/A/FindByContent
0x92170000 - 0x92357fff com.apple.security 2.4 (179) /System/Library/
Frameworks/Security.framework/Versions/A/Security
0x927f0000 - 0x92827fff com.apple.CFNetwork 1.2.2 (7) /System/Library/
Frameworks/CoreServices.framework/Versions/A/Frameworks/
CFNetwork.framework/Versions/A/CFNetwork
0x9283f000 - 0x92857fff com.apple.WebServices 1.1.1 (1.1.0) /System/
Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/
WebServicesCore.framework/Versions/A/WebServicesCore
0x92880000 - 0x92c05fff com.apple.HIToolbox 1.3.7 (???) /System/
Library/Frameworks/Carbon.framework/Versions/A/Frameworks/
HIToolbox.framework/Versions/A/HIToolbox
0x92de0000 - 0x92e30fff com.apple.HIServices 1.4.1 (0.0.1d1) /System/
Library/Frameworks/ApplicationServices.framework/Versions/A/
Frameworks/HIServices.framework/Versions/A/HIServices
0x92e70000 - 0x9336ffff com.apple.AppKit 6.3.9 (743.41) /System/
Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x93680000 - 0x93958fff com.apple.CoreGraphics 1.203.30 (???) /System/
Library/Frameworks/ApplicationServices.framework/Versions/A/
Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x939d0000 - 0x939d4fff libmathCommon.A.dylib /usr/lib/system/
libmathCommon.A.dylib
0x93a50000 - 0x93a64fff libcups.2.dylib /usr/lib/libcups.2.dylib
0x94580000 - 0x9458cfff com.apple.help 1.0.1 /System/Library/
Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/
Versions/A/Help
0x94596000 - 0x945a5fff libPSRIP.A.dylib /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/
CoreGraphics.framework/Versions/A/Resources/libPSRIP.A.dylib
0x945b0000 - 0x945b9fff libz.1.dylib /usr/lib/libz.1.dylib
0x94650000 - 0x946affff com.apple.SearchKit 1.0.2 /System/Library/
Frameworks/CoreServices.framework/Versions/A/Frameworks/
SearchKit.framework/Versions/A/SearchKit
0x946ed000 - 0x946fdfff com.apple.speech.recognition.framework 3.3 /
System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/
SpeechRecognition.framework/Versions/A/SpeechRecognition
0x94800000 - 0x9488cfff com.apple.ink.framework 101.1.4 (55.12) /
System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/
Ink.framework/Versions/A/Ink
0x94e7f000 - 0x94f47fff libcrypto.0.9.7.dylib /usr/lib/libcrypto.
0.9.7.dylib
0x94fe0000 - 0x95078fff com.apple.WebKit 312.8 /System/Library/
Frameworks/WebKit.framework/Versions/A/WebKit
0x954c0000 - 0x95ac6fff libBLAS.dylib /System/Library/Frameworks/
Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/
A/libBLAS.dylib
0x95b20000 - 0x95df0fff libLAPACK.dylib /System/Library/Frameworks/
Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/
A/libLAPACK.dylib
0x95f00000 - 0x95f20fff libvMisc.dylib /System/Library/Frameworks/
Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/
A/libvMisc.dylib
0x961b0000 - 0x96292fff com.apple.JavaScriptCore 312.3.1 /System/
Library/Frameworks/WebKit.framework/Versions/A/Frameworks/
JavaScriptCore.framework/Versions/A/JavaScriptCore
0x968d0000 - 0x969b2fff libicucore.A.dylib /usr/lib/libicucore.A.dylib
0x96a04000 - 0x96a6dfff com.apple.htmlrendering 1.1.2 /System/Library/
Frameworks/Carbon.framework/Versions/A/Frameworks/
HTMLRendering.framework/Versions/A/HTMLRendering
0x96aa0000 - 0x96acefff libssl.0.9.7.dylib /usr/lib/libssl.0.9.7.dylib
0x96b50000 - 0x96bdffff ATS /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/
Versions/A/ATS
0x96c00000 - 0x96c67fff com.apple.audio.CoreAudio 2.1.3 /System/
Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x96cb0000 - 0x96d9efff libiconv.2.dylib /usr/lib/libiconv.2.dylib
0x96de0000 - 0x96df0fff com.apple.vecLib 3.0.3 (vecLib 3.0.3) /System/
Library/Frameworks/vecLib.framework/Versions/A/vecLib
0x96ee0000 - 0x96ee8fff libbsm.dylib /usr/lib/libbsm.dylib
0x96eec000 - 0x96f06fff libresolv.9.dylib /usr/lib/libresolv.9.dylib
0x97345000 - 0x973b2fff libvDSP.dylib /System/Library/Frameworks/
Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/
A/libvDSP.dylib
0x97900000 - 0x97bf1fff com.apple.WebCore 315.14.1 /System/Library/
Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/
Versions/A/WebCore
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden