DragonFly BSD
DragonFly users List (threaded) for 2010-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: w3m / boehm-gc issue (really is getcontext in x86_64)

From: Markus Pfeiffer <news@xxxxxxxxxxx>
Date: 30 Jul 2010 09:10:25 GMT

On 2010-07-06, Matthew Dillon <dillon@apollo.backplane.com> wrote:
>:Dear all,
>:I started using dragonfly not too long ago. I wanted to build w3m from
>:pkgsrc on x86_64. Configure failed in a check for libgc, which is installed.
>:I found out that libgc uses getcontext (and assumes it to exist) which it 
>:doesn't on x86_64 dragonfly. 
>:To fix boehm-gc + w3m, I just inserted a defined(__DragonFly__) into mach_deps.c 
>:Would it be a good idea to port the i386 version of getcontext into x86_64? I 
>:am willing to do that, then.
>    Yes, it would be a good idea!  I didn't even realize that we did not
>    have a getcontext() implementation for x86_64 in libc.  It looks
>    fairly straight-forward if you are familiar with x86_64 argument
>    passing.  If you have questions you can ask them here or on irc.


Just to keep everyone updated on the matter: It took me longer than expected 
to get it working (mainly due to the fact that I am running dfly in a VM at 
the time which does not do make quickworld very quickly.)

I think I have a working getcontext now, I will implement setcontext as 
well and then submit a patch. I would then appreciate testing and someone
to look at it whether there is nothing massively broken (I believe get_mcontext 
was broken as well).


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]