Subject: More newbie LKM questions
To: None <>
From: Peter Seebach <>
List: tech-kern
Date: 08/30/2006 00:49:23
Well, I've got my ported drivers compiling.  I can't load one of them.
One driver provides a number of utility functions which the other wants to
call, but it can't be linked because they are undefined references.

The "zaptel" driver, for instance, declares a function called "zt_receive".
When one of the other drivers that refers this is passed to mod_load, I get:

mod_wcfxs.o(.text+0xa77): In function `wcfxs_interrupt':
/home/seebs/ic/zaptel-bsd-mod/wcfxs/wcfxs.c:842: undefined reference to `zt_receive'

And yet:

# nm mod_zaptel.o | grep receive
00009950 T __zt_real_receive
00008620 T __zt_receive_chunk
00005a40 T zt_receive

So, I'm probably missing something obvious here, because I can't see a reason
for references to global external symbols not to be noticed.