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

Bug#775710: glibc: mcontext.h incomplete for kfreebsd-amd64



package: src:glibc
version: 2.19-13
severity: important
control: block 767048 by -1

Hi, I was working on building wine for kfreebsd-amd64 and found that
glibc's x86_64 mcontext.h is not in sync with the upstream code that
it is derived from (kfreebsd's amd64 ucontext.h).

One example is that mc_fs is not defined in glibc's mcontext_t struct
but is in kfreebsd's __mcontext struct (well there is a definion of
mc_fs in a second definition of the mcontext_t struct behind an #ifdef
__i386__ which will be false on amd64).  There are many other
differences like this.

Since wine uses mc_fs and some of the other bits missing from the
non-i386 mcontext_t struct, it fails to build using glibc.

Files to compare are:

src:kfreebsd-10 sys/x86/include/ucontext.h (the #ifdef __amd64__ section)
src:glibc ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/x86_64/bits/mcontext.h
(the #else section)

Thanks for looking into this.

Best wishes,
Mike


Reply to: