All of lore.kernel.org
 help / color / mirror / Atom feed
* [uml-devel] 2.4 series include path confusion
@ 2004-12-22  1:54 D. Bahi
  2004-12-29 17:49 ` Blaisorblade
  0 siblings, 1 reply; 2+ messages in thread
From: D. Bahi @ 2004-12-22  1:54 UTC (permalink / raw)
  To: user-mode-linux-devel

[-- Attachment #1: Type: text/plain, Size: 711 bytes --]

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.
-- 
db

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 187 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [uml-devel] 2.4 series include path confusion
  2004-12-22  1:54 [uml-devel] 2.4 series include path confusion D. Bahi
@ 2004-12-29 17:49 ` Blaisorblade
  0 siblings, 0 replies; 2+ messages in thread
From: Blaisorblade @ 2004-12-29 17:49 UTC (permalink / raw)
  To: user-mode-linux-devel; +Cc: D. Bahi

On Wednesday 22 December 2004 02:54, D. Bahi wrote:
> 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?
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.
> 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... 
> 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.

-- 
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
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-12-29 17:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-22  1:54 [uml-devel] 2.4 series include path confusion D. Bahi
2004-12-29 17:49 ` Blaisorblade

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.