Summary: | sys-kernel/gentoo-sources-2.6.19 fails to compile vesafb-tng (drivers/video/vesafb-thread.c missing linux/config.h) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Vlastimil Babka (Caster) (RETIRED) <caster> |
Component: | [OLD] Core system | Assignee: | Daniel Drake (RETIRED) <dsd> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dcecchin, gentoo4u, GNUtoo, igheax, ikelos, kernel, matrixhax0r, pacho, portage, teidakankan, zeekec |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Vlastimil Babka (Caster) (RETIRED)
2006-11-30 19:27:28 UTC
Removing the #include line helped compiling, let's see about booting :) Sorry for spam, somehow managed (firefox allowed me) to paste multiline description into summary and didn't clean it fully Removing the config.h include didn't help here. LD kernel/built-in.o CC drivers/video/vesafb-thread.o drivers/video/vesafb-thread.c: In function 'ioperm': drivers/video/vesafb-thread.c:42: error: 'errno' undeclared (first use in this function) drivers/video/vesafb-thread.c:42: error: (Each undeclared identifier is reported only once drivers/video/vesafb-thread.c:42: error: for each function it appears in.) drivers/video/vesafb-thread.c: In function 'vm86old': drivers/video/vesafb-thread.c:43: error: 'errno' undeclared (first use in this function) make[2]: *** [drivers/video/vesafb-thread.o] Error 1 make[1]: *** [drivers/video] Error 2 make: *** [drivers] Error 2 In drivers/video/vesafb-thread.c I noticed "int errno" surrounded by a #ifdef MODULE statement. Commenting out the conditional statement so errno is declared allows me to build the kernel. It appears to run fine, however this is only a temporary workaround. Indeed, when I wrote comment 1, I was accidentaly compiling as module (which didn't help much on boot :) building it non-module gives me the same as comment 3. From bug 156705 comment 6, by spock@gentoo.org: Daniel, could we please upgrade to: http://dev.gentoo.org/~spock/projects/vesafb-tng/archive/vesafb-tng-1.0-rc2-2.6.19-rc2.patch http://dev.gentoo.org/~spock/projects/gensplash/archive/fbsplash-0.9.2-r5-2.6.19-rc2.patch in gentoo-sources? This should fix any problems related to linux/config.h. the speakup patch also has linux/config.h includes. It should be updated as well. 4400_speakup-20061129.patch lines 8367 and 11337. workaround until the patches are updated '#include <linux/config.h>' should be replaced with '#include <linux/autoconf.h>' in: drivers/char/speakup/spk_priv.h line 29 drivers/char/speakup/speakup_drvcommon.c line 2 drivers/video/vesafb-thread.c line 9 drivers/video/fbsplash.c line 20 drivers/video/cfbsplash.c line 17 Fixed in gentoo-sources-2.6.19-r1. Sorry for the bad initial release. *** Bug 156898 has been marked as a duplicate of this bug. *** At this point that's true. However, the reason I came up with this approach is mentioned in comment #16. Basically, having nox on the command line and having this init script check the command line for that means that you have to reboot to undo the affect. |