2.1.105 SB16 compile problem

Majdi Abbas (majdi@nimitz)
Sun, 7 Jun 1998 16:00:01 -0400 (EDT)


gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -D__SMP__ -pipe -fno-strength-reduce -m486
-malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -D__SMP__ -c
-o sound_firmware.o sound_firmware.c
sound_firmware.c:61: parse error before `EXPORT_SYMTAB_not_defined'
sound_firmware.c:61: warning: data definition has no type or storage class
make[3]: *** [sound_firmware.o] Error 1
make[3]: Leaving directory `/usr/src/linux/drivers/sound'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux/drivers/sound'
make[1]: *** [sub_dirs] Error 2
make[1]: Leaving directory `/usr/src/linux/drivers'
make: *** [linuxsubdirs] Error 2

Line 61 of sound_firmware.c:
EXPORT_SYMBOL(mod_firmware_load);

>From include/linux/module.h, line 252:
#define EXPORT_SYMBOL(var) error EXPORT_SYMTAB_not_defined

For now I'd suggest placing conditionals around that line, like this:
#if defined(EXPORT_SYMTAB) && defined(CONFIG_MODULES)
EXPORT_SYMBOL(mod_firmware_load);
#endif

Seems to work for me, but I don't load the driver as a module,
so someone who does should probably test this and post the results.

--Majdi

-- 
Majdi Abbas <gis.gen.il.us!msa>                         Systems/Network Admin
"Lead me not into temptation, I can find it myself."	-- John Bernal

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu