Request for swapcontext and getcontext to be ported to our libc

Petr Janda elekktretterr at
Fri Jan 5 22:54:32 PST 2007

Just letting you know that mtasker now compiles after 
buildworld/installworld. Though, wip/powerdns-recusor doesnt compile yet 
(a new error), not mtasker related. In function `void startDoResolve(void*)': error: invalid conversion from `void*' to `char*' error: invalid conversion from `void*' to `char*' confused by earlier errors, bailing out
[] note: The real command line, after the pkgsrc wrapper, was:
/usr/obj/pkgsrc/wip/powerdns-recursor/work/.gcc/bin/g++ -O -pipe 
-I/usr/obj/pkgsrc/wip/powerdns-recursor/work/.buildlink/include -Wall 
-O3 -c -o pdns_recursor.o 
gmake: *** [pdns_recursor.o] Error 1
*** Error code 2

If someone could please take a look at it, I would be very happy.


Matt Emmerton wrote:
[ top-posting corrected ]

Petr Janda wrote:
Matt Emmerton wrote:
The first cut of this work has been completed.  I've ported over the
i386 work, which is a hybrid libc + kernel syscall implementation.

You can find the source changes and a tiny test program here:
I hope to have a libc-only implementation completed before the end of
Libc and kernel compiled, but wip/powerdns-recursor still gives me the
mtasker errors.
I'm assuming that you did installworld/installkernel/reboot before
attempting to build wip/powerdns-recursor.
After a bit of searching, I added the wip/ bits to my pkgsrc installation
and have found that powerdns-recursor has compile warnings/errors/ICE on
DFly that are totally unrelated to the *context functions.
I'm curious to know what patches/tweaks you are using in your environment to
get to the point where you see *context-related failures.
# uname -a
DragonFly 1.7.0-DEVELOPMENT DragonFly 1.7.0-DEVELOPMENT
#0: Wed Jan  3 18:21:26 EST 2007
root at  i386
# gcc -v
Using built-in specs.
Configured with: DragonFly/i386 system compiler
Thread model: posix
gcc version 3.4.5 20050809 (prerelease) [DragonFly] (propolice, visibility)
# grep DISTNAME /usr/pkgsrc/wip/powerdns-recursor/Makefile
DISTNAME=               pdns-recursor-3.1.4
Matt Emmerton

More information about the Users mailing list