[fpc-pascal] Re: Building (linux) kernel modules using fpc (for fun)

Henry Vermaak henry.vermaak at gmail.com
Sat Jan 15 21:18:44 CET 2011


On 15 January 2011 19:40, Lukasz Sokol <el.es.cr at gmail.com> wrote:
> Lukasz Sokol <el.es.cr at ...> writes:
>
> ah and sorry some clarifications :
> - i posted using gmane web interface that forces me to wrap lines at 80 chars
> manually
> - what happens after: if I tell my system to
> sudo insmod kernel_pmodule
>
> results in
>
> 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

You'll have to modify your kernel rtl.  For example, register_chrdev
now calls __register_chrdev (include/linux/fs.h).

Henry



More information about the fpc-pascal mailing list