[squeak-dev] Problem installing Alien

Michael Haupt mhaupt at gmail.com
Fri Nov 27 11:08:41 UTC 2009


And hello again,

On Fri, Nov 27, 2009 at 11:39 AM, Michael Haupt <mhaupt at gmail.com> wrote:
> For me (on a Mac), most of the tests pass; three don't - the ones that
> try to load and use libc. The reason is that a primitive fails:
> AlienLibrary >> primLoadLibrary. I'm trying to figure out what is
> wrong.

with some crucial help from a friend of mine, who also happens to be a
Darwin expert, I was able to fix this. The trouble is that the VM uses
LoadFrameworkBundle() internally, which expects a framework, not a
shared library. However, LibCLibrary>>libraryName would, on Mac OS,
return 'libc.dylib', which is a shared library but not a framework.

Replacing this with
'/System/Library/Frameworks/System.framework/System' does the trick.

John, would it be OK if I upload that fix to the repository? Or will
it break on older Mac OS X versions, i.e., before Snow Leopard?

Best,

Michael



More information about the Squeak-dev mailing list