r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!REBOL3 Host Kit]

ssolie
7-Nov-2010
[814]
I suppose I should go file a bug report right now so we don't forget...
Henrik
7-Nov-2010
[815]
If you don't have the ability to intercept the closing of the window, 
then you will cause data loss in apps, and not giving the program 
a chance to clean up (temp files, file locks, etc.) when quitting. 
Tthis deals with more than plain warnings of window closure. This 
is a UI and app specific behavior issue and should really not be 
controlled on a low level.
Gregg
7-Nov-2010
[816]
I'm with Petr and Henrik here. We need to get the event and not have 
our process end before we can clean up. Hard terminating an runaway 
or zombie is a different issue.
ssolie
7-Nov-2010
[817x2]
I am currently doing cleanup in the RDC_QUIT vector of the OS Events 
device.
Filed a bug report.. bbl
Cyphre
7-Nov-2010
[819]
Carl, Andreas: I tried to update the Xcode to 2.5 but the compiled 
result of the test from Andreas is the same as with the older version 
:-/
Andreas
7-Nov-2010
[820x3]
Ha, Cyphre!
I think I figured it out even for older toolchains.
Would you like to help me testing?
Cyphre
7-Nov-2010
[823]
sure, I can..let me boot and login to my old mac mini ;)
Andreas
7-Nov-2010
[824]
Ok, let's use PM to reduce the noise :)
Cyphre
7-Nov-2010
[825]
ok
Andreas
7-Nov-2010
[826x3]
Ok, seems we solved the OS X linking issue even for older toolchains.
The trick is to partially link all objects into an (internally resolved) 
single object and then use this to create the shared library. So, 
for Carl's example, that boils down to:

  ld -r -x -o lib.so a.o b.o
  gcc -dynamiclib -o lib.so lib.o

Here's a full package illustrating this:
http://bolka.at/2010/misc/exports2.tar.gz
Sorry, subtle but critical typo in the above. Should be:

  ld -r -x -o lib.o a.o b.o
  gcc -dynamiclib -o lib.so lib.o
Carl
8-Nov-2010
[829x4]
Ah, very good. This solution looks like it does what is needed!  
I should have the OS X .so out soon.
The link failed...

ld: lib.o malformed object (section (__TEXT,___textcoal_nt) no symbol 
at start of coalesced section)
Using -t ... the above ld failure happens in the system files, not 
the R3 side.
I've confirmed that /core builds and runs... so this is not likely 
to be related to the gcc update.
Andreas
8-Nov-2010
[833]
Hm, does the link succeed if you leave out the -x option to ld?
Carl
8-Nov-2010
[834]
yes
Andreas
8-Nov-2010
[835x2]
Ok. Then try make an unstripped .so from the unstripped .o and strip 
-x the .so afterwards.
I.e.:
  ld -r -o lib.o a.o b.o
  gcc -dynamiclib -o lib.so lib.o
  strip -x lib.so
Carl
8-Nov-2010
[837x3]
Actually... I tried that earlier... 1 min...
I misinterpreted the result... that does actually seem to work.
I'll do some tests, and if they pass, will upload the new .so.
Andreas
8-Nov-2010
[840x3]
Great!
It would also be very neat if you could upload the (stripped) libr3.o 
as well, if that's ok for you. Would allow us to build self-contained 
binaries by statically linking in libr3.
Same for Linux (and FreeBSD, and ...), of course. Not sure if this 
is possible on Windows (I doubt it, actually).
Maxim
8-Nov-2010
[843]
guess it would be a .lib
Andreas
8-Nov-2010
[844x2]
Yes, but no idea if partial linking is possible with COFF.
(I.e. on Win32.)
Carl
8-Nov-2010
[846]
A: yes, can export static lib for OS X and Linux.
Andreas
8-Nov-2010
[847]
Lovely!
ssolie
8-Nov-2010
[848]
This libr3.o of which you speak.. that should work for Amiga as well 
shouldn't it?
Kaj
8-Nov-2010
[849]
It would have to be one specific for Amiga, like the dynamic one
ssolie
9-Nov-2010
[850]
I just got compositing working on the Amiga (via AGG).
Maxim
9-Nov-2010
[851x2]
congratulations!
funny that R3/view ends up working on Amiga before OSX and Linux 
 :-D
Kaj
9-Nov-2010
[853]
Congratulations, Steven. Good stuff
Henrik
9-Nov-2010
[854]
Cool, Steven. Can you upload a screenshot? We like to have material 
to show progress with and I keep a library of screenshots.
Pekr
9-Nov-2010
[855]
Henrik - you better hurry up with GUI, so that Amigans can have some 
useful demos :-)
Henrik
9-Nov-2010
[856]
We are busy going 1.0 on an application these days, so I'm not working 
very much on the GUI. I can however tell that Rebolek and Cyphre 
are hard at work. :-)
Rebolek
9-Nov-2010
[857]
Yes, right now I'm working on simple object browser for better debugging 
of styles.
Carl
9-Nov-2010
[858x2]
Uploaded OS X libr3.so to github.
http://www.rebol.com/r3/changes.htmlupdated
Steven, nice!
Kaj
9-Nov-2010
[860]
Cool collaboration on the OS X build
Carl
9-Nov-2010
[861]
I'll get you updated lib for A110 for OS4.
Andreas
9-Nov-2010
[862]
Ha, great!
Carl
9-Nov-2010
[863]
Kaj, yes, "Powered by Bolka"