Re: Linus's include file strategy redux

2000-12-18 Thread Peter Samuelson
[richard offer] > Or userland libraries/applications that need to bypass libc and make > direct kernel calls because libc hasn't yet implemented those new > kernel calls. Nah, it's still error-prone because it's too hard to guarantee that the user compiling your program has up-to-date kernel

Re: Linus's include file strategy redux

2000-12-18 Thread richard offer
In article <91gr99$bs81o$[EMAIL PROTECTED]> you write: > >[Dana Lacoste] >> Essentially, whatever solution is implemented MUST ensure : >> >> 1 - glibc will work properly (the headers in /usr/include/* don't >> change in an incompatible manner) >> >> 2 - programs that need to compile

Re: Linus's include file strategy redux

2000-12-18 Thread David Schleef
On Mon, Dec 18, 2000 at 10:51:09AM -0500, Dana Lacoste wrote: > > Can we get a #3 going? I think it could really help both the cross-compile > people and those who just want to make sure their modules are compiling in > the 'correct' environment. It also allows for things like 'kgcc vs. gcc'

Re: [OT] Re: Linus's include file strategy redux

2000-12-18 Thread ferret
On Sun, 17 Dec 2000, Peter Samuelson wrote: > > [[EMAIL PROTECTED]] > > One last question: WHY is the kernel's top-level Makefile handling > > this symlink? > > Where do you think it should be handled? 'make modules_install' seems > like the most logical place, to me. I think making the

Re: Linus's include file strategy redux

2000-12-18 Thread Peter Samuelson
[Dana Lacoste] > - I write an external/third party kernel module > - For various reasons, I must have this kernel module installed to boot > (i can't compile without my module running) In that case "compile script for dummies" will probably fail anyway. If you need it to boot, you probably

Re: Linus's include file strategy redux

2000-12-18 Thread Petr Vandrovec
On 18 Dec 00 at 10:51, Dana Lacoste wrote: > Potential answers that have come up so far : > 1 - /lib/modules/* directories that involve `uname -r` > This won't work because i might not be compiling for the `uname -r` kernel > 2 - /lib/modules//build/include/ : > we could recommend that

Re: Linus's include file strategy redux

2000-12-18 Thread Dana Lacoste
"Peter Samuelson" <[EMAIL PROTECTED]> wrote : > [Dana Lacoste] > > 2 - programs that need to compile against the current kernel MUST > > be able to do so in a quasi-predictable manner. > (2) is bogus. NO program needs to compile against the current kernel > headers. The only things that

Re: Linus's include file strategy redux

2000-12-18 Thread Dana Lacoste
"Peter Samuelson" [EMAIL PROTECTED] wrote : [Dana Lacoste] 2 - programs that need to compile against the current kernel MUST be able to do so in a quasi-predictable manner. (2) is bogus. NO program needs to compile against the current kernel headers. The only things that need to

Re: Linus's include file strategy redux

2000-12-18 Thread Petr Vandrovec
On 18 Dec 00 at 10:51, Dana Lacoste wrote: Potential answers that have come up so far : 1 - /lib/modules/* directories that involve `uname -r` This won't work because i might not be compiling for the `uname -r` kernel 2 - /lib/modules/version/build/include/ : we could recommend that

Re: Linus's include file strategy redux

2000-12-18 Thread Peter Samuelson
[Dana Lacoste] - I write an external/third party kernel module - For various reasons, I must have this kernel module installed to boot (i can't compile without my module running) In that case "compile script for dummies" will probably fail anyway. If you need it to boot, you probably need

Re: [OT] Re: Linus's include file strategy redux

2000-12-18 Thread ferret
On Sun, 17 Dec 2000, Peter Samuelson wrote: [[EMAIL PROTECTED]] One last question: WHY is the kernel's top-level Makefile handling this symlink? Where do you think it should be handled? 'make modules_install' seems like the most logical place, to me. I think making the symlink

Re: Linus's include file strategy redux

2000-12-18 Thread David Schleef
On Mon, Dec 18, 2000 at 10:51:09AM -0500, Dana Lacoste wrote: Can we get a #3 going? I think it could really help both the cross-compile people and those who just want to make sure their modules are compiling in the 'correct' environment. It also allows for things like 'kgcc vs. gcc' to

Re: Linus's include file strategy redux

2000-12-18 Thread richard offer
In article 91gr99$bs81o$[EMAIL PROTECTED] you write: [Dana Lacoste] Essentially, whatever solution is implemented MUST ensure : 1 - glibc will work properly (the headers in /usr/include/* don't change in an incompatible manner) 2 - programs that need to compile against the current

Re: Linus's include file strategy redux

2000-12-18 Thread Peter Samuelson
[richard offer] Or userland libraries/applications that need to bypass libc and make direct kernel calls because libc hasn't yet implemented those new kernel calls. Nah, it's still error-prone because it's too hard to guarantee that the user compiling your program has up-to-date kernel

Re: [OT] Re: Linus's include file strategy redux

2000-12-17 Thread Peter Samuelson
[[EMAIL PROTECTED]] > One last question: WHY is the kernel's top-level Makefile handling > this symlink? Where do you think it should be handled? 'make modules_install' seems like the most logical place, to me. Peter - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

Re: [OT] Re: Linus's include file strategy redux

2000-12-17 Thread ferret
On Sun, 17 Dec 2000, Peter Samuelson wrote: > > [[EMAIL PROTECTED] <[EMAIL PROTECTED]>] > > I have not moved or deleted a tree. I do not HAVE a kernel tree in > > the first place. Therefore, nothing for the symlink to point to when > > I install the kernel. > > If this is not the machine you

Re: [OT] Re: Linus's include file strategy redux

2000-12-17 Thread ferret
On Sun, 17 Dec 2000, Peter Samuelson wrote: [[EMAIL PROTECTED] [EMAIL PROTECTED]] I have not moved or deleted a tree. I do not HAVE a kernel tree in the first place. Therefore, nothing for the symlink to point to when I install the kernel. If this is not the machine you compile

Re: [OT] Re: Linus's include file strategy redux

2000-12-17 Thread Peter Samuelson
[[EMAIL PROTECTED]] One last question: WHY is the kernel's top-level Makefile handling this symlink? Where do you think it should be handled? 'make modules_install' seems like the most logical place, to me. Peter - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

Re: [OT] Re: Linus's include file strategy redux

2000-12-16 Thread Peter Samuelson
[[EMAIL PROTECTED] <[EMAIL PROTECTED]>] > I have not moved or deleted a tree. I do not HAVE a kernel tree in > the first place. Therefore, nothing for the symlink to point to when > I install the kernel. If this is not the machine you compile your kernels on, why are you compiling your external

Re: [OT] Re: Linus's include file strategy redux

2000-12-16 Thread ferret
On Sat, 16 Dec 2000, Peter Samuelson wrote: > > [[EMAIL PROTECTED]] > > Do you have an alternative reccomendation? I've shown where the > > symlink method WILL fail. You disagree that having the configured > > headers copied is a workable idea. What else is there? > > 4.5 more megabytes, per

Re: Linus's include file strategy redux

2000-12-16 Thread Peter Samuelson
[Peter Samuelson] > > make -C /lib/modules/`uname -r`/build modules SUBDIRS=$(pwd) [Miquel van Smoorenburg] > Excellent. Is there any way to put his in a Makefile? I don't know why not. Here's what I would start with: PWD := $(shell pwd) KERNEL := /lib/modules/$(shell uname -r)/build

Re: Linus's include file strategy redux

2000-12-16 Thread Peter Samuelson
[Joe deBlaquiere] > Last I recall you have to at least have newlib around to get through > the build process of gcc. libgcc doesn't affect the kernel but you > can't do 'make install' without building it. Hmmm. I do not recall needing newlib or anything like it, last time I built a

Re: Linus's include file strategy redux

2000-12-16 Thread Miquel van Smoorenburg
In article <[EMAIL PROTECTED]>, Peter Samuelson <[EMAIL PROTECTED]> wrote: >[Miquel van Smoorenburg] >> In fact, the 2.2.18 kernel already puts a 'build' symlink in >> /lib/modules/`uname -r` that points to the kernel source, >> which should be sufficient to solve this problem.. almost. >> >>

Re: Linus's include file strategy redux

2000-12-16 Thread J . A . Magallon
Lets try another scenario (from user point of view) Ship kernel sources split in kernel-headers-2.2.18(tar.bz2,rpm,deb) and kernel-source-2.2.18, and a binary kernel-2.2.18 One user not doing kernel compiles, but with various installed kernels to try has: /usr/include/kernel-2.2.18

Re: Linus's include file strategy redux

2000-12-16 Thread Joe deBlaquiere
Last I recall you have to at least have newlib around to get through the build process of gcc. libgcc doesn't affect the kernel but you can't do 'make install' without building it. BTW : The Linux newlib stuff should go a long way toward solving some of these problems (at least for x86 these

Re: [OT] Re: Linus's include file strategy redux

2000-12-16 Thread Peter Samuelson
[[EMAIL PROTECTED]] > Do you have an alternative reccomendation? I've shown where the > symlink method WILL fail. You disagree that having the configured > headers copied is a workable idea. What else is there? 4.5 more megabytes, per kernel, on my root filesystem. (That's *after* pruning the

Re: Linus's include file strategy redux

2000-12-16 Thread Peter Samuelson
[Miquel van Smoorenburg] > In fact, the 2.2.18 kernel already puts a 'build' symlink in > /lib/modules/`uname -r` that points to the kernel source, > which should be sufficient to solve this problem.. almost. > > It doesn't tell you the specific flags used to compile the kernel, > such as -m486

Re: Linus's include file strategy redux

2000-12-16 Thread Peter Samuelson
[Joe deBlaquiere] > might be a good newbie filter... but actually the best thing about it > is that the compiler people of the work might make generating a > proper cross-toolchain less difficult by one or two magnitudes... *WHAT*? How much less difficult could it possibly get? This is the

Re: Linus's include file strategy redux

2000-12-16 Thread Peter Samuelson
[Dana Lacoste] > Essentially, whatever solution is implemented MUST ensure : > > 1 - glibc will work properly (the headers in /usr/include/* don't > change in an incompatible manner) > > 2 - programs that need to compile against the current kernel MUST > be able to do so in a

Re: Linus's include file strategy redux

2000-12-16 Thread ferret
On 16 Dec 2000, Miquel van Smoorenburg wrote: > In article <[EMAIL PROTECTED]>, > <[EMAIL PROTECTED]> wrote: > >On 15 Dec 2000, Miquel van Smoorenburg wrote: > > > >> I think /lib/modules/`uname -r`/ should contain a script that > >> reproduces the CFLAGS used to compile the kernel. > > >

Re: [OT] Re: Linus's include file strategy redux

2000-12-16 Thread ferret
On Sat, 16 Dec 2000, Keith Owens wrote: > On Fri, 15 Dec 2000 19:37:49 -0800 (PST), > [EMAIL PROTECTED] wrote: > >Do you have an alternative reccomendation? I've shown where the symlink > >method WILL fail. You disagree that having the configured headers copied > >is a workable idea. What

Re: Linus's include file strategy redux

2000-12-16 Thread Marcus Sundberg
[EMAIL PROTECTED] (Alan Cox) writes: > > >Which works because in a normal compile environment they have /usr/include > > >in their include path and /usr/include/linux points to the directory > > >under /usr/src/linux/include. > > > > No, that a redhat-ism. > > Umm, its a most people except

Re: Linus's include file strategy redux

2000-12-16 Thread Miquel van Smoorenburg
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: >On 15 Dec 2000, Miquel van Smoorenburg wrote: > >> I think /lib/modules/`uname -r`/ should contain a script that >> reproduces the CFLAGS used to compile the kernel. > >However it happens, the necessary information THAT I KNOW OF is:

Re: What about 'kernel package'? was: Re: Linus's include file strategy redux

2000-12-16 Thread ferret
On Fri, 15 Dec 2000, richard offer wrote: > > * $ from [EMAIL PROTECTED] at "15-Dec: 8:22pm" | sed "1,$s/^/* /" > * > * > * Once again, I'd like to suggest Debian's kernel package system as a good > * working example of this sort of administrative-level kernel management. I > * brought this

Re: Linus's include file strategy redux

2000-12-16 Thread Miquel van Smoorenburg
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: On 15 Dec 2000, Miquel van Smoorenburg wrote: I think /lib/modules/`uname -r`/ should contain a script that reproduces the CFLAGS used to compile the kernel. However it happens, the necessary information THAT I KNOW OF is: 0) The kernel

Re: Linus's include file strategy redux

2000-12-16 Thread Marcus Sundberg
[EMAIL PROTECTED] (Alan Cox) writes: Which works because in a normal compile environment they have /usr/include in their include path and /usr/include/linux points to the directory under /usr/src/linux/include. No, that a redhat-ism. Umm, its a most people except Debianism. People

Re: [OT] Re: Linus's include file strategy redux

2000-12-16 Thread ferret
On Sat, 16 Dec 2000, Keith Owens wrote: On Fri, 15 Dec 2000 19:37:49 -0800 (PST), [EMAIL PROTECTED] wrote: Do you have an alternative reccomendation? I've shown where the symlink method WILL fail. You disagree that having the configured headers copied is a workable idea. What else is

Re: Linus's include file strategy redux

2000-12-16 Thread ferret
On 16 Dec 2000, Miquel van Smoorenburg wrote: In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: On 15 Dec 2000, Miquel van Smoorenburg wrote: I think /lib/modules/`uname -r`/ should contain a script that reproduces the CFLAGS used to compile the kernel. However it happens,

Re: Linus's include file strategy redux

2000-12-16 Thread Peter Samuelson
[Dana Lacoste] Essentially, whatever solution is implemented MUST ensure : 1 - glibc will work properly (the headers in /usr/include/* don't change in an incompatible manner) 2 - programs that need to compile against the current kernel MUST be able to do so in a

Re: Linus's include file strategy redux

2000-12-16 Thread Peter Samuelson
[Joe deBlaquiere] might be a good newbie filter... but actually the best thing about it is that the compiler people of the work might make generating a proper cross-toolchain less difficult by one or two magnitudes... *WHAT*? How much less difficult could it possibly get? This is the

Re: Linus's include file strategy redux

2000-12-16 Thread Peter Samuelson
[Miquel van Smoorenburg] In fact, the 2.2.18 kernel already puts a 'build' symlink in /lib/modules/`uname -r` that points to the kernel source, which should be sufficient to solve this problem.. almost. It doesn't tell you the specific flags used to compile the kernel, such as -m486

Re: [OT] Re: Linus's include file strategy redux

2000-12-16 Thread Peter Samuelson
[[EMAIL PROTECTED]] Do you have an alternative reccomendation? I've shown where the symlink method WILL fail. You disagree that having the configured headers copied is a workable idea. What else is there? 4.5 more megabytes, per kernel, on my root filesystem. (That's *after* pruning the

Re: Linus's include file strategy redux

2000-12-16 Thread Miquel van Smoorenburg
In article [EMAIL PROTECTED], Peter Samuelson [EMAIL PROTECTED] wrote: [Miquel van Smoorenburg] In fact, the 2.2.18 kernel already puts a 'build' symlink in /lib/modules/`uname -r` that points to the kernel source, which should be sufficient to solve this problem.. almost. It doesn't tell

Re: Linus's include file strategy redux

2000-12-16 Thread Peter Samuelson
[Joe deBlaquiere] Last I recall you have to at least have newlib around to get through the build process of gcc. libgcc doesn't affect the kernel but you can't do 'make install' without building it. Hmmm. I do not recall needing newlib or anything like it, last time I built a

Re: Linus's include file strategy redux

2000-12-16 Thread Peter Samuelson
[Peter Samuelson] make -C /lib/modules/`uname -r`/build modules SUBDIRS=$(pwd) [Miquel van Smoorenburg] Excellent. Is there any way to put his in a Makefile? I don't know why not. Here's what I would start with: PWD := $(shell pwd) KERNEL := /lib/modules/$(shell uname -r)/build

Re: [OT] Re: Linus's include file strategy redux

2000-12-16 Thread ferret
On Sat, 16 Dec 2000, Peter Samuelson wrote: [[EMAIL PROTECTED]] Do you have an alternative reccomendation? I've shown where the symlink method WILL fail. You disagree that having the configured headers copied is a workable idea. What else is there? 4.5 more megabytes, per kernel,

Re: [OT] Re: Linus's include file strategy redux

2000-12-16 Thread Peter Samuelson
[[EMAIL PROTECTED] [EMAIL PROTECTED]] I have not moved or deleted a tree. I do not HAVE a kernel tree in the first place. Therefore, nothing for the symlink to point to when I install the kernel. If this is not the machine you compile your kernels on, why are you compiling your external

Re: What about 'kernel package'? was: Re: Linus's include file strategy redux

2000-12-16 Thread ferret
On Fri, 15 Dec 2000, richard offer wrote: * $ from [EMAIL PROTECTED] at "15-Dec: 8:22pm" | sed "1,$s/^/* /" * * * Once again, I'd like to suggest Debian's kernel package system as a good * working example of this sort of administrative-level kernel management. I * brought this up on

Re: [OT] Re: Linus's include file strategy redux

2000-12-15 Thread Keith Owens
On Fri, 15 Dec 2000 19:37:49 -0800 (PST), [EMAIL PROTECTED] wrote: >Do you have an alternative reccomendation? I've shown where the symlink >method WILL fail. You disagree that having the configured headers copied >is a workable idea. What else is there? Use the pcmcia-cs method. Ask where the

What about 'kernel package'? was: Re: Linus's include file strategy redux

2000-12-15 Thread ferret
On Fri, 15 Dec 2000, richard offer wrote: > In article <91e0vj$b6alr$[EMAIL PROTECTED]> you write: > >In article <[EMAIL PROTECTED]>, > >LA Walsh <[EMAIL PROTECTED]> wrote: > >>It was at that > >>point, the externally compiled module "barfed", because like many modules, > >>it expected, like

Re: Linus's include file strategy redux

2000-12-15 Thread ferret
On Fri, 15 Dec 2000, J . A . Magallon wrote: > > On 2000/12/15 Werner Almesberger wrote: > > LA Walsh wrote: > > > > Exception: opaque types; there one would have to go via a __ identifier, > > i.e. > > > > /foo.h defines struct __foo ...; > > /bar.h includes /foo.h > >and

Re: Linus's include file strategy redux

2000-12-15 Thread ferret
On 15 Dec 2000, Miquel van Smoorenburg wrote: > In article <[EMAIL PROTECTED]>, > LA Walsh <[EMAIL PROTECTED]> wrote: > >It was at that > >point, the externally compiled module "barfed", because like many modules, > >it expected, like many externally compiled modules, that it could simply >

Re: [OT] Re: Linus's include file strategy redux

2000-12-15 Thread ferret
On Fri, 15 Dec 2000, Ingo Oeser wrote: > On Fri, Dec 15, 2000 at 09:31:57AM -0800, [EMAIL PROTECTED] wrote: > > > Maybe you did not notice, but for months we have > > > /lib/modules/`uname -r`/build/include, which points to kernel headers, > > > and which should be used for compiling

Re: Linus's include file strategy redux

2000-12-15 Thread richard offer
In article <91e0vj$b6alr$[EMAIL PROTECTED]> you write: >In article <[EMAIL PROTECTED]>, >LA Walsh <[EMAIL PROTECTED]> wrote: >>It was at that >>point, the externally compiled module "barfed", because like many modules, >>it expected, like many externally compiled modules, that it could simply

Re: Linus's include file strategy redux

2000-12-15 Thread Werner Almesberger
Joe deBlaquiere wrote: > but actually the best thing about it is > that the compiler people of the work might make generating a proper > cross-toolchain less difficult by one or two magnitudes... You have a point here ... particularly gcc-glibc interdependencies are a little irritating (not

Re: Linus's include file strategy redux

2000-12-15 Thread Werner Almesberger
J . A . Magallon wrote: > Easier: public kernel interfaces only work through pointers. Requires more elaborate wrappers or a new layer of wrapper functions around system calls, if you want to make this completely general. Also, doesn't provide FOOSIZE to "public" space. > Too

Re: Linus's include file strategy redux

2000-12-15 Thread Alex Buell
On Fri, 15 Dec 2000, Dana Lacoste wrote: > We really need a documented way to deal with this! It's getting silly > the number of questions that people ask! Please, that would be helpful - I'm still using a heavily mutated slackware 3.1 that's been hacked up to the same level (if not beyond) as

Re: Linus's include file strategy redux

2000-12-15 Thread Joe deBlaquiere
Werner Almesberger wrote: > Joe deBlaquiere wrote: > >> My solution to this has always been to make a cross compiler environment > > > ;-))) I think lots of people would really enjoy to have "build a > cross-gcc" added to the prerequisites for installing some driver > module ;-) > > I

Re: Linus's include file strategy redux

2000-12-15 Thread J . A . Magallon
On 2000/12/15 Werner Almesberger wrote: > LA Walsh wrote: > > Exception: opaque types; there one would have to go via a __ identifier, > i.e. > > /foo.h defines struct __foo ...; > /bar.h includes /foo.h >and uses #define FOOSIZE sizeof(struct __foo) > /foo.h either typedef

Re: Linus's include file strategy redux

2000-12-15 Thread Werner Almesberger
Matt D. Robinson wrote: > I personally think the definition of an environment variable to point to > a header file location is the right way to go. I see two disadvantages of this, compared to a script: - need to hard-code a default (unless we assume the variables are always set) - the way

RE: Linus's include file strategy redux

2000-12-15 Thread LA Walsh
> From: Werner Almesberger [mailto:[EMAIL PROTECTED]] > Sent: Friday, December 15, 2000 1:21 PM > I don't think restructuring the headers in this way would cause > a long period of instability. The main problem seems to be to > decide what is officially private and what isn't. --- If

Re: Linus's include file strategy redux

2000-12-15 Thread Werner Almesberger
Joe deBlaquiere wrote: > My solution to this has always been to make a cross compiler environment ;-))) I think lots of people would really enjoy to have "build a cross-gcc" added to the prerequisites for installing some driver module ;-) I know, it's not *that* bad. But it still adds quite a

Re: Linus's include file strategy redux

2000-12-15 Thread Miquel van Smoorenburg
In article <[EMAIL PROTECTED]>, LA Walsh <[EMAIL PROTECTED]> wrote: >It was at that >point, the externally compiled module "barfed", because like many modules, >it expected, like many externally compiled modules, that it could simply >access all of it's needed files through /usr/include/linux

Re: Linus's include file strategy redux

2000-12-15 Thread Joe deBlaquiere
My solution to this has always been to make a cross compiler environment (even if it is the same processor family). Thusly i386-linux-gcc knows that the target system's include files are in: /usr/local/-tools/i386-linux/include (/linux, /asm) The other advantage to this is that I can switch

Re: Linus's include file strategy redux

2000-12-15 Thread Matt D. Robinson
Werner Almesberger wrote: > > Alexander Viro wrote: > > In the situation above they should have -I/include > > in CFLAGS. Always had to. No links, no pain in ass, no interference with > > userland compiles. > > As long as there's a standard location for "", > this is fine. In most cases, the

RE: Linus's include file strategy redux

2000-12-15 Thread LA Walsh
> From: Werner Almesberger [mailto:[EMAIL PROTECTED]] > > I think there are three possible directions wrt visibility of kernel > headers: > > - non at all - anything that needs kernel headers needs to provide them >itself > - kernel-specific extentions only; libc is self-contained, but

Re: [OT] Re: Linus's include file strategy redux

2000-12-15 Thread Ingo Oeser
On Fri, Dec 15, 2000 at 09:31:57AM -0800, [EMAIL PROTECTED] wrote: > > Maybe you did not notice, but for months we have > > /lib/modules/`uname -r`/build/include, which points to kernel headers, > > and which should be used for compiling out-of-tree kernel modules > > (i.e. latest vmware uses

Re: Linus's include file strategy redux

2000-12-15 Thread Werner Almesberger
[EMAIL PROTECTED] wrote: > Just out of curiosity, what would happen with redirection if your source > tree for 'the currently running kernel' version happens to be configured > for a different 'the currently running kernel', perhaps a machine of a > foreign arch that you are cross-compiling for?

Re: [OT] Re: Linus's include file strategy redux

2000-12-15 Thread ferret
On Fri, 15 Dec 2000, Petr Vandrovec wrote: > On 15 Dec 00 at 10:23, Dana Lacoste wrote: > > > On Fri, Dec 15, 2000 at 12:14:04AM +, Miquel van Smoorenburg wrote: > > > > > It's the version that's in cvs, I just did an cvs update. It's > > > been in it for ages. If it's wrong, someone

Re: Linus's include file strategy redux

2000-12-15 Thread ferret
On Fri, 15 Dec 2000, Werner Almesberger wrote: > Alexander Viro wrote: > > In the situation above they should have -I/include > > in CFLAGS. Always had to. No links, no pain in ass, no interference with > > userland compiles. > > As long as there's a standard location for "", > this is fine.

Re: [OT] Re: Linus's include file strategy redux

2000-12-15 Thread Eli Carter
Dana Lacoste wrote: > > > Maybe you did not notice, but for months we have > > /lib/modules/`uname -r`/build/include, which points to kernel headers, > > and which should be used for compiling out-of-tree kernel modules > > (i.e. latest vmware uses this). > > What about the case where I'm

Re: [OT] Re: Linus's include file strategy redux

2000-12-15 Thread Petr Vandrovec
On 15 Dec 00 at 11:00, Dana Lacoste wrote: > > Maybe you did not notice, but for months we have > > /lib/modules/`uname -r`/build/include, which points to kernel headers, > > and which should be used for compiling out-of-tree kernel modules > > (i.e. latest vmware uses this). > > What about the

Re: [OT] Re: Linus's include file strategy redux

2000-12-15 Thread Dana Lacoste
> Maybe you did not notice, but for months we have > /lib/modules/`uname -r`/build/include, which points to kernel headers, > and which should be used for compiling out-of-tree kernel modules > (i.e. latest vmware uses this). What about the case where I'm compiling for a kernel that I'm not

[OT] Re: Linus's include file strategy redux

2000-12-15 Thread Petr Vandrovec
On 15 Dec 00 at 10:23, Dana Lacoste wrote: > > On Fri, Dec 15, 2000 at 12:14:04AM +, Miquel van Smoorenburg wrote: > > > It's the version that's in cvs, I just did an cvs update. It's > > been in it for ages. If it's wrong, someone *please* correct it. > > I think this is the important

Re: Linus's include file strategy redux

2000-12-15 Thread Dana Lacoste
> On Fri, Dec 15, 2000 at 12:14:04AM +, Miquel van Smoorenburg wrote: > It's the version that's in cvs, I just did an cvs update. It's > been in it for ages. If it's wrong, someone *please* correct it. I think this is the important part. This subject has come up quite a few times in the

Re: Linus's include file strategy redux

2000-12-15 Thread Kurt Roeckx
On Fri, Dec 15, 2000 at 12:14:04AM +, Miquel van Smoorenburg wrote: > In article <[EMAIL PROTECTED]>, > LA Walsh <[EMAIL PROTECTED]> wrote: > >Which works because in a normal compile environment they have /usr/include > >in their include path and /usr/include/linux points to the directory >

Re: Linus's include file strategy redux

2000-12-15 Thread Werner Almesberger
Alexander Viro wrote: > In the situation above they should have -I/include > in CFLAGS. Always had to. No links, no pain in ass, no interference with > userland compiles. As long as there's a standard location for "", this is fine. In most cases, the tree one expects to find is "roughly the

Re: Linus's include file strategy redux

2000-12-15 Thread Chmouel Boudjnah
"LA Walsh" <[EMAIL PROTECTED]> writes: > I've seen this setup on RH, SuSE and Mandrake systems. I thought > this was somehow normal practice? it's done for us till the 7.2 but next version we gonna to switch to a different headers directory like Debian/RH does... -- MandrakeSoft Inc

Re: Linus's include file strategy redux

2000-12-15 Thread Chmouel Boudjnah
"LA Walsh" [EMAIL PROTECTED] writes: I've seen this setup on RH, SuSE and Mandrake systems. I thought this was somehow normal practice? it's done for us till the 7.2 but next version we gonna to switch to a different headers directory like Debian/RH does... -- MandrakeSoft Inc

Re: Linus's include file strategy redux

2000-12-15 Thread Werner Almesberger
Alexander Viro wrote: In the situation above they should have -Iwherever_the_tree_lives/include in CFLAGS. Always had to. No links, no pain in ass, no interference with userland compiles. As long as there's a standard location for "wherever_the_tree_lives", this is fine. In most cases, the

Re: Linus's include file strategy redux

2000-12-15 Thread Kurt Roeckx
On Fri, Dec 15, 2000 at 12:14:04AM +, Miquel van Smoorenburg wrote: In article [EMAIL PROTECTED], LA Walsh [EMAIL PROTECTED] wrote: Which works because in a normal compile environment they have /usr/include in their include path and /usr/include/linux points to the directory under

Re: Linus's include file strategy redux

2000-12-15 Thread Dana Lacoste
On Fri, Dec 15, 2000 at 12:14:04AM +, Miquel van Smoorenburg wrote: It's the version that's in cvs, I just did an cvs update. It's been in it for ages. If it's wrong, someone *please* correct it. I think this is the important part. This subject has come up quite a few times in the past

[OT] Re: Linus's include file strategy redux

2000-12-15 Thread Petr Vandrovec
On 15 Dec 00 at 10:23, Dana Lacoste wrote: On Fri, Dec 15, 2000 at 12:14:04AM +, Miquel van Smoorenburg wrote: It's the version that's in cvs, I just did an cvs update. It's been in it for ages. If it's wrong, someone *please* correct it. I think this is the important part. This

Re: [OT] Re: Linus's include file strategy redux

2000-12-15 Thread Dana Lacoste
Maybe you did not notice, but for months we have /lib/modules/`uname -r`/build/include, which points to kernel headers, and which should be used for compiling out-of-tree kernel modules (i.e. latest vmware uses this). What about the case where I'm compiling for a kernel that I'm not running

Re: [OT] Re: Linus's include file strategy redux

2000-12-15 Thread Petr Vandrovec
On 15 Dec 00 at 11:00, Dana Lacoste wrote: Maybe you did not notice, but for months we have /lib/modules/`uname -r`/build/include, which points to kernel headers, and which should be used for compiling out-of-tree kernel modules (i.e. latest vmware uses this). What about the case where

Re: [OT] Re: Linus's include file strategy redux

2000-12-15 Thread Eli Carter
Dana Lacoste wrote: Maybe you did not notice, but for months we have /lib/modules/`uname -r`/build/include, which points to kernel headers, and which should be used for compiling out-of-tree kernel modules (i.e. latest vmware uses this). What about the case where I'm compiling for a

Re: Linus's include file strategy redux

2000-12-15 Thread ferret
On Fri, 15 Dec 2000, Werner Almesberger wrote: Alexander Viro wrote: In the situation above they should have -Iwherever_the_tree_lives/include in CFLAGS. Always had to. No links, no pain in ass, no interference with userland compiles. As long as there's a standard location for

Re: [OT] Re: Linus's include file strategy redux

2000-12-15 Thread ferret
On Fri, 15 Dec 2000, Petr Vandrovec wrote: On 15 Dec 00 at 10:23, Dana Lacoste wrote: On Fri, Dec 15, 2000 at 12:14:04AM +, Miquel van Smoorenburg wrote: It's the version that's in cvs, I just did an cvs update. It's been in it for ages. If it's wrong, someone *please*

Re: Linus's include file strategy redux

2000-12-15 Thread Werner Almesberger
[EMAIL PROTECTED] wrote: Just out of curiosity, what would happen with redirection if your source tree for 'the currently running kernel' version happens to be configured for a different 'the currently running kernel', perhaps a machine of a foreign arch that you are cross-compiling for? Two

Re: [OT] Re: Linus's include file strategy redux

2000-12-15 Thread Ingo Oeser
On Fri, Dec 15, 2000 at 09:31:57AM -0800, [EMAIL PROTECTED] wrote: Maybe you did not notice, but for months we have /lib/modules/`uname -r`/build/include, which points to kernel headers, and which should be used for compiling out-of-tree kernel modules (i.e. latest vmware uses this).

RE: Linus's include file strategy redux

2000-12-15 Thread LA Walsh
From: Werner Almesberger [mailto:[EMAIL PROTECTED]] I think there are three possible directions wrt visibility of kernel headers: - non at all - anything that needs kernel headers needs to provide them itself - kernel-specific extentions only; libc is self-contained, but user

Re: Linus's include file strategy redux

2000-12-15 Thread Matt D. Robinson
Werner Almesberger wrote: Alexander Viro wrote: In the situation above they should have -Iwherever_the_tree_lives/include in CFLAGS. Always had to. No links, no pain in ass, no interference with userland compiles. As long as there's a standard location for "wherever_the_tree_lives",

Re: Linus's include file strategy redux

2000-12-15 Thread Joe deBlaquiere
My solution to this has always been to make a cross compiler environment (even if it is the same processor family). Thusly i386-linux-gcc knows that the target system's include files are in: /usr/local/project-tools/i386-linux/include (/linux, /asm) The other advantage to this is that I can

Re: Linus's include file strategy redux

2000-12-15 Thread Miquel van Smoorenburg
In article [EMAIL PROTECTED], LA Walsh [EMAIL PROTECTED] wrote: It was at that point, the externally compiled module "barfed", because like many modules, it expected, like many externally compiled modules, that it could simply access all of it's needed files through /usr/include/linux which it

Re: Linus's include file strategy redux

2000-12-15 Thread Werner Almesberger
Joe deBlaquiere wrote: My solution to this has always been to make a cross compiler environment ;-))) I think lots of people would really enjoy to have "build a cross-gcc" added to the prerequisites for installing some driver module ;-) I know, it's not *that* bad. But it still adds quite a

Re: Linus's include file strategy redux

2000-12-15 Thread Werner Almesberger
Matt D. Robinson wrote: I personally think the definition of an environment variable to point to a header file location is the right way to go. I see two disadvantages of this, compared to a script: - need to hard-code a default (unless we assume the variables are always set) - the way

RE: Linus's include file strategy redux

2000-12-15 Thread LA Walsh
From: Werner Almesberger [mailto:[EMAIL PROTECTED]] Sent: Friday, December 15, 2000 1:21 PM I don't think restructuring the headers in this way would cause a long period of instability. The main problem seems to be to decide what is officially private and what isn't. --- If someone

Re: Linus's include file strategy redux

2000-12-15 Thread J . A . Magallon
On 2000/12/15 Werner Almesberger wrote: LA Walsh wrote: Exception: opaque types; there one would have to go via a __ identifier, i.e. public/foo.h defines struct __foo ...; public/bar.h includes public/foo.h and uses #define FOOSIZE sizeof(struct __foo) private/foo.h

Re: Linus's include file strategy redux

2000-12-15 Thread Joe deBlaquiere
Werner Almesberger wrote: Joe deBlaquiere wrote: My solution to this has always been to make a cross compiler environment ;-))) I think lots of people would really enjoy to have "build a cross-gcc" added to the prerequisites for installing some driver module ;-) I know, it's not

Re: Linus's include file strategy redux

2000-12-15 Thread Alex Buell
On Fri, 15 Dec 2000, Dana Lacoste wrote: We really need a documented way to deal with this! It's getting silly the number of questions that people ask! Please, that would be helpful - I'm still using a heavily mutated slackware 3.1 that's been hacked up to the same level (if not beyond) as

  1   2   >