getcontext() is missing on DragonFly x86_64
I'm seeing this when trying to build pkgsrc/net/powerdns-recursor.
#1 Updated by pavalos over 3 years ago
So a little history:
-On the initial import of amd64/x86_64, the functions existed.
-In July 2006 they were removed in 635872e06f82693646a8d979c423433fa839a656
because i386 didn't have them and they are marked obsolete.
-Then in January 2007, they were added for i386 in
So that's why they're there for i386 and not x86_64. The question is, do we
want them or not? They are completely removed from IEEE Std 1003.1-2008, but
there's still 3rd-party software that's using those functions. My vote is to
keep them and make them available to x86_64.
#3 Updated by masterblaster over 3 years ago
Maybe a starting point?
#6 Updated by profmakx about 3 years ago
I dug up my seemingly working implementation of getcontext for x86_64 last weekend. The email to submit@ seems to have been lost. Anyway, the patch is available at
or in my git repository a3cb33319377734976008e240fded1e69ea07272,
I tested it with w3m, which uses boehm-gc, but had some issues with vkernels that stopped me from testing the other programs mentioned here. Heres a patch, feedback is appreciated.
#10 Updated by profmakx about 3 years ago
commit 5f643fb7f2f5b3020964cfd507b9e8120c19535c in git://leaf.dragonflybsd.org/~profmakx/dragonfly.git now contains a patch that adds the functions in the context-family. I tested puffs, w3m and gale (compiling and running) and up to now i did not have any problems.
Would people please pull this patch and test a bit more intensively than I have time for at the moment?