[OpenAFS] OpenAFS 1.2.2 Builds 2.4.3-12 Modules under 2.4.9-6
Computers in Medicine
pittmed@mail.com
Fri, 9 Nov 2001 07:58:20 -0500
You guys really like to make a newbie sweat! I tried to build a kernel
module for 2.4.9-6 from source as Derrick suggested, with the following
results. Did I do it right, and why wouldn't /usr/src/linux exist? What
should I do about it? I'd really appreciate any pointers to a source of
documentation since I haven't done this before and all I can do is follow
directions and hope it works. Thanks.
[root@myhost src]# ./configure
loading cache ./config.cache
[Snip many lines that look normal]
checking your OS... configure: warning: No usable linux headers found at
/usr/src/linux so disabling kernel module linux
checking your AFS sysname... configure: error: Couldn't guess your Linux
version. Please use the --with-afs-sysname option to configure an AFS
sysname.
[root@myhost src]# ls /usr/src
linux-2.4 openafs-kernel-1.0.4 openafs-kernel-1.2.1
linux-2.4.2 openafs-kernel-1.1.0 openafs-kernel-1.2.2
linux-2.4.9-6 openafs-kernel-1.1.1 redhat
[root@myhost src]# ./configure --with-afs-sysname=i386_linux24
[Snip normal stuff]
checking your OS... configure: warning: No usable linux headers found at
/usr/src/linux so disabling kernel module linux
[Snip normal stuff]
creating ./config.status
creating Makefile
creating config/Makefile.i386_linux24
creating config/afsconfig.h
config/afsconfig.h is unchanged
[root@myhost src]# make
rm -f h net netinet sys rpc
ln -s rx rpc
for m in ; do \
KDIR=MODLOAD--$m; \
mkdir -p ${KDIR}; \
ln -fs ../Makefile ${KDIR}/Makefile ; \
ln -fs ../Makefile.common ${KDIR}/Makefile.common; \
ln -fs ../config ${KDIR}/config; \
done
rm -f h
ln -s /usr/src/linux/include/linux h
rm -f linux
ln -s /usr/src/linux/include/linux linux
rm -f net
ln -s /usr/src/linux/include/linux net
rm -f netinet
ln -s /usr/src/linux/include/linux netinet
rm -f sys
ln -s /usr/src/linux/include/linux sys
rm -f asm-generic
ln -s /usr/src/linux/include/asm-generic asm-generic
rm -f asm
ln -s /usr/src/linux/include/asm-i386 asm
for m in ; do \
KDIR=MODLOAD--$m ; \
echo Building in directory: ${KDIR} ; \
if [ "$m" = "MP" ] ; then \
SMP_DEF="-DAFS_SMP " ; \
TARG="libafs.mp" ; \
elif [ "$m" = "EP" ] ; then \
SMP_DEF="-DAFS_SMP " ; \
TARG="libafs.ep" ; \
else \
SMP_DEF=" " ; \
TARG=libafs ; \
fi ; \
cd ${KDIR} ; \
make SMP_DEF="${SMP_DEF}" linux_compdirs_${TARG} CLIENT= || exit $?;
\
cd ../ ; \
done