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

2011-01-15 Thread Mark Morgan Lloyd
Paul Breneman wrote: Lukasz Sokol wrote: Hey, take a look. I've basically removed all the calls that were referring to creating, reading and writing the procfs file. Only left init_module and cleanup_module so I only left trivial Hello World and Bye-bye messages. In fact I think even that

Re: [fpc-pascal] FPC 2.x for old Solaris

2011-01-15 Thread Mark Morgan Lloyd
Jonas Maebe wrote: On 14 Jan 2011, at 15:02, Mark Morgan Lloyd wrote: Does anybody have an archived copy of FPC 2.x for SPARC Solaris v8 or older? The ones available by FTP (2.1.1 and 2.4.2) both appear to be for Solaris 10, i.e. expect newer libraries. I suspect that it was available or at

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

2011-01-15 Thread Paul Breneman
Lukasz Sokol wrote: Hey, take a look. I've basically removed all the calls that were referring to creating, reading and writing the procfs file. Only left init_module and cleanup_module so I only left trivial Hello World and Bye-bye messages. In fact I think even that should be made par with c

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

2011-01-15 Thread Paul Breneman
Sven Barth wrote: On 15.01.2011 21:10, Lukasz Sokol wrote: Henry Vermaak writes: On 15 January 2011 19:48, Sven Barth wrote: I might not be able to help you regarding this topic, but I believe that you'll get a wall of "use C, god damnit" if you ask there :P @Sven : it's for fun. Whethe

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

2011-01-15 Thread Lukasz Sokol
Hey, take a look. I've basically removed all the calls that were referring to creating, reading and writing the procfs file. Only left init_module and cleanup_module so I only left trivial Hello World and Bye-bye messages. In fact I think even that should be made par with current linux standard.

Re: [fpc-pascal] FPC 2.x for old Solaris

2011-01-15 Thread Jonas Maebe
On 14 Jan 2011, at 15:02, Mark Morgan Lloyd wrote: > Does anybody have an archived copy of FPC 2.x for SPARC Solaris v8 or older? > The ones available by FTP (2.1.1 and 2.4.2) both appear to be for Solaris 10, > i.e. expect newer libraries. > > I suspect that it was available or at least built

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] Converting .doc and/or .html to .pdf

2011-01-15 Thread Andreas Schneider
On Saturday, January 15, 2011 22:18 Marcos Douglas wrote: > Hi, > There are libs, in Pascal, to convert .doc and/or .html files to .pdf? I don't think so, but I would suggest to use a headless OpenOffice.org/LibreOffice for the conversion. Using the Pascal UNO Bridge you may e

[fpc-pascal] Converting .doc and/or .html to .pdf

2011-01-15 Thread Marcos Douglas
Hi, There are libs, in Pascal, to convert .doc and/or .html files to .pdf? Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to convert a large integer to base64

2011-01-15 Thread Andreas Schneider
On Saturday, January 15, 2011 21:42 Frank Church wrote: > I mean int64 into base64 encoding, as in the mime type. Oops, my bad. Then yeah, as Henry said the base64 unit should help. Depending on who and how the number is to be decoded then, you could also take a look at strutils.Dec2Numb w

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

2011-01-15 Thread Sven Barth
On 15.01.2011 21:10, Lukasz Sokol wrote: Henry Vermaak writes: On 15 January 2011 19:48, Sven Barth wrote: I might not be able to help you regarding this topic, but I believe that you'll get a wall of "use C, god damnit" if you ask there :P @Sven : it's for fun. Whether I'd be having fun

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

2011-01-15 Thread Sven Barth
On 15.01.2011 20:57, Henry Vermaak wrote: On 15 January 2011 19:48, Sven Barth wrote: On 15.01.2011 20:32, Lukasz Sokol wrote: Is this something I should ask here or at kernel-newbies ? :) I might not be able to help you regarding this topic, but I believe that you'll get a wall of "use C,

Re: [fpc-pascal] How to convert a large integer to base64

2011-01-15 Thread Frank Church
On 15 January 2011 18:31, Andreas Schneider wrote: > On Saturday, January 15, 2011 18:52 Frank Church wrote: > > > Is there a FCL library that can be used to convert a large integer into > base64 format? > > > Define "large integer" ... in case you mean a normal integer/int64: > IntToHex(...);

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

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

2011-01-15 Thread Lukasz Sokol
Henry Vermaak writes: > > On 15 January 2011 19:48, Sven Barth wrote: > > I might not be able to help you regarding this topic, but I believe that > > you'll get a wall of "use C, god damnit" if you ask there :P @Sven : it's for fun. Whether I'd be having fun is probably debatable but it may b

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

2011-01-15 Thread Lukasz Sokol
Henry Vermaak writes: > > On 15 January 2011 19:32, Lukasz Sokol wrote: > >        echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \ > > Have you done this? It's required for building modules out of tree, iirc. > No but I have installed the kernel-headers and

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

2011-01-15 Thread Henry Vermaak
On 15 January 2011 19:48, Sven Barth wrote: > On 15.01.2011 20:32, Lukasz Sokol wrote: >> >> Is this something I should ask here or at kernel-newbies ? :) > > I might not be able to help you regarding this topic, but I believe that > you'll get a wall of "use C, god damnit" if you ask there :P He

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

2011-01-15 Thread Henry Vermaak
On 15 January 2011 19:32, Lukasz Sokol wrote: >        echo "         Run 'make oldconfig && make prepare' on kernel src to > fix it.";  \ Have you done this? It's required for building modules out of tree, iirc. Henry ___ fpc-pascal maillist - fpc

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

2011-01-15 Thread Sven Barth
On 15.01.2011 20:32, Lukasz Sokol wrote: Is this something I should ask here or at kernel-newbies ? :) I might not be able to help you regarding this topic, but I believe that you'll get a wall of "use C, god damnit" if you ask there :P Regards, Sven _

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

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

2011-01-15 Thread Lukasz Sokol
Hi, http://wiki.freepascal.org/linux/kernel/module_development has some information, unfortunately after copy-pasting into relevant files, and running make i get fpc kernel_module Free Pascal Compiler version 2.4.0-2 [2010/03/06] for i386 Copyright (c) 1993-2009 by Florian Klaempfl Target OS:

Re: [fpc-pascal] How to convert a large integer to base64

2011-01-15 Thread Henry Vermaak
On 15 January 2011 17:52, Frank Church wrote: > > Is there a FCL library that can be used to convert a large integer into > base64 format? Do you know about the base64 unit? Henry ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists

Re: [fpc-pascal] How to convert a large integer to base64

2011-01-15 Thread Andreas Schneider
On Saturday, January 15, 2011 18:52 Frank Church wrote: > Is there a FCL library that can be used to convert a large integer into > base64 format? Define "large integer" ... in case you mean a normal integer/int64: IntToHex(...); -- Best Regards, Andreas __

[fpc-pascal] How to convert a large integer to base64

2011-01-15 Thread Frank Church
Is there a FCL library that can be used to convert a large integer into base64 format? -- Frank Church === http://devblog.brahmancreations.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/m

Re: [fpc-pascal] Skipping an the "inherited" of an ancestor

2011-01-15 Thread Andrew Haines
On 01/15/11 11:01, Andrew Haines wrote: > On 01/15/11 10:30, Andrew Haines wrote: >> On 01/14/11 14:38, Torsten Bonde Christiansen wrote: >>> Hi List. >>> >>> Is it possible to jump a couple of levels in the inherited hierarchy >>> when calling "inherited" on a method? >>> >>> >> >> I *think* I've

Re: [fpc-pascal] Skipping an the "inherited" of an ancestor

2011-01-15 Thread Andrew Haines
On 01/15/11 10:30, Andrew Haines wrote: > On 01/14/11 14:38, Torsten Bonde Christiansen wrote: >> Hi List. >> >> Is it possible to jump a couple of levels in the inherited hierarchy >> when calling "inherited" on a method? >> >> > > I *think* I've done this before this way but test it to make sure

Re: [fpc-pascal] Skipping an the "inherited" of an ancestor

2011-01-15 Thread Max Vlasov
On Sat, Jan 15, 2011 at 6:30 PM, Andrew Haines wrote: > On 01/14/11 14:38, Torsten Bonde Christiansen wrote: > > Hi List. > > > > Is it possible to jump a couple of levels in the inherited hierarchy > > when calling "inherited" on a method? > > > > A small example of what i'm trying to achieve be

Re: [fpc-pascal] Skipping an the "inherited" of an ancestor

2011-01-15 Thread Jorge Aldo G. de F. Junior
does inherited inherited work ? as in procedure TD.DoSomething; Begin Inherited Inherited DoOtherthing; End; 2011/1/15 Andrew Haines : > On 01/14/11 14:38, Torsten Bonde Christiansen wrote: >> Hi List. >> >> Is it possible to jump a couple of levels in the inherited hierarchy >> when calling "

Re: [fpc-pascal] Skipping an the "inherited" of an ancestor

2011-01-15 Thread Andrew Haines
On 01/14/11 14:38, Torsten Bonde Christiansen wrote: > Hi List. > > Is it possible to jump a couple of levels in the inherited hierarchy > when calling "inherited" on a method? > > A small example of what i'm trying to achieve below (and don't mind the > incomplete TB class implementation). > >

Re: [fpc-pascal] Skipping an the "inherited" of an ancestor

2011-01-15 Thread Martin
On 15/01/2011 11:09, Torsten Bonde Christiansen wrote: Is it possible to jump a couple of levels in the inherited hierarchy when calling "inherited" on a method? Hmm, don't know whether you're the same person or not :), but I replied in a stackoverflow question the next day after it w

Re: [fpc-pascal] Skipping an the "inherited" of an ancestor

2011-01-15 Thread Max Vlasov
On Sat, Jan 15, 2011 at 2:09 PM, Torsten Bonde Christiansen wrote: > On 2011-01-14 23:05, Max Vlasov wrote: > > > > On Fri, Jan 14, 2011 at 10:38 PM, Torsten Bonde Christiansen < > t...@epidata.dk> wrote: > >> Hi List. >> >> Is it possible to jump a couple of levels in the inherited hierarchy wh

Re: [fpc-pascal] Skipping an the "inherited" of an ancestor

2011-01-15 Thread Torsten Bonde Christiansen
On 2011-01-14 23:05, Max Vlasov wrote: On Fri, Jan 14, 2011 at 10:38 PM, Torsten Bonde Christiansen mailto:t...@epidata.dk>> wrote: Hi List. Is it possible to jump a couple of levels in the inherited hierarchy when calling "inherited" on a method? Hmm, don't know whether you'r