[OpenAFS] OpenAFS 1.2.2 Builds 2.4.3-12 Modules under 2.4.9-6

Pieter-Paul Giesberts (ELN) Pieter-Paul.Giesberts@eln.ericsson.se
Fri, 9 Nov 2001 14:08:41 +0100


Try making a symlink ('ln -s') from /usr/src/linux to /usr/src/linux-2.4.9-6 or whatever version you want and re-running configure. This will probably do the trick for you. 

Good luck, Pieter-Paul

> -----Original Message-----
> From: Computers in Medicine [mailto:pittmed@mail.com]
> Sent: Friday, November 09, 2001 1:58 PM
> To: openafs-info@openafs.org
> Subject: [OpenAFS] OpenAFS 1.2.2 Builds 2.4.3-12 Modules under 2.4.9-6
> 
> 
> 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
> 
> 
> _______________________________________________
> OpenAFS-info mailing list
> OpenAFS-info@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-info
>