gcc -mcpu=athlon-xp -O3 -pipe -Wall -Wstrict-prototypes -fPIC -I/home/extrabig/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/include -I. -mcpu=athlon-xp -O3 -pipe -Wall -Wstrict-prototypes -I/home/extrabig/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/include -I. -I/home/extrabig/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/src -mcpu=athlon-xp -O3 -pipe -DSVGALIB_CONFIG_FILE=\"/etc/svgalib/libvga.config\" -DALLOW_MOUSE_OVERRIDE -DNO_DELAY -c -o drivers/neo.o /home/extrabig/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/src/drivers/neo.c gcc -mcpu=athlon-xp -O3 -pipe -Wall -Wstrict-prototypes -fPIC -I/home/extrabig/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/include -I. -mcpu=athlon-xp -O3 -pipe -Wall -Wstrict-prototypes -I/home/extrabig/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/include -I. -I/home/extrabig/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/src -mcpu=athlon-xp -O3 -pipe -DSVGALIB_CONFIG_FILE=\"/etc/svgalib/libvga.config\" -DALLOW_MOUSE_OVERRIDE -DNO_DELAY -c -o drivers/fbdev.o /home/extrabig/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/src/drivers/fbdev.c In file included from /usr/include/linux/timer.h:5, from /usr/include/linux/workqueue.h:8, from /usr/include/linux/fb.h:5, from /home/extrabig/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/src/drivers/fbdev.c:4: /usr/include/linux/list.h:576:2: warning: #warning "don't include kernel headers in userspace" In file included from /usr/include/linux/timer.h:6, from /usr/include/linux/workqueue.h:8, from /usr/include/linux/fb.h:5, from /home/extrabig/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/src/drivers/fbdev.c:4: /usr/include/linux/spinlock.h: In function `bit_spin_lock': /usr/include/linux/spinlock.h:413: error: invalid type argument of `->' /usr/include/linux/spinlock.h: In function `bit_spin_trylock': /usr/include/linux/spinlock.h:430: error: invalid type argument of `->' /usr/include/linux/spinlock.h:433: error: invalid type argument of `->' /usr/include/linux/spinlock.h:433: error: `TIF_NEED_RESCHED' undeclared (first use in this function) /usr/include/linux/spinlock.h:433: error: (Each undeclared identifier is reported only once /usr/include/linux/spinlock.h:433: error: for each function it appears in.) /usr/include/linux/spinlock.h: In function `bit_spin_unlock': /usr/include/linux/spinlock.h:451: error: invalid type argument of `->' /usr/include/linux/spinlock.h:451: error: `TIF_NEED_RESCHED' undeclared (first use in this function) In file included from /usr/include/linux/workqueue.h:8, from /usr/include/linux/fb.h:5, from /home/extrabig/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/src/drivers/fbdev.c:4: /usr/include/linux/timer.h: At top level: /usr/include/linux/timer.h:11: error: field `entry' has incomplete type /usr/include/linux/timer.h: In function `init_timer': /usr/include/linux/timer.h:43: error: `NULL' undeclared (first use in this function) /usr/include/linux/timer.h: In function `timer_pending': /usr/include/linux/timer.h:60: error: `NULL' undeclared (first use in this function) In file included from /usr/include/linux/fb.h:5, from /home/extrabig/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/src/drivers/fbdev.c:4: /usr/include/linux/workqueue.h: At top level: /usr/include/linux/workqueue.h:15: error: field `entry' has incomplete type In file included from /home/extrabig/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/src/drivers/fbdev.c:4: /usr/include/linux/fb.h:342: error: syntax error before '*' token /usr/include/linux/fb.h:346: error: syntax error before '}' token In file included from /home/extrabig/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/src/drivers/fbdev.c:11: /home/extrabig/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/include/vga.h:541:1: warning: "ROP_XOR" redefined In file included from /home/extrabig/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/src/drivers/fbdev.c:4: /usr/include/linux/fb.h:272:1: warning: this is the location of the previous definition In file included from /home/extrabig/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/src/drivers/fbdev.c:12: /home/extrabig/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/src/libvga.h:106: error: redefinition of `struct info' make[1]: *** [drivers/fbdev.o] Error 1 make[1]: Leaving directory `/home/extrabig/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/staticlib' make: *** [staticlib/libvga.a] Error 2 !!! ERROR: media-libs/svgalib-1.9.17-r3 failed. !!! Function src_compile, Line 39, Exitcode 2 !!! Failed to build libraries and utils!
svgalib needs to be ported to 2.6
it appears earlier fixes along with the frame-buffer patches for bugs 36402 36039 seem to fix this..
upstream thing is a dirty lie
patches have been added to fix this in 1.9.17-r3
Suggest reopening, also forgot to add myself to the CC. :)
Arrrg. Bugzilla-ism I wasn't aware of. Ignore last comment. :(