This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
Re: Protection errors on Mac OS X 10.6 (Snow Leopard)
Abdulaziz Ghuloum wrote:
>
> On Sep 8, 2009, at 12:55 AM, Andrew Haley wrote:
>
>> Sure, its overkill, but it'll still work.
>
> There are stuff from <mntent.h> that's not available on darwin, so,
> it seems like we can only mmap.
>
>>>> Go into closures.c, find the definition of FFI_MMAP_EXEC_WRIT for
>>>> your system, and set it accordingly.
>>>
>>> I can do that on my computer, yes. But what about people who
>>> use my program that depends on libffi? I cannot expect them to
>>> have to patch and recompile libffi just to use my program, right?
>>
>> Try it. If it works, we can check it in. The alternative is to write
>> a bunch of special case code for Snow Leopard. I'm happy either
>> way; your call.
>
>
> I tried this patch (against 3.0.8) and after running the autotools,
> reconfiguring, and building, it seems to work for my system (Ikarus
> Scheme <http://ikarus-scheme.org/>).
That looks good. Did you get a clean set of test reuslts?
Andrew.