Re: Compiling 2.1.13

David Mosberger-Tang (davidm@azstarnet.com)
Sat, 23 Nov 1996 15:31:46 -0700

>>>>> On Sat, 23 Nov 1996 17:21:59 -0500 (EST), Vik Bajaj <vbajaj@nic-21-3.resnet.upenn.edu> said:

Vik> | That may be the problem. | | I started with RH3.0.3, and
Vik> have built my own ELF stuff since. | However, header files for
Vik> the kernel are supposed to be self-contained. | If you have RH
Vik> 4.0, you may have paid for it, so I suppose you should | ask
Vik> EWT or someone at RedHAT*.

Vik> I have exactly the same problem. My understanding is that
Vik> 2.1.13 should compile simply by setting arch=alpha in the
Vik> Makefile; unfortunately, it reports various missing header
Vik> files even on a make menuconfig.

This is because on most distributions /usr/include/asm and
/usr/include/linux are symlinks to the corresponding directories in
/usr/src/linux. So both are right: the kernel _is_ self-contained,
yet it fails to build on top of RH4.0 or any other distribution built
against the early glibc. The solution is easy though: replace the
symlinks with the actual contents of the relevant directories.
Something like:

$ su # become root
$ rm /usr/include/linux /usr/include/asm
$ cp -a /usr/src/linux/linux /usr/include
$ cp -a /usr/src/linux/asm-alpha /usr/include

should work (but I didn't try the above commands, so don't follow
blindly...).

Another option would be to upgrade to the most recent glibc snapshot,
but I'm not sure to what degree this is recommended (unless you're a
hacker). Richard?

--david

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com



Feedback | Store | News | Support | Product Errata | About Us | Linux Info | Search | JumpWords
No Frames | Show Frames

Copyright © 1995-1997 Red Hat Software. Legal notices