On Apr 26, 2010, at 1:28 AM, ext Daniel (Youngwhan) Song wrote:
It seems that while /usr/include/unistd.h has getattrlist, but it defines it in preload/exported.h as well in case of Mac Os X (10.6.3) which has installed xcode as well.
SB2 is not fully supported on OS X. It was possible to compile sb2 for it, but sb2 haven't been used on OS X, AFAIK.
The technical reason why the OS X port was never finished is quite simple: Even if OS X is "mostly mechanically compatible" with sb2's requirements (i.e. OS X has the DYLD_INSERT_LIBRARIES feature, which should be practically the same as LD_PRELOAD, etc), sb2 isn't all you need: Both SB2 and Qemu are needed for embedded linux develompent. And since sb2 uses the user-mode version of Qemu, that one should be able to run elsewhere that just on Linux. It couldn't be used like that.
The things that were missing from Qemu were related to Qemu's system call and thread support. Qemu _converts_ system calls from one HW architecture to another, but didn't _translate_ syscalls between different OS flavors. So, it really depended on being executed on Linux.
This was the situation at least ca. 2 years ago; someone from the Qemu team might know if there has been any changes since that.
I put band-aid by rename of getattrlist in scratchbox2 as sb_getattrlist, but after that I got another duplicate definition error on glob as well.
All wrapped functions are defined in one interface specification file, preload/interface.master. You'll need to change the prototypes for OS X there.
And please use the latest sources from http://maemo.gitorious.org/scratchbox2/ , the old repository at freedesktop.org is not up-to-date, and won't be updated anymore.
Lauri _______________________________________________ Scratchbox-users mailing list Scratchbox-users@lists.scratchbox.org http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users