Hi,
for unknown reasons, someone ;) re-inserted the EXPORT_SYMBOL(rt_printk)
line into hal.c. Unfortunately, as rt_printk is defined to be printk
with adeos, this leads to an export of printk!
Now things get funny: insmod works because all printk symbols in
rtai_hal gets replaced with the kernel ones and the export of rtai_hal
seems to be ignored. But depmod fails as it detects a look in rtai_hal:
that module requires printk while it also exports the symbol. Nice bug,
took some hours to track down...
Attached is a patch for vulcano which removes the bogus exports (only
for x86, don't know what's the case for other archs).
Jan
Index: base/arch/i386/hal/hal.c
===================================================================
RCS file: /cvs/rtai/vulcano/base/arch/i386/hal/hal.c,v
retrieving revision 1.6
diff -u -p -r1.6 hal.c
--- base/arch/i386/hal/hal.c 13 May 2005 08:25:26 -0000 1.6
+++ base/arch/i386/hal/hal.c 17 May 2005 16:57:31 -0000
@@ -1781,8 +1781,6 @@ EXPORT_SYMBOL(rtai_cpu_realtime);
EXPORT_SYMBOL(rt_times);
EXPORT_SYMBOL(rt_smp_times);
-EXPORT_SYMBOL(rt_printk);
-
EXPORT_SYMBOL(rtai_set_gate_vector);
EXPORT_SYMBOL(rtai_reset_gate_vector);
Index: base/arch/i386/hal/hal.immed
===================================================================
RCS file: /cvs/rtai/vulcano/base/arch/i386/hal/hal.immed,v
retrieving revision 1.5
diff -u -p -r1.5 hal.immed
--- base/arch/i386/hal/hal.immed 10 May 2005 10:58:48 -0000 1.5
+++ base/arch/i386/hal/hal.immed 17 May 2005 16:57:31 -0000
@@ -2097,7 +2097,6 @@ EXPORT_SYMBOL(rtai_cpu_realtime);
EXPORT_SYMBOL(rt_times);
EXPORT_SYMBOL(rt_smp_times);
-EXPORT_SYMBOL(rt_printk);
EXPORT_SYMBOL(ll2a);
EXPORT_SYMBOL(rtai_set_gate_vector);
Index: base/arch/i386/hal/hal.piped
===================================================================
RCS file: /cvs/rtai/vulcano/base/arch/i386/hal/hal.piped,v
retrieving revision 1.2
diff -u -p -r1.2 hal.piped
--- base/arch/i386/hal/hal.piped 10 May 2005 06:35:46 -0000 1.2
+++ base/arch/i386/hal/hal.piped 17 May 2005 16:57:31 -0000
@@ -1781,8 +1781,6 @@ EXPORT_SYMBOL(rtai_cpu_realtime);
EXPORT_SYMBOL(rt_times);
EXPORT_SYMBOL(rt_smp_times);
-EXPORT_SYMBOL(rt_printk);
-
EXPORT_SYMBOL(rtai_set_gate_vector);
EXPORT_SYMBOL(rtai_reset_gate_vector);