Date: Sat, 18 Jul 2015 14:01:51 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 201674] swapcontext missing in libc.so.7 - 10.2.-BETA2 amd64 Message-ID: <bug-201674-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201674 Bug ID: 201674 Summary: swapcontext missing in libc.so.7 - 10.2.-BETA2 amd64 Product: Base System Version: 10.2-BETA1 Hardware: amd64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: hostmaster@GTS.NET CC: hostmaster@GTS.NET linking miniruby cont.o: In function `fiber_setcontext': cont.c:(.text+0x1bbc): undefined reference to `swapcontext' cc: error: linker command failed with exit code 1 (use -v to see invocation) *** [miniruby] Error code 1 (ignored) ... so I tried this: [x.c] main() { swapcontext(); }; [x.o] > cc -c -o x.o x.c x.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main() { swapcontext(); }; ^~~~ x.c:1:10: warning: implicit declaration of function 'swapcontext' is invalid in C99 [-Wimplicit-function-declaration] main() { swapcontext(); }; ^ 2 warnings generated. [x] > cc -o x x.o x.o: In function `main': x.c:(.text+0xb): undefined reference to `swapcontext' cc: error: linker command failed with exit code 1 (use -v to see invocation) -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-201674-8>