Re: [fpc-pascal] locale solution for unix systems

2009-03-22 Thread Graeme Geldenhuys
On Fri, Mar 20, 2009 at 5:04 PM, Henry Vermaak henry.verm...@gmail.com wrote: but fpgui depends on x, right? and x depends on libc? you might as well include clocales by default under an ifdef (like lazarus does with cthreads). fpGUI depends on libx11 for X11 based systems. Also on embedded

Re: [fpc-pascal] locale solution for unix systems

2009-03-22 Thread Graeme Geldenhuys
On Sun, Mar 22, 2009 at 8:37 AM, Graeme Geldenhuys graemeg.li...@gmail.com wrote: but fpgui depends on x, right? and x depends on libc? you might as well include clocales by default under an ifdef (like lazarus does with cthreads). fpGUI depends on libx11 for X11 based systems. Also on

Re: [fpc-pascal] users.pp unit under Linux and FreeBSD

2009-03-22 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: The issue was that the 'libc.pp' unit was not available for FreeBSD. I found the 'users.pp' unit which seems to have the methods I require. Is the 'users.pp' unit compatible with FreeBSD? As far as I know yes, since 2.2.2. Also for OS X.

Re: [fpc-pascal] Re: SQLDB/Firebird unable to open table with more than 128 fields

2009-03-22 Thread Joost van der Sluis
Op zondag 22-03-2009 om 17:37 uur [tijdzone +0800], schreef Funky Beast: I found the culprit. In TIBConnection.PrepareStatement's variable section, x was declared as a shortint which would cause problem when its used for allocating memmory for the SQLVAR elements, when there are more than

Re: [fpc-pascal] users.pp unit under Linux and FreeBSD

2009-03-22 Thread Graeme Geldenhuys
On Sun, Mar 22, 2009 at 11:40 AM, Marco van de Voort mar...@stack.nl wrote: Is the 'users.pp' unit compatible with FreeBSD? As far as I know yes, since 2.2.2. Also for OS X. Only the shadow functions are linux only. That's perfect, thanks. Now fpGUI is finally 'libc.pp' unit free. ;-)

Re: [fpc-pascal] locale solution for unix systems

2009-03-22 Thread Marco van de Voort
In our previous episode, Bart said: I could help writing the Linux (only x86 32-bit) part of it, I only have acces to my own (almost ancient) Linux and WinME system for development. It was mostly a hint at the other unices, since it would indeed be *nix only. VMs get you a long way, and you

Re: [fpc-pascal] locale solution for unix systems

2009-03-22 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: But last time I tested libc was not available for FreeBSD. Hence the reason I have code as follows (which only includes libc when the OS is Linux on cpu386). OK, maybe I am confusing myself - between the libc unit and the libc library as

[fpc-pascal] Re: SQLDB/Firebird unable to open table with more than 128 fields

2009-03-22 Thread Funky Beast
Joost van der Sluis wrote: Op zondag 22-03-2009 om 17:37 uur [tijdzone +0800], schreef Funky Beast: I found the culprit. In TIBConnection.PrepareStatement's variable section, x was declared as a shortint which would cause problem when its used for allocating memmory for the SQLVAR elements,

Re: [fpc-pascal] Re: SQLDB/Firebird unable to open table with more than 128 fields

2009-03-22 Thread Joost van der Sluis
Op zondag 22-03-2009 om 18:40 uur [tijdzone +0800], schreef Funky Beast: Joost van der Sluis wrote: Op zondag 22-03-2009 om 17:37 uur [tijdzone +0800], schreef Funky Beast: I found the culprit. In TIBConnection.PrepareStatement's variable section, x was declared as a shortint which

[fpc-pascal] Re: SQLDB/Firebird unable to open table with more than 128 fields

2009-03-22 Thread Funky Beast
Joost van der Sluis wrote: Op zondag 22-03-2009 om 18:40 uur [tijdzone +0800], schreef Funky Beast: Joost van der Sluis wrote: Op zondag 22-03-2009 om 17:37 uur [tijdzone +0800], schreef Funky Beast: I found the culprit. In TIBConnection.PrepareStatement's variable section, x was declared

[fpc-pascal] Find out local IP adress

2009-03-22 Thread Rainer Stratmann
For Windows there ist gethostbyname. But for Linux I am searching for this function. The unit inet is not on the distribution I have (knoppix) And libc also does the compiler not know. May be there exists another way to find out the local IP adress.

Re: [fpc-pascal] Find out local IP adress

2009-03-22 Thread Jonas Maebe
On 22 Mar 2009, at 20:21, Rainer Stratmann wrote: May be there exists another way to find out the local IP adress. The local ip address does not exist. A system can have multiple network cards, there can be vpn tunnels, NAT gateways to other networks and virtual machines, ... Which of

Re: [fpc-pascal] Find out local IP adress

2009-03-22 Thread Rainer Stratmann
Am Sonntag, 22. März 2009 20:24 schrieb Jonas Maebe: On 22 Mar 2009, at 20:21, Rainer Stratmann wrote: May be there exists another way to find out the local IP adress. The local ip address does not exist. A system can have multiple network cards, there can be vpn tunnels, NAT gateways to

Re: [fpc-pascal] Find out local IP adress

2009-03-22 Thread David W Noon
On Sun, 2009-03-22 at 20:36 +0100, Rainer Stratmann wrote: Am Sonntag, 22. März 2009 20:24 schrieb Jonas Maebe: On 22 Mar 2009, at 20:21, Rainer Stratmann wrote: May be there exists another way to find out the local IP adress. The local ip address does not exist. A system can have

Re: [fpc-pascal] Find out local IP adress

2009-03-22 Thread Ralf A. Quint
At 01:21 PM 3/22/2009, David W Noon wrote: On Sun, 2009-03-22 at 20:36 +0100, Rainer Stratmann wrote: Am Sonntag, 22. März 2009 20:24 schrieb Jonas Maebe: On 22 Mar 2009, at 20:21, Rainer Stratmann wrote: May be there exists another way to find out the local IP adress. The local ip