Re: Problem building cygwin-3_1_7-release tagged newlib.

2020-10-10 Thread Kaz Kylheku (Cygwin) via Cygwin

On 2020-10-10 12:39, Ken Brown wrote:

On 10/10/2020 3:22 PM, Kaz Kylheku (Cygwin) via Cygwin wrote:

  4896 |   typedef struct _MEM_ADDRESS_REQUIREMENTS {
   |  ^

This looks like a clash between the installed toolchain header and the 
one in the winsup tree?


Is this a known problem?


Yes.  It was caused by a mingw-w64 update and was fixed in commit 
c1f7c4d1.


Much thanks for that; it got past this stumbling block. After that there 
were

a bunch of GCC-10 fixes I had to find and cherry pick, and it built.

--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: Problem building cygwin-3_1_7-release tagged newlib.

2020-10-10 Thread Ken Brown via Cygwin




On 10/10/2020 3:22 PM, Kaz Kylheku (Cygwin) via Cygwin wrote:

Hi,

I'm trying to build the 3.1.7 tagged newlib. It runs into this problem:

c++wrap -O2 -g -fno-rtti -fno-exceptions -fno-use-cxa-atexit -Wall 
-Wstrict-aliasing -Wwrite-strings -fno-common -pipe -fbuiltin -fmessage-length=0 
-MMD -Wimplicit-fallthrough=5 -Werror -fmerge-constants -ftracer -c -o 
_cygwin_crt0_common.o ../../.././winsup/cygwin/lib/_cygwin_crt0_common.cc

In file included from ../../.././winsup/cygwin/winsup.h:83,
  from ../../.././winsup/cygwin/lib/_cygwin_crt0_common.cc:9:
../../.././winsup/cygwin/winlean.h:104:16: error: redefinition of 'struct 
_MEM_ADDRESS_REQUIREMENTS'

   104 | typedef struct _MEM_ADDRESS_REQUIREMENTS
   |    ^
In file included from /usr/include/w32api/minwindef.h:163,
  from /usr/include/w32api/windef.h:9,
  from /usr/include/w32api/windows.h:69,
  from ../../.././winsup/cygwin/winlean.h:56,
  from ../../.././winsup/cygwin/winsup.h:83,
  from ../../.././winsup/cygwin/lib/_cygwin_crt0_common.cc:9:
/usr/include/w32api/winnt.h:4896:18: note: previous definition of 'struct 
_MEM_ADDRESS_REQUIREMENTS'

  4896 |   typedef struct _MEM_ADDRESS_REQUIREMENTS {
   |  ^

This looks like a clash between the installed toolchain header and the one in 
the winsup tree?


Is this a known problem?


Yes.  It was caused by a mingw-w64 update and was fixed in commit c1f7c4d1.

Ken
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: Problem - Possibly Cygwin

2019-01-25 Thread Marco Atzeri

back in the cygwin ML

Am 25.01.2019 um 17:39 schrieb Mitch Rosefelt:

Hi Marco:
Thanks for taking a look at this.

Are you referring to my Environmental Vars?

> They look pretty clean. No mention of cygwin.
>

No. As you seem to have multiple programs
that are using different cygwin1.dll, if you have
those directories on the PATH they could interfere
with each other.

Try every application with clean PATH
that does not include the other applications.



I was able to get expo (Mobile App Dev Tool) working by adding a local
install into my nodeJS project and calling it from there.
I noticed a difference in the local script vs the script in the global
install. The local script calls "node" where the global script calls
"pwsh" (which produces the error):

Call in local repo \LactFacts\lactfact_190118\node_modules\.bin\expo:
#!/bin/sh
basedir=$(dirname "$(echo "$0" |sed -e 's,\\,/,g')")
case`uname`in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if[ -x"$basedir/node"];then
"$basedir/node""$basedir/../expo-cli/bin/expo.js""$@"
ret=$?
else
node "$basedir/../expo-cli/bin/expo.js""$@"
ret=$?
fi
exit$ret

Call to global install C:\Users\Mitch\AppData\Local\Yarn\bin\expo.ps1
#!/bin/sh
basedir=$(dirname "$(echo "$0" |sed -e 's,\\,/,g')")
case `uname`in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if[ -x"$basedir/pwsh"]; then
"$basedir/pwsh""$basedir/../Data/global/node_modules/.bin/expo.ps1""$@"
ret=$?
else
pwsh "$basedir/../Data/global/node_modules/.bin/expo.ps1""$@"
ret=$?
fi
exit$ret

So it appears that PowerShell is choking on the script:
At C:\Users\Mitch\AppData\Local\Yarn\bin\expo.ps1:5 char:13
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
+ ~
Unexpected token ')'inexpression or statement.


as it is a Bash script, I am not surprised,
and "cygpath" is a cygwin utility that provides
path information relative to its own cygwin1.dll





---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Problem - Possibly Cygwin

2019-01-25 Thread cyg Simple

On 1/25/2019 8:29 AM, Marco Atzeri wrote:

Am 25.01.2019 um 14:24 schrieb Mitch Rosefelt:

Hi All:
I've run into a problem in which cygwin is part of the error message.
I don't know that cygwin is part of the problem, but I'm having great 
difficulty figuring this out, so I'm posting it here with the hope 
that someone will know the fix.

Thanks much.
=

After installing react-devtools 
 
into my Node JS environment, I am no longer able to run expo-cli.
Everything was working fine until I did that. I’m now getting the 
error below.
In addition to not being able to run expo, my Powershell permissions 
were also changed to "restricted" (fixed). I even restored my registry 
to the previous day in an effort to fix this.

I have uninstalled/reinstalled node and yarn.

The error indicates Cygwin, which I don't have installed on my 
computer (does not show up in a registry search), however, searching 
my computer, I see that Cygwin was installed with Git:C:\Program 
Files\Git\usr\share\cygwin

C:\Program Files\Git\usr\bin\cygwin-console-helper.exe
C:\Program Files\Android\Android 
Studio\bin\lldb\lib\distutils\cygwinccompiler.py

C:\Program Files\Git\usr\lib\perlS\core_per|\File\Spec\cygwin.pm
C:\Program Files\Git\usr\share\cygwin\cygwin.ldif
C:\Program Files\Git\usr\share\tern1info\63\cygwin
C:\Program Files\Git\usr\lib\terminf0\63\cygwin


Any help will be GREATLY appreciated.


have you tried with a clean PATH for every application ?


I don't think that will help. The expo.ps1 is using a shell expression 
and the interpreter isn't liking the syntax.  It's trying to determine 
if Cygwin is installed and if it is get a Windows path for the basedir 
variable.  It chokes on the ')' in the structure of the comparison. That 
error doesn't indicate Cygwin is installed or found.  You'll have to ask 
the expo vendor.


--
cyg Simple

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Problem running Cygwin on Windows 10

2018-03-12 Thread Andrey Repin
Greetings, Stanley Friesen!

> I have just installed, or tried to install, Cygwin on my Windows 10 
> machine.  I have run into a series of odd behaviors, and cannot get any 
> of the Cygwin apps to run.

> First, the setup program appeared to hang near the end, but the log file 
> indicates in finished normally, with no error, and the cygwin64 folder 
> exists and has numerous files in it.

> Nothing relating to Cygwin appears on the Win10 Start menu.

> I tried running cygstart (and xterm) from the bin directory. I got a 
> brief flash of a console window and then nothing.

> What do I need to do to get Cygwin actually usable on my machine?

Try to start low.
Clear your failed install, start setup again and let it run to the end without
selecting any additional packages. It should finish fast and nice and you
should be able to run terminal and execute some simple commands like ls or
cat.
Then restart setup again and try adding a few packages.
If anything fails, please check
> FAQ:   http://cygwin.com/faq/
and
> Documentation: http://cygwin.com/docs.html
and, if nothing helps, follow
> Problem reports:   http://cygwin.com/problems.html
to supply necessary information.

Be aware, that certain "antiviruses" impede Cygwin's ability to operate, you'd
have to make an exception for it or uninstall them completely.
Unfortunately, Windows defender is one known to cause such issues.


-- 
With best regards,
Andrey Repin
Monday, March 12, 2018 20:49:33

Sorry for my terrible english...

Re: Problem with Cygwin 2.4.0-0.18 release

2016-01-13 Thread Ismail Donmez
Hi,

On Tue, Jan 12, 2016 at 5:05 PM, Corinna Vinschen
 wrote:
> I tried to workaround this problem by "upgrading" the DLL load
> mechanism to use the facilities available since Vista.  In theory
> this should work fine for you.  I uploaded a new developer snapshot
> to https://cygwin.com/snapshots/  Please give it a try.

Sadly still getting the same error.

ismail

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Problem with Cygwin 2.4.0-0.18 release

2016-01-13 Thread Achim Gratz
Ismail Donmez  i10z.com> writes:
> Sadly still getting the same error.

No such problems for a server runnning 2012R2 here...

Regards,
Achim.


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Problem with Cygwin 2.4.0-0.18 release

2016-01-13 Thread Corinna Vinschen
On Jan 13 09:59, Ismail Donmez wrote:
> Hi,
> 
> On Tue, Jan 12, 2016 at 5:05 PM, Corinna Vinschen
>  wrote:
> > I tried to workaround this problem by "upgrading" the DLL load
> > mechanism to use the facilities available since Vista.  In theory
> > this should work fine for you.  I uploaded a new developer snapshot
> > to https://cygwin.com/snapshots/  Please give it a try.
> 
> Sadly still getting the same error.

That doesn't make sense.  The new code has a fallback which is identical
to the code in -0.17.  No offence, but are you *sure* you're using the
snapshot DLL?  Uname on 64 bit should print:

 $ uname -srvm
 $ CYGWIN_NT-6.1 2.4.0(0.293/5/3) 2016-01-12 14:54 x86_64

Can you re-check, please?

[...testing myself...]

Ok, so I just set up sshd on a W7 64 bit machine and I can actually
reproduce the problem with -0.18.

However, it starts to work fine for me with the snapshot!

So I added debug output to the Cygwin DLL and there's something strange
going on on W7 64.  When loading ws2_32.dll in this single instance of
logging in to sshd, the LoadLibrary call to ws2_32.dll fails in one of
the child processes with a stack overflow.  The *next* call to
LoadLibrary works fine, though.  My debug output inspected the stack.

Quick introduction for those not overly familiar with this stuff:

- AllocationBase is the memory address the stack has been reserved at.

- StackLimit is the lowest address of the committed region on the stack.
  StackLimit is always > AllocationBase and < StackBase.

- FramePointer is the value of the $ebp register which denotes the current
  stack usage in this function.  FramePointer is always > StackLimit and
  < StackBase.

- StackBase is the uppermost address of the stack, the address from where
  the stack grows downward.

Given this, low values of StackLimit mean a high stack pressure, high
values a low stack pressure.

Here are the stack values on Windows 10 before and after the LoadLibrary
call to ws2_32.dll which works on W10 and W8.1 but fails on W7:

  AllocationBaseFramePointer
 StackLimitStackBase
Windows 10:
  before: 0xFFE0 0xAE60 0xBE80 0x1
  after : 0xFFE0 0x9000 0xBE80 0x1

Windows 8.1:
  before: 0xFFE0 0xAE60 0xBE80 0x1
  after : 0xFFE0 0xAE60 0xBE80 0x1

Windows 7:
0xFFE0 0xAE60 0xBE80 0x1
0xFFE0 0xFFE01000 0xBE80 0x1
   ^^

So, before the call to LoadLibrary, the stack is completely correct, as
on W10 and W8.1.  However, after the LoadLibrary call, the StackLimit
has changed to the maximum possible value.  What does that mean?  For
some reason LoadLibrary(ws2_32.dll) took up all space available on the
stack and then failed because there was no more stack.  Interesting
enough, the *next* call to LoadLibrary then worked as expected.

Why this happens?  I have no idea.  Probably a bug in W7.

So, Ismail, please test again if you're really using the snapshot DLL.
The fact that I can reproduce the problem *and* fix it by running the
snapshot, *and* reproducibly create the error on W7, but not on W8.1
or W10 indicates to me that this sould be fixed for you as well.


Thanks,
Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat


signature.asc
Description: PGP signature


Re: Problem with Cygwin 2.4.0-0.18 release

2016-01-13 Thread Ismail Donmez
On Wed, Jan 13, 2016 at 12:45 PM, Corinna Vinschen
 wrote:
> On Jan 13 09:59, Ismail Donmez wrote:
>> Hi,
>>
>> On Tue, Jan 12, 2016 at 5:05 PM, Corinna Vinschen
>>  wrote:
>> > I tried to workaround this problem by "upgrading" the DLL load
>> > mechanism to use the facilities available since Vista.  In theory
>> > this should work fine for you.  I uploaded a new developer snapshot
>> > to https://cygwin.com/snapshots/  Please give it a try.
>>
>> Sadly still getting the same error.
>
> That doesn't make sense.  The new code has a fallback which is identical
> to the code in -0.17.  No offence, but are you *sure* you're using the
> snapshot DLL?  Uname on 64 bit should print:
>
>  $ uname -srvm
>  $ CYGWIN_NT-6.1 2.4.0(0.293/5/3) 2016-01-12 14:54 x86_64

Sorry for that, indeed somehow it overwrite the cygwin1.dll I guess
because I ran setup.exe first and it re-installed -0.18 and then I
manually overwrited cygwin1.dll but somehow failed.

Anyhow it works now, thanks!

Regards,
ismail

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Problem with Cygwin 2.4.0-0.18 release

2016-01-12 Thread Ismail Donmez
On Tue, Jan 12, 2016 at 11:50 AM, Corinna Vinschen
 wrote:
> On Jan 12 11:45, Ismail Donmez wrote:
>> Hi,
>>
>> On Tue, Jan 12, 2016 at 11:28 AM, Corinna Vinschen
>>  wrote:
>> > Hi Ismail,
>> >
>> > On Jan 12 10:23, Ismail Donmez wrote:
>> >> Hi,
>> >>
>> >> -0.17 was fine but this release breaks sshd, sshd.log says:
>> >>
>> >> 1 [main] sshd 2828 C:\cygwin64\usr\sbin\sshd.exe: *** fatal error - unable
>> >> to load C:\Windows\system32\ws2_32.dll, Win32 error 1001
>> >
>> > What OS?  32 bit, 32 bit under WOW64 or 64 bit?  How do you start sshd?
>>
>> Sorry for the brevity of my bug report. This is on Windows 7 SP1
>> 64-bit with cygwin 64bit.
>>
>> > I'm asking because
>> >
>> > a) What I did was to revert a piece of code to the same state as in 2.2.1.
>> >Does the "prev" version 2.2.1 work for you?
>>
>> I am always running cygwin snapshots on this machine and yesterday
>> -0.17 was working fine. Now I rolled backed to 2.2.1-1 and it works
>> fine. Went a little bit further and cygwin1-20160109.dll works fine
>> where-as cygwin1-20160111.dll shows the problem.
>
> Still, does 2.2.1 work for you, too?

Quoting my email "Now I rolled backed to 2.2.1-1 and it works fine."

ismail

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Problem with Cygwin 2.4.0-0.18 release

2016-01-12 Thread Ismail Donmez
Hi,

On Tue, Jan 12, 2016 at 11:28 AM, Corinna Vinschen
 wrote:
> Hi Ismail,
>
> On Jan 12 10:23, Ismail Donmez wrote:
>> Hi,
>>
>> -0.17 was fine but this release breaks sshd, sshd.log says:
>>
>> 1 [main] sshd 2828 C:\cygwin64\usr\sbin\sshd.exe: *** fatal error - unable
>> to load C:\Windows\system32\ws2_32.dll, Win32 error 1001
>
> What OS?  32 bit, 32 bit under WOW64 or 64 bit?  How do you start sshd?

Sorry for the brevity of my bug report. This is on Windows 7 SP1
64-bit with cygwin 64bit.

> I'm asking because
>
> a) What I did was to revert a piece of code to the same state as in 2.2.1.
>Does the "prev" version 2.2.1 work for you?

I am always running cygwin snapshots on this machine and yesterday
-0.17 was working fine. Now I rolled backed to 2.2.1-1 and it works
fine. Went a little bit further and cygwin1-20160109.dll works fine
where-as cygwin1-20160111.dll shows the problem.

> b) It works fine for me starting sshd as a service under 2.4.0-0.18 on
>64 bit Windows 10.  Logging in works fine as well, as admin user as well
>as normal user.

Its running as a service, set up by ssh-host-config. No manual
configuration on my side.

> If push comes to shove I revert the reversion of the patch again, but
> I do hope it turns out some local problem.  Error 1001 is weird, it
> means "Recursion too deep; the stack overflowed.".  In an OS function?
> Just because the path is given as full path?
>
>
> Thanks,
> Corinna
>
>
> Sidenote: Here's an example where supporting XP hurts, btw.  The code
> in question could be much simplified if we only had to support Vista
> and later.
>
>
> --
> Corinna Vinschen  Please, send mails regarding Cygwin to
> Cygwin Maintainer cygwin AT cygwin DOT com
> Red Hat

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Problem with Cygwin 2.4.0-0.18 release

2016-01-12 Thread Corinna Vinschen
Hi Ismail,

On Jan 12 10:23, Ismail Donmez wrote:
> Hi,
> 
> -0.17 was fine but this release breaks sshd, sshd.log says:
> 
> 1 [main] sshd 2828 C:\cygwin64\usr\sbin\sshd.exe: *** fatal error - unable
> to load C:\Windows\system32\ws2_32.dll, Win32 error 1001

What OS?  32 bit, 32 bit under WOW64 or 64 bit?  How do you start sshd?

I'm asking because

a) What I did was to revert a piece of code to the same state as in 2.2.1.
   Does the "prev" version 2.2.1 work for you?

b) It works fine for me starting sshd as a service under 2.4.0-0.18 on
   64 bit Windows 10.  Logging in works fine as well, as admin user as well
   as normal user.

If push comes to shove I revert the reversion of the patch again, but
I do hope it turns out some local problem.  Error 1001 is weird, it
means "Recursion too deep; the stack overflowed.".  In an OS function?
Just because the path is given as full path?


Thanks,
Corinna


Sidenote: Here's an example where supporting XP hurts, btw.  The code
in question could be much simplified if we only had to support Vista
and later.


-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat


signature.asc
Description: PGP signature


Re: Problem with Cygwin 2.4.0-0.18 release

2016-01-12 Thread Corinna Vinschen
On Jan 12 11:45, Ismail Donmez wrote:
> Hi,
> 
> On Tue, Jan 12, 2016 at 11:28 AM, Corinna Vinschen
>  wrote:
> > Hi Ismail,
> >
> > On Jan 12 10:23, Ismail Donmez wrote:
> >> Hi,
> >>
> >> -0.17 was fine but this release breaks sshd, sshd.log says:
> >>
> >> 1 [main] sshd 2828 C:\cygwin64\usr\sbin\sshd.exe: *** fatal error - unable
> >> to load C:\Windows\system32\ws2_32.dll, Win32 error 1001
> >
> > What OS?  32 bit, 32 bit under WOW64 or 64 bit?  How do you start sshd?
> 
> Sorry for the brevity of my bug report. This is on Windows 7 SP1
> 64-bit with cygwin 64bit.
> 
> > I'm asking because
> >
> > a) What I did was to revert a piece of code to the same state as in 2.2.1.
> >Does the "prev" version 2.2.1 work for you?
> 
> I am always running cygwin snapshots on this machine and yesterday
> -0.17 was working fine. Now I rolled backed to 2.2.1-1 and it works
> fine. Went a little bit further and cygwin1-20160109.dll works fine
> where-as cygwin1-20160111.dll shows the problem.

Still, does 2.2.1 work for you, too?


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat


signature.asc
Description: PGP signature


Re: Problem with Cygwin 2.4.0-0.18 release

2016-01-12 Thread Corinna Vinschen
On Jan 12 11:54, Ismail Donmez wrote:
> On Tue, Jan 12, 2016 at 11:50 AM, Corinna Vinschen
>  wrote:
> > On Jan 12 11:45, Ismail Donmez wrote:
> >> Hi,
> >>
> >> On Tue, Jan 12, 2016 at 11:28 AM, Corinna Vinschen
> >>  wrote:
> >> > Hi Ismail,
> >> >
> >> > On Jan 12 10:23, Ismail Donmez wrote:
> >> >> Hi,
> >> >>
> >> >> -0.17 was fine but this release breaks sshd, sshd.log says:
> >> >>
> >> >> 1 [main] sshd 2828 C:\cygwin64\usr\sbin\sshd.exe: *** fatal error - 
> >> >> unable
> >> >> to load C:\Windows\system32\ws2_32.dll, Win32 error 1001
> >> >
> >> > What OS?  32 bit, 32 bit under WOW64 or 64 bit?  How do you start sshd?
> >>
> >> Sorry for the brevity of my bug report. This is on Windows 7 SP1
> >> 64-bit with cygwin 64bit.
> >>
> >> > I'm asking because
> >> >
> >> > a) What I did was to revert a piece of code to the same state as in 
> >> > 2.2.1.
> >> >Does the "prev" version 2.2.1 work for you?
> >>
> >> I am always running cygwin snapshots on this machine and yesterday
> >> -0.17 was working fine. Now I rolled backed to 2.2.1-1 and it works
> >> fine. Went a little bit further and cygwin1-20160109.dll works fine
> >> where-as cygwin1-20160111.dll shows the problem.
> >
> > Still, does 2.2.1 work for you, too?
> 
> Quoting my email "Now I rolled backed to 2.2.1-1 and it works fine."

That's what time pressure does to my reading skills... sorry :}

This is a bit weird.  If 2.2.1 using the same method works, why not
2.4.0-0.18?!?

I tried to workaround this problem by "upgrading" the DLL load
mechanism to use the facilities available since Vista.  In theory
this should work fine for you.  I uploaded a new developer snapshot
to https://cygwin.com/snapshots/  Please give it a try.


Thanks,
Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat


signature.asc
Description: PGP signature


Re: Problem with Cygwin/X from remote Linux

2014-10-03 Thread Jon TURNEY

On 03/10/2014 05:19, Chris Carlson wrote:

I discovered there are no visuals available to remote X connections that
support OpenGL double buffering.  There used to be, but no longer.

[...]

I thought the two logs that you requested were a bit large for this
e-mail, so I put them on my web site.  You can access them as:


Thanks.

So, this is the set visuals that the X server supports.


GL_VERSION: 3.1.0 - Build 8.15.10.2455
GL_VENDOR:  Intel
GL_RENDERER:Intel(R) HD Graphics Family

[...]

pxf vis  fb  render Ste aux
accumMSdrawable Group/
idx  ID  ID VisualType Depth Lvl RGB CI DB Swap reo  R  G  B  A   Z  S  buf AR 
AG AB AA  bufs num  W P Pb  Float Trans Caveat
-
  1  51  42 TrueColor32   0   y   .  .   .   8  8  8  8   0  0   0   0  
0  0  000  y . y . . 2
  2  52  43 TrueColor32   0   y   .  y xchg  .   8  8  8  8   0  0   0  16 
16 16 1600  y . y . . 2
  3  53  44 TrueColor32   0   y   .  .   .   8  8  8  8  24  8   0   0  
0  0  000  y . y . . 2
  4  21  45 TrueColor32   0   y   .  y xchg  .   8  8  8  8  24  8   0  16 
16 16 1600  y . y . . 2
  5  54  46 TrueColor32   0   y   .  .   .   8  8  8  8  16  0   0   0  
0  0  000  y . y . . 2
  6  55  47 TrueColor32   0   y   .  y xchg  .   8  8  8  8  16  0   0  16 
16 16 1600  y . y . . 2
  7  56  48 TrueColor32   0   y   .  y copy  .   8  8  8  8   0  0   0  16 
16 16 1600  y . y . . 2
  8  57  49 TrueColor32   0   y   .  y copy  .   8  8  8  8  16  0   0  16 
16 16 1600  y . y . . 2
  9  41  4a TrueColor32   0   y   .  y copy  .   8  8  8  8  24  8   0  16 
16 16 1600  y . y . . 2
 10  58  4b TrueColor32   0   y   .  .   .   8  8  8  8   0  0   0   0  
0  0  014  y . y . . 2
 11  59  4c TrueColor32   0   y   .  y xchg  .   8  8  8  8   0  0   0  16 
16 16 1614  y . y . . 2
 12  5a  4d TrueColor32   0   y   .  .   .   8  8  8  8  16  0   0   0  
0  0  014  y . y . . 2
 13  5b  4e TrueColor32   0   y   .  y xchg  .   8  8  8  8  16  0   0  16 
16 16 1614  y . y . . 2
 14  5c  4f TrueColor32   0   y   .  .   .   8  8  8  8  24  8   0   0  
0  0  014  y . y . . 2
 15  5d  50 TrueColor32   0   y   .  y xchg  .   8  8  8  8  24  8   0  16 
16 16 1614  y . y . . 2


The mesa software renderer on the remote host constructs the set of 
visuals the client gets offered by picking the visuals from the server's 
set of visuals which match one of it's visuals



OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 0x300)
OpenGL version string: 2.1 Mesa 8.0.4

[...]

visual  x   bf lv rg d st  colorbuffer  sr ax dp st accumbuffer  ms  cav
  id dep cl sp  sz l  ci b ro  r  g  b  a F gb bf th cl  r  g  b  a ns b eat

0x051 24 tc  0  32  0 r  . .   8  8  8  8 .  .  0  0  0  0  0  0  0  0 0 None
0x053 24 tc  0  32  0 r  . .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None


Unfortunately this set is small, and indeed doesn't contain any 
double-buffered visuals.


Workarounds are to use either start Cygwin X server with -nowgl (so it 
too uses the software renderer and will offer a set of visual which is 
probably exactly the same), or to run the client with the 
LIBGL_ALWAYS_INDIRECT env var set (so that indirect rendering is used 
and the remote client has access to the actual set of visuals the server 
supports)


I think the real fix to this is to fix the remote libGL, either so it 
matches visuals less precisely, or so it offers more visuals which can 
match, but this is not simple.



Believe it or not, I just so happen to have an XWin.0.log from my old,
old, old version of Cygwin.  It was:

Package: version 1.15.1-2 built 2014-05-06


Now I can reproduce this, it seems that this can be an unfortunate 
side-effect of the Improve visual matching with a remote libGL by not 
reporting pbuffer size limits change in 1.15.1-3 [1], which was 
intended to have the opposite effect, if previously no visuals at all 
were matching, so the software renderer was disabled, and we were 
falling back to indirect rendering.


[1] https://cygwin.com/ml/cygwin-xfree-announce/2014-06/msg2.html

--
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Problem with Cygwin/X from remote Linux

2014-10-02 Thread Jon TURNEY

On 02/10/2014 04:53, Chris Carlson wrote:

I've been using Cygwin on a Windows 7 laptop for a few years as an X
server from my Fedora Linux system.  I ssh -X to my Linux system and
run various X programs (thunderbird, chrome, nautilus, etc.) with very
few issues.


[...]


 Welcome to the XWin X Server
 Vendor: The Cygwin/X Project
 Release: 1.16.1.0
 OS: CYGWIN_NT-6.1 grover 1.7.32(0.274/5/3) 2014-08-13 23:06 x86_64
 OS: Windows 7 Service Pack 1 [Windows NT 6.1 build 7601] (Win64)
 Package: version 1.16.1-1 built 2014-09-29

 XWin was started with the following command line:

 X :0 -multiwindow

I discovered there are no visuals available to remote X connections that
support OpenGL double buffering.  There used to be, but no longer.
There are visuals available to direct connections, but not for remote.


Thanks for reporting this problem.  Unfortunately, I can't reproduce it.

Please can you attach the output of 'X -multiwindow -logverbose 3', so I 
can see what visuals the server thinks should be available, and the 
output of running 'glxinfo' on your remote system.


Can you give the version of Fedora you are using, and the version of the 
libGL package you have?



I tried looking through the FAQ for answers, but I didn't see anything.
Is this something that has intentionally changed?  Where would I find it
if it is (for future reference so I don't bug you)?


No, this is not intentional.

I guess this is an unintended consequence of a change.  It would be 
useful in tracking down that change if you could identify the last X 
server release which worked correctly.


The release announce mails are a hopefully accurate summary of intended 
changes (e.g [1])


[1] https://cygwin.com/ml/cygwin-xfree-announce/2014-09/msg4.html

--
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Problem with Cygwin/X from remote Linux

2014-10-02 Thread Chris Carlson

Hello, Jon.

The version of Fedora I'm running is:
Linux rolf 3.9.10-100.fc17.x86_64 #1 SMP Sun Jul 14 01:31:27 UTC 2013 
x86_64 x86_64 x86_64 GNU/Linux


I thought the two logs that you requested were a bit large for this 
e-mail, so I put them on my web site.  You can access them as:

http://beachware.org/Cygwin/glxinfo.cygwin
http://beachware.org/Cygwin/X.log

Believe it or not, I just so happen to have an XWin.0.log from my old, 
old, old version of Cygwin.  It was:


Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 1.15.1.0
OS: CYGWIN_NT-6.1 grover 1.7.30(0.272/5/3) 2014-05-23 10:36 x86_64
OS: Windows 7 Service Pack 1 [Windows NT 6.1 build 7601](Win64)
Package: version 1.15.1-2 built 2014-05-06

XWin was started with the following command line:

X :0 -multiwindow

Let me know if there's anything else I can provide.

Chris Carlson



On 10/2/2014 5:05 AM, Jon TURNEY wrote:

On 02/10/2014 04:53, Chris Carlson wrote:

I've been using Cygwin on a Windows 7 laptop for a few years as an X
server from my Fedora Linux system.  I ssh -X to my Linux system and
run various X programs (thunderbird, chrome, nautilus, etc.) with very
few issues.


[...]


 Welcome to the XWin X Server
 Vendor: The Cygwin/X Project
 Release: 1.16.1.0
 OS: CYGWIN_NT-6.1 grover 1.7.32(0.274/5/3) 2014-08-13 23:06 x86_64
 OS: Windows 7 Service Pack 1 [Windows NT 6.1 build 7601] (Win64)
 Package: version 1.16.1-1 built 2014-09-29

 XWin was started with the following command line:

 X :0 -multiwindow

I discovered there are no visuals available to remote X connections that
support OpenGL double buffering.  There used to be, but no longer.
There are visuals available to direct connections, but not for remote.


Thanks for reporting this problem.  Unfortunately, I can't reproduce it.

Please can you attach the output of 'X -multiwindow -logverbose 3', so 
I can see what visuals the server thinks should be available, and the 
output of running 'glxinfo' on your remote system.


Can you give the version of Fedora you are using, and the version of 
the libGL package you have?



I tried looking through the FAQ for answers, but I didn't see anything.
Is this something that has intentionally changed?  Where would I find it
if it is (for future reference so I don't bug you)?


No, this is not intentional.

I guess this is an unintended consequence of a change.  It would be 
useful in tracking down that change if you could identify the last X 
server release which worked correctly.


The release announce mails are a hopefully accurate summary of 
intended changes (e.g [1])


[1] https://cygwin.com/ml/cygwin-xfree-announce/2014-09/msg4.html




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Problem installing Cygwin 1.7.25 64 bit on W7 and W8

2013-09-01 Thread nu774

Same experience here.
I once pushed continue on the incomplete download error dialog by 
mistake, that resulted in uninstalling of the selected packages for 
updates, including cygwin (except for cygwin1.dll).


(2013/09/01 22:17), Helmut Billig wrote:

Hello,

I tried to update a well running cygwin installation from Cygwin 1.7.24
(64 bit release) to Cygwin 1.7.25 on W7. Setup (most recent version from
cygwin.com) didn't succeed because of incomplete download. I tried
severel different mirrors, everytime the same problem. Then I removed
the cygwin installation, i.e. deleted the folder, tried to install again
and got the same error. Disabeling all Virusscanner and Firewall
software didn't help.
Defenitely it is not a problem of lack of discspace or something like that.
A test with the 32 bit release (Cygwin 1.7.24) worked fine without any
issue.
On W8 i had exactely the same behaviour.

Regards
Helmut

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple




--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Problem installing Cygwin 1.7.25 64 bit on W7 and W8

2013-09-01 Thread Andrey Repin
Greetings, nu774!

 I tried to update a well running cygwin installation from Cygwin 1.7.24
 (64 bit release) to Cygwin 1.7.25 on W7. Setup (most recent version from
 cygwin.com) didn't succeed because of incomplete download. I tried
 severel different mirrors, everytime the same problem. Then I removed
 the cygwin installation, i.e. deleted the folder, tried to install again
 and got the same error. Disabeling all Virusscanner and Firewall
 software didn't help.
 Defenitely it is not a problem of lack of discspace or something like that.
 A test with the 32 bit release (Cygwin 1.7.24) worked fine without any
 issue.
 On W8 i had exactely the same behaviour.

 Same experience here.
 I once pushed continue on the incomplete download error dialog by 
 mistake, that resulted in uninstalling of the selected packages for 
 updates, including cygwin (except for cygwin1.dll).

Usually, it is a good idea to wait a day or so for new release to spread
across mirrors.
Also, please don't http://cygwin.com/acronyms/#TOFU


--
WBR,
Andrey Repin (anrdae...@yandex.ru) 01.09.2013, 20:45

Sorry for my terrible english...


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Problem installing Cygwin 1.7.25 64 bit on W7 and W8

2013-09-01 Thread Helmut Billig

Am 01.09.2013 18:47, schrieb Andrey Repin:

Greetings, nu774!


I tried to update a well running cygwin installation from Cygwin 1.7.24
(64 bit release) to Cygwin 1.7.25 on W7. Setup (most recent version from
cygwin.com) didn't succeed because of incomplete download. I tried
severel different mirrors, everytime the same problem. Then I removed
the cygwin installation, i.e. deleted the folder, tried to install again
and got the same error. Disabeling all Virusscanner and Firewall
software didn't help.
Defenitely it is not a problem of lack of discspace or something like that.
A test with the 32 bit release (Cygwin 1.7.24) worked fine without any
issue.
On W8 i had exactely the same behaviour.

Same experience here.
I once pushed continue on the incomplete download error dialog by
mistake, that resulted in uninstalling of the selected packages for
updates, including cygwin (except for cygwin1.dll).

Usually, it is a good idea to wait a day or so for new release to spread
across mirrors.
Also, please don't http://cygwin.com/acronyms/#TOFU


--
WBR,
Andrey Repin (anrdae...@yandex.ru) 01.09.2013, 20:45

Sorry for my terrible english...


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple


Hello,

some additional information on the install problem:
- the files were already on the mirros, I cold downlod them via browser. 
Install from local directory failed, error message told, that the the 
files are corrupted.
- Setup dosen't download ANY file. All the folders in the downlod 
directory are empty.

Regards
Helmut

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Problem installing Cygwin 1.7.25 64 bit on W7 and W8

2013-09-01 Thread Alexey Borzenkov
On Sun, Sep 1, 2013 at 5:38 PM, nu774 honeycom...@gmail.com wrote:
 Same experience here.
 I once pushed continue on the incomplete download error dialog by
 mistake, that resulted in uninstalling of the selected packages for updates,
 including cygwin (except for cygwin1.dll).

Did the same thing, in my case even cygwin1.dll is gone, previous
version doesn't install either. Looking into setup.ini from various
mirrors I can see that all files have size 0. This is also consistent
with setup.log which has an error like:

Download .../x86_64/release/cygwin/cygwin-1.7.25-1.tar.bz2 wrong size
(2708993 actual vs 0 expected)

Cygwin is currently unusable, so sad...

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Problem installing Cygwin 1.7.25 64 bit on W7 and W8

2013-09-01 Thread Robert Pendell
On Sun, Sep 1, 2013 at 1:56 PM, Alexey Borzenkov  wrote:
 On Sun, Sep 1, 2013 at 5:38 PM, nu774  wrote:
 Same experience here.
 I once pushed continue on the incomplete download error dialog by
 mistake, that resulted in uninstalling of the selected packages for updates,
 including cygwin (except for cygwin1.dll).

 Did the same thing, in my case even cygwin1.dll is gone, previous
 version doesn't install either. Looking into setup.ini from various
 mirrors I can see that all files have size 0. This is also consistent
 with setup.log which has an error like:

 Download .../x86_64/release/cygwin/cygwin-1.7.25-1.tar.bz2 wrong size
 (2708993 actual vs 0 expected)

 Cygwin is currently unusable, so sad...

Which mirror did you try?  Did you try another mirror?  I just checked
my private mirror and it shows fine.

Robert Pendell
A perfect world is one of chaos.

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Problem installing Cygwin 1.7.25 64 bit on W7 and W8

2013-09-01 Thread Alexey Borzenkov
On Sun, Sep 1, 2013 at 10:30 PM, Robert Pendell wrote:
 Which mirror did you try?  Did you try another mirror?  I just checked
 my private mirror and it shows fine.

I primarily use ftp.heanet.ie, but I tried mirrors.kernel.org and a
couple random mirrors, all of them show the same problem. For example
if you look at these directories:

http://mirrors.kernel.org/sourceware/cygwin/x86_64/
ftp://ftp.heanet.ie/pub/cygwin/x86_64/

Then you will see setup.ini having a modification time of 03:22 GMT,
which timestamp is this file on your private mirror?

Best regards,
Alexey.

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Problem installing Cygwin 1.7.25 64 bit on W7 and W8

2013-09-01 Thread Christopher Faylor
On Sun, Sep 01, 2013 at 03:17:21PM +0200, Helmut Billig wrote:
I tried to update a well running cygwin installation from Cygwin 1.7.24
(64 bit release) to Cygwin 1.7.25 on W7.  Setup (most recent version
from cygwin.com) didn't succeed because of incomplete download.

This should be fixed by a new setup.ini that is slowly making its
way to mirrors now.

cgf

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Problem installing Cygwin 1.7.25 64 bit on W7 and W8

2013-09-01 Thread Helmut Billig

Am 01.09.2013 21:47, schrieb Christopher Faylor:

On Sun, Sep 01, 2013 at 03:17:21PM +0200, Helmut Billig wrote:

I tried to update a well running cygwin installation from Cygwin 1.7.24
(64 bit release) to Cygwin 1.7.25 on W7.  Setup (most recent version

from cygwin.com) didn't succeed because of incomplete download.

This should be fixed by a new setup.ini that is slowly making its
way to mirrors now.

cgf

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple


Works perfectly well, thanks a lot!

Regards
Helmut

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



RE: Problem with Cygwin 1.7.17 + Bash and Grep...

2013-02-05 Thread Gates, Roger

I'm essentially trying to take the contents of one file, and use it as
input for a grep command against another file, but I do not get any
results, even though I know the 2nd file contains a match.  In the
one-liner below, I include an echo to confirm the output is in the
variable that should be used with the grep command.

[vmorales@D630-Vmorales ~]# for i in `cat file-a.txt`; do echo $i;
grep $i file-b.txt; done
alpha
beta
charlie
delta
echo

[vmorales@D630-Vmorales ~]# grep charlie file-b.txt
charlie,13

File-a.txt must be in DOS format. Try this. 

for i in `cat file-a.txt | d2u`; do echo $i;
grep $i file-b.txt; done
alpha
beta
charlie
charlie,13
delta
echo

Roger



--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Problem with Cygwin 1.7.17 + Bash and Grep...

2013-02-05 Thread Alan Thompson
Never heard of pspad, but I use Cygwin's dos2unix all the time for
this kind of thing.
Alan Thompson

On Tue, Feb 5, 2013 at 6:49 AM, Gates, Roger roger.ga...@goodrich.com wrote:


 I'm essentially trying to take the contents of one file, and use it as
 input for a grep command against another file, but I do not get any
 results, even though I know the 2nd file contains a match.  In the
 one-liner below, I include an echo to confirm the output is in the
 variable that should be used with the grep command.
 
 [vmorales@D630-Vmorales ~]# for i in `cat file-a.txt`; do echo $i;
 grep $i file-b.txt; done
 alpha
 beta
 charlie
 delta
 echo
 
 [vmorales@D630-Vmorales ~]# grep charlie file-b.txt
 charlie,13

 File-a.txt must be in DOS format. Try this.

 for i in `cat file-a.txt | d2u`; do echo $i;
 grep $i file-b.txt; done
 alpha
 beta
 charlie
 charlie,13
 delta
 echo

 Roger



 --
 Problem reports:   http://cygwin.com/problems.html
 FAQ:   http://cygwin.com/faq/
 Documentation: http://cygwin.com/docs.html
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



RE: Problem with Cygwin 1.7.17 + Bash and Grep...

2013-02-04 Thread Nellis, Kenneth
-Original Message-
From: Vladimir Morales 

Tried google and found similar, but not the exact issue I'm seeing.
I'm running Windows 7 and trying to run a simple bash one-liner using
grep:

[vmorales@D630-Vmorales ~]# uname -a
CYGWIN_NT-6.1-WOW64 D630-Vmorales 1.7.17(0.262/5/3) 2012-10-19 14:39 i686 Cygwin


I'm essentially trying to take the contents of one file, and use it as
input for a grep command against another file, but I do not get any
results, even though I know the 2nd file contains a match.  In the
one-liner below, I include an echo to confirm the output is in the
variable that should be used with the grep command.

[vmorales@D630-Vmorales ~]# for i in `cat file-a.txt`; do echo $i;
grep $i file-b.txt; done
alpha
beta
charlie
delta
echo

[vmorales@D630-Vmorales ~]# grep charlie file-b.txt
charlie,13


This is pretty straight-forward and can't think of what I may be
missing here.  Any suggestions would be appreciated.

Vlad
-End Original Message-

Maybe file-a.txt contains CRLF line endings?
--Ken Nellis

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Problem with Cygwin 1.7.17 + Bash and Grep...

2013-02-04 Thread Vladimir Morales
So silly.  Used pspad to reformat as UNIX(LF) and works as expected now.

Thanks Ken.

On Mon, Feb 4, 2013 at 4:06 PM, Nellis, Kenneth
kenneth.nel...@xerox.com wrote:
 -Original Message-
 From: Vladimir Morales

 Tried google and found similar, but not the exact issue I'm seeing.
 I'm running Windows 7 and trying to run a simple bash one-liner using
 grep:

 [vmorales@D630-Vmorales ~]# uname -a
 CYGWIN_NT-6.1-WOW64 D630-Vmorales 1.7.17(0.262/5/3) 2012-10-19 14:39 i686 
 Cygwin


 I'm essentially trying to take the contents of one file, and use it as
 input for a grep command against another file, but I do not get any
 results, even though I know the 2nd file contains a match.  In the
 one-liner below, I include an echo to confirm the output is in the
 variable that should be used with the grep command.

 [vmorales@D630-Vmorales ~]# for i in `cat file-a.txt`; do echo $i;
 grep $i file-b.txt; done
 alpha
 beta
 charlie
 delta
 echo

 [vmorales@D630-Vmorales ~]# grep charlie file-b.txt
 charlie,13


 This is pretty straight-forward and can't think of what I may be
 missing here.  Any suggestions would be appreciated.

 Vlad
 -End Original Message-

 Maybe file-a.txt contains CRLF line endings?
 --Ken Nellis

 --
 Problem reports:   http://cygwin.com/problems.html
 FAQ:   http://cygwin.com/faq/
 Documentation: http://cygwin.com/docs.html
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Problem building Cygwin from CVS

2012-12-17 Thread Corinna Vinschen
On Dec 15 15:20, Chris J. Breisch wrote:
 I'm having difficulty building the Cygwin tree. My cygcheck.out is
 attached.
 
 I have the Default Cygwin set up, with the following additions:
 gcc4, make, perl, cocom, bison, flex, vim, m4, and libiconv.
 
 I've checked the archives for similar issues and have found none.
 After my research, it appears that this is the correct mailing list
 for this issue, but if not, I apologize.
 
 The error is as follows:
 make[3]: Entering directory `/home/cbreisch/cygwin/build/tcl/win'
 gcc -c -g -O2 -Wall -Wconversion
 -I../../../src/tcl/win/../generic -I../../../src/tcl/win
 -mwin32 -DPACKAGE_NAME=\\ -DPACKAGE_TARNAME=\\
 -DPACKAGE_VERSION=\\ -DPACKAGE_STRING=\\
 -DPACKAGE_BUGREPORT=\\ -DHAVE_NO_SEH=1 -DSTDC_HEADERS=1
 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
 -DBUILD_tcl ../../../src/tcl/win/../generic/tclAlloc.c -o
 tclAlloc.o
 In file included from 
 /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/winsock2.h:56:0,
 from ../../../src/tcl/win/../generic/../win/tclWinPort.h:72,
 from ../../../src/tcl/win/../generic/tclPort.h:22,
 from ../../../src/tcl/win/../generic/tclAlloc.c:29:
 /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/psdk_inc/_fd_types.h:100:2:
 warning: #warning fd_set and associated macros have been defined
 in sys/types. This can cause runtime problems with W32 sockets
 In file included from
 ../../../src/tcl/win/../generic/../win/tclWinPort.h:72:0,
 from ../../../src/tcl/win/../generic/tclPort.h:22,
 from ../../../src/tcl/win/../generic/tclAlloc.c:29:
 /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/winsock2.h:986:34:
 error: conflicting types for ‘select’
 /usr/include/sys/select.h:31:5: note: previous declaration of
 ‘select’ was here
 Makefile:423: recipe for target `tclAlloc.o' failed
 
 The -mwin32 option causes tclWinPort.h and therefore winsock2.h to
 be included by virtue of the __WIN32__ define.
 
 Anyone have any suggestions?

Yes, don't try to build tcl/tk from the sourceware repo.  It's old, it's
unmaintained.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Problem building Cygwin from CVS

2012-12-17 Thread Chris J. Breisch

On 12/17/2012 4:53 AM, Corinna Vinschen wrote:


Yes, don't try to build tcl/tk from the sourceware repo.  It's old, it's
unmaintained.


Corinna

Ok, thanks. Are there any other parts of the CVS source tree that I 
should be wary of?


--

Chris J. Breischhttp://www.sports-gazer.com

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Problem installing cygwin/X on vista sp2 64bit

2009-11-03 Thread Linda Walsh

Massimo Giovannini wrote:

Hi,
I have always installed and used cygwinX on my windows Xp 
machines without any problem.
I have been trying to install on my new Vista 64 bit laptop 
and I cannot figure out what is going wrong. 

---

  W e l c o m e   t o   V i s t a !

:-)

I've been going through similar pains playing with a still not fully
functional Vista machine (still awaiting a Win7 upgrade as well).  


Even though you got the standalone X-server to work, FWIW, on
Vista, you could also be running into permission problems even as
Admin.  Many files and directories don't have write permission enabled
for Admin.  To enable them you have to 'get violent' with Vista  and
reclaim directories you want write access to by taking over their
ownership and then making it so you have r/w access.  If you do this,
take care to note the original owner and/or accesses to make sure that
any group/ID that had access before ('TrustedInstaller', 'SYSTEM') also
has the same (usually full control) access after you take ownership.

The prompt in your cygwin window being 'broken' is possibly a symptom
of that.  By default, I found that I couldn't add files to my root
directory (a good thing, actually, too many apps still try to install
stuff there, and a default no files prevents accidental clutter).

Just thought I'd add an addendum, though looks like Larry gave you
the exact solution you needed.

Linda

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



RE: Problem installing cygwin/X on vista sp2 64bit

2009-11-03 Thread Massimo Giovannini




So do you just need the X server?  Perhaps a pure Win32 one would be easier
for you.  See http://www.straightrunning.com/XmingNotes/.


Great!! This works perfect. Thank you so much!




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Problem installing cygwin/X on vista sp2 64bit

2009-11-03 Thread Larry Hall (Cygwin X)

On 11/02/2009 03:11 PM, Massimo Giovannini wrote:

Hi, I think I managed to obtain the cygcheck.out, which I attached after
having added C:\cygwing\bin to the path of windows.
Yes I am not an expert of unix and I am sorry, but I need this
application  to run Matlab on a cluster in interactive fashion.


So do you just need the X server?  Perhaps a pure Win32 one would be easier
for you.  See http://www.straightrunning.com/XmingNotes/.


Another question: normally when I launched cygwin on my old laptop,
there  was a prompt telling my working directory, now I just get bash-3.2, why is 

that?

Same reason as all the other problems.  Your postinstall scripts didn't run.

I don't see any clear indicaton why these would fail given your cygcheck output.
Are you sure that the Lenovo Client Security Solution isn't getting in your way
(i.e. http://cygwin.com/acronyms/#BLODA)?  That's all I can see/think of.
If that's not it, you may find that you can either:

  1. Just re-run 'setup.exe' again and it could fix what it tripped over 
the last time.

  2. Try 1.7 instead. http://cygwin.com/#beta-test

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



RE: Problem installing cygwin/X on vista sp2 64bit

2009-11-02 Thread Massimo Giovannini
Hi, I think I managed to obtain the cygcheck.out, which I attached after having 
added C:\cygwing\bin to the path of windows.
Yes I am not an expert of unix and I am sorry, but I need this application to 
run  Matlab on a cluster in interactive fashion.

Another question: normally when I launched cygwin on my old laptop, there was a 
prompt telling my working directory, now I just get bash-3.2, why is that?



Sent: Sunday, November 01, 2009 11:51 PM
To: cygwin-xfree@cygwin.com
Subject: Re: Problem installing cygwin/X on vista sp2 64bit


I'm getting the feeling that you're not used to Unix/Linux or command-line
oriented environments.  If that's the case, you may want to rethink about
using Cygwin or look up a tutorial or two on Unix/Linux to help you get
oriented.

The reason what you typed didn't work is because you are in a directory
which isn't in your path and you didn't say where to find 'cygcheck'.  You
need to do one of the following:

   1. Use the fully qualified path (i.e. c:\bin\cygcheck.exe)
   2. Use the relative path to specify the current directory (i.e. 
.\cygcheck.exe)
   3. Add c:\bin to your Windows path so you don't have to do either of 1 or 2.




cygcheck.out
Description: Binary data
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/

Re: Problem installing cygwin/X on vista sp2 64bit

2009-11-01 Thread Larry Hall (Cygwin X)

On 11/01/2009 01:41 PM, Massimo Giovannini wrote:

2009/11/01 12:38:38 running: C:\cygwin\bin\bash.exe -c
/etc/postinstall/terminfo0.sh
2009/11/01 12:40:16 abnormal exit: exit code=128


This is your problem.  The postinstall scripts are failing.  Are you installing
with administrator privileges?  If not, doing so may help.  Otherwise, you can
try running the command above from the command line and see if you get
more insight into why it failed.

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



RE: Problem installing cygwin/X on vista sp2 64bit

2009-11-01 Thread Massimo Giovannini
Yes I am using admin privileges.
I tried to use startrun C:\cygwin\bin\bash.exe -c/etc/postinstall/terminfo0.sh
But nothing happens (actually a black window opens for a second and then it 
closes)...
Any idea?
-Original Message-
From: cygwin-xfree-ow...@cygwin.com [mailto:cygwin-xfree-ow...@cygwin.com] On 
Behalf Of Larry Hall (Cygwin X)
Sent: Sunday, November 01, 2009 5:47 PM
To: cygwin-xfree@cygwin.com
Subject: Re: Problem installing cygwin/X on vista sp2 64bit

On 11/01/2009 01:41 PM, Massimo Giovannini wrote:
 2009/11/01 12:38:38 running: C:\cygwin\bin\bash.exe -c
 /etc/postinstall/terminfo0.sh
 2009/11/01 12:40:16 abnormal exit: exit code=128

This is your problem.  The postinstall scripts are failing.  Are you installing
with administrator privileges?  If not, doing so may help.  Otherwise, you can
try running the command above from the command line and see if you get
more insight into why it failed.

-- 
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
  Q: Are you sure?
  A: Because it reverses the logical flow of conversation.
  Q: Why is top posting annoying in email?

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Problem installing cygwin/X on vista sp2 64bit

2009-11-01 Thread Larry Hall (Cygwin X)

On 11/01/2009 06:18 PM, Massimo Giovannini wrote:

Yes I am using admin privileges.
I tried to use startrun C:\cygwin\bin\bash.exe -c/etc/postinstall/terminfo0.sh
But nothing happens (actually a black window opens for a second and then it 
closes)...
Any idea?


Open a console window (cmd.exe) and type the following:

C:\cygwin\bin\bash.exe -x -c /etc/postinstall/terminfo0.sh


--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



RE: Problem installing cygwin/X on vista sp2 64bit

2009-11-01 Thread Massimo Giovannini
Here is what I get...

C:\Users\MassimoC:\cygwin\bin\bash.exe -x -c /etc/postinstall/terminfo0.sh
+ /etc/postinstall/terminfo0.sh
/usr/bin/bash: /etc/postinstall/terminfo0.sh: No such file or directory

-Original Message-
From: cygwin-xfree-ow...@cygwin.com [mailto:cygwin-xfree-ow...@cygwin.com] On 
Behalf Of Larry Hall (Cygwin X)
Sent: Sunday, November 01, 2009 7:20 PM
To: cygwin-xfree@cygwin.com
Subject: Re: Problem installing cygwin/X on vista sp2 64bit

On 11/01/2009 06:18 PM, Massimo Giovannini wrote:
 Yes I am using admin privileges.
 I tried to use startrun C:\cygwin\bin\bash.exe 
 -c/etc/postinstall/terminfo0.sh
 But nothing happens (actually a black window opens for a second and then it 
 closes)...
 Any idea?

Open a console window (cmd.exe) and type the following:

C:\cygwin\bin\bash.exe -x -c /etc/postinstall/terminfo0.sh


-- 
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
  Q: Are you sure?
  A: Because it reverses the logical flow of conversation.
  Q: Why is top posting annoying in email?

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Problem installing cygwin/X on vista sp2 64bit

2009-11-01 Thread Larry Hall (Cygwin X)

http://cygwin.com/acronyms/#TOFU

On 11/01/2009 07:33 PM, Massimo Giovannini wrote:

-Original Message-
From: cygwin-xfree-owner [mailto:cygwin-xfree-owner...] On Behalf Of Larry 
Hall (Cygwin X)

 ^

Sent: Sunday, November 01, 2009 7:20 PM
To: cygwin-xfree...

  
http://cygwin.com/acronyms/#PCYMTNQREAIYR  Don't feed the spammers.  Thanks.


Subject: Re: Problem installing cygwin/X on vista sp2 64bit

On 11/01/2009 06:18 PM, Massimo Giovannini wrote:

Yes I am using admin privileges.
I tried to use startrun C:\cygwin\bin\bash.exe -c/etc/postinstall/terminfo0.sh
But nothing happens (actually a black window opens for a second and then it 
closes)...
Any idea?


Open a console window (cmd.exe) and type the following:

C:\cygwin\bin\bash.exe -x -c /etc/postinstall/terminfo0.sh

Here is what I get...

C:\Users\MassimoC:\cygwin\bin\bash.exe -x -c /etc/postinstall/terminfo0.sh
+ /etc/postinstall/terminfo0.sh
/usr/bin/bash: /etc/postinstall/terminfo0.sh: No such file or directory



My WAG is either more didn't install for some reason (such that you don't 
have this

file) or you are suffering from http://cygwin.com/acronyms/#BLODA or
http://cygwin.com/acronyms/#3PP.  Please *attach* your cygcheck output as
requested by http://cygwin.com/problems.html.

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



RE: Problem installing cygwin/X on vista sp2 64bit

2009-11-01 Thread Massimo Giovannini
Bash: cygcheck: command not found.

-Original Message-
From: cygwin-xfree-ow...@cygwin.com [mailto:cygwin-xfree-ow...@cygwin.com] On 
Behalf Of Larry Hall (Cygwin X)
Sent: Sunday, November 01, 2009 7:53 PM
To: cygwin-xfree@cygwin.com
Subject: Re: Problem installing cygwin/X on vista sp2 64bit

http://cygwin.com/acronyms/#TOFU

On 11/01/2009 07:33 PM, Massimo Giovannini wrote:
 -Original Message-
 From: cygwin-xfree-owner [mailto:cygwin-xfree-owner...] On Behalf Of 
 Larry Hall (Cygwin X)
  ^
 Sent: Sunday, November 01, 2009 7:20 PM
 To: cygwin-xfree...
   
http://cygwin.com/acronyms/#PCYMTNQREAIYR  Don't feed the spammers.  Thanks.

 Subject: Re: Problem installing cygwin/X on vista sp2 64bit

 On 11/01/2009 06:18 PM, Massimo Giovannini wrote:
 Yes I am using admin privileges.
 I tried to use startrun C:\cygwin\bin\bash.exe 
 -c/etc/postinstall/terminfo0.sh
 But nothing happens (actually a black window opens for a second and then it 
 closes)...
 Any idea?

 Open a console window (cmd.exe) and type the following:

 C:\cygwin\bin\bash.exe -x -c /etc/postinstall/terminfo0.sh

 Here is what I get...

 C:\Users\MassimoC:\cygwin\bin\bash.exe -x -c /etc/postinstall/terminfo0.sh
 + /etc/postinstall/terminfo0.sh
 /usr/bin/bash: /etc/postinstall/terminfo0.sh: No such file or directory


My WAG is either more didn't install for some reason (such that you don't 
have this
file) or you are suffering from http://cygwin.com/acronyms/#BLODA or
http://cygwin.com/acronyms/#3PP.  Please *attach* your cygcheck output as
requested by http://cygwin.com/problems.html.

-- 
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
  Q: Are you sure?
  A: Because it reverses the logical flow of conversation.
  Q: Why is top posting annoying in email?

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Problem installing cygwin/X on vista sp2 64bit

2009-11-01 Thread Larry Hall (Cygwin X)

Hm, let's see.  Last time, among other things, I pointed you at:

http://cygwin.com/acronyms/#TOFU
and
http://cygwin.com/acronyms/#PCYMTNQREAIYR

I suppose ignoring the first is only a minor politeness infraction but the 
latter is

rather rude.  Please be considerate in your posts.  Thanks.

On 11/01/2009 08:10 PM, Massimo Giovannini wrote:

Bash: cygcheck: command not found.


If you chose the default installation path for Cygwin, it's in C:\bin.

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



RE: Problem installing cygwin/X on vista sp2 64bit

2009-11-01 Thread Massimo Giovannini
Sorry,it is my first time on this website, and I did not understand those links 
were for me...I thought it was some sort of signature.
Everything seems complicated here and also the language seems very cryptic..

I went on the bin directory cd C:/cygwin/bin, I typed cygcheck -s -v -r and 
still it says command not found.
I manually went in the directory and the file seems to be there..

The funny thing is that also ls does not work..

(I deleted all the old messages...is it ok ? I don't understand what I should 
do with the TOFU problem..)






--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Problem installing cygwin/X on vista sp2 64bit

2009-11-01 Thread Larry Hall (Cygwin X)

On 11/01/2009 10:35 PM, Massimo Giovannini wrote:

Sorry,it is my first time on this website, and I did not understand
those  links were for me...I thought it was some sort of signature.
Everything seems complicated here and also the language seems very
cryptic..


Acronyms are certainly cryptic, until you understand them.  I do go out of
my way to actually provide the links to them when I use them, as you
noticed.


I went on the bin directory cd C:/cygwin/bin, I typed cygcheck -s -v -r
and still it says command not found.  I manually went in the directory and
the file seems to be there..


I'm getting the feeling that you're not used to Unix/Linux or command-line
oriented environments.  If that's the case, you may want to rethink about
using Cygwin or look up a tutorial or two on Unix/Linux to help you get
oriented.

The reason what you typed didn't work is because you are in a directory
which isn't in your path and you didn't say where to find 'cygcheck'.  You
need to do one of the following:

  1. Use the fully qualified path (i.e. c:\bin\cygcheck.exe)
  2. Use the relative path to specify the current directory (i.e. 
.\cygcheck.exe)

  3. Add c:\bin to your Windows path so you don't have to do either of 1 or 2.


The funny thing is that also ls does not work..


See above.  Same problem.


(I deleted all the old messages...is it ok ? I don't understand what I
should do with the TOFU problem..)


Deleting everything can be fine, if there's no critical context.

TOFU, in general, is meant to indicate that it's preferable to trim out 
anything

that isn't helpful context in your reply and to reply in-line and/or after any
context you keep.  In other words, what I'm doing. ;-)

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: problem setting cygwin $PATH

2009-05-25 Thread Dave Korn
Tom Roche wrote:

 not setting PATH in
 any of the usual places:
 
 $ fgrep -e 'PATH' .bash_profile .profile profile 

 Where else could these duplicate paths be set? 

  /etc/profile?

cheers,
  DaveK

--
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: problem under cygwin with sh, bash, ksh

2009-03-07 Thread Václav Haisman
Hubert Samm wrote, On 6.3.2009 14:26:
 Hi All...  I've searched and found nothing  this script runs just fine on 
 AIX, Solaris, and Linux, but under cygwin, the array VALUE prints only 
 blanks.. has anyone else run into this... I've tried a bunch of different 
 things around typecast, etc, but it looks like VALUE is local in the table_it 
 function...  any thoughts???
[...]
Have you tried debugging it using the -x switch to see what is going on?
Simple test case of setting VALUE[0]=$1 and then echoing ${VALUE[0]} does
print what I give it, using bash.

--
VH

--
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: problem under cygwin with sh, bash, ksh

2009-03-07 Thread Dirk Fassbender

Václav Haisman schrieb:

Hubert Samm wrote, On 6.3.2009 14:26:
Hi All...  I've searched and found nothing  this script runs just fine on 
AIX, Solaris, and Linux, but under cygwin, the array VALUE prints only 
blanks.. has anyone else run into this... I've tried a bunch of different 
things around typecast, etc, but it looks like VALUE is local in the table_it 
function...  any thoughts???

[...]

Have you tried debugging it using the -x switch to see what is going on?
Simple test case of setting VALUE[0]=$1 and then echoing ${VALUE[0]} does
print what I give it, using bash.

--
VH

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




This is a problem with portable script programming between different shells.
Some explanations:

Shell Versions used:
AIX uses as the default  sh  shell a  ksh Version 88.
HP-UX uses as the default  sh   shell a  ksh Version 88.
Solaris uses as the default  sh  shell a non posix compatible shell.
The ksh on Solaris is mostly a Version 88, opensolaris uses a ksh 
Version 93.

Linux uses as the default  sh  shell a bash.
Older Linux versions uses a  pdksh  as a replacement for the ksh shell.
Newer Linux versions uses a  kshVersion 93.
Cygwin uses as the default  sh  shell a bash
Cygwin uses the a  pdksh  as a replacement fir the ksh shell.

Setting variables and sub shells.
If you set a variable in a sub shell, this variable usable in the 
calling shell. You can execute commands in a sub shell with the 
following syntax  (list).


The different shell executed the commands in a pipe in a different 
manner. The shells uses internally sub shells to execute the different 
commands of a pipe line.



   command1  |  command2  |  command3
is executed in this order in the different shells.
bash   :   command1  | (command2) | (command3)
pdksh  :   command1  | (command2) | (command3)
ksh:  (command1) | (command2) |  command3

So only in a ksh it is possible to set a variable in the last command of 
a pipeline and uses this variable later in the shell script.


A short example script for bash, pdksh and ksh is attached.
It includes a in all 3 shell working solution at the end.

So the solution for your problem is to use a ksh  version 93 on cygwin 
or rewrite your code more portable.

You can download a version of ksh version 93 from http://www.kornshell.com/

Regards
Dirk




















#!/bin/ksh
#!/bin/bash
#!/bin/pdksh

TESTVAR=VALUE befor setting a differend value in a sub shell
echo OUTSIDE of sub shell. Value of \${TESTVAR} before setting a differend 
value in a sub shell: ${TESTVAR}
( 
  echo INSIDE of sub shell. Value of \${TESTVAR} before setting a differend 
value in a sub shell: ${TESTVAR}
  TESTVAR=NEW VALUE set inside a sub shell
  echo INSIDE of sub shell. Value of \${TESTVAR} after setting a differend 
value in a sub shell: ${TESTVAR}
)
echo OUTSIDE of sub shell. Value of \${TESTVAR} before setting a differend 
value in a sub shell: ${TESTVAR}

echo
echo

TESTVAR=Value before READ in PIPE
echo Value of \${TESTVAR} before READING in a pipe: ${TESTVAR}
echo New value to READ in PIPE | { read TESTVAR; echo This is the value of 
\${TESTVAR} during execution of the read part of the pipe : ${TESTVAR}; }
echo Value of \${TESTVAR} after READING in a pipe: ${TESTVAR}

echo
echo

TESTVAR=Value before portable while read loop
echo Value of \${TESTVAR} before READING portable in a while read loop: 
${TESTVAR}a
i=0
while read TESTVAR; do
echo Value of \${TESTVAR} after READING portable in a while read loop: 
${TESTVAR}
i=$(( i + 1 ))
READVALUE[${i}]=${TESTVAR}
done END
First line to read in the while read loop
Second line to read in the while read loop
END
echo Value of \${TESTVAR} after the end of the while read loop: ${TESTVAR}
echo Value of \${READVALUE[1]} after the end of the while read loop: 
${READVALUE[1]}
echo Value of \${READVALUE[2]} after the end of the while read loop: 
${READVALUE[2]}
--
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: Problem with cygwin-xfree mailimg list ?

2009-03-06 Thread Jon TURNEY

André Bleau wrote:

Something fishy seems to have happen to the cygwin-xfree mailimg list.
It usually receives 5 to 15 messages per day, with very few spam. For the last 
5 days
(March 01 - March 05), not a _single_ real message and 4 spams have got through. 
It looks like as if the spam filter had been turned around to allow only spam.
 
.. that or Yaakov and John have taken very deserved vacations after killing the very last 
of the X server bugs, and every user in the world is using X happily ever since!


It's quiet...too quiet...




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Problem with cygwin-xfree mailimg list ?

2009-03-06 Thread Yaakov (Cygwin/X)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Jon TURNEY wrote:
 André Bleau wrote:
 .. that or Yaakov and John have taken very deserved vacations after
 killing the very last of the X server bugs, and every user in the
 world is using X happily ever since!
 
 It's quiet...too quiet...

At least until the upcoming update, which will surely stir things up. :-)


Yaakov
Cygwin/X
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAkmxZh4ACgkQpiWmPGlmQSO/fQCgx/dm5OtVQMYUFh1/PjZgvMV8
nk0AoOyVkbmi3pJTy+8Z226P1wl1yGVV
=QvQw
-END PGP SIGNATURE-

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Problem with cygwin-xfree mailimg list ?

2009-03-06 Thread Christopher Faylor
On Fri, Mar 06, 2009 at 12:06:23PM -0600, Yaakov (Cygwin/X) wrote:
Jon TURNEY wrote:
 Andr? Bleau wrote:
 .. that or Yaakov and John have taken very deserved vacations after
 killing the very last of the X server bugs, and every user in the
 world is using X happily ever since!
 
 It's quiet...too quiet...

At least until the upcoming update, which will surely stir things up. :-)

Heh, heh, heh...

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Problem with cygwin-xfree mailimg list ?

2009-03-06 Thread jose isaias cabrera


Christopher Faylor wrote...


On Fri, Mar 06, 2009 at 12:06:23PM -0600, Yaakov (Cygwin/X) wrote:

Jon TURNEY wrote:

Andr? Bleau wrote:

.. that or Yaakov and John have taken very deserved vacations after
killing the very last of the X server bugs, and every user in the
world is using X happily ever since!


It's quiet...too quiet...


At least until the upcoming update, which will surely stir things up. :-)


Heh, heh, heh...


I hope the clipboard problem gets fixed...

josé 



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Problem with cygwin-xfree mailimg list ?

2009-03-06 Thread Christopher Faylor
On Fri, Mar 06, 2009 at 02:12:12PM -0500, jose isaias cabrera wrote:
Christopher Faylor wrote...
On Fri, Mar 06, 2009 at 12:06:23PM -0600, Yaakov (Cygwin/X) wrote:
Jon TURNEY wrote:
Andr?  Bleau wrote:
..  that or Yaakov and John have taken very deserved vacations after
killing the very last of the X server bugs, and every user in the world
is using X happily ever since!

It's quiet...too quiet...

At least until the upcoming update, which will surely stir things up.
:-)

Heh, heh, heh...

I hope the clipboard problem gets fixed...

I'm sure they will *claim* that it is fixed but that is just to mess with
your heads.

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: problem with cygwin and GLUT on Vista

2008-11-06 Thread Michael McGuffin


I ran cygcheck ./main.exe on my executable, and saw that it was trying 
to link with C:\Windows\system32\glut32.dll which I think I installed a 
while back from Nate Robins web site 
( http://www.xmission.com/~nate/glut.html 
http://www.xmission.com/%7Enate/glut.html ) and which has nothing to 
do with the glut that comes with cygwin.  So I temporarily renamed the 
glut32.dll under system32 to disable it, and ran cygcheck ./main.exe 
again, and found that now it was finding C:\cygwin\bin\glut32.dll .  Now 
my program works fine, and so do my other OpenGL+GLUT programs.  I don't 
recall this interference between glut dll files being a problem on MS 
Windows XP.  Anyway, thank you very, very much for the help!  It solved 
a problem I've had for a long time.





--
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: problem with cygwin and GLUT on Vista

2008-11-06 Thread Greg Chicares
On 2008-11-06 14:43Z, Michael McGuffin wrote:

[interference from non-Cygwin dll]

 So I temporarily renamed the 
 glut32.dll under system32 to disable it, and ran cygcheck ./main.exe 
 again, and found that now it was finding C:\cygwin\bin\glut32.dll .  Now 
 my program works fine, and so do my other OpenGL+GLUT programs.  I don't 
 recall this interference between glut dll files being a problem on MS 
 Windows XP.

Perhaps you had a different $PATH. If renaming the dll in the
system directory causes problems with non-Cygwin programs and
you need to undo that workaround, then try putting /cygwin/bin/
before the msw system directory in $PATH when you run the
Cygwin glut program.

--
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: problem with cygwin and GLUT on Vista

2008-11-05 Thread André Bleau

Hello Michael,

I managed to install Cygwin, its development packages and the opengl package 
on a computer running Vista Home Premium 64-bit edition with SP1 yesterday.
 
Everything runs fine: the GLUI examples, the helloGLUT test program, and your 
own 
main test program.
 
Possible causes for your problems:
 
1- BLODA. See http://cygwin.com/faq/faq.using.html#faq.using.bloda
2- Conflict between the opengl package and the libglut-devel package. If you 
have both,
try to uninstall the libglut-devel package with the setup program.
3- You have a conflicting copy of one of the dlls installed somewhere.
 
To help us help you further, you need to:
 
1- Go to the directory where your main.exe is.
2- Run: cygcheck ./main.exe
3- Send the output here. Also _attach_ the output of: cygcheck -s
 
Regards,
 
- André Bleau, Cygwin's volunteer OpenGL package maintainer.
 
Please direct any question or comment about the OpenGL package to cygwin at 
cygwin dot com

 
_


--
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: problem with cygwin and GLUT on Vista

2008-11-04 Thread André Bleau

Michael McGuffin  wrote:

 Hello,

Hello Michael,

 I'm using cygwin on Vista, 

Which version? 32-bit or 64-bit? with or without SP1?

 and have a problem running C++ code that contains calls to 
 GLUT routines. I've isolated the problem down to a very simple piece of code, 
 and have 
 searched the web without being able to find help.
 
 Note that I have packages opengl 1.1.0-8, freeglut 2.4.0-1, and gcc-g++ 
 3.4.4-3, 
 and uname -a outputs
 CYGWIN_NT-6.0 opticon-w 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin

The standard (and more complete) way to provide that information is to attach 
the output of 
cygcheck -s to your problem report.

Please note that there is currently a conflict between the opengl package and 
the libglut-devel
package. If you have both, you will have to uninstall one of them. See:
http://cygwin.com/ml/cygwin/2008-11/msg00033.html

 Here's the problem, as best as I can isolate it. If I create a file called 
 main.cpp containing 
 the following code:
 
 
 #include 
 #include 
 
 
 int main( int argc, char *argv[] ) {
   if ( argc 100 ) {
 // glutInit( argc, argv );
  glClear(GL_COLOR_BUFFER_BIT);
   }
   char str[100];
   printf(Enter a string:);
   scanf(%s,str);
 }
 and then I compile it with
 
 g++ -o main main.cpp -lm -lglut32 -lglu32 -lopengl32

This is just plain C, not C++. Can you rename it main.c and recompile with:

gcc -o main main.cpp -lglut32 -lglu32 -lopengl32

This would clear-up if it is an issue with the stdc++ library.

 and then run the code without any arguments, it runs fine (note that the call 
 to glClear() 
 never happens). However, if I uncomment the call to the glutInit() routine 
 and comment the
 glClear() call,
 
 
 #include 
 #include 
 
 
 int main( int argc, char *argv[] ) {
   if ( argc 100 ) {
  glutInit( argc, argv );
  // glClear(GL_COLOR_BUFFER_BIT);
   }
   char str[100];
   printf(Enter a string:);
   scanf(%s,str);
 }
 
 and compile the same way and run again without any arguments, Windows Vista 
 gives me an error message with the following details:
 
 
 Nom d'événement de problème:APPCRASH
 Nom de l'application:   main.exe
 Version de l'application:   0.0.0.0
 Horodatage de l'application:49103229
 Nom du module par défaut:   ntdll.dll
 Version du module par défaut:   6.0.6001.18000
 Version du module par défaut:   4791a7a6
 Code de l'exception:c022
 Décalage de l'exception:9cac
 Version du système: 6.0.6001.2.1.0.256.4
 Identificateur de paramètres régionaux: 3084
 etc.

Your example compiles and runs fine for me under XP SP3.

 
 Note, again, that the call to glutInit() never happens. I suspect that simply 
 linking with GLUT somehow causes a problem, perhaps in some initialization 
 of GLUT.
 

Then try one of the precompiled examples. What happens if you run
/usr/lib/glui-examples/example6 ?

 Note that I have tried running the main.exe as administrator (by right 
 clicking on 
 main.exe and choosing the run as administrator option from the right-click 
 menu), and I 
 get the same error message as when I try running main.exe from a cygwin shell 
 prompt.
 
 Any help would be appreciated, thanks.

I don't have a Vista machine with Cygwin installed right now. It might take a 
week before I 
get one. When I do, I will report back here.

Regards,

- André Bleau, Cygwin's volunteer OpenGL package maintainer.

Please direct any question or comment about the OpenGL package to cygwin at 
cygwin dot com




_


--
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: Problem using Cygwin with SubVersion

2008-10-08 Thread Dave Korn
Verkooijen,Joost J.W. wrote on 08 October 2008 08:52:

 Hello,
 
 I installed Cygwin on my PC and it works fine. After the installation I
 committed the files to my SVN repository. I downloaded the files at
 another PC and tried to run the following command 'gcc -o test.o test.c'.
 It returns the error:   
 
 /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/as.exe:
 /usr/li 
 b/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/as.exe: cannot
  execute binary file
 
 When I use the same command at my PC where I originally installed Cygwin
 there are no errors returned. 
 
 Both PCs run Windows XP SP3. Please can you help me? I don't know what
 the problem is. 


  Probably your .exes lost the -x permission bit.  You need to make sure they
get the svn:executable property when you commit them for preference, but you
can also go back and add it later.


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: Problem with Cygwin - command startx

2008-08-01 Thread Sylvain RICHARD

Carolina Biasetti Pompeu wrote:

winClipboardWindowProc - WM_DRAWCLIPBOARD - Nested calls detected.  Bailing.
winClipboardWindowProc - WM_DRAWCLIPBOARD - Nested calls detected.  Bailing.

Can you explain me the problem and what i can do to solve it?


Hi,

No solution, but just out of curiosity,

If you try simpler commands, does it work? I mean:
XWin (you should get an X icon in the system tray and an ugly gray 
background)

XWin -multiwindow (just the icon)
XWin -clipboard

Note that you can kill the X server with a right click on the X icon in 
the system tray or Ctrl+C


Also, attaching the results of cygcheck -s -v -r may help. See 
http://cygwin.com/problems.html#cygcheck


Best of luck,

   Sylvain


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Problem with Cygwin - command startx

2008-08-01 Thread Sylvain RICHARD

Carolina Biasetti Pompeu wrote:

winClipboardWindowProc - WM_DRAWCLIPBOARD - Nested calls detected.  Bailing.
winClipboardWindowProc - WM_DRAWCLIPBOARD - Nested calls detected.  Bailing.

Can you explain me the problem and what i can do to solve it?


Hi,

No solution, but just out of curiosity,

If you try simpler commands, does it work? I mean:
XWin (you should get an X icon in the system tray and an ugly gray
background)
XWin -multiwindow (just the icon)
XWin -clipboard

Note that you can kill the X server with a right click on the X icon in
the system tray or Ctrl+C

Also, attaching the results of cygcheck -s -v -r may help. See
http://cygwin.com/problems.html#cygcheck

Best of luck,

   Sylvain



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



RE: Problem with cygwin

2008-07-03 Thread Michel Bardiaux
 From: [EMAIL PROTECTED] [mailto:cygwin-xfree-
 [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
 Sent: Thursday, July 03, 2008 10:19
 To: cygwin-xfree@cygwin.com
 Subject: Problem with cygwin
 
 Please, I could help solve this problem?
 
 a fatal error has occurred and Cygwin/X will now exit.Please open
 /tmp/XWin.log for more information.
 

What is unclear in that message? Isn't it obvious that you should read
the effing log file, and post it? (Or at least post the relevant parts
if it is big)

---
Michel Bardiaux
http://www.mediaxim.com/


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Problem with Cygwin and ClearCase

2008-03-11 Thread Marc Girod
Robin Walker rdhw at cam.ac.uk writes:

 The PATH might be different?
 
 Environment variables different?

I just tried to reproduce, and at least I can start clearexplorer from
a cygwin bash shell without error.
I put my transcript in a pastebin, in order to avoid to have to split
the long lines to please gmane.
I have only v2003.06.00 of ClearCase.

http://pastebin.com/m3ef692eb

Marc


--
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: Problem with Cygwin and ClearCase

2008-03-10 Thread Christopher Faylor
On Mon, Mar 10, 2008 at 04:10:53PM -0400, David Arnstein wrote:
I just upgraded ClearCase to a new version and immediately I have
new problems relating to Cygwin. 
[snip]
I am writing to this mail list to inquire what is special about
processes started by a Cygwin bash process. Special, when compared to
launching from a DOS box or from a standard Windows shortcut. Thanks
for any suggestions.

We prefer the term gifted to special.

But, seriously, there is no simple answer to your question.  Cygwin
obviously manages to start all manner of normal Windows programs.  It
uses the standard Windows API to accomplish this so there is no way to
know why ClearCase would not be reacting well without quite a bit of
code investigation and, possibly, without help from ClearCase
themselves.

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: Problem with Cygwin and ClearCase

2008-03-10 Thread Robin Walker

--On 10 March 2008 16:10 -0400 David Arnstein wrote:


I am writing to this mail list to inquire what is special about
processes started by a Cygwin bash process. Special, when compared to
launching from a DOS box or from a standard Windows shortcut.


The PATH might be different?

Environment variables different?

--
Robin Walker (Junior Bursar), Queens' College, Cambridge CB3 9ET, UK
[EMAIL PROTECTED]  http://www.queens.cam.ac.uk/  Tel:+44 1223 335528

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



[EMAIL PROTECTED]: Re: Problem with Cygwin and ClearCase]

2008-03-10 Thread David Arnstein
- Forwarded message from Robin Walker [EMAIL PROTECTED] -

The PATH might be different?

Environment variables different?

- End forwarded message -

I reduced the PATH environment variable greatly within
my bash shell script, and now I am back in business!

Thank you for your excellent suggestion.

--
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: [EMAIL PROTECTED]: Re: Problem with Cygwin and ClearCase]

2008-03-10 Thread Charles Wilson

David Arnstein wrote:

I reduced the PATH environment variable greatly within
my bash shell script, and now I am back in business!

Thank you for your excellent suggestion.



On a side note, I've noticed that (a) ClearCase inserts itself into the 
front of the path, (b) ClearCase provides a hostname program that is a 
GUI application, anc (c) configure scripts get REALLY confused when 
'hostname' forks off a GUI programs and returns an empty string.


--
Chuck

--
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: problem uninstalling cygwin snapshot 20070813 running in Win XP SP2

2008-01-27 Thread Bayu Adiwibowo
Reini Urban wrote:
 2008/1/26, Bayu Adiwibowo [EMAIL PROTECTED]:
   
 Dear Sir/Madame,

 Recently I have problem uninstalling cygwin snapshot 20070813 in Windows
 XP SP2, i already search in cygwin mailing list and  google for
 cyglsa.dll problem but didn't get anything that looked promising.

 I already follow uninstalling procedure from Cygwin FAQ but  the error
 happen permission denied can't delete cyglsa.dll.  When I look at cygwin
 snapshot packet, i find that cyglsa-config script making entry in
 /HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/Lsa/Authentication
 Packages, but no argument to uninstall
 

  dont delete, otherwise you will not be able to login!
  restore it to the default value:
  REG_MULTI_SZ msv1_0

   
 It's clear that Windows using cyglsa.dll, so I think deleting this
 registry entry maybe solve the problem. I run regedt32 with admin
 account (runas /user:computername\admin regedt32) back-up my registry in
 case something wrong, deleting this entry keys, restarting computer and
 delete cygwin along with  cyglsa.dll. But the problem come when i
 restarting windows it's acts strange i can't drag-drop icon in desktop,
 can't restoring file from recycle bin, can't paste file. When i try to
 look at system services almost all crucial services stopped (windows
 can't load services).

 Would someone provide a pointer or what is in my uninstalling prosedure
 missing ?




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


 
Thx for the solution, its work nice
btw IMHO its make cygwin uninstallation to hard when cygwin make to much change 
to this level (registry) maybe good idea to make more clean and easy 
uninstallation procedure


--
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: problem uninstalling cygwin snapshot 20070813 running in Win XP SP2

2008-01-26 Thread Reini Urban
2008/1/26, Bayu Adiwibowo [EMAIL PROTECTED]:
 Dear Sir/Madame,

 Recently I have problem uninstalling cygwin snapshot 20070813 in Windows
 XP SP2, i already search in cygwin mailing list and  google for
 cyglsa.dll problem but didn't get anything that looked promising.

 I already follow uninstalling procedure from Cygwin FAQ but  the error
 happen permission denied can't delete cyglsa.dll.  When I look at cygwin
 snapshot packet, i find that cyglsa-config script making entry in
 /HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/Lsa/Authentication
 Packages, but no argument to uninstall

dont delete, otherwise you will not be able to login!
restore it to the default value:
REG_MULTI_SZ msv1_0

 It's clear that Windows using cyglsa.dll, so I think deleting this
 registry entry maybe solve the problem. I run regedt32 with admin
 account (runas /user:computername\admin regedt32) back-up my registry in
 case something wrong, deleting this entry keys, restarting computer and
 delete cygwin along with  cyglsa.dll. But the problem come when i
 restarting windows it's acts strange i can't drag-drop icon in desktop,
 can't restoring file from recycle bin, can't paste file. When i try to
 look at system services almost all crucial services stopped (windows
 can't load services).

 Would someone provide a pointer or what is in my uninstalling prosedure
 missing ?




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




-- 
Reini Urban
http://phpwiki.org/  http://murbreak.at/
http://spacemovie.mur.at/   http://helsinki.at/

--
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: Problem suspending Cygwin-based GDB from Eclipse/CDT (and some findings)

2007-12-03 Thread Corinna Vinschen
On Dec  3 16:04, Stefan Bylund wrote:
 I looked at the cygwin change list from 1.5.19-4 to 1.5.20-1 
 (http://cygwin.com/ml/cygwin-announce/2006-07/msg0.html) and noticed 
 the following signal-related changes:

 * cgf: When sending signals, assume that any code which is not directly
 associated with a DLL or an executable is user code.

 * cgf: Pass cygwin signals to gdb. Fix the dreaded SIGSEGV found in some
 pthread functions.

 * corinna: Implement sigignore and sigset.

 * cgf: Make SA_RESTART sigaction flag work more like linux.

 It seems that one or more of the changes listed above (or some other 
 change(s) described in 
 http://cygwin.com/ml/cygwin-announce/2006-07/msg0.html) is the cause of 
 this problem. It is a bit ironic that one of the changes mentions passing 
 cygwin signals to gdb since it is exactly this functionality that is now 
 broken but, from our experience, worked in 1.5.19-4.

 I'm cross posting this mail to the CDT mailing list as well, since there 
 may be other Eclipse/CDT users interested in this issue.

 Is there anything I can do to help in finding out why versions starting 

The best help would be a really simple testcase, written in plain C,
using the minimum amount of code to reproduce the problem.  This would
allow to track it down without having to play time machine.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
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: Problem suspending Cygwin-based GDB from Eclipse/CDT (and some findings)

2007-12-03 Thread Stefan Bylund

Hi again,

I got a response on my cross-post to the CDT mailing list from Doug 
Schaefer, the CDT lead, where he said that the SIGINT handling in Cygwin 
changed sometime last year and that there are newer builds of CDT 3.2.1 
that has adapted to the new of handling SIGINTs in Cygwin. I tried it 
and it works :)


So, I guess we can close this issue.

Best Regards,
Stefan Bylund


Stefan Bylund wrote:


Hi,

We have a source code debug solution based on Eclipse / CDT / GDB / 
GCC / Cygwin DLL. We are using Eclipse 3.2.2 / CDT 3.1.2 / GDB 6.3 / 
GCC 3.4.4 / Cygwin DLL 1.5.19-4 (cygwin1.dll).


Until now, we have only supported Windows XP but recently we were 
forced to upgrade to a newer version of the cygwin1.dll (1.5.24-2) 
since we had to support Windows Vista, and Cygwin-based GCCs didn't 
work correctly with cygwin1.dll 1.5.19-4 on Windows Vista due to heap 
errors in cygwin1.dll. However, GDB works fine with cygwin1.dll 
1.5.19-4 on Windows Vista.


Unfortunately, I just discovered that suspending GDB from Eclipse/CDT 
no longer works. So I tried all versions of the cygwin1.dll from 
1.5.19-4 to the forthcoming 1.5.25-3 and found that starting from 
version 1.5.20-1, the signal handling in cygwin1.dll seems to have 
changed in such a way that suspending GDB from Eclipse/CDT no longer 
works. Note that versions before 1.5.19-4 of the cygwin1.dll also 
works correct with respect to suspending GDB from Eclipse/CDT.


By searching the cygwin mailing list, it seems that it is a general 
problem when trying to programatically send a SIGINT from one process 
to another process.


I looked at the cygwin change list from 1.5.19-4 to 1.5.20-1 
(http://cygwin.com/ml/cygwin-announce/2006-07/msg0.html) and 
noticed the following signal-related changes:


* cgf: When sending signals, assume that any code which is not directly
associated with a DLL or an executable is user code.

* cgf: Pass cygwin signals to gdb. Fix the dreaded SIGSEGV found in some
pthread functions.

* corinna: Implement sigignore and sigset.

* cgf: Make SA_RESTART sigaction flag work more like linux.

It seems that one or more of the changes listed above (or some other 
change(s) described in 
http://cygwin.com/ml/cygwin-announce/2006-07/msg0.html) is the 
cause of this problem. It is a bit ironic that one of the changes 
mentions passing cygwin signals to gdb since it is exactly this 
functionality that is now broken but, from our experience, worked in 
1.5.19-4.


I'm cross posting this mail to the CDT mailing list as well, since 
there may be other Eclipse/CDT users interested in this issue.


Is there anything I can do to help in finding out why versions 
starting from 1.5.20-1 of the cygwin1.dll no longer supports 
programatically sending a SIGINT from one process to another? If 
nothing else, I can at least help out with testing.



Best Regards,
Stefan Bylund





--
-
Stefan Bylund
Senior Software Engineer
Enea
Skalholtsgatan 9,
Box 1033, SE-164 21 Kista, Sweden
Direct: +46 8 50 71 43 25
Mobile: +46 709 71 43 25
[EMAIL PROTECTED]
www.enea.com
-
Enea - Embedded for Leaders
-


--
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: Problem with Cygwin Include Files

2007-10-23 Thread Corinna Vinschen
On Oct 22 17:59, Larry Adams wrote:
 Hello,

 The problem is that /usr/include/cygwin/icmp.h is blank and needs to be 
 non-blank.

 /usr/include/netinet/ip_icmp.h looks as follows:

 /* netinet/ip_icmp.h

   Copyright 1998, 2001 Red Hat, Inc.

 This file is part of Cygwin.

 This software is a copyrighted work licensed under the terms of the
 Cygwin license.  Please consult the file CYGWIN_LICENSE for
 details. */

 #ifndef _NETINET_IP_ICMP_H
 #define _NETINET_IP_ICMP_H

 #include cygwin/icmp.h

 #endif /* _NETINET_IP_ICMP_H */

 However, it should include quite a bit more than that...

It doesn't contain anything for a couple of reasons.

- For ICMP you need raw sockets, but raw sockets were never really
  supported in Cygwin.
- Windows disallows non-admin users to use them which makes them
  somewhat less useful.
- There are not a lot of complaints about this fact so I assume
  not many people really need it.
  
And last but not least

- Nobody contributed any code so far.

  http://cygwin.com/acronyms/#SHTDI
  http://cygwin.com/acronyms/#PTC
  http://cygwin.com/contrib.html


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
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: Problem with Cygwin Include Files

2007-10-23 Thread DePriest, Jason R.
On 10/23/07, Corinna Vinschen  wrote:
 On Oct 22 17:59, Larry Adams wrote:
  Hello,
 
  The problem is that /usr/include/cygwin/icmp.h is blank and needs to be
  non-blank.
 

- - - - words . . . - - - -


 It doesn't contain anything for a couple of reasons.

 - For ICMP you need raw sockets, but raw sockets were never really
   supported in Cygwin.
 - Windows disallows non-admin users to use them which makes them
   somewhat less useful.
 - There are not a lot of complaints about this fact so I assume
   not many people really need it.

 And last but not least

 - Nobody contributed any code so far.

   http://cygwin.com/acronyms/#SHTDI
   http://cygwin.com/acronyms/#PTC
   http://cygwin.com/contrib.html


 Corinna

 --
 Corinna Vinschen  Please, send mails regarding Cygwin to
 Cygwin Project Co-Leader  cygwin AT cygwin DOT com
 Red Hat

The perl Net::Ping module had a similar problem (see
http://www.perlmonks.org/index.pl?node_id=42739 for details).

These suggestions were implemented by the creation of the
Win32::PingICMP module which taps icmp.dll to circumvent the you must
be admin limitation.

I have neither the ability nor the desire to look in to recreating in
cygwin what icmp.dll and Win32::PingICMP do for Windows and perl.

I'm just letting other folks know that it is probably possible and
perhaps not that painful.

-Jason

--
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: Problem with Cygwin installation for domain user

2007-06-28 Thread Larry Hall (Cygwin)

aviad rozenhek wrote:

Hi,
I've been using cygwin for several years, and I absolutely love it. thanks!
I have installed cygwin on XP machine at work, and ran into
setup/configuration problem, Basically its the  Your group name is
currently mkpasswd issue.

I tried the following things:


mkpasswd -l  /etc/passwd
mkgroup  -l   /etc/group


doen't change anything, I still get the message, so I tried

$ mkpasswd.exe -l -d  /etc/passwd


this failed with mkpasswd (264): [5] Access is denied. (see attached
1.txt and 1.strace.txt)

so I also tried

$ mkpasswd.exe -l -c  /etc/passwd
$ mkgroup.exe -l -c  /etc/group


but that doesn't work becaue on next login I get:

Your group name is currently mkgroup_l_d. This indicates that not
all domain users and groups are listed in the /etc/passwd and
/etc/group files.
See the man pages for mkpasswd and mkgroup then, for example, run
mkpasswd -l -d  /etc/passwd
mkgroup  -l -d  /etc/group

This message is only displayed once (unless you recreate /etc/group)
and can be safely ignored.

and my home directory is set to /cygdrive/h (?)

I would appreciate any help,
especially soothing would be to find that my home directory is at
c:\cygwin\homes\aviad

the same as it would have been had I been a local rather than a domain user



Your home directory is coming from the Windows domain information.  You can
change it to be whatever you want either by specifying the 'p' flag to
'mkpasswd' or by editing the '/etc/passwd' file afterwards.

As for the problem with the groups, it sounds like a problem with your
PDC.  Is it up/accessible?

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?

--
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: Problem compiling cygwin-1.5.24-2

2007-06-05 Thread Olivier Langlois
Hi,

I kinda isolated the weird file access problem. The corruption seems to come
from the setup.exe program as if I download manually
cygwin-1.5.24-2-src.tar.bz2, unzip and untar it manually, the permissions
for all files are ok.

Greetings,
Olivier Langlois
http://www.streamtheworld.com



--
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: Problem compiling cygwin-1.5.24-2

2007-06-05 Thread Lewis Hyatt

Olivier Langlois wrote:

Hi,

I kinda isolated the weird file access problem. The corruption seems to come
from the setup.exe program as if I download manually
cygwin-1.5.24-2-src.tar.bz2, unzip and untar it manually, the permissions
for all files are ok.

Greetings,
Olivier Langlois
http://www.streamtheworld.com





Corruption isn't quite accurate. When you download source files, 
setup.exe puts them in /usr/src, which is a managed mount, to insure 
that Windows-incompatible file names can still be preserved. If you copy 
files from /usr/src outside of cygwin, then the filenames will become 
mangled. If you use cygwin's cp to copy them, then there should be no 
problems unless some of the filenames are not legal Windows filenames. 
That's probably what was happening here.


-Lewis


--
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: Problem running Cygwin Apache2 as Windows XP service

2007-05-07 Thread William Sutton

  - vhost in /srv
  - mounting cgi-bin off a Samba export from a Linux box
 
   Do you have CYGWIN=smbntsec?
 

I don't believe so:

  $ env |grep CYGWIN
  CYGWIN=server

Would it be beneficial for me to do so?

cygrunsrv -I apache -d CYGWIN apache -p /usr/sbin/apachectl2 -a start
(user set as the local 'William Sutton' user)
 
   Maybe the -i flag would help it behave more like it does from the
 commandline.

-i on what?  I don't see that option from either cygrunsrv --help or man 
apachectl2.

 
 
 cheers,
   DaveK
 

--
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: Problem running Cygwin Apache2 as Windows XP service

2007-05-05 Thread Dave Korn
On 04 May 2007 20:39, William Sutton wrote:

 I cannot get Apache 2 under Windows XP Professional to run as a service
 using cygrunsrv.  In the present configuration, when I attempt to run a
 simple environment variables cgi script, the error log tells me:
 
 [Fri May 04 14:01:16 2007] [error] [client XXX.XXX.XXX.XXX] Symbolic link
 not allowed or link target not accessible: /srv/www/cgi-bin
 
 I'm thinking that the presense of symlinked directories shouldn't matter
 since the configuration works just fine when apachectl is manually run via
 an xterm. 
 
 I've tried this using the SYSTEM user, my user, real directories, etc., with
 no luck.  From the command line, it works like a champ.  Run as a service,
 it fails.
 
 Any thoughts on what to do (details follow)?


 - vhost in /srv
 - mounting cgi-bin off a Samba export from a Linux box

  Do you have CYGWIN=smbntsec?

   cygrunsrv -I apache -d CYGWIN apache -p /usr/sbin/apachectl2 -a start
   (user set as the local 'William Sutton' user)

  Maybe the -i flag would help it behave more like it does from the
commandline.


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: problem installing cygwin+sshd

2007-02-21 Thread Michael

Chuck:
[snip]

If all you want is an ssh server running under cygwin check out CopSSH.
It might be easier to get running.


great - worked right away, once I uninstalled everything from my
pervios cygwin-installation! Thanks for that hint (although I'm a
little bit sad, that I was not able to install cygwin-ssh correctly).

only thing I was not able to do is, let an initial script run, when
someone connects with scp to my CopSSH-server (.profile is being
executed when connecting with ssh, but scp?).

thanks for all your support
michael

--
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: problem installing cygwin+sshd

2007-02-21 Thread Christopher Faylor
On Wed, Feb 21, 2007 at 09:20:01PM +0100, Michael wrote:
Chuck:
[snip]
If all you want is an ssh server running under cygwin check out CopSSH.
It might be easier to get running.

great - worked right away, once I uninstalled everything from my
pervios cygwin-installation! Thanks for that hint (although I'm a
little bit sad, that I was not able to install cygwin-ssh correctly).

only thing I was not able to do is, let an initial script run, when
someone connects with scp to my CopSSH-server (.profile is being
executed when connecting with ssh, but scp?).

thanks for all your support

Just in case it isn't clear, if you need further support with CopSSH
you should use the resources at their website rather than asking
questions here.

--
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: problem installing cygwin+sshd

2007-02-20 Thread Chuck
Michael wrote:
 Hello,
 
 I'm trying to install cygwin+sshd on a WinXPPro-machine, but get an
 error, when starting the service.
 It would be great, if someone is able to help me find a hint for a
 solution for this problem!
 
 Here a summary what I did:
 - logged in with domain-user with local admin privileges
 - installed cygwin
 - - to c:\cygwin
 - - for all users
 - - with packages openssh v4.5p1-1, tcp_wrappers v7.6-1
 - added env-var CYGWIN and added cygwin-dir to PATH
 - started cygwin and ssh-host-config
 - - privilege separation - yes
 - - create local user sshd - yes
 - - install sshd as a service - yes
 - net start sshd
 =
 
 --cut--
 $ net start sshd
 The CYGWIN sshd service is starting.
 The CYGWIN sshd service could not be started.
 
 The service did not report an error.
 
 More help is available by typing NET HELPMSG 3534.
 --cut--
 
 - cygrunsrv --start sshd
 =
 
 --cut--
 $ cygrunsrv --start sshd
 cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
 The service has not been started.
 --cut--
 
 
 other infos:
 ###
 eventvwr:
 --cut--
 Die Beschreibung der Ereigniskennung ( 0 ) in ( sshd ) wurde nicht
 gefunden. Der lokale Computer verfügt nicht über die zum Anzeigen der
 Meldungen von einem Remotecomputer erforderlichen
 Registrierungsinformationen oder DLL-Meldungsdateien. Möglicherweise
 müssen Sie das Flag /AUXSOURCE= zum Ermitteln der Beschreibung
 verwenden. Weitere Informationen stehen in Hilfe und Support.
 Ereignisinformationen: sshd: PID 3940: `sshd' service stopped, exit
 status: 255.
 --cut--
 ###
 no /var/log/ssh* files (???)
 ###
 file-permissions in /etc:
 ls -l /etc/ssh*
 -rwxr-x--- 1 SYSTEM mkgroup-l-d 1418 Feb 15 03:02 ssh_config
 -rw--- 1 SYSTEM mkgroup-l-d  672 Feb 15 03:02 ssh_host_dsa_key
 -rw-r--r-- 1 SYSTEM mkgroup-l-d  611 Feb 15 03:02 ssh_host_dsa_key.pub
 -rw--- 1 SYSTEM mkgroup-l-d  984 Feb 15 03:02 ssh_host_key
 -rw-r--r-- 1 SYSTEM mkgroup-l-d  648 Feb 15 03:02 ssh_host_key.pub
 -rw--- 1 SYSTEM mkgroup-l-d 1675 Feb 15 03:02 ssh_host_rsa_key
 -rw-r--r-- 1 SYSTEM mkgroup-l-d  403 Feb 15 03:02 ssh_host_rsa_key.pub
 -rw-r--r-- 1 SYSTEM mkgroup-l-d 3039 Feb 15 03:02 sshd_config
 ###
 I also changed the dir-permissions of c:\cygwin, c:\cygwin\var and
 c:\cygwin\var\log for user SYSTEM manually
 ###
 
 what else can I check???
 
 any ideas?
 
 thank you very much for any help!
 br
 mik
 

If all you want is an ssh server running under cygwin check out CopSSH.
It might be easier to get running.


--
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: problem installing cygwin+sshd

2007-02-18 Thread Michael

 ok - here listed what I did (sorry for the long listing):
 ---cut---
 01. $ cygrunsrv -R sshd
 02. remove registry-keys: HK(CU|LM)-SOFTWARE-Cygnus Solutions
 03. remove windows/user sshd
 04. rename c:\cygwin to c:\cygwin_1
 05. run http://www.cygwin.com/setup.exe from user ladmin member of
 group local admins
 - install from internet
 - install for all users
 - added packages: openssh, tcp_wrappers
 06. $ mkpasswd -cl  /etc/passwd
 07. $ mkgroup -l  /etc/group
 08. $ ssh-host-config
 - privilege separation - yes
 - install sshd as service - yes
 - CYGWIN=ntsec tty

Don't add tty, use only ntsec.


ok, I changed my Windows-env-variable CYGWIN to ntsec and
$ cygrunsrv  -R sshd
$ ssh-host-config
- always - yes
- CYGWIN=ntsec


Everything else looks fine...

[snip]
 19. $ /usr/sbin/sshd -D
 20. $ ssh localhost date # (from 2nd cygwin-window)
 [EMAIL PROTECTED]'s password:
 Sun Feb 18 21:52:18 WEST 2007
 ---cut---

What happened?  Did you login or not?  It looks like you did.


yes, I was able to login successfully and executed the date-command
remotely.

so what is wrong with my installation (fyi - I did the same steps 2
days ago on a similar machine - same error ...)

michael

--
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: problem installing cygwin+sshd

2007-02-18 Thread Larry Hall (Cygwin)

Michael wrote:

 ok - here listed what I did (sorry for the long listing):
 ---cut---
 01. $ cygrunsrv -R sshd
 02. remove registry-keys: HK(CU|LM)-SOFTWARE-Cygnus Solutions
 03. remove windows/user sshd
 04. rename c:\cygwin to c:\cygwin_1
 05. run http://www.cygwin.com/setup.exe from user ladmin member of
 group local admins
 - install from internet
 - install for all users
 - added packages: openssh, tcp_wrappers
 06. $ mkpasswd -cl  /etc/passwd
 07. $ mkgroup -l  /etc/group
 08. $ ssh-host-config
 - privilege separation - yes
 - install sshd as service - yes
 - CYGWIN=ntsec tty

Don't add tty, use only ntsec.


ok, I changed my Windows-env-variable CYGWIN to ntsec and
$ cygrunsrv  -R sshd
$ ssh-host-config
- always - yes
- CYGWIN=ntsec


Everything else looks fine...

[snip]
 19. $ /usr/sbin/sshd -D
 20. $ ssh localhost date # (from 2nd cygwin-window)
 [EMAIL PROTECTED]'s password:
 Sun Feb 18 21:52:18 WEST 2007
 ---cut---

What happened?  Did you login or not?  It looks like you did.


yes, I was able to login successfully and executed the date-command
remotely.

so what is wrong with my installation (fyi - I did the same steps 2
days ago on a similar machine - same error ...)



Hm.  What exactly is the point to showing us a sequence of steps that
results in a working install on one machine rather than the details of
the failure of these steps on another?  Perhaps the point of this merry
chase has been lost on me through this protracted thread.  Anyway, if
you're suggesting that the above steps do not provide a running 'sshd'
on some other system, please try running it _on that system_ as debug.
That should tell you what 'sshd' has a problem with.  If there's no
issue there, check the Windows event log.  If you can't interpret the
feedback you're getting from this sleuthing, please send information
about your process, errors, configuration, setup, etc., to this list
and hopefully someone will be able to spot the issue.



--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?

--
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: problem installing cygwin+sshd

2007-02-18 Thread René Berber
Larry Hall (Cygwin) wrote:
[snip]
 Hm.  What exactly is the point to showing us a sequence of steps that
 results in a working install on one machine rather than the details of
 the failure of these steps on another?

It did not result in a working install, that is his point.  It works when sshd
is started manually but not as a service.
-- 
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/



Re: problem installing cygwin+sshd

2007-02-18 Thread Larry Hall (Cygwin)

René Berber wrote:

Larry Hall (Cygwin) wrote:
[snip]

Hm.  What exactly is the point to showing us a sequence of steps that
results in a working install on one machine rather than the details of
the failure of these steps on another?


It did not result in a working install, that is his point.  It works when sshd
is started manually but not as a service.


Has Michael tried running a debug version with a SYSTEM-owned shell to see
why running as SYSTEM is unhappy?  My WAG is that he still has a file out
there that doesn't have the proper permissions for SYSTEM.  It would be
helpful to address this issue directly.

For ways to open a SYSTEM-owned shell, see the email archives.

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?

--
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: problem installing cygwin+sshd

2007-02-18 Thread René Berber
Larry Hall (Cygwin) wrote:

 René Berber wrote:
 Larry Hall (Cygwin) wrote:
 [snip]
 Hm.  What exactly is the point to showing us a sequence of steps that
 results in a working install on one machine rather than the details of
 the failure of these steps on another?

 It did not result in a working install, that is his point.  It works
 when sshd
 is started manually but not as a service.
 
 Has Michael tried running a debug version with a SYSTEM-owned shell to see
 why running as SYSTEM is unhappy?

No.

 My WAG is that he still has a file out
 there that doesn't have the proper permissions for SYSTEM.  It would be
 helpful to address this issue directly.

That was the point of testing with a complete re-install... which had the same
result.

 For ways to open a SYSTEM-owned shell, see the email archives.

Hint: A Windows shortcut with the following properties

C:\cygwin\bin\bash.exe -c at $(date +%H):$(($(date +%M) + 1)) /interactive
'c:\cygwin\bin\bash.exe' --login -i; secs=$((60 - $(date +%S))); while [ $secs
-ne 0 ]; do echo -ne 'Please wait '$secs' seconds for the shell \r'; sleep 1;
secs=$(($secs - 1)); done

and don't forget to return /var/empty to its original state before doing any
more testing.
-- 
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/



Re: problem installing cygwin+sshd

2007-02-18 Thread Thorsten Kampe
Thorsten
 Michael
  [cannot start sshd as a service]
  any ideas - what did I do wrong?

 Check the permissions from /var/log - sshd /has/ to log there. As a last
 chance I would try to run sshd manually: sshd -D -ddd

--cut--
$ /usr/sbin/sshd -D -ddd
debug2: load_server_config: filename /etc/sshd_config
debug2: load_server_config: done config len = 196
debug2: parse_server_config: config /etc/sshd_config len 196
debug3: /etc/sshd_config:13 setting Port 22
debug3: /etc/sshd_config:38 setting StrictModes no
debug3: /etc/sshd_config:92 setting UsePrivilegeSeparation yes
debug3: /etc/sshd_config:106 setting Subsystem sftp /usr/sbin/sftp-
server
debug1: sshd version OpenSSH_4.5p1
debug1: private host key: #0 type 0 RSA1
debug3: Not a RSA1 key file /etc/ssh_host_rsa_key.
debug1: read PEM private key done: type RSA
debug1: private host key: #1 type 1 RSA
debug3: Not a RSA1 key file /etc/ssh_host_dsa_key.
debug1: read PEM private key done: type DSA
debug1: private host key: #2 type 2 DSA
/var/empty must be owned by root and not group or world-writable.
--cut--
$ ssh localhost
ssh: connect to host localhost port 22: Connection refused
--cut--

 and strace  /usr/sbin/sshd -D

see attached file.

where do I have to look at in the trace-file?

thanks and best regards
michael


--
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: problem installing cygwin+sshd

2007-02-18 Thread Thorsten Kampe
Please refrain from sending me private mail...

 Thorsten
  Michael
   [cannot start sshd as a service]
   any ideas - what did I do wrong?
 
  Check the permissions from /var/log - sshd /has/ to log there. As a last
  chance I would try to run sshd manually: sshd -D -ddd
 
 --cut--
 $ /usr/sbin/sshd -D -ddd
 debug2: load_server_config: filename /etc/sshd_config
 debug2: load_server_config: done config len = 196
 debug2: parse_server_config: config /etc/sshd_config len 196
 debug3: /etc/sshd_config:13 setting Port 22
 debug3: /etc/sshd_config:38 setting StrictModes no
 debug3: /etc/sshd_config:92 setting UsePrivilegeSeparation yes
 debug3: /etc/sshd_config:106 setting Subsystem sftp /usr/sbin/sftp-
 server
 debug1: sshd version OpenSSH_4.5p1
 debug1: private host key: #0 type 0 RSA1
 debug3: Not a RSA1 key file /etc/ssh_host_rsa_key.
 debug1: read PEM private key done: type RSA
 debug1: private host key: #1 type 1 RSA
 debug3: Not a RSA1 key file /etc/ssh_host_dsa_key.
 debug1: read PEM private key done: type DSA
 debug1: private host key: #2 type 2 DSA
 /var/empty must be owned by root and not group or world-writable.
 --cut--
 $ ssh localhost
 ssh: connect to host localhost port 22: Connection refused
 --cut--
 
  and strace  /usr/sbin/sshd -D
 
 see attached file.
 
 where do I have to look at in the trace-file?

Nowhere. /var/empty must be owned by root and not group or world-
writable - that's pretty clear, isn't it?!

T.


--
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: problem installing cygwin+sshd

2007-02-18 Thread Michael

Thorston:

Please refrain from sending me private mail...

Sorry, I didn't want to offend you! - when answering, I deleted the
To: value by mistake and reenterd obviously the wrong address ...


 Thorsten
  Michael
   [cannot start sshd as a service]
   any ideas - what did I do wrong?
 
  Check the permissions from /var/log - sshd /has/ to log there. As a last
  chance I would try to run sshd manually: sshd -D -ddd

 --cut--
 $ /usr/sbin/sshd -D -ddd
 debug2: load_server_config: filename /etc/sshd_config
 debug2: load_server_config: done config len = 196
 debug2: parse_server_config: config /etc/sshd_config len 196
 debug3: /etc/sshd_config:13 setting Port 22
 debug3: /etc/sshd_config:38 setting StrictModes no
 debug3: /etc/sshd_config:92 setting UsePrivilegeSeparation yes
 debug3: /etc/sshd_config:106 setting Subsystem sftp /usr/sbin/sftp-
 server
 debug1: sshd version OpenSSH_4.5p1
 debug1: private host key: #0 type 0 RSA1
 debug3: Not a RSA1 key file /etc/ssh_host_rsa_key.
 debug1: read PEM private key done: type RSA
 debug1: private host key: #1 type 1 RSA
 debug3: Not a RSA1 key file /etc/ssh_host_dsa_key.
 debug1: read PEM private key done: type DSA
 debug1: private host key: #2 type 2 DSA
 /var/empty must be owned by root and not group or world-writable.
 --cut--
 $ ssh localhost
 ssh: connect to host localhost port 22: Connection refused
 --cut--

  and strace  /usr/sbin/sshd -D

 see attached file.

 where do I have to look at in the trace-file?

Nowhere. /var/empty must be owned by root and not group or world-
writable - that's pretty clear, isn't it?!


I've already recognized this message, but as I wanted to chown to
root, I was told that there's no root-user in the system...

Now I chowned to myself:root and now it works - sshd is up for one
connection (ssh localhost) and ends when closing the connection.

Afterwards I chowned /var/empty/ to SYSTEM:root and again tried to
start sshd as a service, but same error-message as before - did I
come closer to the solution, now I know, that sshd works from
commandline?

thanks for your assistance
michael

--
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: problem installing cygwin+sshd

2007-02-18 Thread Thorsten Kampe
* Michael (Sun, 18 Feb 2007 17:49:38 +0100)
 Thorston:
  Please refrain from sending me private mail...
 Sorry, I didn't want to offend you! - when answering, I deleted the
 To: value by mistake and reenterd obviously the wrong address ...

You didn't offend me - you just sent your email to an unappropriate 
address...

   /var/empty must be owned by root and not group or world-writable.
   --cut--
   $ ssh localhost
   ssh: connect to host localhost port 22: Connection refused
   --cut--
  
and strace  /usr/sbin/sshd -D
  
   see attached file.
  
   where do I have to look at in the trace-file?
 
  Nowhere. /var/empty must be owned by root and not group or world-
  writable - that's pretty clear, isn't it?!
 
 I've already recognized this message, but as I wanted to chown to
 root, I was told that there's no root-user in the system...
 
 Now I chowned to myself:root and now it works - sshd is up for one
 connection (ssh localhost) and ends when closing the connection.
 
 Afterwards I chowned /var/empty/ to SYSTEM:root and again tried to
 start sshd as a service, but same error-message as before - did I
 come closer to the solution, now I know, that sshd works from
 commandline?

It says and not group or world-writable - that's pretty clear, isn't 
it?!


--
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: problem installing cygwin+sshd

2007-02-18 Thread Michael

Thorsten:

   /var/empty must be owned by root and not group or world-writable.
   --cut--
   $ ssh localhost
   ssh: connect to host localhost port 22: Connection refused
   --cut--
  
and strace  /usr/sbin/sshd -D
  
   see attached file.
  
   where do I have to look at in the trace-file?
 
  Nowhere. /var/empty must be owned by root and not group or world-
  writable - that's pretty clear, isn't it?!

 I've already recognized this message, but as I wanted to chown to
 root, I was told that there's no root-user in the system...

 Now I chowned to myself:root and now it works - sshd is up for one
 connection (ssh localhost) and ends when closing the connection.

 Afterwards I chowned /var/empty/ to SYSTEM:root and again tried to
 start sshd as a service, but same error-message as before - did I
 come closer to the solution, now I know, that sshd works from
 commandline?

It says and not group or world-writable - that's pretty clear, isn't
it?!


I didn't mention, that I checked this too (that was the easier part,
compared to user root ;-)).

$ ls -ld /var/empty/
drwx--x--x+ 2 SYSTEM root 0 Feb 15 03:02 /var/empty/

thanks
michael

--
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: problem installing cygwin+sshd

2007-02-18 Thread Daniel P. Kionka

Michael wrote:
...

 $ /usr/sbin/sshd -D -ddd

...

 /var/empty must be owned by root and not group or world-writable.

...

Nowhere. /var/empty must be owned by root and not group or world-
writable - that's pretty clear, isn't it?!


I've already recognized this message, but as I wanted to chown to
root, I was told that there's no root-user in the system...

Now I chowned to myself:root and now it works - sshd is up for one
connection (ssh localhost) and ends when closing the connection.

Afterwards I chowned /var/empty/ to SYSTEM:root and again tried to
start sshd as a service, but same error-message as before - did I
come closer to the solution, now I know, that sshd works from
commandline?


These sound like the same steps I have gone through.  sshd asks for 
root, but it is actually SYSTEM.  This is what I ended up with on 2 
different working systems:


drwxr-xr-x+ 2 SYSTEM Administrators 0 Sep  5 15:53 /var/empty
dr-xr-xr-x+ 2 SYSTEM root 0 Jan 10 12:57 /var/empty

But these did not work for me either when I tried running it from the 
command line (instead of a service).  It had to be owned by the current 
user.  I renamed it and did a mkdir so I could continue debugging. 
Later I put the system one back after renaming the command line version 
in case I have to debug it again later, and now have:


drwxr-xr-x+  2 SYSTEM   root  0 Jan 11 18:06 empty
drwxr-xr-x+  2 VPSAdmin Users 0 Jan 12 09:54 empty.cmdline

The ownership/permissions were the problem on another system I debugged, 
but this box ended up having a totally different problem.  It had a 
program running with so many connections that Window's netstat program 
would not work anymore.  We rebooted and then sshd worked, as well as 
netstat.  The moral of the story is that if netstat isn't working, don't 
bother trying to run sshd.




--
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: problem installing cygwin+sshd

2007-02-18 Thread Thorsten Kampe
* Michael (Sun, 18 Feb 2007 18:56:03 +0100)
 Thorsten:
 /var/empty must be owned by root and not group or world-writable.
 --cut--
 $ ssh localhost
 ssh: connect to host localhost port 22: Connection refused
 --cut--

  and strace  /usr/sbin/sshd -D

 see attached file.

 where do I have to look at in the trace-file?
   
Nowhere. /var/empty must be owned by root and not group or world-
writable - that's pretty clear, isn't it?!
  
   I've already recognized this message, but as I wanted to chown to
   root, I was told that there's no root-user in the system...
  
   Now I chowned to myself:root and now it works - sshd is up for one
   connection (ssh localhost) and ends when closing the connection.
  
   Afterwards I chowned /var/empty/ to SYSTEM:root and again tried to
   start sshd as a service, but same error-message as before - did I
   come closer to the solution, now I know, that sshd works from
   commandline?
 
  It says and not group or world-writable - that's pretty clear, isn't
  it?!
 
 I didn't mention, that I checked this too (that was the easier part,
 compared to user root ;-)).
 
 $ ls -ld /var/empty/
 drwx--x--x+ 2 SYSTEM root 0 Feb 15 03:02 /var/empty/

Try to get rid of the ACEs that cause the + sign at the end of the ls 
listing. The plus sign probably means permissions that do not
comply directly with the rwx(user,group,world) schema, but I'm far from 
sure about that.

Thorsten


--
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: problem installing cygwin+sshd

2007-02-18 Thread Michael

...
  $ /usr/sbin/sshd -D -ddd
...
  /var/empty must be owned by root and not group or world-writable.
...

 I've already recognized this message, but as I wanted to chown to
 root, I was told that there's no root-user in the system...

 Now I chowned to myself:root and now it works - sshd is up for one
 connection (ssh localhost) and ends when closing the connection.

 Afterwards I chowned /var/empty/ to SYSTEM:root and again tried to
 start sshd as a service, but same error-message as before - did I
 come closer to the solution, now I know, that sshd works from
 commandline?

These sound like the same steps I have gone through.  sshd asks for
root, but it is actually SYSTEM.  This is what I ended up with on 2
different working systems:

drwxr-xr-x+ 2 SYSTEM Administrators 0 Sep  5 15:53 /var/empty
dr-xr-xr-x+ 2 SYSTEM root 0 Jan 10 12:57 /var/empty


ok - this prcondition should be clear now =
chown SYSTEM:root /var/empty
chmod 755 /var/empty


But these did not work for me either when I tried running it from the
command line (instead of a service).  It had to be owned by the current
user. [...]


ok - same I found out for running sshd from commandline.


The ownership/permissions were the problem on another system I debugged,
but this box ended up having a totally different problem.  It had a
program running with so many connections that Window's netstat program
would not work anymore.  We rebooted and then sshd worked, as well as
netstat.  The moral of the story is that if netstat isn't working, don't
bother trying to run sshd.


unfortunately netstat *does* work on that machine (there are only 5
connections to only 2 different nodes open!) ...

michi

--
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: problem installing cygwin+sshd

2007-02-18 Thread Thorsten Kampe
* Michael (Sun, 18 Feb 2007 18:56:03 +0100)
Nowhere. /var/empty must be owned by root and not group or world-
writable - that's pretty clear, isn't it?!
  
   I've already recognized this message, but as I wanted to chown to
   root, I was told that there's no root-user in the system...
  
   Now I chowned to myself:root and now it works - sshd is up for one
   connection (ssh localhost) and ends when closing the connection.
  
   Afterwards I chowned /var/empty/ to SYSTEM:root and again tried to
   start sshd as a service, but same error-message as before - did I
   come closer to the solution, now I know, that sshd works from
   commandline?
 
  It says and not group or world-writable - that's pretty clear, isn't
  it?!
 
 I didn't mention, that I checked this too (that was the easier part,
 compared to user root ;-)).
 
 $ ls -ld /var/empty/
 drwx--x--x+ 2 SYSTEM root 0 Feb 15 03:02 /var/empty/

...and the root group looks suspicious, too. Get rid of that..

Thorsten


--
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: problem installing cygwin+sshd

2007-02-18 Thread Michael

Nowhere. /var/empty must be owned by root and not group or world-
writable - that's pretty clear, isn't it?!
  
   I've already recognized this message, but as I wanted to chown to
   root, I was told that there's no root-user in the system...
  
   Now I chowned to myself:root and now it works - sshd is up for one
   connection (ssh localhost) and ends when closing the connection.
  
   Afterwards I chowned /var/empty/ to SYSTEM:root and again tried to
   start sshd as a service, but same error-message as before - did I
   come closer to the solution, now I know, that sshd works from
   commandline?
 
  It says and not group or world-writable - that's pretty clear, isn't
  it?!
 
 I didn't mention, that I checked this too (that was the easier part,
 compared to user root ;-)).

 $ ls -ld /var/empty/
 drwx--x--x+ 2 SYSTEM root 0 Feb 15 03:02 /var/empty/

...and the root group looks suspicious, too. Get rid of that..



$ mkgroup -l  /etc/group
$ ls -dl /var/empty
drwxr-xr-x+ 2 SYSTEM Administrators 0 Feb 18 20:06 /var/empty
= done :-)


Try to get rid of the ACEs that cause the + sign at the end of the ls

listing.[...]

but I don't know how to get rid of the +. What is this + (???)
called, so I can search for it and find out what to do?

thanks
michi

--
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: problem installing cygwin+sshd

2007-02-18 Thread Thorsten Kampe
* Michael (Sun, 18 Feb 2007 20:19:06 +0100)
 $ ls -dl /var/empty
 drwxr-xr-x+ 2 SYSTEM Administrators 0 Feb 18 20:06 /var/empty
 = done :-)
 
  Try to get rid of the ACEs that cause the + sign at the end of the ls
 listing.[...]
 
 but I don't know how to get rid of the +. What is this + (???)
 called, so I can search for it and find out what to do?

I already wrote that: permissions that do not comply directly with the 
rwx(user,group,world) schema. Open the ACL editor in Windows and remove 
all the settings that do not comply...

Thorsten


--
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: problem installing cygwin+sshd

2007-02-18 Thread René Berber
Michael wrote:
[snip]
 Try to get rid of the ACEs that cause the + sign at the end of the ls
 listing.[...]
 
 but I don't know how to get rid of the +. What is this + (???)
 called, so I can search for it and find out what to do?

It's not important, here's how my /var/empty looks (with sshd working fine):

$ ll /var
...
drwxr-xr-x+  2 SYSTEM  None   0 May 20  2004 empty/

It should be clear by now that you messed something pretty bad, and we haven't
found what it was from your reports, why don't you start all over again...
rename your Cygwin directory and install it again, just run the sshd config
script and don't touch anything else.
-- 
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/



Re: problem installing cygwin+sshd

2007-02-18 Thread Larry Hall (Cygwin)

On 02/18/2007, Michael wrote:


 Try to get rid of the ACEs that cause the + sign at the end of the ls
listing.[...]

but I don't know how to get rid of the +. What is this + (???)
called, so I can search for it and find out what to do? 


Use 'getfacl' and 'setfacl'.  This will manipulate the ACL that is indicated
by the '+' at the end of the permission string displayed by 'ls'.

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?

--
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: problem installing cygwin+sshd

2007-02-18 Thread Michael Manzenreither

Michael wrote:
[snip]
 Try to get rid of the ACEs that cause the + sign at the end of the ls
 listing.[...]

 but I don't know how to get rid of the +. What is this + (???)
 called, so I can search for it and find out what to do?

It's not important, here's how my /var/empty looks (with sshd working fine):

$ ll /var
...
drwxr-xr-x+  2 SYSTEM  None   0 May 20  2004 empty/

It should be clear by now that you messed something pretty bad, and we haven't
found what it was from your reports, why don't you start all over again...
rename your Cygwin directory and install it again, just run the sshd config
script and don't touch anything else.


ok - here listed what I did (sorry for the long listing):
---cut---
01. $ cygrunsrv -R sshd
02. remove registry-keys: HK(CU|LM)-SOFTWARE-Cygnus Solutions
03. remove windows/user sshd
04. rename c:\cygwin to c:\cygwin_1
05. run http://www.cygwin.com/setup.exe from user ladmin member of
group local admins
- install from internet
- install for all users
- added packages: openssh, tcp_wrappers
06. $ mkpasswd -cl  /etc/passwd
07. $ mkgroup -l  /etc/group
08. $ ssh-host-config
- privilege separation - yes
- install sshd as service - yes
- CYGWIN=ntsec tty
09. $ net start sshd
The CYGWIN sshd service is starting.
The CYGWIN sshd service could not be started.

The service did not report an error.

More help is available by typing NET HELPMSG 3534.
10. $ cygrunsrv -S sshd
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
The service has not been started.
11. $ ls -l /etc/ssh*
-rwxr-x--- 1 SYSTEM Users 1418 Feb 18 21:08 /etc/ssh_config
-rw--- 1 SYSTEM Users  668 Feb 18 21:08 /etc/ssh_host_dsa_key
-rw-r--r-- 1 SYSTEM Users  611 Feb 18 21:08 /etc/ssh_host_dsa_key.pub
-rw--- 1 SYSTEM Users  984 Feb 18 21:08 /etc/ssh_host_key
-rw-r--r-- 1 SYSTEM Users  648 Feb 18 21:08 /etc/ssh_host_key.pub
-rw--- 1 SYSTEM Users 1675 Feb 18 21:08 /etc/ssh_host_rsa_key
-rw-r--r-- 1 SYSTEM Users  403 Feb 18 21:08 /etc/ssh_host_rsa_key.pub
-rw-r--r-- 1 SYSTEM Users 3039 Feb 18 21:08 /etc/sshd_config
12. $ cygcheck -f /usr/bin/cygz.dll /usr/bin/cygcrypt-0.dll
/usr/bin/cygcrypto-0.9.8.dll
crypt-1.1-1
openssl-0.9.8d-1
zlib-1.2.3-2
13. $ cygrunsrv -V -Q sshd
Service : sshd
Display name: CYGWIN sshd
Current State   : Stopped
Command : /usr/sbin/sshd -D
stdin path  : /dev/null
stdout path : /var/log/sshd.log
stderr path : /var/log/sshd.log
Environment : CYGWIN=ntsec tty
Process Type: Own Process
Startup : Automatic
Dependencies: tcpip
Account : LocalSystem
14. $ ls -l /var
total 0
drwxrwx---+ 3 ladmin Users  0 Feb 18 21:38 cache
drwxr-xr-x+ 2 SYSTEM Administrators 0 Feb 18 21:40 empty
drwxrwx---+ 3 ladmin Users  0 Feb 18 21:38 lib
drwxrwx---+ 2 ladmin Users  0 Feb 18 21:40 log
drwxrwx---+ 2 ladmin Users  0 Feb 18 21:38 run
drwxrwx---+ 2 ladmin Users  0 Feb 18 21:38 tmp
15. $ mv /var/empty/ /var/empty_ori
16. $ mkdir /var/empty
17. $ chmod 755 /var/empty
18. $ ls -ld /var/empty
drwxr-xr-x+ 2 ladmin Users 0 Feb 18 21:50 /var/empty
19. $ /usr/sbin/sshd -D
20. $ ssh localhost date # (from 2nd cygwin-window)
[EMAIL PROTECTED]'s password:
Sun Feb 18 21:52:18 WEST 2007
---cut---

did I do anything wrong?
can I give you some more information?

thanks for yor assistance!!!
michi

--
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: problem installing cygwin+sshd

2007-02-18 Thread Michael

Michael wrote:
[snip]
 Try to get rid of the ACEs that cause the + sign at the end of the ls
 listing.[...]

 but I don't know how to get rid of the +. What is this + (???)
 called, so I can search for it and find out what to do?

It's not important, here's how my /var/empty looks (with sshd working fine):

$ ll /var
...
drwxr-xr-x+  2 SYSTEM  None   0 May 20  2004 empty/

It should be clear by now that you messed something pretty bad, and we haven't
found what it was from your reports, why don't you start all over again...
rename your Cygwin directory and install it again, just run the sshd config
script and don't touch anything else.


ok - here listed what I did (sorry for the long listing):
---cut---
01. $ cygrunsrv -R sshd
02. remove registry-keys: HK(CU|LM)-SOFTWARE-Cygnus Solutions
03. remove windows/user sshd
04. rename c:\cygwin to c:\cygwin_1
05. run http://www.cygwin.com/setup.exe from user ladmin member of
group local admins
- install from internet
- install for all users
- added packages: openssh, tcp_wrappers
06. $ mkpasswd -cl  /etc/passwd
07. $ mkgroup -l  /etc/group
08. $ ssh-host-config
- privilege separation - yes
- install sshd as service - yes
- CYGWIN=ntsec tty
09. $ net start sshd
The CYGWIN sshd service is starting.
The CYGWIN sshd service could not be started.

The service did not report an error.

More help is available by typing NET HELPMSG 3534.
10. $ cygrunsrv -S sshd
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
The service has not been started.
11. $ ls -l /etc/ssh*
-rwxr-x--- 1 SYSTEM Users 1418 Feb 18 21:08 /etc/ssh_config
-rw--- 1 SYSTEM Users  668 Feb 18 21:08 /etc/ssh_host_dsa_key
-rw-r--r-- 1 SYSTEM Users  611 Feb 18 21:08 /etc/ssh_host_dsa_key.pub
-rw--- 1 SYSTEM Users  984 Feb 18 21:08 /etc/ssh_host_key
-rw-r--r-- 1 SYSTEM Users  648 Feb 18 21:08 /etc/ssh_host_key.pub
-rw--- 1 SYSTEM Users 1675 Feb 18 21:08 /etc/ssh_host_rsa_key
-rw-r--r-- 1 SYSTEM Users  403 Feb 18 21:08 /etc/ssh_host_rsa_key.pub
-rw-r--r-- 1 SYSTEM Users 3039 Feb 18 21:08 /etc/sshd_config
12. $ cygcheck -f /usr/bin/cygz.dll /usr/bin/cygcrypt-0.dll
/usr/bin/cygcrypto-0.9.8.dll
crypt-1.1-1
openssl-0.9.8d-1
zlib-1.2.3-2
13. $ cygrunsrv -V -Q sshd
Service : sshd
Display name: CYGWIN sshd
Current State   : Stopped
Command : /usr/sbin/sshd -D
stdin path  : /dev/null
stdout path : /var/log/sshd.log
stderr path : /var/log/sshd.log
Environment : CYGWIN=ntsec tty
Process Type: Own Process
Startup : Automatic
Dependencies: tcpip
Account : LocalSystem
14. $ ls -l /var
total 0
drwxrwx---+ 3 ladmin Users  0 Feb 18 21:38 cache
drwxr-xr-x+ 2 SYSTEM Administrators 0 Feb 18 21:40 empty
drwxrwx---+ 3 ladmin Users  0 Feb 18 21:38 lib
drwxrwx---+ 2 ladmin Users  0 Feb 18 21:40 log
drwxrwx---+ 2 ladmin Users  0 Feb 18 21:38 run
drwxrwx---+ 2 ladmin Users  0 Feb 18 21:38 tmp
15. $ mv /var/empty/ /var/empty_ori
16. $ mkdir /var/empty
17. $ chmod 755 /var/empty
18. $ ls -ld /var/empty
drwxr-xr-x+ 2 ladmin Users 0 Feb 18 21:50 /var/empty
19. $ /usr/sbin/sshd -D
20. $ ssh localhost date # (from 2nd cygwin-window)
[EMAIL PROTECTED]'s password:
Sun Feb 18 21:52:18 WEST 2007
---cut---

did I do anything wrong?
can I give you some more information?

thanks for yor assistance!!!
michi

--
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: problem installing cygwin+sshd

2007-02-18 Thread René Berber
Michael Manzenreither wrote:

 ok - here listed what I did (sorry for the long listing):
 ---cut---
 01. $ cygrunsrv -R sshd
 02. remove registry-keys: HK(CU|LM)-SOFTWARE-Cygnus Solutions
 03. remove windows/user sshd
 04. rename c:\cygwin to c:\cygwin_1
 05. run http://www.cygwin.com/setup.exe from user ladmin member of
 group local admins
 - install from internet
 - install for all users
 - added packages: openssh, tcp_wrappers
 06. $ mkpasswd -cl  /etc/passwd
 07. $ mkgroup -l  /etc/group
 08. $ ssh-host-config
 - privilege separation - yes
 - install sshd as service - yes
 - CYGWIN=ntsec tty

Don't add tty, use only ntsec.

Everything else looks fine...

[snip]
 19. $ /usr/sbin/sshd -D
 20. $ ssh localhost date # (from 2nd cygwin-window)
 [EMAIL PROTECTED]'s password:
 Sun Feb 18 21:52:18 WEST 2007
 ---cut---

What happened?  Did you login or not?  It looks like you did.
-- 
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/



  1   2   >