Library not loaded: /opt/local/lib/libGeoIP.1.dylib
Referenced from: /Applications/aMule.app/Contents/MacOS/amule
Reason: image not found
thx for job, but where can i download a compiled osx ?
Ok, Mirko, it works!
It lacks skins (wich were available in Toso's 2.2.3 build) which, tough, is no big deal.
I will reply if something goes wrong.
Ok, I'll take care of skins too. Unfortunately the documentation is poor and outdated...
Then help us to improve it: http://www.amule.org/wiki/index.php/HowTo_compile_on_Mac
Mac:
User: ~/Library/Application Support/aMule/skins
System: aMule.app/Contents/SharedSupport/skins/
Ok, the libGeoIP issue is solved... and it was damn easy: binutils is needed!
Please test this new build: --> link was broken! It will be back soon!
FEATURE:
- Intel version
- GeoIP support
- UPnP support
- Skin support
- AmuleGUI included
Now I'm working on universal binary version. I also opened a ticket at MacPorts trac to solve the error when building universal version of libgeoip.
If you confirm it works with static libgeoip I'll update the wiki page...
Thank you all
Could you try and install this to have GeoIP working?
http://www.lemiefrequenze.org/blog/wp-content/uploads/2009/04/libgeoip-145.zip
thanks
- aMule always hangs on quit [by xja (http://www.amule.org/amule/index.php?action=profile;u=13791)]: waiting for response.
No hangs for me! Your build (2.2.4) seems to quit much faster than gtoso's (2.2.3).
Nice job!! 8)
Thank you very much for your efforts. Just a little remark on your last version. Although the amule.app contains the libGeopIP.1.dylib in the Frameworks Subfolder, the database with the location information seems to be missing.
If you would also add this database to the application folder, there would be no need to install geoIP separately.
This was also the way, geoIP was deployed in 2.2.3. Then you could also remove libgeoip-1.4.5.pkg from the installation image and installing would just require to copy amule.app to the Applications folder.
Maybe you could even strip some more files from amule.app/Contents/Frameworks. 8 Files seem not to be loaded by the linker at start time: libfontconfig, libfreetype, libgd, libintl, libjpeg, libpng, libX11, and libXpm. I don't know what these libraries are for. Maybe the are loaded dynamically, but I noticed no error message or malfunction in amule after deleting those libraries.
It doesn't work for me. I get this messagge:
ClientCreditsList.cpp(378): Credits: Error while creating signature: OS_Rng: open /dev/urandom operation failed with error 24
Just the very same number of files I was downloading with Amule 2.2.3 without a problem... I think this should be fixed.
Thanks. :)
I'm using MacOs X 10.5.6
$ sudo sysctl -a | grep kern.max > /Users/$(whoami)/Desktop/sysctl.bak
$ sudo sysctl -w kern.maxfilesperproc=32768
$ sudo sysctl -w kern.maxfiles=131392
$ sudo sysctl -w kern.maxprocperuid=16384
$ sudo sysctl -w kern.maxproc=2048
Now restart aMule...I tried the link on p. 2, but it is dead.....
Process: amule [2874]
Path: /Applications/aMule.app/Contents/MacOS/amule
Identifier: org.amule.aMule
Version: 2.2.4 (2.2.4)
Code Type: X86 (Native)
Parent Process: launchd [90]
Date/Time: 2009-04-23 19:45:56.968 +0300
OS Version: Mac OS X 10.5.6 (9G2030)
Report Version: 6
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 0
Thread 0 Crashed:
0 libSystem.B.dylib 0x9171ee42 __kill + 10
1 libSystem.B.dylib 0x9179123a raise + 26
2 libSystem.B.dylib 0x9179d679 abort + 73
3 org.amule.aMule 0x0029bd57 wxString::Last() const + 3927
4 org.amule.aMule 0x000077d8 wxThreadHelperThread::~wxThreadHelperThread() + 19544
5 org.amule.aMule 0x005878a3 wxHashTable::~wxHashTable() + 2499
6 org.amule.aMule 0x001bf238 __gnu_debug_def::vector<CUPnPArgumentValue, std::allocator<CUPnPArgumentValue> >::resize(unsigned long, CUPnPArgumentValue) + 808
7 org.amule.aMule 0x000021c6 0x1000 + 4550
Thread 1:
0 libSystem.B.dylib 0x916b11c6 mach_msg_trap + 10
1 libSystem.B.dylib 0x916b89bc mach_msg + 72
2 com.unsanity.ape 0x01db6c39 __ape_agent + 316
3 libSystem.B.dylib 0x916e2095 _pthread_start + 321
4 libSystem.B.dylib 0x916e1f52 thread_start + 34
Thread 2:
0 libSystem.B.dylib 0x917006f2 select$DARWIN_EXTSN + 10
1 libSystem.B.dylib 0x916e2095 _pthread_start + 321
2 libSystem.B.dylib 0x916e1f52 thread_start + 34
Thread 3:
0 libSystem.B.dylib 0x916b83ae __semwait_signal + 10
1 libSystem.B.dylib 0x916e2d0d pthread_cond_wait$UNIX2003 + 73
2 libthreadutil.2.dylib 0x0104bb5b TimerThreadWorker + 279
3 libthreadutil.2.dylib 0x0104b7aa WorkerThread + 1458
4 libSystem.B.dylib 0x916e2095 _pthread_start + 321
5 libSystem.B.dylib 0x916e1f52 thread_start + 34
Thread 4:
0 libSystem.B.dylib 0x916b83ae __semwait_signal + 10
1 libSystem.B.dylib 0x917089f0 pthread_cond_timedwait$UNIX2003 + 72
2 libthreadutil.2.dylib 0x0104b4ab WorkerThread + 691
3 libSystem.B.dylib 0x916e2095 _pthread_start + 321
4 libSystem.B.dylib 0x916e1f52 thread_start + 34
Thread 5:
0 libSystem.B.dylib 0x916b83ae __semwait_signal + 10
1 libSystem.B.dylib 0x917089f0 pthread_cond_timedwait$UNIX2003 + 72
2 libthreadutil.2.dylib 0x0104b4ab WorkerThread + 691
3 libSystem.B.dylib 0x916e2095 _pthread_start + 321
4 libSystem.B.dylib 0x916e1f52 thread_start + 34
Thread 6:
0 libSystem.B.dylib 0x916b83ae __semwait_signal + 10
1 libSystem.B.dylib 0x917089f0 pthread_cond_timedwait$UNIX2003 + 72
2 libthreadutil.2.dylib 0x0104b4ab WorkerThread + 691
3 libSystem.B.dylib 0x916e2095 _pthread_start + 321
4 libSystem.B.dylib 0x916e1f52 thread_start + 34
Thread 7:
0 libSystem.B.dylib 0x917006f2 select$DARWIN_EXTSN + 10
1 libthreadutil.2.dylib 0x0104b7aa WorkerThread + 1458
2 libSystem.B.dylib 0x916e2095 _pthread_start + 321
3 libSystem.B.dylib 0x916e1f52 thread_start + 34
Thread 8:
0 libSystem.B.dylib 0x916b83ae __semwait_signal + 10
1 libSystem.B.dylib 0x917089f0 pthread_cond_timedwait$UNIX2003 + 72
2 libthreadutil.2.dylib 0x0104b4ab WorkerThread + 691
3 libSystem.B.dylib 0x916e2095 _pthread_start + 321
4 libSystem.B.dylib 0x916e1f52 thread_start + 34
Thread 9:
0 libSystem.B.dylib 0x916b83ae __semwait_signal + 10
1 libSystem.B.dylib 0x916e2d0d pthread_cond_wait$UNIX2003 + 73
2 com.apple.ColorSync 0x94ae045c pthreadSemaphoreWait(t_pthreadSemaphore*) + 42
3 com.apple.ColorSync 0x94af2d8e CMMConvTask(void*) + 54
4 libSystem.B.dylib 0x916e2095 _pthread_start + 321
5 libSystem.B.dylib 0x916e1f52 thread_start + 34
Thread 10:
0 libSystem.B.dylib 0x916b12e6 mach_wait_until + 10
1 ...ple.CoreServices.CarbonCore 0x94547933 MPDelayUntil + 39
2 org.amule.aMule 0x005d47ef wxCFDictionary::PrintOutDictionary(wxString&, __CFDictionary const*) + 2975
3 org.amule.aMule 0x00130496 CHashingTask::~CHashingTask() + 5526
4 org.amule.aMule 0x005d5a2d wxCFDictionary::PrintOutDictionary(wxString&, __CFDictionary const*) + 7645
5 ...ple.CoreServices.CarbonCore 0x9452f0a3 PrivateMPEntryPoint + 56
6 libSystem.B.dylib 0x916e2095 _pthread_start + 321
7 libSystem.B.dylib 0x916e1f52 thread_start + 34
Thread 0 crashed with X86 Thread State (32-bit):
eax: 0x00000000 ebx: 0x9179d639 ecx: 0xbffffa2c edx: 0x9171ee42
edi: 0xbffffad8 esi: 0x173ccee0 ebp: 0xbffffa48 esp: 0xbffffa2c
ss: 0x0000001f efl: 0x00000286 eip: 0x9171ee42 cs: 0x00000007
ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037
cr2: 0x00033000
Process: amule [77464]
Path: /Applications/aMule.app/Contents/MacOS/amule
Identifier: org.amule.aMule
Version: 2.2.4 (2.2.4)
Code Type: X86 (Native)
Parent Process: launchd [145]
Date/Time: 2009-05-04 07:53:00.025 +0200
OS Version: Mac OS X 10.5.6 (9G55)
Report Version: 6
Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_INVALID_ADDRESS at 0x000000004310256c
Crashed Thread: 0
Thread 0 Crashed:
0 libSystem.B.dylib 0x9385fe42 __kill + 10
1 libSystem.B.dylib 0x938d223a raise + 26
2 libSystem.B.dylib 0x938de679 abort + 73
3 org.amule.aMule 0x005e03d6 wxMessageOutputLog::~wxMessageOutputLog() + 7286
4 libSystem.B.dylib 0x9385e2bb _sigtramp + 43
5 ??? 0xffffffff 0 + 4294967295
6 org.amule.aMule 0x0059ed61 wxStringStreamUnconvBuffers_wxImplementation_HashTable::GetBucketForNode(wxStringStreamUnconvBuffers_wxImplementation_HashTable*, wxStringStreamUnconvBuffers_wxImplementation_HashTable::Node*) + 5393
7 org.amule.aMule 0x005a64d2 wxFilterClassFactory::~wxFilterClassFactory() + 1618
8 org.amule.aMule 0x005e05f0 wxMessageOutputLog::~wxMessageOutputLog() + 7824
9 org.amule.aMule 0x002a06fc wxFFile::~wxFFile() + 8092
10 org.amule.aMule 0x0022d3a7 __gnu_debug_def::deque<LogEntry*, std::allocator<LogEntry*> >::~deque() + 1991
11 org.amule.aMule 0x0023d908 __gnu_debug_def::deque<LogEntry*, std::allocator<LogEntry*> >::~deque() + 68904
12 org.amule.aMule 0x000052c4 wxThreadHelperThread::~wxThreadHelperThread() + 10052
13 org.amule.aMule 0x005dd353 wxStandardPaths::~wxStandardPaths() + 1603
14 org.amule.aMule 0x005dd4cf wxStandardPaths::~wxStandardPaths() + 1983
15 org.amule.aMule 0x005dd89f wxStandardPaths::~wxStandardPaths() + 2959
16 org.amule.aMule 0x005dd92c wxStandardPaths::~wxStandardPaths() + 3100
17 org.amule.aMule 0x00550119 GSocketGUIFunctionsTableNull::~GSocketGUIFunctionsTableNull() + 1401
18 com.apple.CoreFoundation 0x969ec5f5 CFRunLoopRunSpecific + 3141
19 com.apple.CoreFoundation 0x969eccd8 CFRunLoopRunInMode + 88
20 com.apple.HIToolbox 0x96ae52c0 RunCurrentEventLoopInMode + 283
21 com.apple.HIToolbox 0x96ae50d9 ReceiveNextEventCommon + 374
22 com.apple.HIToolbox 0x96b43c6e _AcquireNextEvent + 58
23 com.apple.HIToolbox 0x96b9d891 _TrackMouseLocationOrAreaReturningEvent + 571
24 com.apple.HIToolbox 0x96b9d5e4 TrackMouseLocationWithOptions + 94
25 com.apple.HIToolbox 0x96b9d391 HIView::BasicTrackInternal(CGPoint const&, unsigned long, short, void (*)(OpaqueControlRef*, short), unsigned char, GlyphState const*, unsigned long*) + 613
26 com.apple.HIToolbox 0x96b9ceed HIView::TrackSelf(OpaqueEventRef*, short*) + 565
27 com.apple.HIToolbox 0x96c76064 HIBevelButton::TrackSelf(OpaqueEventRef*, short*) + 1062
28 com.apple.HIToolbox 0x96acb850 HIView::EventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 2614
29 com.apple.HIToolbox 0x96abd143 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1181
30 com.apple.HIToolbox 0x96abc57d SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 405
31 com.apple.HIToolbox 0x96abc3e2 SendEventToEventTargetWithOptions + 58
32 com.apple.HIToolbox 0x96b9ca90 SendControlDefTrack(HIView*, CGPoint const&, unsigned long*, void (*)(OpaqueControlRef*, short), OpaqueEventRef*, short*) + 310
33 com.apple.HIToolbox 0x96b9c8b4 HIView::ClickInternal(CGPoint const&, unsigned long, void (*)(OpaqueControlRef*, short), OpaqueEventRef*, bool) + 126
34 com.apple.HIToolbox 0x96b89116 HIView::ClickSelf(OpaqueEventRef*) + 370
35 com.apple.HIToolbox 0x96acb771 HIView::EventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 2391
36 com.apple.HIToolbox 0x96abd143 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1181
37 com.apple.HIToolbox 0x96abc57d SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 405
38 com.apple.HIToolbox 0x96ad8ed2 SendEventToEventTarget + 52
39 com.apple.HIToolbox 0x96b8672f HIView::Click(OpaqueEventRef*) + 329
40 com.apple.HIToolbox 0x96b86591 HandleClickAsHIView(OpaqueWindowPtr*, OpaqueEventRef*) + 151
41 com.apple.HIToolbox 0x96b85f21 HandleWindowClick(OpaqueWindowPtr*, Point, short, unsigned long, OpaqueEventRef*) + 505
42 com.apple.HIToolbox 0x96b85d13 HandleMouseEvent(OpaqueEventHandlerCallRef*, OpaqueEventRef*) + 791
43 com.apple.HIToolbox 0x96b4170a StandardWindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 96
44 com.apple.HIToolbox 0x96abd143 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1181
45 com.apple.HIToolbox 0x96abc57d SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 405
46 com.apple.HIToolbox 0x96ad8ed2 SendEventToEventTarget + 52
47 com.apple.HIToolbox 0x96aeb0a8 ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 1208
48 com.apple.HIToolbox 0x96abd4fc DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 2134
49 com.apple.HIToolbox 0x96abc57d SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 405
50 com.apple.HIToolbox 0x96ad8ed2 SendEventToEventTarget + 52
51 org.amule.aMule 0x00428496 wxwxAccelListNode::~wxwxAccelListNode() + 2134
52 org.amule.aMule 0x0042856f wxwxAccelListNode::~wxwxAccelListNode() + 2351
53 org.amule.aMule 0x004424d3 wxDropSourceBase::~wxDropSourceBase() + 259
54 org.amule.aMule 0x004cf09f wxDirDialogBase::~wxDirDialogBase() + 351
55 org.amule.aMule 0x004acfe3 wxANIDecoder::Clone() const + 915
56 org.amule.aMule 0x0058785a wxHashTable::~wxHashTable() + 2426
57 org.amule.aMule 0x001bf238 __gnu_debug_def::vector<CUPnPArgumentValue, std::allocator<CUPnPArgumentValue> >::resize(unsigned long, CUPnPArgumentValue) + 808
58 org.amule.aMule 0x000021c6 0x1000 + 4550
Thread 1:
0 libSystem.B.dylib 0x938416f2 select$DARWIN_EXTSN + 10
1 libSystem.B.dylib 0x93823095 _pthread_start + 321
2 libSystem.B.dylib 0x93822f52 thread_start + 34
Thread 2:
0 libSystem.B.dylib 0x937f93ae __semwait_signal + 10
1 libSystem.B.dylib 0x93823d0d pthread_cond_wait$UNIX2003 + 73
2 libthreadutil.2.dylib 0x0104bb5b TimerThreadWorker + 279
3 libthreadutil.2.dylib 0x0104b7aa WorkerThread + 1458
4 libSystem.B.dylib 0x93823095 _pthread_start + 321
5 libSystem.B.dylib 0x93822f52 thread_start + 34
Thread 3:
0 libSystem.B.dylib 0x937f93ae __semwait_signal + 10
1 libSystem.B.dylib 0x938499f0 pthread_cond_timedwait$UNIX2003 + 72
2 libthreadutil.2.dylib 0x0104b4ab WorkerThread + 691
3 libSystem.B.dylib 0x93823095 _pthread_start + 321
4 libSystem.B.dylib 0x93822f52 thread_start + 34
Thread 4:
0 libSystem.B.dylib 0x937f93ae __semwait_signal + 10
1 libSystem.B.dylib 0x938499f0 pthread_cond_timedwait$UNIX2003 + 72
2 libthreadutil.2.dylib 0x0104b4ab WorkerThread + 691
3 libSystem.B.dylib 0x93823095 _pthread_start + 321
4 libSystem.B.dylib 0x93822f52 thread_start + 34
Thread 5:
0 libSystem.B.dylib 0x937f93ae __semwait_signal + 10
1 libSystem.B.dylib 0x938499f0 pthread_cond_timedwait$UNIX2003 + 72
2 libthreadutil.2.dylib 0x0104b4ab WorkerThread + 691
3 libSystem.B.dylib 0x93823095 _pthread_start + 321
4 libSystem.B.dylib 0x93822f52 thread_start + 34
Thread 6:
0 libSystem.B.dylib 0x938416f2 select$DARWIN_EXTSN + 10
1 libthreadutil.2.dylib 0x0104b7aa WorkerThread + 1458
2 libSystem.B.dylib 0x93823095 _pthread_start + 321
3 libSystem.B.dylib 0x93822f52 thread_start + 34
Thread 7:
0 libSystem.B.dylib 0x937f93ae __semwait_signal + 10
1 libSystem.B.dylib 0x938499f0 pthread_cond_timedwait$UNIX2003 + 72
2 libthreadutil.2.dylib 0x0104b4ab WorkerThread + 691
3 libSystem.B.dylib 0x93823095 _pthread_start + 321
4 libSystem.B.dylib 0x93822f52 thread_start + 34
Thread 8:
0 libSystem.B.dylib 0x937f93ae __semwait_signal + 10
1 libSystem.B.dylib 0x93823d0d pthread_cond_wait$UNIX2003 + 73
2 com.apple.ColorSync 0x9522145c pthreadSemaphoreWait(t_pthreadSemaphore*) + 42
3 com.apple.ColorSync 0x95233d8e CMMConvTask(void*) + 54
4 libSystem.B.dylib 0x93823095 _pthread_start + 321
5 libSystem.B.dylib 0x93822f52 thread_start + 34
Thread 9:
0 libSystem.B.dylib 0x937f22e6 mach_wait_until + 10
1 ...ple.CoreServices.CarbonCore 0x91725933 MPDelayUntil + 39
2 org.amule.aMule 0x005d47ef wxCFDictionary::PrintOutDictionary(wxString&, __CFDictionary const*) + 2975
3 org.amule.aMule 0x00130496 CHashingTask::~CHashingTask() + 5526
4 org.amule.aMule 0x005d5a2d wxCFDictionary::PrintOutDictionary(wxString&, __CFDictionary const*) + 7645
5 ...ple.CoreServices.CarbonCore 0x9170d0a3 PrivateMPEntryPoint + 56
6 libSystem.B.dylib 0x93823095 _pthread_start + 321
7 libSystem.B.dylib 0x93822f52 thread_start + 34
Thread 10:
0 libSystem.B.dylib 0x93836796 __wait4 + 10
1 org.amule.aMule 0x004273d5 wxHIDModule::~wxHIDModule() + 1029
2 org.amule.aMule 0x005d5a2d wxCFDictionary::PrintOutDictionary(wxString&, __CFDictionary const*) + 7645
3 ...ple.CoreServices.CarbonCore 0x9170d0a3 PrivateMPEntryPoint + 56
4 libSystem.B.dylib 0x93823095 _pthread_start + 321
5 libSystem.B.dylib 0x93822f52 thread_start + 34
Thread 11:
0 libSystem.B.dylib 0x937f221a semaphore_timedwait_trap + 10
1 ...ple.CoreServices.CarbonCore 0x9172049b MPWaitOnSemaphore + 125
2 org.amule.aMule 0x005d440b wxCFDictionary::PrintOutDictionary(wxString&, __CFDictionary const*) + 1979
3 org.amule.aMule 0x00298d30 CTimerThread::Entry() + 144
4 org.amule.aMule 0x005d5a2d wxCFDictionary::PrintOutDictionary(wxString&, __CFDictionary const*) + 7645
5 ...ple.CoreServices.CarbonCore 0x9170d0a3 PrivateMPEntryPoint + 56
6 libSystem.B.dylib 0x93823095 _pthread_start + 321
7 libSystem.B.dylib 0x93822f52 thread_start + 34
Thread 0 crashed with X86 Thread State (32-bit):
eax: 0x00000000 ebx: 0x938de639 ecx: 0xbfffd60c edx: 0x9385fe42
edi: 0x00010000 esi: 0xbfffd980 ebp: 0xbfffd628 esp: 0xbfffd60c
ss: 0x0000001f efl: 0x00000282 eip: 0x9385fe42 cs: 0x00000007
ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037
cr2: 0x4310256c
... CONTINUE ...
anyway, if you want a working and stable version of aMule of osx (intel, ppc, both) you need to rewrite almost half of the code.
mirko, I offered you my help, you never responded. that's too bad.
anyway, if you want a working and stable version of aMule of osx (intel, ppc, both) you need to rewrite almost half of the code.
if you want a working and stable version of aMule of osx (intel, ppc, both) you need to rewrite almost half of the code.
anyway, if you want a working and stable version of aMule of osx (intel, ppc, both) you need to rewrite almost half of the code.
Sorry mirko.g, but please use the name of the project in the filename. Name changes are not acceptable, and I know where this is going.
dyld: Symbol not found: _kUTTypeTIFF
Referenced from: /Applications/aMule.app/Contents/MacOS/amule
Expected in: /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
The same problem reported by himkawong on my macbook.
It doesn't actually work with Tiger, no, I tested it as well. I can help you find out why if you want, but it'll have to be in the weekend if you don't find it first.
EDIT: However, I am pretty sure I know what's going on: Make sure you compiled with the right framework (10.4) EVERY library. Those that don't have the option, use the CC= solution.
Do you need any help with the right flags?
SDK=/Developer/SDKs/MacOSX10.4u.sdk
CFLAGS="-isysroot ${SDK} -arch ppc -arch i386 -mmacosx-version-min=10.4 $CFLAGS"
CPPFLAGS="-isysroot ${SDK} -arch ppc -arch i386 -mmacosx-version-min=10.4 $CPPFLAGS"
LDFLAGS="-isysroot ${SDK} -Wl,-syslibroot,${SDK} -mmacosx-version-min=10.4 $LDFLAGS"
EDIT:
I'm not sure but it seems to me there are two other ways to get a app built against 10.5 working on 10.4... the first one implicates the use of the MACOSX_DEPLOYMENT_TARGET flag, the second of CC="gcc -mmacosx-version-min=10.4", but I have to understand them deeply...
From man gcc:
-mmacosx-version-min=version
The earliest version of MacOS X that this executable will run on is
version. Typical values of version include 10.1, 10.2, and 10.3.9.
This value can also be set with the MACOSX_DEPLOYMENT_TARGET
environment variable. If both the command-line option is specified
and the environment variable is set, the command-line option will
take precedence.
I tried to use as min version 10.4, but to use 10.5 SDK and it seems work.
I don't know if it is right but the SDK determines the maximum system whose API you want to benefit from
and the DEPLOYMENT_TARGET the minimal supported OS version...
Maybe it is useless or maybe there is a runtime detect...
Someone can help?
enterprise:tmp2 sadmin$ otool -l /Applications/aMule-2.2.5/aMule.app/Contents/MacOS/*|grep -i weak
otool: can't map file: /Applications/aMule-2.2.5/aMule.app/Contents/MacOS/ed2kHelperScript.app (Invalid argument)
enterprise:tmp2 sadmin$ otool -l /Applications/aMule-2.2.5/aMule.app/Contents/Frameworks/*|grep -i weak
enterprise:tmp2 sadmin$