Package: linux-kbuild-2.6.26 Version: 2.6.26-3 Severity: serious Justification: no longer builds from source
This typo actually causes other kernel modules which use KBUILD_EXTRA_SYMBOLS to not build correctly. The modpost process will exit with the error: "Error: not ELF". The KBUILD_EXTRA_SYMBOLS feature adds the argument "-e .../Module.symvers" to the modpost argument list. The "e" option requires an argument in the standard Linux kernel modpost program, but Debian's mk_elfconfig-ish modpost wrapper does not expect the "e" option to have an argument, thus this "error" is detected. To fix this bug, all that needs to be done is to add a ":" after the "e" in the optstring argument of the modpost wrapper's getopt call. Yes, I know it looks like I'm running a Fedora kernel on a Debian box, but I'm actually just running a debootstrapped Debian on a Fedora box. Nevertheless, I've confirmed this bug on a full-blown Debian box as well. Attached is a patch to fix the bug: -Jeff -- System Information: Debian Release: 5.0 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (x86_64) Kernel: Linux 2.6.27.7-134.fc10.x86_64 (SMP w/8 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/bash Versions of packages linux-kbuild-2.6.26 depends on: ii libc6 2.7-18 GNU C Library: Shared libraries linux-kbuild-2.6.26 recommends no packages. linux-kbuild-2.6.26 suggests no packages. -- no debconf information
--- ./src/mod/modpost.c.orig 2009-03-09 15:01:26.000000000 +0000 +++ ./src/mod/modpost.c 2009-03-09 15:13:41.000000000 +0000 @@ -13,7 +13,7 @@ int opt; FILE *file; - while ((opt = getopt (argc, argv, "acei:I:K:mM:o:sSw")) != -1) + while ((opt = getopt (argc, argv, "ace:i:I:K:mM:o:sSw")) != -1) { switch(opt) {