[Bug 201674] swapcontext missing in libc.so.7 - 10.2.-BETA2 amd64

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Jul 18 14:01:51 UTC 2015


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 at FreeBSD.org
          Reporter: hostmaster at GTS.NET
                CC: hostmaster at 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.


More information about the freebsd-bugs mailing list