Summary: | splashutils fails to compile (poss only on gcc 3.4.1) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | genbug |
Component: | New packages | Assignee: | Michal Januszewski (RETIRED) <spock> |
Status: | RESOLVED CANTFIX | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
genbug
2004-09-03 11:07:10 UTC
This problem is caused by a bug in the kernel headers of 2.6.9_rc1 (I'm guessing you're using development-sources, right?). With the way things are done now I can't do much with it (dev-sources are supposed to be vanilla kernels from kernel.org, without any patches). A quick and dirty fix that you might find useful is moving '#ifdef __KERNEL__' below the end of 'struct list_head' declaration in /usr/src/linux/include/linux/list.h. The following fix was provided by xiphux who maintains xx-sources that I am currently using. It did enable me to compile splashutils. Go edit /usr/src/linux/include/linux/fb.h. At line 305, you'll see: Code: struct list_head modelist; Add an asterisk in front of modelist, so: Code: struct list_head *modelist It needs to be a pointer to a list head. But that breaks the other kernel stuff that depends on fb.h, so change it back after you compile splashutils. xx is mm based so I believe this will show the same under mm sources. I would appear to be splashutils incorrectly interpretting this variable, but I have not investigated further. This is NOT a VALID fix. The fact that it makes splashutils compile doesn't justify using it to 'fix' things. The problem will most likely occur on the -mm kernels as well (as you said), but fbsplash is not supported on mm's. Even if the hack you're were told about were correct, I couldn't apply anywhere as the problem is not in splashutils, but in the kernel headers. |