FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 03-09-2009, 02:38 PM
Jeff Hansen
 
Default Bug#518961: linux-kbuild-2.6.26: Typo in modpost wrapper src/mod/modpost.c

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:sSw")) != -1)
+ while ((opt = getopt (argc, argv, "ace:i:I:K:mM:sSw")) != -1)
{
switch(opt)
{
 

Thread Tools




All times are GMT. The time now is 09:46 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org