Ok, the file is also available on amd64 according to
$ wget ftp://ftp.ubuntu.com/ubuntu/dists/lucid/Contents-amd64.gz -O lucid64.gz
$ wget ftp://ftp.ubuntu.com/ubuntu/dists/lucid-updates/Contents-amd64.gz -O
lucid64.update.gz
$ zcat lucid64.gz lucid64.update.gz|grep -e asm-offsets.h
So the only thing that I see is that the link /usr/src/linux-
headers-2.6.32-306-ec2/include/asm may not point to asm-x86 or the
include folder isn't mentioned correctly on the command line.
I was not able to reproduce it on i386 - but tried to try it again on
amd64. I;ve installed it using debootstrap on my debian sid amd64
installation. Then I installed the ec2 headers and images together with
batman-adv-dkms... and the installation failed. It was another problem,
but one that is definitely a dependency problem of linux-headers/kbuild:
DKMS make.log for batman-adv-0.2 for kernel 2.6.32-308-ec2 (x86_64)
Sun Aug 29 08:46:11 UTC 2010
make: Entering directory `/usr/src/linux-headers-2.6.32-308-ec2'
awk: line 2: function gensub never defined
scripts/Makefile.build:82: *** 'Your awk program does not define gensub. Use
gawk or another awk with gensub'. Stop.
make: *** [_module_/var/lib/dkms/batman-adv/0.2/build] Error 2
make: Leaving directory `/usr/src/linux-headers-2.6.32-308-ec2'
So, I installed gawk and tried again.
And wow, here I get the failure with batman-adv-dkms. So now reproducing
it by calling the make stuff manually (it is the same stuff which is
called by dkms - only V=1 added):
$ cd /var/lib/dkms/batman-adv/0.2/build/
$ make -C /usr/src/linux-headers-2.6.32-308-ec2/
M=/var/lib/dkms/batman-adv/0.2/build V=1
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (
\
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are
missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to
fix it."; \
echo; \
/bin/false)
mkdir -p /var/lib/dkms/batman-adv/0.2/build/.tmp_versions ; rm -f
/var/lib/dkms/batman-adv/0.2/build/.tmp_versions/*
make -f scripts/Makefile.build obj=/var/lib/dkms/batman-adv/0.2/build
gcc -Wp,-MD,/var/lib/dkms/batman-adv/0.2/build/.main.o.d -nostdinc -isystem
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/include
-D__XEN_INTERFACE_VERSION__=0x00030207
-I/usr/src/linux-headers-2.6.32-308-ec2/arch/x86/include/mach-xen -Iinclude
-I/usr/src/linux-headers-2.6.32-308-ec2/arch/x86/include -include
include/linux/autoconf.h -Iubuntu/include -D__KERNEL__ -Wall -Wundef
-Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common
-Werror-implicit-function-declaration -Wno-format-security
-fno-delete-null-pointer-checks -O2 -m64 -mtune=generic -mno-red-zone
-mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-protector
-DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare
-fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow
-Wframe-larger-than=1024 -fno-omit-frame-pointer -fno-optimize-sibling-calls
-Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow
-fno-dwarf2-cfi-asm -fconserve-stack -DMODULE -D"KBUILD_STR(s)=#s"
-D"KBUILD_BASENAME=KBUILD_STR(main)" -D"KBUILD_MODNAME=KBUILD_STR(batman_adv)"
-c -o /var/lib/dkms/batman-adv/0.2/build/.tmp_main.o
/var/lib/dkms/batman-adv/0.2/build/main.c
In file included from
/usr/src/linux-headers-2.6.32-308-ec2/arch/x86/include/asm/unistd.h:5,
from include/linux/unistd.h:7,
from
/usr/src/linux-headers-2.6.32-308-ec2/arch/x86/include/asm/seccomp_64.h:4,
from
/usr/src/linux-headers-2.6.32-308-ec2/arch/x86/include/asm/seccomp.h:4,
from include/linux/seccomp.h:8,
from include/linux/sched.h:80,
from
/usr/src/linux-headers-2.6.32-308-ec2/arch/x86/include/mach-xen/asm/pgtable_64.h:16,
from
/usr/src/linux-headers-2.6.32-308-ec2/arch/x86/include/mach-xen/asm/pgtable.h:304,
from include/linux/mm.h:39,
from include/linux/scatterlist.h:6,
from include/linux/dma-mapping.h:7,
from include/linux/dmaengine.h:26,
from include/linux/skbuff.h:30,
from include/linux/if_ether.h:124,
from include/linux/netdevice.h:29,
from /var/lib/dkms/batman-adv/0.2/build/main.h:103,
from /var/lib/dkms/batman-adv/0.2/build/main.c:22:
/usr/src/linux-headers-2.6.32-308-ec2/arch/x86/include/asm/unistd_64.h:693:29:
error: asm/asm-offsets.h: No such file or directory
So after parsing the gcc call - where would have been the problem... hm,
lets check the interesting links:
$ ls -l /usr/src/linux-headers-2.6.32-308-ec2/include/asm
lrwxrwxrwx 1 root root 10 Aug 29 08:44
/usr/src/linux-headers-2.6.32-308-ec2/include/asm -> asm-x86_64
Thats weird. asm-x86_64 should not exist since some kernel versions. Lets see
if it is the problem. Oh, yes, look at that:
$ ls -l /usr/src/linux-headers-2.6.32-308-ec2/include/asm-x86_64
ls: cannot access /usr/src/linux-headers-2.6.32-308-ec2/include/asm-x86_64: No
such file or directory
So that makes the bug invalid for batman-adv-dkms.
@Dmitrii Zagorodnov: can you please tell us why you think that this bug
is invalid even when parts of the eucalyptus are may be the reason for
that problem?
** Changed in: eucalyptus
Status: Invalid => New
--
package batman-adv-dkms 0.2-5 failed to install/upgrade: batman-adv kernel
module failed to build
https://bugs.launchpad.net/bugs/625136
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs