On Thu, Apr 29, 1999 at 11:29:53AM +0200, Hue-Bond wrote: > El caso es que ahora tengo dos módulos que tengo que compilar > contra las cabeceras de cada nuevo núcleo, porque no se tragan las > de las libc. Lo que hago es hacer unos enlaces temporales (los de > siempre, asm linux scsi), compilar los módulos y luego dejarlo todo > como estaba.
-I/usr/local/src/linux/v2.2.7 ayuda en estos casos. El programa va a incluir <asm/foo/bar/baz.h>; si utilizar -I para decirle donde encontrar las cabeceras, se arregla tu problema. > Que alguien aclare de nuevo por qué Debian lo hace así. [ De Manoj ] Noel> It still leaves me with one question, though. If the kernel Noel> headers that Debian is supplying for libc6 compilation are Noel> needed only for libc6 compilation, why are they kept in /usr/src Noel> with a symlink rather than putting them directly in Noel> /usr/include/linux? Well, this kinda belongs to the can of worms we fondly remember as "Debian's /usr/src policy" ;-). Lets see if I can address this. Firstly, kernel headers are not merely for libc6 compilation. In fact, /usr/src/linux is not referenced at all by normal compilation processes: those depend, in particular, on the symbolic link /usr/src/linux-2.0.32, which is provided by either kernel-headers-2.0.32 or by kernel-source-2.0.32. /usr/src/linux is meant to be a link to the chronologically latest installed set of kernel headers /usr/src/linux-X.X.XX is meant to be a link to a specific version of kernel include files. Noel> I would think that having kernel-headers put them directly into Noel> /usr/include/linux would make more sense. That probably means Noel> that I'm not understanding some of the issues... Then that means you could not have more than one kernel headers or source packages installed. I have, at the moment, 2 header packages and 4 source packages on my machine. If they all tried to go into /usr/src/linux; that would be chaos. Espescially if /usr/src/linux were merely overlaid with the most recent install (imagine installing 2.0.34 over 2.1.82 -- what a mess) Marcelo