[OpenAFS] Request for Assistance with OpenAFS

Al Sabawi sabawi@gmail.com
Sun, 25 Oct 2009 23:26:55 -0400


--0016e6d7e0342d9fef0476ce22af
Content-Type: text/plain; charset=ISO-8859-1

Hi

I downloaded the daily OpenAFS snapshot yesterday and attempted to build it
on CentOS 5.4 Enterprise and ran into the following problem when trying to
build the kernel mod libafs:

to locate where the kernel header files are

# find / -name version.h
/usr/include/libgtop-2.0/glibtop/version.h
/usr/include/xmlsec1/xmlsec/version.h
/usr/include/linux/dvb/version.h
/usr/include/linux/version.h    <<------- Here
/usr/include/xulrunner-sdk-1.9/system_wrappers/linux/version.h
/usr/include/alsa/version.h

here is what the file has:

# cat /usr/include/linux/version.h
#define LINUX_VERSION_CODE 132626
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
#define RHEL_MAJOR 5
#define RHEL_MINOR 4
#define RHEL_RELEASE_CODE 1284
#define RHEL_RELEASE_VERSION(a,b) (((a) << 8) + (b))


So, per the README, I used the following configure arguments

# ./configure --with-afs-sysname=i386_linux24
--with-linux-kernel-headers=/usr
.
<snipped>
.
checking your OS... configure: error: Linux headers lack version definition

what am I doing wrong?

Thanks!!

--0016e6d7e0342d9fef0476ce22af
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi <br><br>I downloaded the daily OpenAFS snapshot yesterday and attempted =
to build it on CentOS 5.4 Enterprise and ran into the following problem whe=
n trying to build the kernel mod libafs:<br><br>to locate where the kernel =
header files are <br>
<br><span style=3D"font-family: courier new,monospace;"># find / -name vers=
ion.h </span><br style=3D"font-family: courier new,monospace;"><span style=
=3D"font-family: courier new,monospace;">/usr/include/libgtop-2.0/glibtop/v=
ersion.h</span><br style=3D"font-family: courier new,monospace;">
<span style=3D"font-family: courier new,monospace;">/usr/include/xmlsec1/xm=
lsec/version.h</span><br style=3D"font-family: courier new,monospace;"><spa=
n style=3D"font-family: courier new,monospace;">/usr/include/linux/dvb/vers=
ion.h</span><br style=3D"font-family: courier new,monospace;">
<span style=3D"font-family: courier new,monospace;">/usr/include/linux/vers=
ion.h=A0=A0=A0 &lt;&lt;------- Here</span><br style=3D"font-family: courier=
 new,monospace;"><span style=3D"font-family: courier new,monospace;">/usr/i=
nclude/xulrunner-sdk-1.9/system_wrappers/linux/version.h</span><br style=3D=
"font-family: courier new,monospace;">
<span style=3D"font-family: courier new,monospace;">/usr/include/alsa/versi=
on.h</span><br><br>here is what the file has:<br><br><span style=3D"font-fa=
mily: courier new,monospace;"># cat /usr/include/linux/version.h</span><br =
style=3D"font-family: courier new,monospace;">
<span style=3D"font-family: courier new,monospace;">#define LINUX_VERSION_C=
ODE 132626</span><br style=3D"font-family: courier new,monospace;"><span st=
yle=3D"font-family: courier new,monospace;">#define KERNEL_VERSION(a,b,c) (=
((a) &lt;&lt; 16) + ((b) &lt;&lt; 8) + (c))</span><br style=3D"font-family:=
 courier new,monospace;">
<span style=3D"font-family: courier new,monospace;">#define RHEL_MAJOR 5</s=
pan><br style=3D"font-family: courier new,monospace;"><span style=3D"font-f=
amily: courier new,monospace;">#define RHEL_MINOR 4</span><br style=3D"font=
-family: courier new,monospace;">
<span style=3D"font-family: courier new,monospace;">#define RHEL_RELEASE_CO=
DE 1284</span><br style=3D"font-family: courier new,monospace;"><span style=
=3D"font-family: courier new,monospace;">#define RHEL_RELEASE_VERSION(a,b) =
(((a) &lt;&lt; 8) + (b))</span><br>
<br><br>So, per the README, I used the following configure arguments <br><b=
r><span style=3D"font-family: courier new,monospace;"># ./configure --with-=
afs-sysname=3Di386_linux24 --with-linux-kernel-headers=3D/usr</span><br>.<b=
r>
&lt;snipped&gt;<br><span style=3D"font-family: courier new,monospace;">.<br=
><span style=3D"color: rgb(255, 0, 0);">checking your OS... configure: erro=
r: Linux headers lack version definition</span></span><br><br>what am I doi=
ng wrong?<br>
<br>Thanks!!<br>

--0016e6d7e0342d9fef0476ce22af--