Bug 138 - Build error: drivers/video/sis/sis_main.h:299: parse error before "sisfbinfo
Summary: Build error: drivers/video/sis/sis_main.h:299: parse error before "sisfbinfo
Status: CLOSED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: Video(Other) (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: Bugme Janitors Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-04 17:11 UTC by Torrey Hoffman
Modified: 2003-06-11 09:24 UTC (History)
0 users

See Also:
Kernel Version:
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

Description Torrey Hoffman 2002-12-04 17:11:03 UTC
Exact Kernel version: 2.5.50
Distribution: Red Hat 8.0
Hardware Environment: Pentium III, SIS chipset
Software Environment: Up to date Red Hat 8.0
Problem Description: bzImage build failure:

gcc -Wp,-MD,drivers/video/sis/.sis_main.o.d -D__KERNEL__ -Iinclude -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=pentium3
-Iarch/i386/mach-generic -nostdinc -iwithprefix include
-DKBUILD_BASENAME=sis_main -DKBUILD_MODNAME=sisfb -DEXPORT_SYMTAB  -c -o
drivers/video/sis/sis_main.o drivers/video/sis/sis_main.c
In file included from drivers/video/sis/sis_main.c:57:
drivers/video/sis/sis_main.h:299: parse error before "sisfbinfo"
drivers/video/sis/sis_main.h:299: warning: type defaults to int' in
declaration of sisfbinfo'
drivers/video/sis/sis_main.h:299: warning: data definition has no type or
storage class
drivers/video/sis/sis_main.c: In function sisfb_query_north_bridge_space':
drivers/video/sis/sis_main.c:206: SIS_650' undeclared (first use in this
function)

(this continues with several dozen "foo is undefined" and similar errors in
sis_main.c)

Steps to reproduce:

Relevant bits of my config:

grep SIS .config

CONFIG_BLK_DEV_SIS5513=y
CONFIG_SIS900=m
CONFIG_AGP_SIS=y
CONFIG_FB_SIS=y
CONFIG_FB_SIS_300=y
CONFIG_FB_SIS_315=y
Comment 1 Hanna Linder 2003-01-15 16:52:31 UTC
Im looking at this now.
Comment 2 Arnaud Quette 2003-01-16 10:59:28 UTC
same problem when compiling 2.5.58, but with modules due to my config

>  gcc -Wp,-MD,drivers/video/sis/.sis_main.o.d -D__KERNEL__ -Iinclude -Wall
>-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe
>-mpreferred-stack-boundary=2 -march=athlon -Iinclude/asm-i386/mach-default
>-fomit-frame-pointer -nostdinc -iwithprefix include -DMODULE  
>-DKBUILD_BASENAME=sis_main -DKBUILD_MODNAME=sisfb -DEXPORT_SYMTAB  -c -o
>drivers/video/sis/sis_main.o drivers/video/sis/sis_main.c
>drivers/video/sis/sis_main.c:XX:YY: video/fbcon[*].h: no such file or dir
(Note: last line abreviate the log. see below details)

Investigatig a bit, I found that lots of Frame Buffer file have disapeared since
2.5.48 (the last one I have that includes those missing files) in include/video
and driver/video: fbcon.h/c, fbcon-cfb8.h/c,, fbcon-cfb16.h/c,,
fbcon-cfb24.h/c,, fbcon-cfb32.h/c,, fbcon-accel.h/c,, ...

From .config
CONFIG_BLK_DEV_SIS5513=y
CONFIG_SIS900=m
CONFIG_AGP_SIS=m
CONFIG_FB_SIS=m
CONFIG_FB_SIS_300=y
# CONFIG_FB_SIS_315 is not set

Comment 3 Markus Barenhoff 2003-01-21 03:21:27 UTC
The problem is that the driver has not been ported to the new framebuffer layer.
The maintainer (Thomas Winischhofer) writes on his site
(http://www.webit.at/~twinny/linuxsis630.shtml):
"Kernel 2.5 support will have to wait a few weeks, it seems the fb API is still
under development."
Comment 4 Dave Jones 2003-06-11 09:24:48 UTC
Compiles (albeit with warnings) in current 2.5

Note You need to log in before you can comment on or make changes to this bug.