[OpenAFS-devel] Building openafs-1.0.1 for 2.4.0-test12

Derek Atkins warlord@MIT.EDU
08 Jan 2001 10:08:53 -0500


Herbert Huber <Herbert.Huber@lrz-muenchen.de> writes:

> Yep, you are absolutely right. Apparently the variable AFS_LINUX24_ENV is
> only be set, if a 2.4 kernel is actually running on the specific machine
> where the sources are compiled.
> 
> Wouldn't it be more flexible, if these settings are read from the command
> line via the SYS_NAME or the LINUX_VERSION varibles? For example
> 
>  make SYS_NAME="i386_linux24"  LINUX_VERSION="2.4.0-test12"

AFS_LINUX24_ENV is set in the configuration for i386_linux24.  So, as
long as you tell the system you are building for i386_linux24, it
should set the proper configuration.  There are currently plans to
create an autoconf'd build system which _should_ help divine the
system parameters in a configure script.  This should reduce the
challenges in deciding how to build AFS.

In any event, you _DO_ need to have the proper kernel headers
installed in order to build a module.  You define which kernels you
build for based on your setting of LINUX_VERS="2.4.0-test12".  The
variable is not LINUX_VERSION -- the README is wrong.

> should be enough to realize that AFS_LINUX24_ENV has to be set to "y".

This is enough to realize that AFS_LINUX24_ENV is wrong.

-derek
-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord@MIT.EDU                        PGP key available