Re: [fpc-pascal] fpdoc project file

2015-12-06 Thread Michael Van Canneyt
On Sun, 6 Dec 2015, Mattias Gaertner wrote: Hi, The 3.1.1 fpdoc -h help has some confusing items. Can someone explain them please: --project=fileUse file as project file The command-line can get very long. Instead, you can write a project file with all options in it.

Re: [fpc-pascal] shell script with root rights and automatic password

2015-12-06 Thread Marc Santhoff
On So, 2015-12-06 at 17:20 +0100, Rainer Stratmann wrote: > How to do this? > > I would like to run a script with root rights from an application. > The password should be transferred automatically. Others told that unix doesn't allow skripts run as root. For your task sudo may help. With it

[fpc-pascal] shell script with root rights and automatic password

2015-12-06 Thread Rainer Stratmann
How to do this? I would like to run a script with root rights from an application. The password should be transferred automatically. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] shell script with root rights and automatic password

2015-12-06 Thread Mark Morgan Lloyd
Rainer Stratmann wrote: How to do this? I would like to run a script with root rights from an application. The password should be transferred automatically. Assuming you're talking unix: probably setuid root, but note that some programs- particularly anything using gtk- don't like this.

Re: [fpc-pascal] shell script with root rights and automatic password

2015-12-06 Thread Michael Van Canneyt
On Sun, 6 Dec 2015, Rainer Stratmann wrote: How to do this? I would like to run a script with root rights from an application. The password should be transferred automatically. As far as I know, this cannot be done except by making the application itself setuid root. If you create a

[fpc-pascal] fpdoc project file

2015-12-06 Thread Mattias Gaertner
Hi, The 3.1.1 fpdoc -h help has some confusing items. Can someone explain them please: --project=fileUse file as project file --write-project=file Do not write documentation, create project file instead --write-project=file Write all command-line options

Re: [fpc-pascal] Target Win32 missing

2015-12-06 Thread Lukas Gradl
Quoting from my previous e-mail above: 'You need to tell fpc to call compiler for the respective CPU using the -Pi386'. I.e. add '-Pi386' to the command line options of 'fpc' (together with '-Twin32' and whatever else you'd need there) and it should work. Adding the -Pi386 parameter to fpc.cfg

[fpc-pascal] Target Win32 missing

2015-12-06 Thread Lukas Gradl
Hello! Sorry to disturb anyone... Perhaps I just need a little bit more sleep, but I cant find a solution to my problem... When calling fpc from linux command line -Twin32 is missing. -TWin64 works as expected. Where did -Twin32 go? I'm using Debian jessie x86_64 as main OS. I compile

Re: [fpc-pascal] Target Win32 missing

2015-12-06 Thread Karoly Balogh (Charlie/SGR)
Hi On Sun, 6 Dec 2015, Lukas Gradl wrote: > When calling fpc from linux command line -Twin32 is missing. -TWin64 works as > expected. Where did -Twin32 go? Nowhere. Seems you are using a 64bit targeted compiler, which can only output x86_64 code, so Win64 only. You need an i386 compiler or

Re: [fpc-pascal] Target Win32 missing

2015-12-06 Thread Tomas Hajny
On Mon, December 7, 2015 00:04, Lukas Gradl wrote: Hello, . . > When calling fpc from linux command line -Twin32 is missing. -TWin64 > works as expected. > > Where did -Twin32 go? > > I'm using Debian jessie x86_64 as main OS. > > I compile fpc from the latest trunk sources with a script I

Re: [fpc-pascal] Target Win32 missing

2015-12-06 Thread Lukas Gradl
What does '`fpc -Pi386 -PB`' do (the outer quotes should be removed before copying it to the command line, the inner quotes are there on purpose)? it says: /usr/bin/ppcross386 When I call that directly I get win32 under the -T section But not when calling through fpc. You need to tell fpc

Re: [fpc-pascal] Target Win32 missing

2015-12-06 Thread Tomas Hajny
On Mon, December 7, 2015 01:02, Lukas Gradl wrote: >> >> What does '`fpc -Pi386 -PB`' do (the outer quotes should be removed >> before >> copying it to the command line, the inner quotes are there on purpose)? > > it says: > /usr/bin/ppcross386 > > When I call that directly I get win32 under the

Re: [fpc-pascal] shell script with root rights and automatic password

2015-12-06 Thread Rainer Stratmann
On Sunday 06 December 2015 19:15:45 you wrote: > On So, 2015-12-06 at 17:20 +0100, Rainer Stratmann wrote: > > How to do this? > > > > I would like to run a script with root rights from an application. > > The password should be transferred automatically. > > Others told that unix doesn't allow

Re: [fpc-pascal] I thought fpc 3.0 would be compilable from fpc 3.0?

2015-12-06 Thread Bo Berglund
On Thu, 3 Dec 2015 10:32:24 -0500, Anthony Walter wrote: >Follow up, yes the tags release 3 0 0 worked. Compiled on arm-linux >Raspberry Pi 2. Thanks Jonas. I am interested in getting a release version of FPC running on my RPi2 with Raspbian Jessie. I have been away so I am a

Re: [fpc-pascal] I thought fpc 3.0 would be compilable from fpc 3.0?

2015-12-06 Thread Pierre Free Pascal
I just uploaded a raspberry 1 fpc-3.0.0 installation tar file in dist/3.0.0/arm-linux directory on ftp.freepascal.org. The IDE crashes when you try to debug a program within it, but otherwise it should work ... I will generate a testsuite run to see if there are specific issues. Pierre Muller >

Re: [fpc-pascal] Target Win32 missing

2015-12-06 Thread Lukas Gradl
Zitat von "Karoly Balogh (Charlie/SGR)" : Hi On Sun, 6 Dec 2015, Lukas Gradl wrote: When calling fpc from linux command line -Twin32 is missing. -TWin64 works as expected. Where did -Twin32 go? Nowhere. Seems you are using a 64bit targeted compiler, which can

Re: [fpc-pascal] Target Win32 missing

2015-12-06 Thread leledumbo
> you mean calling through fpc -Twin32 -Pi386 ? > > I tried that - got the "Error: Illegal parameter: -Twin32" again... Works fine here. Can you ensure that fpc, ppcx64 and ppcross386 (the latter two are symlinks) are in the same /usr/bin? fpc driver will process -P parameter to decide which

Re: [fpc-pascal] shell script with root rights and automatic password

2015-12-06 Thread Jonas Maebe
Rainer Stratmann wrote: What works is an entry in the sudoers file. And then the program/script you can call with root rights. I hope this is for something that will only ever run on your own machine, because unless you take a lot of precautions (hardcoding a set of *absolute* paths to

Re: [fpc-pascal] Target Win32 missing

2015-12-06 Thread Tomas Hajny
On Mon, December 7, 2015 01:31, Lukas Gradl wrote: . . > you mean calling through fpc -Twin32 -Pi386 ? > > I tried that - got the "Error: Illegal parameter: -Twin32" again... . . Yes, that's what I meant. Could you please check the timestamp of the fpc binary on your path to make sure that it