Re: pdksh having problems starting native gvim on Vista x64

2008-01-30 Thread Chris J
Igor Peshansky wrote:
 
 Can you please post the output of ls -l /cygdrive/c/vim/vim71/gvim.exe,
 ls -ld /cygdrive/c/vim/vim71, and ls -ld /cygdrive/c/vim?  Also of
 cygcheck /cygdrive/c/vim/vim71/gvim.exe?


$ pwd
/cygdrive/c/Vim
$ ls -l vim71/gvim.exe
--+ 1 chris None 3048448 Jun 22  2007 vim71/gvim.exe
$ ls -la
total 36
drwx--+  4 Administrators None 0 Dec  2 23:07 .
d-+ 20     20480 Jan 30 02:31 ..
-rwx--+  1 Administrators None   901 Oct 19 19:22 _vimrc
d-+ 17 chris  None  8192 Dec  2 23:06 vim71
drwx--+ 11 Administrators None  4096 Oct 19 19:22 vimfiles
$ chmod a+x vim71
chmod: changing permissions of `vim71': Permission denied
$ cygcheck vim71/gvim.exe
vim71/gvim.exe
$

Now I've checked via Windows Explorer the owner of the vim71 directory and
it is defined as myself, but I can't work out why I'm getting a permission
denied error.

I have done some poking though. First I tried setting the owner (via
windows explorer) to chris through the Vim directory, but that revoked all
permissions from all files folders and I got continual permission denied
errors on chmod. There's an strace of the chmod output at [1] if it's of
any use.

So I've gone in the other direction and set the owner to Administrators
throughout the C:\Vim tree, and now every folder and every file has perms
of 700 which were automagically assigned on change of ownership. Thus I can
now execute Vim from ksh. I still get permission denied errors on chmod
(even though chris is a member of Administrators), but now it's not an
(immediate) concern.

Although I've resolved the problem, I'd be interested to know what could be
causing this, although a quick google suggests it could be down to Vista's
UAC [2]. Has there been any more work done in this area, or is the
workaround suggested there still the only one (short of actually disabling
UAC).

 
 See /usr/share/doc/Cygwin/rebase-2.4.3.README...  But rebase is more
 likely to fix your zsh problem than your pdksh problem.
   Igor

Yep, thanks.

Cheers,

Chris
[1] http://cej.nightwolf.org.uk/strace.out
[2] http://nevali.net/2007/01/update-more-on-cygwin-and-uac/

-- 
\ Chris Johnson \
 \ [EMAIL PROTECTED]  \ Quidquid latin dictum sit altum viditur
  \ http://cej.nightwolf.org.uk/  \
   \ http://redclaw.org.uk/~--



--
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: pdksh having problems starting native gvim on Vista x64

2008-01-28 Thread Eric Blake

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to Chris J on 1/28/2008 1:00 PM:
| The exception is zsh, with which I get the following error on invoking:
|
| 3 [main] zsh 6168 C:\cygwin\bin\zsh.exe: *** fatal error - unable to remap
| C:\cygwin\lib\zsh\4.3.4\zsh\complete.dll to same address as
| parent(0x31) != 0x35

Yes, rebasing (stopping all cygwin programs except ash, and running
rebaseall) is the correct solution to solve this particular zsh crash.

| 1. Has anyone seen the behaviour exhibited by pdksh before, or any idea
| what could be attemtped to fix it?

I don't know - I don't use pdksh.

- --
Don't work too hard, make some time for fun as well!

Eric Blake [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHnjkC84KuGfSFAYARAkSZAJ9DdJlDBOCC86WrLDgYUHcxV2gMYQCcC/SG
loSGBiDItCJ0ouml5Id+vsc=
=DoRP
-END PGP SIGNATURE-

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



pdksh having problems starting native gvim on Vista x64

2008-01-28 Thread Chris J

Hi all,

I've a recently installed Cygwin setup on Vista x64 and I've been having
problems with pdksh. I've got a x64-build of native gvim installed[1] which
pdksh doesn't want to start. On trying to run I get:

$ /cygdrive/c/vim/vim71/gvim.exe
/bin/pdksh: /cygdrive/c/vim/vim71/gvim.exe: cannot execute - Permission denied
$

However, running it via every other shell going (ash, bash, tcsh and csh)
is fine and gvim pops up well and good.

The exception is zsh, with which I get the following error on invoking:

3 [main] zsh 6168 C:\cygwin\bin\zsh.exe: *** fatal error - unable to remap
C:\cygwin\lib\zsh\4.3.4\zsh\complete.dll to same address as
parent(0x31) != 0x35

Googling has shown me this thread[2] that mentions rebaseing the DLLs.
However, before I go ahead and do this willy-nilly, I did want to confirm
that it was the correct thing to do given the the thread as well as the
mail threads linked to are a few months to a year old.

So questions ultimately are:
1. Has anyone seen the behaviour exhibited by pdksh before, or any idea
what could be attemtped to fix it?

2. Is rebasing the right thing to do, and is it just 'rebaseall' I should
be executing?

Cheers all,

Chris...

[1] http://georgevreilly.com/vim/
[2] http://cygwin.com/ml/cygwin/2007-04/msg00606.html

-- 
\ Chris Johnson \
 \ [EMAIL PROTECTED]  \ Quidquid latin dictum sit altum viditur
  \ http://cej.nightwolf.org.uk/  \
   \ http://redclaw.org.uk/~--



--
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: pdksh having problems starting native gvim on Vista x64

2008-01-28 Thread Igor Peshansky
On Mon, 28 Jan 2008, Chris J wrote:

 Hi all,

 I've a recently installed Cygwin setup on Vista x64 and I've been having
 problems with pdksh. I've got a x64-build of native gvim installed[1]
 which pdksh doesn't want to start. On trying to run I get:

 $ /cygdrive/c/vim/vim71/gvim.exe
 /bin/pdksh: /cygdrive/c/vim/vim71/gvim.exe: cannot execute - Permission denied
 $

 However, running it via every other shell going (ash, bash, tcsh and csh)
 is fine and gvim pops up well and good.

Well, tcsh and csh are the same...

Can you please post the output of ls -l /cygdrive/c/vim/vim71/gvim.exe,
ls -ld /cygdrive/c/vim/vim71, and ls -ld /cygdrive/c/vim?  Also of
cygcheck /cygdrive/c/vim/vim71/gvim.exe?

 The exception is zsh, with which I get the following error on invoking:

 3 [main] zsh 6168 C:\cygwin\bin\zsh.exe: *** fatal error - unable to remap
 C:\cygwin\lib\zsh\4.3.4\zsh\complete.dll to same address as
 parent(0x31) != 0x35

 Googling has shown me this thread[2] that mentions rebaseing the DLLs.
 However, before I go ahead and do this willy-nilly, I did want to confirm
 that it was the correct thing to do given the the thread as well as the
 mail threads linked to are a few months to a year old.

I doubt the pdksh problem has anything to do with rebasing.

 So questions ultimately are:
 1. Has anyone seen the behaviour exhibited by pdksh before, or any idea
 what could be attemtped to fix it?

I would do chmod a+x /cygdrive/c/vim /cygdrive/c/vim/vim71
/cygdrive/c/vim/vim71/gvim.exe first, and see if it fixes your problem.
If that does not work, and the output of ls -l I requested above doesn't
help, it would probably be time to look at the strace output.

 2. Is rebasing the right thing to do, and is it just 'rebaseall' I
 should be executing?

See /usr/share/doc/Cygwin/rebase-2.4.3.README...  But rebase is more
likely to fix your zsh problem than your pdksh problem.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

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