[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#267417: kernel-image: Build error



Package: kernel-image
Version: 2.4.26-1-686
Severity: important
Justification: fails to build from source

I use this command:
time apt-get -b source kernel-image-2.4.26-1-686
and the build fails thus:

DVERSIONS -include /home/users/summer/packages/kernel-image-2.4.26-i386-2.4.26/build-386/include/linux/modversions.h -Os  -nostdinc -iwithprefix include -DKBUILD_BASENAME=asus_acpi  -c -o asus_acpi.o asus_acpi.c
asus_acpi.c: In function `parse_arg':
asus_acpi.c:406: error: `buffer' undeclared (first use in this function)
asus_acpi.c:406: error: (Each undeclared identifier is reported only once
asus_acpi.c:406: error: for each function it appears in.)
asus_acpi.c:406: error: `value' undeclared (first use in this function)
make[4]: *** [asus_acpi.o] Error 1
make[4]: Leaving directory `/home/users/summer/packages/kernel-image-2.4.26-i386-2.4.26/build-386/drivers/acpi'
make[3]: *** [_modsubdir_acpi] Error 2
make[3]: Leaving directory `/home/users/summer/packages/kernel-image-2.4.26-i386-2.4.26/build-386/drivers'
make[2]: *** [_mod_drivers] Error 2
make[2]: Leaving directory `/home/users/summer/packages/kernel-image-2.4.26-i386-2.4.26/build-386'
make[1]: *** [stamp-build] Error 2
make[1]: Leaving directory `/home/users/summer/packages/kernel-image-2.4.26-i386-2.4.26/build-386'
make: *** [build-stamp] Error 2
Build command 'cd kernel-image-2.4.26-i386-2.4.26 && dpkg-buildpackage -b -uc -rfakeroot' failed.
E: Child process failed


I have established that this code is wrong, and found the patch to reverse it:
static int parse_arg(const char *buf, unsigned long count, int *val)
{
        char s[32];
        if (!count)
                return 0;
        if (count > 31)
                return -EINVAL;
        if (copy_from_user(s, buf, count))
                return -EFAULT;
        s[count] = 0;
        count = parse_arg(buffer, count, &value);
        if (count > 0)
                return -EINVAL;
        return count;
}

I have also discovered the error is contained in 
kernel-source-2.4.26: /usr/src/kernel-source-2.4.26.tar.bz2
which I built in like manner.  

I'll contine to try to figure out what went wrong, but it's getting late.





-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.7-1-k7
Locale: LANG=C, LC_CTYPE=C



Reply to: