Re: [opensuse] Problem with make Dave Plater schrieb:
> ï¿½ wrote:
>> hi there,
>>
>> i have a problem with make or my kernel sources here:
>>
>> i want to compile a unionfs kernel module. make leads to the 
>> following response:
>>
>> make -C /lib/modules/2.6.22.13-0.3-default/build 
>> SUBDIRS=/opt/unionfs/unionfs-1.4 
>> FISTDEVMK=/opt/unionfs/unionfs-1.4/fistdev.mk modules
>> make[1]: Entering directory 
>> `/usr/src/linux-2.6.22.13-0.3-obj/i386/default'
>> make[1]: *** No rule to make target `modules'.  Stop.
>> make[1]: Leaving directory 
>> `/usr/src/linux-2.6.22.13-0.3-obj/i386/default'
>> make: *** [unionfs.ko] Error 2
>>
>> uname -r shows the following: 2.6.22.13-0.3-default
>>
>> therefore i downloaded the kernelsources (linux-2.6.22.13.tar.gz) 
>> from www.kernel.org (since yast software manager only offers me the 
>> 2.6.22.5 sources) and unpacked them to /usr/src
>>
>> GX06-25:/usr/src # ls -l
>> total 20
>> lrwxrwxrwx  1 root root   16 Feb 21 07:49 linux -> linux-2.6.22.13/
>> drwxrwxr-x 19 root root 4096 Nov 16 19:27 linux-2.6.22.13
>> drwxr-xr-x  3 root root 4096 Dec 12 14:23 linux-2.6.22.13-0.3-obj
>> drwxr-xr-x 20 root root 4096 Feb 19 16:02 linux-2.6.22.5-31
>> drwxr-xr-x  3 root root 4096 Feb 21 07:40 linux-2.6.22.5-31-obj
>> lrwxrwxrwx  1 root root   24 Feb 21 07:50 linux-obj -> 
>> linux-2.6.22.13-0.3-obj/
>> drwxr-xr-x  7 root root 4096 Dec  3 13:43 packages
>>
>> GX06-25:/lib/modules/2.6.22.13-0.3-default # ls -la
>> total 1748
>> drwxr-xr-x  4 root root   4096 Feb 21 07:46 .
>> drwxr-xr-x  9 root root   4096 Feb 19 16:01 ..
>> lrwxrwxrwx  1 root root     45 Dec 12 14:23 build -> 
>> /usr/src/linux-2.6.22.13-0.3-obj/i386/default
>> drwxr-xr-x 11 root root   4096 Dec 12 14:23 kernel
>> -rw-r--r--  1 root root 374694 Dec 12 15:54 modules.alias
>> -rw-r--r--  1 root root     69 Dec 12 15:54 modules.ccwmap
>> -rw-r--r--  1 root root 420078 Dec 12 15:54 modules.dep
>> -rw-r--r--  1 root root    813 Dec 12 15:54 modules.ieee1394map
>> -rw-r--r--  1 root root    654 Dec 12 15:54 modules.inputmap
>> -rw-r--r--  1 root root  22147 Dec 12 15:54 modules.isapnpmap
>> -rw-r--r--  1 root root     74 Dec 12 15:54 modules.ofmap
>> -rw-r--r--  1 root root 313412 Dec 12 15:54 modules.pcimap
>> -rw-r--r--  1 root root   1093 Dec 12 15:54 modules.seriomap
>> -rw-r--r--  1 root root 157840 Dec 12 15:54 modules.symbols
>> -rw-r--r--  1 root root  27541 Dec 12 15:54 
>> modules.unsupported.blacklist
>> -rw-r--r--  1 root root 402914 Dec 12 15:54 modules.usbmap
>> lrwxrwxrwx  1 root root     24 Feb 21 07:46 source -> 
>> /usr/src/linux-2.6.22.13
>> drwxr-xr-x  2 root root   4096 Dec 12 15:54 weak-updates
>>
>> any ideas?
>>
>> --stephan
>>
> The kernel.org kernel sources will not match yours. You will find 
> correct source and symbols for your kernel at 
> http://download.opensuse.org/update/10.3 the 10.3 update repository. 
> You should have it added to yast already.
> Dave
>

i updated the kernel to 2.6.22.17 via yast, including kernel sources. 
now the makefile is missing config.h

make -C /lib/modules/2.6.22.17-0.1-default/build 
SUBDIRS=/opt/unionfs/unionfs-1.4 
FISTDEVMK=/opt/unionfs/unionfs-1.4/fistdev.mk modules
make[1]: Entering directory `/usr/src/linux-2.6.22.17-0.1-obj/i386/default'
make -C ../../../linux-2.6.22.17-0.1 
O=../linux-2.6.22.17-0.1-obj/i386/default modules
  CC [M]  /opt/unionfs/unionfs-1.4/subr.o
In file included from /opt/unionfs/unionfs-1.4/subr.c:23:
/opt/unionfs/unionfs-1.4/unionfs.h:6:26: error: linux/config.h: No such 
file or directory

--stephan


