Skip to contentSkip to conversation

(No subject)

DISCUSSION Marc-Christian Petersen 1 participant 1 message Dec 2, 2002 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

Hi Nadav,

first: a subject would be nice ;)

Quoted 8 lines

I am having some problems with recent kernels. The SIS DRI module since 2.4.18 through 2.4.20 will not compile ^H ^H ^H Link properly. The Error I get is undefined reference to sis_free() and sis_malloc(). I believe it has to do with the dependencies or make file linking with a missing .o file. The problem occures whenever I try to compile the module into the kernel ( [*] sis ).
when I try to compile it as a module it fails when I go through "make modules_install" with the same error.

that problem is known for a long time now and has been often discussed but never got a fix into mainstream. Use this.

The patch does 2 simple things.

1. If you select SiS DRI statically it selects SiS Framebuffer also statically
2. Same as above for module.

ciao, Marc

# Patch from: me

drivers/char/drm/Config.in +7 -0
diff -Nur linux-2.4.18-wolk-3.3-fullkernel-org/drivers/char/drm/Config.in linux-2.4.18-wolk-3.3-fullkernel/drivers/char/drm/Config.in
@@ -13,3 +13,10 @@
 dep_tristate '  Intel 830M' CONFIG_DRM_I830 $CONFIG_AGP
 dep_tristate '  Matrox g200/g400' CONFIG_DRM_MGA $CONFIG_AGP
 dep_tristate '  SiS' CONFIG_DRM_SIS $CONFIG_AGP
+
+    if [ "$CONFIG_DRM_SIS" = "y" ]; then
+	define_bool CONFIG_FB_SIS y
+    fi
+    if [ "$CONFIG_DRM_SIS" = "m" ]; then
+	define_bool CONFIG_FB_SIS m
+    fi