Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-02

Supported Lazarus platforms

18 messages · 9 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Felipe Monteiro de Carvalho
to Graeme Geldenhuys
Graeme Geldenhuys wrote
I just read the thread about 'libc' and that made me think.

Which thread?

What are the supported platforms Lazarus runs on?

The IDE?

I think it's Windows (98 or superior), Unix (all supported by FPC)

Architectures: x86, x86_64, powerpc. May run on other hardware, but probably isn't much tested on them. Someone got it to run on sparc, but with some issues I think.

Felipe Monteiro de Carvalho

Reply by email

Graeme Geldenhuys
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote
Which thread?

Titled "the libc unit again" in the fpc-pascal mailing list. Talking about to many units requiring the libc unit, which isn't portable, so limits supported platforms.

The IDE?

Yes the IDE. So Lazarus runs on FreeBSD too.. Anybody using it on 64bit systems?

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

ik
to Felipe Monteiro de Carvalho: On Fri, Feb 22, 2008 at 7:28 AM, Graeme Geldenhuys Which thread? The IDE? I think it's…
Felipe Monteiro de Carvalho wrote 5 lines
On Fri, Feb 22, 2008 at 7:28 AM, Graeme Geldenhuys wrote: > I just read the thread about 'libc' and that made me think. Which thread?

He is talking about my post in fpc-pascal ml.
I asked to mark the libc unit as obsolete because it set only for i386, but many users here use it anyway, although the Unix libraries have the same functions as well..

Show quoted text 16 lines
> What are the supported platforms Lazarus runs on? The IDE? I think it's Windows (98 or superior), Unix (all supported by FPC) Architectures: x86, x86_64, powerpc. May run on other hardware, but probably isn't much tested on them. Someone got it to run on sparc, but with some issues I think. -- Felipe Monteiro de Carvalho

Ido

Reply by email

Felipe Monteiro de Carvalho
to Graeme Geldenhuys: On 22/02/2008, Felipe Monteiro de Carvalho Titled "the libc unit again" in the fpc-pascal…
Graeme Geldenhuys wrote
Titled "the libc unit again" in the fpc-pascal mailing list. Talking about to many units requiring the libc unit, which isn't portable, so limits supported platforms.

I think he is talking about people that write 3rt party components for Lazarus, not Lazarus itself.

Lazarus should not contain any reference to libc.

Felipe Monteiro de Carvalho

Reply by email

ik
to Graeme Geldenhuys: On 22/02/2008, Felipe Monteiro de Carvalho Titled "the libc unit again" in the fpc-pascal…
Graeme Geldenhuys wrote 14 lines
On 22/02/2008, Felipe Monteiro de Carvalho wrote: > > Which thread? Titled "the libc unit again" in the fpc-pascal mailing list. Talking about to many units requiring the libc unit, which isn't portable, so limits supported platforms. > The IDE? Yes the IDE. So Lazarus runs on FreeBSD too.. Anybody using it on 64bit systems?

I use it on a Linux 64 bit system (I also create things for 64 bit servers of Linux, so it's something really important for me).

Show quoted text 17 lines
Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Ido

Reply by email

Ales Katona
to Graeme Geldenhuys: On 22/02/2008, Felipe Monteiro de Carvalho Titled "the libc unit again" in the fpc-pascal…

Graeme Geldenhuys wrote / nap?sal(a):

Yes the IDE. So Lazarus runs on FreeBSD too.. Anybody using it on 64bit systems?

I use it on 64bit linux (with gtk2 no less). There's no FPC for 64bit FreeBSD.

Show quoted text 14 lines
Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Vincent Snijders
to Graeme Geldenhuys: On 22/02/2008, Felipe Monteiro de Carvalho Titled "the libc unit again" in the fpc-pascal…
Graeme Geldenhuys wrote 13 lines
On 22/02/2008, Felipe Monteiro de Carvalho wrote: > Which thread? Titled "the libc unit again" in the fpc-pascal mailing list. Talking about to many units requiring the libc unit, which isn't portable, so limits supported platforms. > The IDE? Yes the IDE. So Lazarus runs on FreeBSD too.. Anybody using it on 64bit systems?

AFAIK fpc doesn't run on x86_64-freebsd yet, due to problems with the startup code.

Vincent

Reply by email

Graeme Geldenhuys
to ik: On Fri, Feb 22, 2008 at 10:02 AM, Felipe Monteiro de Carvalho He is talking about my post…
ik wrote
I asked to mark the libc unit as obsolete because it set only for i386, but many users here use it anyway, although the Unix libraries have the same functions as well..

Well, not all of them! In the fpGUI project I use two libc functions for Linux which aren't available in the unixbase etc units. I did IFDEF that code, created an alternative for other platforms like FreeBSD and limited it to only one location in the code so as not to use it elsewhere.

But yes, libc can be misleading to a unknown developer. I fell in that trap in the beginning when I didn't know it was Linux and x86 specific.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Michael Van Canneyt
to Graeme Geldenhuys: On 22/02/2008, Felipe Monteiro de Carvalho Titled "the libc unit again" in the fpc-pascal…
Graeme Geldenhuys wrote 13 lines
On 22/02/2008, Felipe Monteiro de Carvalho wrote: > > Which thread? Titled "the libc unit again" in the fpc-pascal mailing list. Talking about to many units requiring the libc unit, which isn't portable, so limits supported platforms. > The IDE? Yes the IDE. So Lazarus runs on FreeBSD too.. Anybody using it on 64bit systems?

Of course, every day :)

Michael.

Reply by email

Marco van de Voort
to Graeme Geldenhuys: Well, not all of them! In the fpGUI project I use two libc functions for Linux which…
Graeme Geldenhuys wrote 11 lines
On 22/02/2008, ik wrote: > > I asked to mark the libc unit as obsolete because it set only for > i386, but many users here use it anyway, although the Unix libraries > have the same functions as well.. Well, not all of them! In the fpGUI project I use two libc functions for Linux which aren't available in the unixbase etc units. I did IFDEF that code, created an alternative for other platforms like FreeBSD and limited it to only one location in the code so as not to use it elsewhere.

Like? Note that the password stuff is now in both 2.2.1 and 2.3.x in the "users" package.

But yes, libc can be misleading to a unknown developer. I fell in that trap in the beginning when I didn't know it was Linux and x86 specific.

Maybe we should get it over with and add deprecated to all functions.

Reply by email

Graeme Geldenhuys
to Marco van de Voort
Marco van de Voort wrote
Like? Note that the password stuff is now in both 2.2.1 and 2.3.x in the "users" package.

getgrgid() - Used for getting the Group ID Name from the Group ID. getpwuid() - Used for getting the User Name from the User ID.

Both of these are used in a FileGrid component (eg: File Open Dialog) to display a files User and Group names like graemeg:users instead of 5000:3000

My work-around for FreeBSD is to display the numeric values only. I'm thinking of looking up the values manually in /etc/groups and /etc/passwd but was told it can be inaccurate.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Marc Santhoff
to Graeme Geldenhuys
Graeme Geldenhuys wrote 15 lines
On 22/02/2008, Marco van de Voort wrote: > > Like? Note that the password stuff is now in both 2.2.1 and 2.3.x in the > "users" package. getgrgid() - Used for getting the Group ID Name from the Group ID. getpwuid() - Used for getting the User Name from the User ID. Both of these are used in a FileGrid component (eg: File Open Dialog) to display a files User and Group names like graemeg:users instead of 5000:3000 My work-around for FreeBSD is to display the numeric values only. I'm thinking of looking up the values manually in /etc/groups and /etc/passwd but was told it can be inaccurate.

Seems you did not read the answer I gave you on that issue:

Show quoted text 6 lines
The functions getlogin(2), getpwnam(3) and getgrnam(3) should be it. Look at the man pages how to use them. (this is on freebsd 4, should not have changed moving to 6 or 7) I don't know if they are wrapped by fpc or what the names would be (maybe fpXxxx as always).

But that would need ifdefs and libc, too. ;)

Have fun,
Marc

Reply by email

Marco van de Voort
to Graeme Geldenhuys: getgrgid() - Used for getting the Group ID Name from the Group ID. getpwuid() - Used for…
Graeme Geldenhuys wrote 11 lines
On 22/02/2008, Marco van de Voort wrote: > > Like? Note that the password stuff is now in both 2.2.1 and 2.3.x in the > "users" package. getgrgid() - Used for getting the Group ID Name from the Group ID. getpwuid() - Used for getting the User Name from the User ID. Both of these are used in a FileGrid component (eg: File Open Dialog) to display a files User and Group names like graemeg:users instead of 5000:3000

Yes these are in users. So if you have snapshots (both 2.2.1 and 2.3.1) of february or later, simply use units "grp" and "pwd". Also have a look at "users" where Michael stuffed some wrappers (though I don't particularly like them). The source is in fpc/packages/users/src

If you don't use recent snapshots, just get these units from the snapshot and use them with your current versions.

Don't forget to prefix the function names with "fp", as done in the entire RTL for libc primitives to escape naming conflicts.

My work-around for FreeBSD is to display the numeric values only. I'm thinking of looking up the values manually in /etc/groups and /etc/passwd but was told it can be inaccurate.

Depends who you make software for. If you make it for some embedded device that you fully control you can. If it is somehow for general customers compensation, don't. Sooner or later you'll run into places that have central authentication systems for lots of machines (and Stack is one of them which is why I revamped these units). There are even places that link them to Active Directory via LDAP.

Reply by email

Graeme Geldenhuys
to Marco van de Voort
Marco van de Voort wrote 8 lines
Yes these are in users. So if you have snapshots (both 2.2.1 and 2.3.1) of february or later, simply use units "grp" and "pwd". Also have a look at "users" where Michael stuffed some wrappers (though I don't particularly like them). The source is in fpc/packages/users/src If you don't use recent snapshots, just get these units from the snapshot and use them with your current versions.

Thanks for the info Marco. I only use FPC 2.2.0 but I'll have a look at those units.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Marco van de Voort
to Skybuck Flying
Skybuck Flying wrote
Somehow you seem to circumvent hotmail's junk filtering ?

Yes. I don't use Outlook mostly.

All mail goes to my junk folder by default except from people on my mailing list. How is it possible that "marco van de voort" enters my inbox ?

Logically, there is a flaw in your filtering.

(I once clicked on the key or something)

I don't have a key

Reply by email