[OpenAFS] redhat 7.1 kernel modules

Claude Lecommandeur claude.lecommandeur@epfl.ch
Fri, 22 Jun 2001 16:53:40 +0200

Jonathan Day wrote:
> > Troy Dawson <dawson@fnal.gov>Cc: openafs-info@openafs.org
> > Re: [OpenAFS] redhat 7.1 kernel modules Derek Atkins <warlord@MIT.EDU>Date: 22 Jun 2001 10:23:54 -0400
> >
> >The actual kernel headers in RH7.1 come NOT from the kernel-headers
> >RPM as you would expect, but from the kernel-source RPM.  The
> >kernel-headers RPM installs the necessary headers for normal
> >user-space compilations to work (into /usr/include/linux et. al.).  It
> >does not provide the necessary kernel headers to compile a kernel
> >module; those come from the kernel-source RPM.
> <snip>
> Sorry about entering into this discussion late, but I thought I'd just throw my 0.002 units of local currency's worth in.
> Red Hat has this rather irritating habit of putting the headers into two spaces - /usr/include/ and /usr/src/linux/include/. This has two effects:
> First, upgrading a kernel won't necessarily upgrade both sets of headers. The result of this is that it's impossible to be sure that the kernel you're using and the modules compiled against it are for the same version.
> Second, if you're cross-compiling, you have absulutely no idea what assembler headers you're using.
> I try to encourage users and developers, AS STANDARD, to eliminate the /usr/include/[linux, asm] directories, and symlink to the main tree, even if the main tree just has those two directories. In the end, it does save a lot of stress and may reduce your Dilbert Index to within bounds the human frame was designed to stand.
> On a related note, I notice that OpenAFS -only- seems to compile for Linux 2.4.2 (the kernel that came with RH 7.1 - Seawolf). Are there any reports of people getting AFS to run under Linux 2.4.5 or later?

   I do. It seems to work fine on linux-2.4.5, though it is just a test server (2 clients).
(Note that I did link /usr/include/{asm,linux} to the source tree.


Claude Lecommandeur           Claude.Lecommandeur@Epfl.Ch
EPFL - SIC                    +41 21 693 22 97
1015 Lausanne (Switzerland)   http://slwww.epfl.ch/SIC/SL/info/Claude.html

sh: fortune:  not found.