tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: library in kernel space



> Ok, my problem is now different than I described:
> module_1 and module_2 (dependency is that module_1 needs module_2)
> used some shared source files with functions.

> [...] modload ./module_2.kmod and then modload ./module_1.kmod [...]

> ...kobj_checksyms, 1036: [./module_1.kmod]: linker error: global symbol
> `MyFunctionName' redefined

Well, I don't use kernel modules, so this is just a guess.  But maybe
create module_3 which defines MyFunctionName and make module_1 and
module_2 each depend on it?

/~\ The ASCII				  Mouse
\ / Ribbon Campaign
 X  Against HTML		mouse%rodents-montreal.org@localhost
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B


Home | Main Index | Thread Index | Old Index