Skip to contentSkip to conversation

Compilation trouble in drivers/video

PATCH New Michal Jaegermann 1 participant 1 message May 17, 2002 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Compilation trouble in drivers/video

There is a compilation issue in 'drivers/video'. Namely 'fbgen.o' is used by some other objects ('pm2fb.o', 'pm3fb.o', 'clgenfb.o', 'tridentfb.o', 'tgafb.o', 'stifb.o'). Now if at least one of these "users" is configured as built-in, implying that fbgen.o will be compiled as an integral part of a kernel, and some other(s) as modules then you will see from 'depmod' complaints about unresolved symbols for functions provided by fbgen.

A fix is obvious. Add missing EXPORT_SYMBOL(...) to 'fbgen.c' and 'fbgen.o' to a list of export-objs in drivers/video/Makefile. Here is a patch (for 2.4.19-pre8 but this did not really change for quite a while).

drivers/video/fbgen.c renamed from drivers/video/fbgen.c~ +18 -0
@@ -448,3 +448,21 @@
 	fbgen_install_cmap(currcon, info2);
 }
 MODULE_LICENSE("GPL");
+
+
+    /*
+     *  Visible symbols for modules
+     */
+
+EXPORT_SYMBOL(fbgen_get_var);
+EXPORT_SYMBOL(fbgen_get_cmap);
+EXPORT_SYMBOL(fbgen_get_fix);
+EXPORT_SYMBOL(fbgen_set_var);
+EXPORT_SYMBOL(fbgen_set_cmap);
+EXPORT_SYMBOL(fbgen_set_disp);
+EXPORT_SYMBOL(fbgen_install_cmap);
+EXPORT_SYMBOL(fbgen_pan_display);
+EXPORT_SYMBOL(fbgen_update_var);
+EXPORT_SYMBOL(fbgen_do_set_var);
+EXPORT_SYMBOL(fbgen_switch);
+EXPORT_SYMBOL(fbgen_blank);
drivers/video/Makefile renamed from drivers/video/Makefile~ +1 -1
@@ -15,7 +15,7 @@
 		  fbcon-iplan2p8.o fbcon-vga-planes.o fbcon-cfb16.o \
 		  fbcon-cfb2.o fbcon-cfb24.o fbcon-cfb32.o fbcon-cfb4.o \
 		  fbcon-cfb8.o fbcon-mac.o fbcon-mfb.o \
-		  cyber2000fb.o sa1100fb.o fbcon-hga.o
+		  cyber2000fb.o sa1100fb.o fbcon-hga.o fbgen.o
 
 # Each configuration option enables a list of files.
 

Michal