[OpenAFS] Compile Problems

Horst Birthelmer horst@riback.net
Wed, 3 Nov 2004 16:31:35 +0100


On Nov 3, 2004, at 3:18 PM, Marco Spatz wrote:

> Hi,
>
> because of problems with the SuSE 9.2 rpms (as posted before) I tried  
> to compile openafs by myself. I wanted to have an equivalent directory  
> structure as used by SuSE, so I used this configure options:
> ./configure --with-afs-sysname=i386_linux26 --sysconfdir=/etc  
> --libexecdir=/usr/lib --prefix=/usr --sbindir=/usr/sbin  
> --localstatedir=/var/lib
>
> configure went fine, but calling make produces the following error:
>
> Building in directory: MODLOAD-2.6.8-24-default-MP
> make[4]: Entering directory  
> `/tmp/openafs-1.3.73/src/libafs/MODLOAD-2.6.8-24-default-MP'
> Makefile.common:51: warning: overriding commands for target `.c.o'
> /tmp/openafs-1.3.73/src/config/Makefile.config:132: warning: ignoring  
> old commands for target `.c.o'
> .././make_kbuild_makefile.pl MODLOAD-2.6.8-24-default-MP libafs.ko \
>  /tmp/openafs-1.3.73/src/config/Makefile.config Makefile.afs  
> Makefile.common
> make -C /usr/src/linux  
> M=/tmp/openafs-1.3.73/src/libafs/MODLOAD-2.6.8-24-default-MP modules
> make[5]: Entering directory `/usr/src/linux-2.6.8-24'
> Makefile:465: .config: No such file or directory
>
> WARNING: Symbol version dump /usr/src/linux-2.6.8-24/Module.symvers is  
>  missing, modules will have CONFIG_MODVERSIONS disabled.
>
>  CC [M]   
> /tmp/openafs-1.3.73/src/libafs/MODLOAD-2.6.8-24-default-MP/ 
> afs_atomlist.o
> /bin/sh: scripts/basic/fixdep: No such file or directory
> make[6]: ***  
> [/tmp/openafs-1.3.73/src/libafs/MODLOAD-2.6.8-24-default-MP/ 
> afs_atomlist.o] Error 1
> make[5]: ***  
> [_module_/tmp/openafs-1.3.73/src/libafs/MODLOAD-2.6.8-24-default-MP]  
> Error 2
> make[5]: Leaving directory `/usr/src/linux-2.6.8-24'
> make[4]: *** [libafs.ko] Error 2
> make[4]: Leaving directory  
> `/tmp/openafs-1.3.73/src/libafs/MODLOAD-2.6.8-24-default-MP'
> make[3]: *** [linux_compdirs] Error 2
> make[3]: Leaving directory `/tmp/openafs-1.3.73/src/libafs'
> make[2]: *** [libafs] Error 2
> make[2]: Leaving directory `/tmp/openafs-1.3.73'
> make[1]: *** [build] Error 2
> make[1]: Leaving directory `/tmp/openafs-1.3.73'
> make: *** [all] Error 2
>
> I don't know what's the problem.
>

You need the appropriate configured kernel sources.
As you can see above you don't have a ".config" file which tells you  
haven't configured your kernel.
We cannot build a kernel module against an unknown kernel ;-)

Horst