On Fri, Jul 13, 2007 at 06:41:24PM +0100, Antoine Martin wrote:
> >Could you check this there by seeing if something like this builds
> >(with user.h removed):
> >
> >#include <asm/elf.h>
> >
> >int main(void){
> > printf("%d %d\n", sizeof(elf_fpregset_t), sizeof(elf_fpxregset_t));
> >
> My kernel headers are also missing elf.h, so this doesn't work either...
elf.h is supposedly exported in 2.6.22, although I guess someone took the
comment seriously:
# These probably shouldn't be exported
unifdef-y += shmparam.h
unifdef-y += elf.h
unifdef-y += page.h
So, I have no idea how userspace is supposed to figure out how big a
buffer to pass to PTRACE_GETFPREGS and PTRACE_GETFPXREGS. I think the
headers are broken here.
> It is included in page.h:
>
> CC arch/um/sys-i386/user-offsets.s
> In file included from /usr/include/asm/user.h:5,
> from arch/um/sys-i386/user-offsets.c:7:
> /usr/include/asm/page.h:4:25: error: linux/const.h: No such file or
> directory
This is just broken, then. The headers should at least have no
dangling includes.
> I get the same error as above because user.h includes asm/page.h
Hummm, I guess the header tidying people need to fix a bunch of
things. I'll make whatever changes needed in UML to not use illicit
headers, but I do need complete interface definitions, as with the FP
stuff.
Jeff
--
Work email - jdike at linux dot intel dot com
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel