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 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 ARM > sy

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

2009-03-22 Thread Graeme Geldenhuys
Hi, I used to use the following methods from the "libc.pp" kylix compatible unit. getpwuid(...) getgrgid(...) 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

[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 vrijdag 20-03-2009 om 22:38 uur [tijdzone +0800], schreef Funky > Beast: > >> I've found a bug in sqldb/firebird. >> Its reported here, with sample project to reproduce: >> http://bugs.freepascal.org/view.php?id=13340 > > You are using one TSQLQuery object for all

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

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 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. ;-) Regards, - Gra

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 > libr

[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 >> SQLV

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 short

[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,

[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 t

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

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

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"