Hello everyone.
After update fased some problem with self-made modules:) Can't get the trick with linux-headers-3.0.0-1-686-pae package. apt-cache show linux-headers-3.0.0-1-686-pae Gives: <...> Provides: linux-headers Depends: linux-headers-3.0.0-1-common (= 3.0.0-3), linux-kbuild-3.0.0, gcc-4.5 <...> Why such strange implementation, i dont understand this even reading apt-cache show for both packages:( And even more why *.h files are empty at 686 dir?: root@dbc:/usr/src# ls -l ./linux-headers-3.0.0-1-686-pae/include/config/*.h|head -5 -rw-r--r-- 1 root root 0 Aug 27 19:24 ./linux-headers-3.0.0-1-686-pae/include/config/3c359.h -rw-r--r-- 1 root root 0 Aug 27 19:24 ./linux-headers-3.0.0-1-686-pae/include/config/3c515.h -rw-r--r-- 1 root root 0 Aug 27 19:24 ./linux-headers-3.0.0-1-686-pae/include/config/6pack.h -rw-r--r-- 1 root root 0 Aug 27 19:24 ./linux-headers-3.0.0-1-686-pae/include/config/8139cp.h -rw-r--r-- 1 root root 0 Aug 27 19:24 ./linux-headers-3.0.0-1-686-pae/include/config/8139too.h How to use older Makefiles with strings like: <...> KDIR := /lib/modules/$(shell uname -r)/build <...> default: $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules For example with very simple test self-made:) module I get: make -C /lib/modules/3.0.0-1-686-pae/build SUBDIRS=/home/cc/code/c/module modules make[1]: Entering directory `/usr/src/linux-headers-3.0.0-1-686-pae' CC [M] /home/cc/code/c/module/tm.o /home/cc/code/c/module/tm.c: In function 'init_module': /home/cc/code/c/module/tm.c:21:12: warning: assignment from incompatible pointer type /home/cc/code/c/module/tm.c:22:17: error: 'NF_IP_PRE_ROUTING' undeclared (first use in this function) because headers placed not in /usr/src/linux-`uname -r`/include/linux dirs: ls -l /usr/src/linux-headers-3.0.0-1-686-pae/include/linux/ total 4 -rw-r--r-- 1 root root 97 Aug 27 19:24 version.h and at the same time: ls -l /usr/src/linux-headers-3.0.0-1-common/include/linux/|wc -l 1119 thus i cant use uname -r ? Thanks in advance Best regards.