Skip to content

Configure script doesn't find Linux headers - Debian Wheezy #104

@piotrjurkiewicz

Description

@piotrjurkiewicz

Trying to configure Click on the present stable Debian (Wheezy) I get the following error:

=========================================
Can't find include/linux/skbuff.h in /lib/modules/3.2.0-4-686-pae/build.
Are you sure /lib/modules/3.2.0-4-686-pae/build contains Linux kernel source?
=========================================

I assume that the problem is connected with a (not so) recent (2009) change in kernel headers packages in Debian. Symbolic links for the common headers are no longer included in the flavour-specific headers directory. Click configure script tries to find headers in /lib/modules/VERSION/build directory, which links to the the flavour-specific headers directory. However, these headers are located under /lib/modules/VERSION/source. It is shown below.

root@router:/click-src# ls -la /lib/modules/3.2.0-4-686-pae/
total 3012
drwxr-xr-x  3 root root   4096 Dec 30 01:29 .
drwxr-xr-x  3 root root   4096 Dec 30 00:17 ..
lrwxrwxrwx  1 root root     38 Sep 20 14:39 build -> /usr/src/linux-headers-3.2.0-4-686-pae
drwxr-xr-x 10 root root   4096 Dec 30 00:17 kernel
-rw-r--r--  1 root root 722637 Dec 30 00:17 modules.alias
-rw-r--r--  1 root root 703931 Dec 30 00:17 modules.alias.bin
-rw-r--r--  1 root root   3034 Sep 20 14:30 modules.builtin
-rw-r--r--  1 root root   4158 Dec 30 00:17 modules.builtin.bin
-rw-r--r--  1 root root 351952 Dec 30 00:17 modules.dep
-rw-r--r--  1 root root 488548 Dec 30 00:17 modules.dep.bin
-rw-r--r--  1 root root    325 Dec 30 00:17 modules.devname
-rw-r--r--  1 root root 117483 Sep 20 14:30 modules.order
-rw-r--r--  1 root root    131 Dec 30 00:17 modules.softdep
-rw-r--r--  1 root root 287376 Dec 30 00:17 modules.symbols
-rw-r--r--  1 root root 365247 Dec 30 00:17 modules.symbols.bin
lrwxrwxrwx  1 root root     37 Sep 20 14:39 source -> /usr/src/linux-headers-3.2.0-4-common

I've found a similar bug filled against Debian kernel headers, but it was closed as wontfix: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521515

Basing on the discussion above, I assume that it should be fixed on the Click side rather than Debian. However I am not enough fluent in configure/kbuild/make things to fix it myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions