mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Kernel 2.4.1 on RHL 6.2
@ 2001-03-10 14:46 Srinath Ravinathan
  2001-03-10 17:53 ` Stephen M. Williams
  0 siblings, 1 reply; 10+ messages in thread
From: Srinath Ravinathan @ 2001-03-10 14:46 UTC (permalink / raw)
  To: linux-kernel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="x-user-defined", Size: 514 bytes --]

Hi,
    I'm trying to compile kernel 2.4.1 on RedHat 6.2 (zoot). After the make xconfig and make dep when I give make bzlilo I get the following error message

gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o 
scripts/split-include
scripts/split-include.c
In file included from /usr/include/errno.h:36,
                 from scripts/split-include.c:26:
/usr/include/bits/errno.h:25: linux/errno.h: No such file or directory
make: *** [scripts/split-include] Error 1

What should I do?
Yours ,
Srinath.R



^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: Kernel 2.4.1 on RHL 6.2
@ 2001-03-11 16:35 Chris Andrews
  0 siblings, 0 replies; 10+ messages in thread
From: Chris Andrews @ 2001-03-11 16:35 UTC (permalink / raw)
  To: linux-kernel


> >Make sure you have the following symlinks in your /usr/include 
> >directory, assuming you're on an x86 machine: 
> > 
> >asm -> /usr/src/linux/include/asm-i386/ 
> >linux -> /usr/src/linux/include/linux/ 
>
> Note! You only have to have those symlinks on broken systems such 
> as Redhat. 
>
> Sane systems such as Debian have a copy of the kernel header files 
> that the C library was compiled against in /usr/include/{linux,asm} 
> instead of symlinks to the kernel source. Do not play the symlink 
> trick on those systems. 
>
> Before this turns into a flamewar: this has been discussed 20 or 
> so times before, and both Linus and the glibc developers agree 
> that you a distribution should do the latter. The headers you use 
> to compile userland binaries should be the same as the C library 
> was compiled against. 

I've been following this advice for some time, but doing so tripped me up.
My system is RH 6.2, but with kernel 2.4 (and latest modutils etc). I
kept my kernel headers at 2.2.14, i.e. those supplied with the 6.2
kernel-headers RPM.

This breaks XFree 86 4, however, which checks the kernel version you are
*running* and then expects the headers for that kernel to be available. To
build X I had to move the symlink to point at some 2.4 headers so X could
find (IIRC) input.h, and others. 

So what's at fault here? X for looking at the current kernel, me for not
telling X not to do that, or me again for not recompiling glibc and using
the new headers 'legally'?

Chris.


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

end of thread, other threads:[~2001-03-11 16:41 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-10 14:46 Kernel 2.4.1 on RHL 6.2 Srinath Ravinathan
2001-03-10 17:53 ` Stephen M. Williams
2001-03-10 18:28   ` Miquel van Smoorenburg
2001-03-10 19:15     ` J Sloan
2001-03-10 19:37       ` Alan Cox
2001-03-10 19:34     ` Alan Cox
2001-03-10 20:05       ` Miquel van Smoorenburg
2001-03-10 18:44   ` Stephen M. Williams
2001-03-10 18:59     ` Mohammad A. Haque
2001-03-11 16:35 Chris Andrews

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®