Sign in Join

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

Mailing lists / fpc-devel / 2007-02

"daemon" units in Lazarus (to Michael van Canneyt ?)

32 messages · 10 people · –

Reply by email Subscribe to this list Your subscription

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

Michael Schnell

I was told that in the next not yet released Lazarus version there will be a platform independent feature that lets you create daemons (applications without user interface).

I need to do something like this.

Is there any documentation on how this works ?

Is the sourcecode available somewhere ?

Thanks a lot for any infos,

-Michael

Reply by email

Michael Van Canneyt
to Michael Schnell
Michael Schnell wrote 7 lines
I was told that in the next not yet released Lazarus version there will be a platform independent feature that lets you create daemons (applications without user interface). I need to do something like this. Is there any documentation on how this works ?

I'll send you some in private.

Is the sourcecode available somewhere ?

It's in SVN.

Michael.

Reply by email

Michael Schnell
to Michael Van Canneyt
Michael Van Canneyt wrote 14 lines
On Tue, 13 Feb 2007, Michael Schnell wrote: > I was told that in the next not yet released Lazarus version there will be a > platform independent feature that lets you create daemons (applications > without user interface). > > I need to do something like this. > > Is there any documentation on how this works ? > I'll send you some in private.

Great !

Show quoted text 6 lines
> Is the sourcecode available somewhere ? > It's in SVN.

I suppose this is the sourcecode of close to everything.

So I need to recompile the Lazarus IDE and the libraries (and maybe the FP Compiler and its libraries as well). sound a little bit scary.

I was told an additional "daemon" project will appear in the "New" menu. This sounds really great, but it would be nice to see what is happening without having to swap to a pre-alpha version of the IDE. Do you think I can do some tests just using a few additional units I can include into a "command line program" projects ?

How can access the SVN ?

Unfortunately I suppose I can't access a Version Control System as here we ave a Firewall that only allows to do http and ftp via a proxy.

Thanks _A_LOT_ !!!

-Michael

Reply by email

Burkhard Carstens
to Michael Van Canneyt: I'll send you some in private. It's in SVN. Michael.
Michael Van Canneyt wrote 10 lines
On Tue, 13 Feb 2007, Michael Schnell wrote: > I was told that in the next not yet released Lazarus version there > will be a platform independent feature that lets you create daemons > (applications without user interface). > > I need to do something like this. > > Is there any documentation on how this works ? I'll send you some in private.

Is there a reason why you prefer sending such things in private? I'd be also interested in this documentation as well as in the article about "how to use fpcunit (for beginners)" (mentioned in another thread).

Kind reagrds
Burkhard

Reply by email

Michael Van Canneyt
to Burkhard Carstens
Burkhard Carstens wrote 16 lines
Am Dienstag, 13. Februar 2007 16:32 schrieb Michael Van Canneyt: > On Tue, 13 Feb 2007, Michael Schnell wrote: > > I was told that in the next not yet released Lazarus version there > > will be a platform independent feature that lets you create daemons > > (applications without user interface). > > > > I need to do something like this. > > > > Is there any documentation on how this works ? > > I'll send you some in private. Is there a reason why you prefer sending such things in private? I'd be also interested in this documentation as well as in the article about "how to use fpcunit (for beginners)" (mentioned in another thread).

Yes, there is.

This is text which is published in a journal and is under copyright. I am not allowed to send this to just anyone. A couple of people is OK, but I cannot make it publicly available...

Michael.

Reply by email

Burkhard Carstens
to Michael Van Canneyt
Michael Van Canneyt wrote 23 lines
On Tue, 13 Feb 2007, Burkhard Carstens wrote: > Am Dienstag, 13. Februar 2007 16:32 schrieb Michael Van Canneyt: > > On Tue, 13 Feb 2007, Michael Schnell wrote: > > > I was told that in the next not yet released Lazarus version > > > there will be a platform independent feature that lets you > > > create daemons (applications without user interface). > > > > > > I need to do something like this. > > > > > > Is there any documentation on how this works ? > > > > I'll send you some in private. > > Is there a reason why you prefer sending such things in private? > I'd be also interested in this documentation as well as in the > article about "how to use fpcunit (for beginners)" (mentioned in > another thread). Yes, there is. This is text which is published in a journal and is under copyright. I am not allowed to send this to just anyone. A couple of people is OK, but I cannot make it publicly available...

Sorry for asking .. just remember, you already answered this question at least once .. ;-)

However, of course I'd prefer to get those docs in private over not having them at all :-) So if it fits into the "couple of people" quantum, I'd really apprecite, if you could send them to me, too (especially the daemon ones).

Regards
Burkhard

Reply by email

Bram Kuijvenhoven
to Michael Schnell: Great ! I suppose this is the sourcecode of close to everything. So I need to recompile…
Michael Schnell wrote
How can access the SVN ? Unfortunately I suppose I can't access a Version Control System as here we ave a Firewall that only allows to do http and ftp via a proxy.

IIRC SVN also can use the http protocol (exactly for this reason).

See http://www.freepascal.org/develop.var#svn for details on using SVN -- note that the command use an URL starting with http://. For Windows there is also a nice graphical Shell integrated interface to SVN, called TortoiseSVN.

Also the repository can also be browsed at http://www.freepascal.org/cgi-bin/viewcvs.cgi/.

Regards,

Bram

Reply by email

Vincent Snijders
to Bram Kuijvenhoven
Bram Kuijvenhoven wrote 7 lines
Michael Schnell wrote: > How can access the SVN ? > > Unfortunately I suppose I can't access a Version Control System as > here we ave a Firewall that only allows to do http and ftp via a proxy. IIRC SVN also can use the http protocol (exactly for this reason).

Note that some proxies are broken or badly configured and don't pass webdav comments correctly.

My company has such a broken proxy. As a workaround one can use the https protocol, which proxies leave untouched. But AFAIK the freepascal server doesn't listen on the https port.

Vincent

Reply by email

Vincent Snijders
to Michael Schnell: Using TortoiseSVN I get "could not connect to server (http://snv.freepascal.org) if I try…
Michael Schnell wrote 7 lines
> See http://www.freepascal.org/develop.var#svn for details on using SVN > -- note that the command use an URL starting with http://. For Windows > there is also a nice graphical Shell integrated interface to SVN, > called TortoiseSVN. Using TortoiseSVN I get "could not connect to server (http://snv.freepascal.org) if I try to do SNV checkout.

There is a typo: use http://svn.freepascal.org

Vincent

Reply by email

Michael Van Canneyt
to Michael Schnell
Michael Schnell wrote 5 lines
> There is a typo: use http://svn.freepascal.org Right That is what I did. with the correct address I get the error message after a waiting time of about a minute. Using a wrong address (like snv...) I get a different error message within a second.

The URL for tortoiseSVN is

http://svn.freepascal.org/svn/fpc/trunk

See

http://wiki.freepascal.org/Installing_Lazarus#Connect_to_Source_Repository_with_SVN_.28replaces_section_on_connection_to_CVS.29

For more explanations.

Michael.

Reply by email

Micha Nelissen
to Michael Schnell
Michael Schnell wrote 11 lines
> The URL for tortoiseSVN is http://svn.freepascal.org/svn/fpc/trunk > Right. That is exactly what I did. The other error message I got was "PROFIND request failed on '/svn/fpc/trunk'. The long delay before the error is displayed suggests that the server does not answer at all - not even with an error notification, wile explorer does display http://svn.freepascal.org/svn/fpc/trunk as a directory tree

That suggests a broken proxy.

Micha

Reply by email

Vincent Snijders
to Michael Schnell: Right. That is exactly what I did. The other error message I got was "PROFIND request…
Michael Schnell wrote 11 lines
> The URL for tortoiseSVN is http://svn.freepascal.org/svn/fpc/trunk > Right. That is exactly what I did. The other error message I got was "PROFIND request failed on '/svn/fpc/trunk'. The long delay before the error is displayed suggests that the server does not answer at all - not even with an error notification, wile explorer does display http://svn.freepascal.org/svn/fpc/trunk as a directory tree

This has happened before and some people could work around it using the port 8080.

svn co http://svn.freepascal.org:8080/svn/fpc/trunk

Doesn't work here though:
svn: PROPFIND request failed on '/svn/fpc/trunk'
svn: PROPFIND of '/svn/fpc/trunk': 501 Not Implemented (http://svn.freepascal.org:8080)

Vincent

Reply by email

Bram Kuijvenhoven
to Michael Schnell: p.s. Does TortoiseSVN use the proxy configuration from Explorer ? With…
Michael Schnell wrote 5 lines
> Using TortoiseSVN I get "could not connect to server > (http://snv.freepascal.org) if I try to do SNV checkout. p.s. Does TortoiseSVN use the proxy configuration from Explorer ? With http://snv.freepascal.org Explorer does show me the Free Pascal home page.

That is because www.freepascal.org and svn.freepascal.org both refer to the same IP address, and the web server has apparently not be configured to have different virtual hosts for these domains. In particular

http://www.freepascal.org/svn/fpc/trunk/ and
http://svn.freepascal.org/svn/fpc/trunk/

both yield the SVN repository and

http://www.freepascal.org/ and
http://svn.freepascal.org/

both yield the FreePascal website.

Note that you can browse the SVN http urls given above also with your webbrowser. But as Vincent remarks, SVN might still fail because of the proxy badly handling 'Webdav comments'. Unfortunately the server currently doesn't seem to listen to the https port, neither to an alternative port such as port 81 (as suggested on http://subversion.tigris.org/faq.html#proxy).

Regards,

Bram

Reply by email

Bram Kuijvenhoven
to Bram Kuijvenhoven
Bram Kuijvenhoven wrote 6 lines
Note that you can browse the SVN http urls given above also with your webbrowser. But as Vincent remarks, SVN might still fail because of the proxy badly handling 'Webdav comments'. Unfortunately the server currently doesn't seem to listen to the https port, neither to an alternative port such as port 81 (as suggested on http://subversion.tigris.org/faq.html#proxy).

(Ok, I now see Vincents reply mentioning port 8080.)

Regards,

Bram

Reply by email

Michael Schnell
to Bram Kuijvenhoven: That is because www.freepascal.org and svn.freepascal.org both refer to the same IP…

This took me a bit further.

After setting the proxy url and port I now get this when tying to do a checkout:

Error REPORT request failed on '/svn/fpc/!svn/vcc/default' Error REPORT of /'svn/fpc/fpc/!svn/vcc/default': 400 Bad Request (http://svn/freepascal.org)

28 KB transferred

And now the folder icon of the c:\FPC directory in Explorer got a green "checked" sign (no idea what this means).

but it is still empty.

-Michael

Reply by email

Tomas Hajny
to Vincent Snijders: That is the error I get too, because of a broken or misconfigured proxy. Vincent
Vincent Snijders wrote 10 lines
Michael Schnell schreef: > >> The URL for tortoiseSVN is http://svn.freepascal.org/svn/fpc/trunk >> > Right. That is exactly what I did. > > The other error message I got was "PROFIND request failed on > '/svn/fpc/trunk'. That is the error I get too, because of a broken or misconfigured proxy.

Note that some proxies require special authentication methods (i.e. not just username/password), and it may not be possible to get SVN working with these (with reasonable effort, at least), unless you can change the proxy configuration to something else. Specifically, I'm talking about proxies expecting windows-specific support for single sign-on (domain sign-on) obtaining logon information from the client.

Tomas

Reply by email

Michael Schnell
to Vincent Snijders: This has happened before and some people could work around it using the port 8080. svn co…
This has happened before and some people could work around it using the port 8080.

Setting the proxy in "servers" in fact started the communication to the SVN server.but nonetheless it ends up with an error (see the other mail)

Error REPORT request failed on '/svn/fpc/!svn/vcc/default' Error REPORT of /'svn/fpc/fpc/!svn/vcc/default': 400 Bad Request (http://svn/freepascal.org)

28 KB transferred

Show quoted text 7 lines
svn co http://svn.freepascal.org:8080/svn/fpc/trunk Doesn't work here though: svn: PROPFIND request failed on '/svn/fpc/trunk' svn: PROPFIND of '/svn/fpc/trunk': 501 Not Implemented (http://svn.freepascal.org:8080)

with ":8080" I get exactly the same error as without.

-Michael

Reply by email

Tomas Hajny
to Micha Nelissen: That suggests a broken proxy. Micha

Micha Nelissen napsal(a):

Show quoted text 14 lines
Michael Schnell wrote: > >> The URL for tortoiseSVN is http://svn.freepascal.org/svn/fpc/trunk >> > Right. That is exactly what I did. > > The other error message I got was "PROFIND request failed on > '/svn/fpc/trunk'. > The long delay before the error is displayed suggests that the server > does not answer at all - not even with an error notification, wile > explorer does display > http://svn.freepascal.org/svn/fpc/trunk as a directory tree That suggests a broken proxy.

... where "broken" may include "proxy deliberately configured to use proprietary authentication protocols"... ;-)

Tomas

Reply by email

Tomas Hajny
to Michael Schnell: Setting the proxy in "servers" in fact started the communication to the SVN server.but…
Michael Schnell wrote 12 lines
> > This has happened before and some people could work around it using > the port 8080. Setting the proxy in "servers" in fact started the communication to the SVN server.but nonetheless it ends up with an error (see the other mail) Error REPORT request failed on '/svn/fpc/!svn/vcc/default' Error REPORT of /'svn/fpc/fpc/!svn/vcc/default': 400 Bad Request (http://svn/freepascal.org) 28 KB transferred

This (HTTP error 400) most probably indicates the "broken proxy" scenario mentioned by Vincent.

Tomas

Reply by email

Michael Schnell
to Tomas Hajny: Note that some proxies require special authentication methods (i.e. not just…
Show quoted text 7 lines
Note that some proxies require special authentication methods (i.e. not just username/password), and it may not be possible to get SVN working with these (with reasonable effort, at least), unless you can change the proxy configuration to something else. Specifically, I'm talking about proxies expecting windows-specific support for single sign-on (domain sign-on) obtaining logon information from the client.

As 28 K data actually is being transferred, I don't think that what I have is a proxy problem any more. The exclamation mark in '/svn/fpc/!svn/vcc/default' seems funny to me.

-Michael

Reply by email

Lee, John
to Michael Schnell: As 28 K data actually is being transferred, I don't think that what I have is a proxy…

Saw somwhere (I think) that there is/may be a problem with later versions of SVN client re using proxies...FWIW I'm using svn CL 1.4.2 & tortoise 1.1.7 to access fpc svn, from behind firewall with proxy, port 80 - our proxy doesnt need any other authentication- & it works ok. Before I had the proxy settings right I saw similar errors to the ones you are getting. HTH regards John

Show quoted text 36 lines
-----Original Message----- From: Behalf Of Michael Schnell Sent: 14 February 2007 12:07 To: FPC developers' list Subject: Re: [fpc-devel] 'daemon' units in Lazarus (to Michael van Canneyt ?) > Note that some proxies require special authentication methods (i.e. not > just username/password), and it may not be possible to get SVN working > with these (with reasonable effort, at least), unless you can change the > proxy configuration to something else. Specifically, I'm talking about > proxies expecting windows-specific support for single sign-on (domain > sign-on) obtaining logon information from the client. > As 28 K data actually is being transferred, I don't think that what I have is a proxy problem any more. The exclamation mark in '/svn/fpc/!svn/vcc/default' seems funny to me. -Michael _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.

Reply by email

Michael Schnell
to Lee, John
John wrote
Saw somwhere (I think) that there is/may be a problem with later versions of SVN client re using proxies...FWIW I'm using svn CL 1.4.2 & tortoise 1.1.7 to access fpc svn, from behind firewall with proxy, port 80 - our proxy doesnt need any other authentication- & it works ok. Before I had the proxy settings right I saw similar errors to the ones you are getting. HTH regards John

So I supposedly am lost :(

-Michael

Reply by email

Tomas Hajny
to Michael Schnell: So I supposedly am lost :( .Michael

Michael Schnell napsal(a):

Show quoted text 7 lines
> This (HTTP error 400) most probably indicates the "broken proxy" > scenario > mentioned by Vincent. > > So I supposedly am lost :(

Not necessarily - you can get the latest version of the source files (if limited to small number) using your browser (directly accessing the SVN repository tree via http or using viewcvs.cgi). Furthermore, you can always download the full zipped sources updated daily from our FTP server.

Tomas

Reply by email

Florian Klaempfl
to Tomas Hajny
Show quoted text 12 lines
Michael Schnell napsal(a): >> This (HTTP error 400) most probably indicates the "broken proxy" >> scenario >> mentioned by Vincent. >> >> > So I supposedly am lost :( Not necessarily - you can get the latest version of the source files (if limited to small number) using your browser (directly accessing the SVN repository tree via http or using viewcvs.cgi). Furthermore, you can always download the full zipped sources updated daily from our FTP server.

Well, or some kind soul sets up https based svn on idefix :)

Reply by email

Michael Schnell
to Tomas Hajny: Michael Schnell napsal(a): Not necessarily - you can get the latest version of the source…
Show quoted text 5 lines
you can get the latest version of the source files (if limited to small number) using your browser (directly accessing the SVN repository tree via http or using viewcvs.cgi). Furthermore, you can always download the full zipped sources updated daily from our FTP server.

I did d/l the latest daily snapshot zip just to get started.

Thanks,
-Michael

Reply by email

Funky Beast
to Michael Schnell: So I supposedly am lost :( .Michael
Michael Schnell wrote 12 lines
> This (HTTP error 400) most probably indicates the "broken proxy" scenario > mentioned by Vincent. > > So I supposedly am lost :( .Michael _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

Hi Michael,

Don't know if this helps, but i faced your music more than a year ago, and my problem resolved later on.

I later replied to someone who faced the same music here:

HTH,

Funky Beast

Reply by email