[fpc-pascal] Re: Building (linux) kernel modules using fpc (for fun)
Jonas Maebe
jonas.maebe at elis.ugent.be
Sat Jan 15 20:46:49 CET 2011
On 15 Jan 2011, at 20:40, Lukasz Sokol wrote:
> insmod: error inserting 'kernel_pmodule.ko': -1 Unknown symbol in module
>
> and
>
> [16646.934537] kernel_pmodule: Unknown symbol unregister_chrdev
> [16646.934835] kernel_pmodule: Unknown symbol proc_root
> [16646.935174] kernel_pmodule: Unknown symbol register_chrdev
Since the Linux kernel breaks ABI compatibility on purpose all the time, any source code example of a kernel module is probably only going to to work with a few kernel versions. E.g., in the current kernel register_chrdev() is a "static inline" function, which means that it does not exist as a separate function/symbol inside the final compiled kernel.
Jonas
More information about the fpc-pascal
mailing list