Broken include/asm symlink in linux-headers-2.6.32-305-ec2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-ec2 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The include/asm symlink in linux-headers-
$ ls -ld /usr/src/
lrwxrwxrwx 1 root root 10 2010-05-06 13:58 /usr/src/
lrwxrwxrwx 1 root root 50 2010-05-06 13:58 /usr/src/
drwxr-xr-x 2 root root 4096 2010-05-06 13:58 /usr/src/
This makes it impossible to build many kernel modules for ec2, such as anything that includes <linux/sched.h>:
$ cat > Makefile
obj-m = foo.o
$ cat > foo.c
#include <linux/module.h>
#include <linux/sched.h>
int init_module() { return 0; }
void cleanup_module() { }
$ make -C /lib/modules/
make: Entering directory `/usr/src/
CC [M] /tmp/foo/foo.o
In file included from /usr/src/
/usr/src/
make[1]: *** [/tmp/foo/foo.o] Error 1
make: *** [_module_/tmp/foo] Error 2
make: Leaving directory `/usr/src/
A real example is openafs (bug 576035).
The same problem is also mentioned in this blog post: http:// heuristically. wordpress. com/2010/ 05/05/error- asmasm- offsets- h-no-such- file-directory/