Re: Running dovecot under Cygwin
On Wednesday 19 December 2007 08:18:37 Dave Korn wrote: Does Cygwin uses EOF of Windows? No, Cygwin uses Ctrl-D for EOF like all POSIX. No, Cygwin uses whatever the user tells it to use during the install. Daniel -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Running dovecot under Cygwin
On Dec 19, 2007 7:09 PM, Daniel Noll wrote: On Wednesday 19 December 2007 08:18:37 Dave Korn wrote: Does Cygwin uses EOF of Windows? No, Cygwin uses Ctrl-D for EOF like all POSIX. No, Cygwin uses whatever the user tells it to use during the install. No, you're confusing EOF with EOL. Line endings can be either Ctrl-M Ctrl-J or just Ctrl-J, depending upon your installation choice, but end of file is always Ctrl-D, like all of POSIX. ~Matt -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Running dovecot under Cygwin
On Thursday 20 December 2007 11:36:08 Matt Wozniski wrote: On Dec 19, 2007 7:09 PM, Daniel Noll wrote: On Wednesday 19 December 2007 08:18:37 Dave Korn wrote: Does Cygwin uses EOF of Windows? No, Cygwin uses Ctrl-D for EOF like all POSIX. No, Cygwin uses whatever the user tells it to use during the install. No, you're confusing EOF with EOL. Line endings can be either Ctrl-M Ctrl-J or just Ctrl-J, depending upon your installation choice, but end of file is always Ctrl-D, like all of POSIX. Ah, you're right. I read it as EOL for some reason. But actually the Ctrl-D thing seems to be per-application. I've noticed that under Cygwin, if I run an MS-DOS application it still expects the DOS-style EOF terminator. Likewise if I run something like cat under cmd.exe, Ctrl-D works. Daniel -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Running dovecot under Cygwin
On Thu, Dec 20, 2007 at 11:09:43AM +1100, Daniel Noll wrote: On Wednesday 19 December 2007 08:18:37 Dave Korn wrote: Does Cygwin uses EOF of Windows? No, Cygwin uses Ctrl-D for EOF like all POSIX. No, Cygwin uses whatever the user tells it to use during the install. No. It doesn't. It uses CTRL-D. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Running dovecot under Cygwin
On Thu, Dec 20, 2007 at 11:42:51AM +1100, Daniel Noll wrote: On Thursday 20 December 2007 11:36:08 Matt Wozniski wrote: On Dec 19, 2007 7:09 PM, Daniel Noll wrote: On Wednesday 19 December 2007 08:18:37 Dave Korn wrote: Does Cygwin uses EOF of Windows? No, Cygwin uses Ctrl-D for EOF like all POSIX. No, Cygwin uses whatever the user tells it to use during the install. No, you're confusing EOF with EOL. Line endings can be either Ctrl-M Ctrl-J or just Ctrl-J, depending upon your installation choice, but end of file is always Ctrl-D, like all of POSIX. Ah, you're right. I read it as EOL for some reason. But actually the Ctrl-D thing seems to be per-application. I've noticed that under Cygwin, if I run an MS-DOS application it still expects the DOS-style EOF terminator. Likewise if I run something like cat under cmd.exe, Ctrl-D works. If you are running a non-cygwin program then it uses whatever Windows uses. If you are running a *Cygwin program* then it uses whatever Cygwin uses. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Running dovecot under Cygwin
If you are running a non-cygwin program then it uses whatever Windows uses. If you are running a *Cygwin program* then it uses whatever Cygwin uses. Sounds interesting. Might be worth a try. How do i make it to be a cygwin program? I build it using gcc under cygwin. Do i have to replace a header file? Cheers Ronny -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Running dovecot under Cygwin
On 2007-12-20 01:39Z, Ronny wrote: If you are running a non-cygwin program then it uses whatever Windows uses. If you are running a *Cygwin program* then it uses whatever Cygwin uses. Sounds interesting. Might be worth a try. How do i make it to be a cygwin program? I build it using gcc under cygwin. Do i have to replace a header file? If you built it with the '-mno-cygwin' option, then remove that option. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Running dovecot under Cygwin
You made my day, Thanks a lot. The server answers, unfortunately with an fatal error (Fatal: EOF while reading environment from master'), so i have to figure out whats the problem now. I will inform you, maybe somebody other wants to run dovecot, too ;-) Cheers Ronny -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Running dovecot under Cygwin
I will inform you, maybe somebody other wants to run dovecot, too ;-) well on the dovecot list somebody told me: Can't sure about this but maybe this problem because different types of EOF symbols used in Unix and Windows systems. So it trying to read from master but unable to do so, because receive EOF symbol from beginning. Does Cygwin uses EOF of Windows? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Running dovecot under Cygwin
On 18 December 2007 20:19, Ronny wrote: I will inform you, maybe somebody other wants to run dovecot, too ;-) well on the dovecot list somebody told me: Can't sure about this but maybe this problem because different types of EOF symbols used in Unix and Windows systems. So it trying to read from master but unable to do so, because receive EOF symbol from beginning. Does Cygwin uses EOF of Windows? No, Cygwin uses Ctrl-D for EOF like all POSIX. cheers, DaveK -- Can't think of a witty .sigline today -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Running dovecot under Cygwin
On Mon, Dec 17, 2007 at 03:08:47PM +0100, Ronny wrote: Hi, i am trying to get imap server dovecot running under cygwin. Compiling the server finished without any errors. But running the server does not work. As far as i can see, dovecot runs a master process, that uses execv to launch a child (auth) process. The child process is killed immedeatly. This causes the whole server to shutdown. Does anybody have experience with running dovecot under cygwin? I don't but you might be able to get some clues from looking at strace output. I'd be surprised if there wasn't some sort of verbose logging available for dovecot as well. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Running dovecot under Cygwin
On 17 December 2007 15:28, Ronny wrote: I don't but you might be able to get some clues from looking at strace output. Well, i never used strace, so i do not know what it says me. I just give you the output. Could you have a look on it? Thanks a lot. What is /home/Administrator/test/new.exe ? I noticed a lot of exceptions during the parent-and-child post-spawn synchronisation phase: --- Process 1760, exception C135 at 7C974ED1 --- Process 568, exception C135 at 7C974ED1 --- Process 420, exception C135 at 7C974ED1 --- Process 280, exception C135 at 7C974ED1 --- Process 2036, exception C135 at 7C974ED1 --- Process 1760, exception C135 at 7C974ED1 --- Process 504, exception C135 at 7C974ED1 That code stands for STATUS_DLL_NOT_FOUND. Does 'new.exe', whatever it is, require a dll to be in the PATH setting? (Tip: use cygcheck executable name to see the list of dlls required by any .exe, along with a warning if any are missing). cheers, DaveK -- Can't think of a witty .sigline today -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Running dovecot under Cygwin
Ronny wrote: i am trying to get imap server dovecot running under cygwin. Compiling the server finished without any errors. But running the server does not work. As far as i can see, dovecot runs a master process, that uses execv to launch a child (auth) process. The child process is killed immedeatly. This causes the whole server to shutdown. Does anybody have experience with running dovecot under cygwin? Why not go to the Dovecot site: http://wiki.dovecot.org/OSCompatibility It clearly states that Cygwin works after a few code changes, but doesn't support SCM_RIGHTS so you have to use inetd to start the imap server... uw-imap, that is distributed with cygwin does not match with my needs. I am looking for an imap server taht supports virtual user using a user database. Untested: there are uw-imap options to use PAM (not supported in Cygwin) and LDAP, this might work. Probably making Dovecot work is easier. -- René Berber -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/