Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 51261

Summary: qemu doesn't compiles due to lost #include <errno.h>
Product: Gentoo Linux Reporter: BigBug <romans.heimanis>
Component: Current packagesAssignee: Luca Barbato <lu_zero>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch wich adds #include <errno.h> in target-i386/helper2.c

Description BigBug 2004-05-17 02:16:38 UTC
can't compile qemu 0.5.5 due to lost #include <errno.h> in target-i386/helper2.c, adding this #include solves the problem.

Problem may be releated to something else? ;/

Reproducible: Always
Steps to Reproduce:




Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040420-r0,
2.6.6-love1)
Comment 1 BigBug 2004-05-17 02:18:23 UTC
Created attachment 31570 [details, diff]
Patch wich adds #include <errno.h> in target-i386/helper2.c

whoops, forget about patch, fixing ;)
Comment 2 Luca Barbato gentoo-dev 2004-05-18 11:16:02 UTC
I'll take a look, how it fails w/out it?
Comment 3 BigBug 2004-05-18 14:09:53 UTC
/tmp/portage/qemu-0.5.5/work/qemu-0.5.5/target-i386/helper2.c: In function `modify_ldt':
/tmp/portage/qemu-0.5.5/work/qemu-0.5.5/target-i386/helper2.c:38: error: `errno' undeclared (first use in this function)
/tmp/portage/qemu-0.5.5/work/qemu-0.5.5/target-i386/helper2.c:38: error: (Each undeclared identifier is reported only once
/tmp/portage/qemu-0.5.5/work/qemu-0.5.5/target-i386/helper2.c:38: error: for each function it appears in.)
make[1]: *** [helper2.o] Error 1
make[1]: Leaving directory `/tmp/portage/qemu-0.5.5/work/qemu-0.5.5/i386-user'
make: *** [all] Error 1


with something like this ;)
Comment 4 Luca Barbato gentoo-dev 2004-05-18 18:28:14 UTC
which targets did you enable?
Comment 5 Luca Barbato gentoo-dev 2004-05-18 18:45:13 UTC
which targets did you enable?

Strangely enough I did a grep for errno in the qemu tree and in that file errno isn't present a all.

looks like you have somewhat messed up includes, maybe bogus kernel includes?
Comment 6 BigBug 2004-05-21 04:23:59 UTC
yes, my kernel-headers is broken ;) sorry