2.4 series include path confusion
so, trying to build 3rd party tools against the UML kernel headers and run into things like "can't find sysdep/ptrace.h"
poking around a bit - i wonder why there are headers under the arch/um/include directory when we have a perfectly good seperate include/asm-um area to play in?
things that want to build against a set of kernel headers shouldn't know about the arch, right? they should be able to follow UML include paths that are setup during the build stage that does the soft linking of asm and such.
unimportant compared to the scope of 2.6 work i understand, but i thought i'd bring it up and see if you think i'm way off my rocker or if i have a point.
thank you all for keeping at it.
Signature · 1 line
db
Quoted 6 lines · D. Bahi
so, trying to build 3rd party tools against the UML kernel headers and run into things like "can't find
sysdep/ptrace.h"poking around a bit - i wonder why there are headers under the
arch/um/includedirectory when we have a perfectly good seperateinclude/asm-umarea to play in?
Not the whole of UML can include kernelspace headers (*_user.c files for instance), and include/asm-um ones are kernelspace. Those files need to include things from /usr/include on the host... and they can still include things from arch/um/include.
And this applies to 2.6, too.
Quoted 4 lines
things that want to build against a set of kernel headers shouldn't know about the arch, right? they should be able to follow UML include paths that are setup during the build stage that does the soft linking of asm and such.
Well, they shouldn't try to do the build themselves... that is the only solution in 2.4, in 2.6 the kernel allows external modules to use Kbuild.
Well, there is something about workarounding this in the web-site...
Quoted 5 lines
unimportant compared to the scope of 2.6 work i understand, but i thought i'd bring it up and see if you think i'm way off my rocker or if i have a point.
thank you all for keeping at it.
Signature · 14 lines
Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel