Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 193708 - genpatches-2.6.20* fails on compiling pwc webcam driver
Summary: genpatches-2.6.20* fails on compiling pwc webcam driver
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-25 07:04 UTC by Natanael Copa
Modified: 2007-10-10 19:45 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
hardened-sources-2.6.20-r6-pwc.patch (hardened-sources-2.6.20-r6-pwc.patch,320 bytes, patch)
2007-09-25 07:06 UTC, Natanael Copa
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Natanael Copa 2007-09-25 07:04:43 UTC
nc generic # make
make[2]: Entering directory `/usr/src/alpine/kernel/generic/work/kout'
  Using /usr/src/linux-2.6.20-hardened-r6 as source for kernel
  GEN     /usr/src/alpine/kernel/generic/work/kout/Makefile
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  CHK     include/linux/compile.h
  CC [M]  drivers/media/video/pwc/pwc-uncompress.o
In file included from include2/asm/current.h:4,
                 from /usr/src/linux-2.6.20-hardened-r6/drivers/media/video/pwc/pwc-uncompress.c:29:
include2/asm/pda.h:21: error: `NR_CPUS' undeclared here (not in a function)
make[6]: *** [drivers/media/video/pwc/pwc-uncompress.o] Error 1
make[5]: *** [drivers/media/video/pwc] Error 2
make[4]: *** [drivers/media/video] Error 2
make[3]: *** [drivers/media] Error 2
make[2]: *** [drivers] Error 2
make[2]: Leaving directory `/usr/src/alpine/kernel/generic/work/kout'
make[1]: *** [_all] Error 2
make: *** [/usr/src/alpine/kernel/generic/work/kout/arch/i386/boot/bzImage] Error 2


Have a look at this forum thread:
http://forums.grsecurity.net/viewtopic.php?p=6979&sid=767c3a755a25e7daf67087bd411841a1
Comment 1 Natanael Copa 2007-09-25 07:06:41 UTC
Created attachment 131827 [details, diff]
hardened-sources-2.6.20-r6-pwc.patch

trivial fix
Comment 2 Natanael Copa 2007-09-25 07:28:39 UTC
As mentioned in the forum that i linked to, this is probably not related to
gresc/hardened at all. Patch belongs more likely in genpatches.

thanks
Comment 3 Christian Heim (RETIRED) gentoo-dev 2007-09-25 07:50:50 UTC
(In reply to comment #2)
> As mentioned in the forum that i linked to, this is probably not related to
> gresc/hardened at all. Patch belongs more likely in genpatches.

This is supposed to be fixed in .21, but I incorporated the fix into genpatches-2.6.20.
Comment 4 Christian Heim (RETIRED) gentoo-dev 2007-09-25 07:52:46 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > As mentioned in the forum that i linked to, this is probably not related to
> > gresc/hardened at all. Patch belongs more likely in genpatches.
> 
> This is supposed to be fixed in .21, but I incorporated the fix into
> genpatches-2.6.20.

You might wanna sent that do Willy Tarreau / LKML for inclusion into the next stable series.

Comment 5 Maarten Bressers (RETIRED) gentoo-dev 2007-10-07 19:21:23 UTC
The patch is in genpatches, and also in hardened-sources-2.6.20-r10 (stable).
Comment 6 Natanael Copa 2007-10-08 11:43:47 UTC
(In reply to comment #5)
> The patch is in genpatches, and also in hardened-sources-2.6.20-r10 (stable).
> 

I re-emerge hardened sources this morning and the patch was not there.
Comment 7 Maarten Bressers (RETIRED) gentoo-dev 2007-10-08 21:22:22 UTC
(In reply to comment #6)
> I re-emerge hardened sources this morning and the patch was not there.
> 
You're right, it is in genpatches but not in hardened-sources-2.6.20-r10, sorry about that. Will reopen this bug until we have a version for you to upgrade to.
Comment 8 Maarten Bressers (RETIRED) gentoo-dev 2007-10-10 19:45:22 UTC
The patch has just been added to hardened-sources-2.6.20-r10, sorry for the delay (you might want to wait a little while before syncing so you're sure to get it).