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

2011-01-15 Thread Mark Morgan Lloyd
Jonas Maebe wrote: On 15 Jan 2011, at 21:16, Lukasz Sokol wrote: Seems like the instructions don't just have a very fortunate example maybe? It is simply for an older kernel version. The unfortunate part is that it doesn't mention which kernel version it's for. Google suggests that he did

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

2011-01-15 Thread Henry Vermaak
On 15 January 2011 19:40, Lukasz Sokol wrote: > Lukasz Sokol 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 > > ins

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

2011-01-15 Thread Jonas Maebe
On 15 Jan 2011, at 21:16, Lukasz Sokol wrote: > Seems like the instructions don't just have a very fortunate example maybe? It is simply for an older kernel version. The unfortunate part is that it doesn't mention which kernel version it's for. Jonas___

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

2011-01-15 Thread Lukasz Sokol
Jonas Maebe writes: > > [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

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

2011-01-15 Thread Jonas Maebe
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: Unknow

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

2011-01-15 Thread Lukasz Sokol
Lukasz Sokol 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 mo