World: r3wp
[!REBOL3 Host Kit]
older newer | first last |
Carl 4-Nov-2010 [703x2] | I seem to remember from last time we tried this... there's a special linker tool required on OS X. |
But, it was a while ago, so I could be wrong. | |
Andreas 4-Nov-2010 [705] | i think my attempt was linking with GNU ld |
Carl 4-Nov-2010 [706] | So, I just wanted to post the doc above... and see if there's anyone who wants Host-Lib on OS X and is willing to solve the problem in some reasonable way. |
Andreas 4-Nov-2010 [707x2] | I think the reasonable way is to get you a reasonable linker. |
I assume you are on OSX 10.4 ("Tiger")? | |
Carl 4-Nov-2010 [709x3] | right |
So, you're telling me that everyone who built software for 10.4 used a bad linker? | |
libtool -- the name I was trying to remember | |
Andreas 4-Nov-2010 [712] | No, I'm just saying that for those set of command line flags, your linker behaves strange. |
Carl 4-Nov-2010 [713] | It's concatenating the objects. An old lazy method of lib building. |
Andreas 4-Nov-2010 [714] | How did you install GCC? Via Xcode? |
Carl 4-Nov-2010 [715x3] | And, I mean lazy both ways. ;) |
Yes, Xcode. | |
Perhaps I can cross build the lib from a linux box... ? | |
Andreas 4-Nov-2010 [718] | Yes, but that's a lot of work. |
Carl 4-Nov-2010 [719] | Might be worth it. |
Andreas 4-Nov-2010 [720] | Would you mind upgrading to Xcode 2.5? |
Carl 4-Nov-2010 [721] | What's required to go to 2.5? Most tools are dead-ended for 10.4. |
Andreas 4-Nov-2010 [722x2] | 2.5 should work on 10.4. |
I'm pretty sure that's what I used to build the above sample. | |
Carl 4-Nov-2010 [724] | Does Xcode have an update button? |
Andreas 4-Nov-2010 [725x2] | No idea. |
Here;s a direct link: https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=19907 | |
Carl 4-Nov-2010 [727] | So, 2.5 worked for you? |
Andreas 4-Nov-2010 [728x3] | (You'll need an "Apple ID".) |
Unfortunately I don't have the exact machine I tried not handy at the moment. But I know it was a 10.4 OSX and I know that the above "exports.tar.gz" worked. | |
I'm pretty sure I used the most recent Xcode available for Tiger, which seems to be 2.5. | |
Carl 4-Nov-2010 [731x3] | odd msg in login... |
This Apple ID has been disabled for security reasons. | |
I can have Cindy setup a new devl account... but I suspect this will all lead down a road that will cost me a lot of time. I don't see why cross building from Linux or BSD is a problem. It's just a lib, not an app. | |
Andreas 4-Nov-2010 [734x4] | Because setting up the cross compiler is a lot of work. |
You need to download and rip apart Xcode, amongst other things. | |
(Check your PM.) | |
How would I know? I built such a cross-compiler before: $ uname -sm Linux i686 $ gcc -dumpmachine i486-linux-gnu $ i686-apple-darwin9-gcc -dumpmachine i686-apple-darwin9 | |
Carl 4-Nov-2010 [738x2] | Right, but it's just elf, isn't it? |
The only dependencies are minimal. | |
Andreas 4-Nov-2010 [740] | OSX is Mach-O. |
Carl 4-Nov-2010 [741x2] | Ah... so there's the rub. |
Ever try an elf-to-mach-o converter? | |
Andreas 4-Nov-2010 [743x4] | Nope. |
But I only know of one, in any case. | |
And that'd still need a Mach-O linker. | |
(Agner's "objconv" is the one I once stumbled across: http://www.agner.org/optimize/) | |
ssolie 4-Nov-2010 [747] | I'm not seeing my Dev_Event device's RDC_QUIT vector being called when I exit r3 with a 'q' from the command line. I do see the RDC_INIT vector being called. |
Andreas 4-Nov-2010 [748x2] | hmm, i don't think any of the RDC_QUIT vectors are called, iirc |
what are you going to use for the event device? some amiga-ism? | |
ssolie 4-Nov-2010 [750x2] | yes, setting up a timer at the moment |
the current event device uses some windows-ism | |
Andreas 4-Nov-2010 [752] | yes |
older newer | first last |