[Pkg-phototools-devel] Bug#788102: The code doesn't compile on kfreebsd

Gianfranco Costamagna costamagnagianfranco at yahoo.it
Wed Jul 22 07:27:16 UTC 2015


Hi Malat


>Could someone please let me know if the following is valid on kFreeBSD ?
>
>#include <stdint.h>
>#include <ucontext.h>
>int main()
>ucontext_t ucon;
>uint32_t mxcsr = ucon.uc_mcontext.fpregs->mxcsr;
>uint16_t cw    = ucon.uc_mcontext.fpregs->cwd;
>}

missing {, anyway:


file.c:5:38: error: ‘mcontext_t’ has no member named ‘fpregs’
uint32_t mxcsr = ucon.uc_mcontext.fpregs->mxcsr;
^
file.c:6:35: error: ‘mcontext_t’ has no member named ‘fpregs’
uint16_t cw = ucon.uc_mcontext.fpregs->cwd;

#uname -a
GNU/kFreeBSD kfreebsd32 10.1-0-686 #0 Wed, 25 Feb 2015 12:39:32 +0000 i386 i386 Intel(R) Core(TM) i7-4702MQ CPU @ 2.20GHz GNU/kFreeBSD



I checked /usr/include/i386-kfreebsd-gnu/bits/mcontext.h (the content of struct uc_mcontext) and it is not there the fpregs variable

I'm attaching that file to this mail.

HTH

cheers,

Gianfranco
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mcontext.h
Type: text/x-chdr
Size: 4311 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-phototools-devel/attachments/20150722/f0020135/attachment.h>


More information about the Pkg-phototools-devel mailing list