option of g++

2008-09-09 Thread Rodrigo Medina
Hi,
Can anybody tell me what the g++ option
-DU_STATIC_IMPLEMENTATION DOES?

thanks

RM


--
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: option of g++

2008-09-09 Thread Barry Kelly
Rodrigo Medina wrote:

> Hi,
> Can anybody tell me what the g++ option
> -DU_STATIC_IMPLEMENTATION DOES?

-D instructs the preprocessor (cpp, which is automatically invoked by
g++) to define a symbol; the appended text is the symbol that gets
defined.

The meaning of the symbol depends on the source code you are compiling.
Typically, preprocessor symbols are used to enable or disable features
or modes of a program or library at compilation time (i.e. the option
isn't configurable at run time).

You need to either look in the documentation for the source package you
are compiling, or failing that grep the source for
U_STATIC_IMPLEMENTATION and try to discover from the source what it is
doing. E.g.:

  grep -r U_STATIC_IMPLEMENTATION .

in the source base directory.

-- Barry

-- 
http://barrkel.blogspot.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/



Executable file is there but it said could not find

2008-09-09 Thread Maika V
Hi,
I'm new to cygwin. I've just intalled it for building my C++ using QT3
lib (installed inside cygwin).
When compiling my program with 'make', I got these warnings:
This should work unless it involves constant data structures
referencing symbols from auto-imported DLLs.
Info: resolving QString::shared_null   by linking to
__imp___ZN7QString11shared_nullE (auto-import)
and executable file  "abc.exe". It said "could not find abc" when I
tried "./abc" but found with "where abc" command. How can I solve
this?
Thanks for any help
Maika

--
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: Why is regedit referenced?

2008-09-09 Thread John Sellers

Barry Kelly wrote:

What do you mean by Cygwin? A bash prompt?

I used the shortcut, c:/cygwin/cygwin.bat to run bash.

As soon as I do this, Kaspersky Internet Security 2009, which can track 
applications as well as network activity, informs me that the following 
unix bin commands are run:


bash, id, chmod, tr, hostname, find, sort, echo, grep, uname, and regtool.

When it happened the first time I could have sworn it was regedit 
instead of regtool.  I am assuming that what I am seeing is OK, but I 
think I will dig down and see what the bash related scripts are 
doingits starting to come back to me nowits been several years 
since I used UNIX...


(I've got an OLD IBM manual on my shelf that instructs me on how to 
install my 8K board in my PC;  and other DOS PC users used to drive me 
crazy because nobody understood that there were things called file 
directories that one could use instead of putting all of your files and 
applications in the main directory.)



Process explorer[1] can tell you what application accessed the registry,
  
Thanks, I've been wanting programs like the process explorer and the 
process monitor.

-- Barry
  



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



release or release-2?

2008-09-09 Thread Nick Booker

Hi.

I make monthly DVD images of the Cygwin packages and have noticed that 
the images are over 7GB in size -- much larger than will fit on a 
single-layer DVD.


The mirror I am using is 
rsync.mirrorservice.org::sourceware.org/pub/cygwin/.
I notice that there are two packages directories on the mirror: release 
and release-2.

Are they both necessary for an installation of Cygwin from CD?
If not, which one should I be downloading?

Thank you in advance,

Nick Booker
The Linux Emporium

--
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: Why is regedit referenced?

2008-09-09 Thread Dave Korn
John Sellers wrote on 09 September 2008 11:53:

> Barry Kelly wrote:
>> What do you mean by Cygwin? A bash prompt?
> I used the shortcut, c:/cygwin/cygwin.bat to run bash.
> 
> As soon as I do this, Kaspersky Internet Security 2009, which can track
> applications as well as network activity, informs me that the following
> unix bin commands are run:
> 
> bash, id, chmod, tr, hostname, find, sort, echo, grep, uname, and regtool.

  Well yeh, that's what Cygwin *is*: a bunch of unix bin commands for windows!

  (Take a browse through the bash startup scripts, /etc/profile in particular
does quite a bit of work, and uses regtool to detect your printer settings).

> When it happened the first time I could have sworn it was regedit
> instead of regtool.  I am assuming that what I am seeing is OK, but I
> think I will dig down and see what the bash related scripts are
> doingits starting to come back to me nowits been several years
> since I used UNIX...

  Heh, yeh, I think it's all gonna be ok :)

> (I've got an OLD IBM manual on my shelf that instructs me on how to
> install my 8K board in my PC;  and other DOS PC users used to drive me
> crazy because nobody understood that there were things called file
> directories that one could use instead of putting all of your files and
> applications in the main directory.)

  I'll see your old IBM and raise you a CBM4016 and a Science of Cambridge
Mk14!

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: release or release-2?

2008-09-09 Thread Dave Korn
Nick Booker wrote on 09 September 2008 12:00:

> Hi.
> 
> I make monthly DVD images of the Cygwin packages and have noticed that
> the images are over 7GB in size -- much larger than will fit on a
> single-layer DVD.
> 
> The mirror I am using is
> rsync.mirrorservice.org::sourceware.org/pub/cygwin/.
> I notice that there are two packages directories on the mirror: release
> and release-2.
> Are they both necessary for an installation of Cygwin from CD?
> If not, which one should I be downloading?

  "release-2" is for the upcoming and currently-experimental new Cygwin 1.7
series.  For day-to-day production use, you just want "release".

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: option of g++

2008-09-09 Thread Rodrigo Medina
Thank you very much Barry and Al
RM



--
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: Difficulty building gcc 4.3.2 under i386-pc-cygwin

2008-09-09 Thread NightStrike
On Mon, Sep 8, 2008 at 6:32 PM, Christopher Faylor
<[EMAIL PROTECTED]> wrote:
> On Mon, Sep 08, 2008 at 11:17:16PM +0100, Dave Korn wrote:
>>Christopher Faylor wrote on 08 September 2008 22:48:
>>
>>> On Mon, Sep 08, 2008 at 09:43:37PM +, Jay wrote:
 You can build gcc 4.3.1 and 4.3.2 just fine from the existing Cygwin gcc
 3.x package.

 The error also /appeared/ to have the object directory under the source
 directory.  Don't do that.
>>>
>>> Huh?  There's no reason not to do this.  I do it all of the time.
>>
>>  It is unsupported:
>>
>>http://gcc.gnu.org/install/configure.html
>>
>>"... building where objdir is a subdirectory of srcdir is unsupported."
>
> What's that?  An actual reference to a definitive source?  Do you think
> that will ever catch on?
>
> I have been building gcc like that (and also in a completely separate
> directory) for many years, but if this officially unsanctioned then,
> nevermind.

Maybe it's time to officially sanction it, perhaps?

--
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: Difficulty building gcc 4.3.2 under i386-pc-cygwin

2008-09-09 Thread Dave Korn
NightStrike wrote on 09 September 2008 14:09:

> On Mon, Sep 8, 2008 at 6:32 PM, Christopher Faylor
> <[EMAIL PROTECTED]> wrote:
>> On Mon, Sep 08, 2008 at 11:17:16PM +0100, Dave Korn wrote:
>>> Christopher Faylor wrote on 08 September 2008 22:48:
>>> 
 On Mon, Sep 08, 2008 at 09:43:37PM +, Jay wrote:

> The error also /appeared/ to have the object directory under the
> source directory.  Don't do that.
 
 Huh?  There's no reason not to do this.  I do it all of the time.
>>> 
>>>  It is unsupported:
>>> 
>>> http://gcc.gnu.org/install/configure.html
>>> 
>>> "... building where objdir is a subdirectory of srcdir is unsupported."
>> 
>> What's that?  An actual reference to a definitive source?  Do you think
>> that will ever catch on? 
>> 
>> I have been building gcc like that (and also in a completely separate
>> directory) for many years, but if this officially unsanctioned then,
>> nevermind.
> 
> Maybe it's time to officially sanction it, perhaps?


  To do that someone would need to volunteer to maintain it.  And it would be
nice to know beforehand whether it works, and if so why, or why not, and what
the cross-compiling and platform-specific complications might be.


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: Python and sqlite3

2008-09-09 Thread Jason Tishler
Yaakov,

On Tue, Aug 26, 2008 at 08:04:02PM -0400, Jason Tishler wrote:
> On Fri, Aug 08, 2008 at 05:23:37PM -0500, Yaakov (Cygwin Ports) wrote:
> > Jason Tishler wrote:
> > | Since the following is still open:
> > |
> > | http://bugs.python.org/issue1706863
> > |
> > | I didn't realize that this problem was resolved in Python 2.5.2.
> > 
> > Actually, it was working with 2.5.1 also, so it must have been
> > something else.
> 
> OK, I'll try again.

I did some more investigation and I still don't see how you were able to
build this module without some kind of workaround.  Empirically, I
determined that setup.py is trying to find one of the following files:

libsqlite3.dll
libsqlite3.dylib
libsqlite3.a

in typical library locations (e.g., /usr/lib).

However, sqlite3 only installs the following in /usr/lib:

libsqlite3.dll.a
libsqlite3.la

So, setup.py fails for me in exactly the same way as documented in the
above bug report.

I was able to (temporarily) workaround the problem with the following
hack:

$ ln -s libsqlite3.dll.a /usr/lib/libsqlite3.dll

Obviously, a better solution is to change setup.py to use the libraries
provided by sqlite3 directly.  I will try to affect this change.

Any insight as to why your build is successful would be greatly
appreciated.

Thanks,
Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

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



SSH publickey problem, password works (Win 2003, OpenSSH_5.1p1, Cygwin DLL1.5.25 )

2008-09-09 Thread Just Me
I've been fighting with SSH for a week now, I've read everything I can
google, it's finally time to ask for help.

I can ssh to any account using a password, no problem.  It bombs with a
cannot seteuid error in the event log when I use a keypair.

The account name is sfinfo.

The permissions of /home/sfinfo are 755

The permissions of /home/sfinfo/.ssh are 755

The permissions of /home/sfinfo/.ssh/authorized_keys are 644

The authorized_keys file contains one DSA public key.

The permissions on the private key, sfinfo_id_dsa are 600.

RSAAuthentication and PubKeyAuthentication are both set to "yes" in
sshd_config, and the AuthorizedKeysFile is set to .ssh/authorized_keys

I'm using ssh -i sfinfo_id_dsa [EMAIL PROTECTED]

I receive this error when running checkcheck as anyone but Administrator:

[EMAIL PROTECTED] ~$ cygcheck.exe -s -v -r > ~/cygcheck2.txt
/usr/bin/cygrunsrv: warning: OpenService failed for 'TapiSrv': Win32 error 5
Access is denied.


This is the result from doing cygcheck -s -v -r as the sfinfo user after
ssh'ing in with a password:

Cygwin Configuration Diagnostics
Current System Time: Tue Sep 09 04:47:04 2008

Windows 2003 Server Ver 5.2 Build 3790 Service Pack 2

Path:C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
C:\cygwin\usr\X11R6\bin
c:\Program Files\Windows Resource Kits\Tools\
c:\WINDOWS\system32
c:\WINDOWS
c:\WINDOWS\System32\Wbem
C:\cygwin\bin

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 1029(sfinfo) GID: 513(None)
513(None) 547(Power Users)  545(Users)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 1029(sfinfo) GID: 513(None)
513(None) 547(Power Users)  545(Users)

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

USER = 'sfinfo'
PWD = '/home/sfinfo'
CYGWIN = 'ntsec'
HOME = '/home/sfinfo'
MAKE_MODE = 'unix'

HOMEPATH = '\cygwin\home\sfinfo'
MANPATH = '/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man'
HOSTNAME = 'cit-8j0wppuv2l9'
TERM = 'cygwin'
SHELL = '/bin/bash'
PROCESSOR_IDENTIFIER = 'x86 Family 15 Model 104 Stepping 2, AuthenticAMD'
WINDIR = 'C:\WINDOWS'
SSH_CLIENT = '127.0.0.1 1037 22'
OLDPWD = '/home/sfinfo'
USERDOMAIN = 'CIT-8J0WPPUV2L9'
SSH_TTY = '/dev/tty1'
OS = 'Windows_NT'
ALLUSERSPROFILE = 'C:\Documents and Settings\All Users'
TEMP = '/cygdrive/c/DOCUME~1/CYG_SE~1.005/LOCALS~1/Temp'
COMMONPROGRAMFILES = 'C:\Program Files\Common Files'
USERNAME = 'sfinfo'
PROCESSOR_LEVEL = '15'
MAIL = '/var/spool/mail/sfinfo'
SYSTEMDRIVE = 'C:'
PS1 = '\[\e]0;[EMAIL PROTECTED] \[\e[33m\]\w\[\e[0m\]\n\$ '
LOGONSERVER = '\\CIT-8J0WPPUV2L9'
PROCESSOR_ARCHITECTURE = 'x86'
SHLVL = '1'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
HOMEDRIVE = 'C:'
COMSPEC = 'C:\WINDOWS\system32\cmd.exe'
LOGNAME = 'sfinfo'
TMP = '/cygdrive/c/DOCUME~1/CYG_SE~1.005/LOCALS~1/Temp'
SYSTEMROOT = 'C:\WINDOWS'
PRINTER = 'Microsoft XPS Document Writer'
CVS_RSH = '/bin/ssh'
PROCESSOR_REVISION = '6802'
SSH_CONNECTION = '127.0.0.1 1037 127.0.0.1 22'
INFOPATH = '/usr/local/info:/usr/share/info:/usr/info:'
PROGRAMFILES = 'C:\Program Files'
NUMBER_OF_PROCESSORS = '1'
COMPUTERNAME = 'CIT-8J0WPPUV2L9'
_ = '/usr/bin/cygcheck.exe'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
  (default) = '/cygdrive'
  cygdrive flags = 0x0022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = 'C:\cygwin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = 'C:\cygwin/bin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = 'C:\cygwin/lib'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

a:  fd N/AN/A   
c:  hd  NTFS  7153Mb  82% CP CS UN PA FC
d:  cd  CDFS   565Mb 100%CS  BRMSVOL_EN

C:\cygwin  /  system  binmode
C:\cygwin/bin  /usr/bin   system  binmode
C:\cygwin/lib  /usr/lib   system  binmode
.  /cygdrive  system  binmode,cygdrive

Found: C:\cygwin\bin\awk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Not Found: cpp (good!)
Not Found: crontab
Found: C:\cygwin\bin\find.exe
Not Found: gcc
Not Found: gdb
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\kill.exe
Not Found: ld
Found: C:\cygwin\bin\ls.exe
Not Found: make
Found: C:\cygwin\bin\mv.exe
Not Found: patch
Not Found: perl
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\bin\ssh.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe
Found: C:\cygwin\bin\test.exe
Not Found: vi
Found: C:\cygwin\bin\vim.exe

   61k 2008/04/01 C:\cygwin\bin\cygbz2-1.

Re: Difficulty building gcc 4.3.2 under i386-pc-cygwin

2008-09-09 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to NightStrike on 9/9/2008 7:08 AM:
>>> "... building where objdir is a subdirectory of srcdir is unsupported."
>>
>> I have been building gcc like that (and also in a completely separate
>> directory) for many years, but if this officially unsanctioned then,
>> nevermind.
> 
> Maybe it's time to officially sanction it, perhaps?

Bring it up on the gcc lists if you want it sanctioned; we can't do
anything about it here.

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

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

iEYEARECAAYFAkjGeNAACgkQ84KuGfSFAYBrKgCfSjZmNiKU8jZiiEDuRznoZf0d
aacAoNiwSV9YeuPoL+r/fxWQq46qSByx
=Ro/p
-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/



Re: SSH publickey problem, password works (Win 2003, OpenSSH_5.1p1, Cygwin DLL1.5.25 )

2008-09-09 Thread cuicui

Just Me a écrit :

I've been fighting with SSH for a week now, I've read everything I can
google, it's finally time to ask for help.

I can ssh to any account using a password, no problem.  It bombs with a
cannot seteuid error in the event log when I use a keypair.


I had the same "symptoms" recently, I deleted all /etc/ssh_host_* files 
and did a "ssh-host-config -y" and discovered various permission 
problems on /var, /etc/passwd and /etc/group. This was on Windows XP.


What you can do is:

 - net stop sshd
 - cyrunsrv -R sshd
 - rm -f /etc/ssh_host_*
 - ssh-host-config -y => might display some useful error messages

I'm not familiar with sshd under Windows 2003 Server but this procedure 
fixes almost all my sshd issues with Windows XP.


Regards,

Nicolas

--
Ce message a ete verifie par MailScanner
pour des virus ou des polluriels et rien de
suspect n'a ete trouve.


--
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: Python and sqlite3

2008-09-09 Thread Jason Tishler
Yaakov,
 
On Tue, Sep 09, 2008 at 09:24:29AM -0400, Jason Tishler wrote:
> On Tue, Aug 26, 2008 at 08:04:02PM -0400, Jason Tishler wrote:
> > On Fri, Aug 08, 2008 at 05:23:37PM -0500, Yaakov (Cygwin Ports) wrote:
> > > Jason Tishler wrote:
> > > | Since the following is still open:
> > > |
> > > | http://bugs.python.org/issue1706863
> > > |
> > > | I didn't realize that this problem was resolved in Python 2.5.2.
> > > 
> > > Actually, it was working with 2.5.1 also, so it must have been
> > > something else.
> > 
> > OK, I'll try again.
> 
> [snip]
> Any insight as to why your build is successful would be greatly
> appreciated.

I believe I figured out why your build was successful.  You built
against a sqlite3 that provided a static library (i.e., libsqlite3.a):

$ tar -tvjf libsqlite3-devel-3.5.9-1.tar.bz2 | fgrep usr/lib/libsqlite3
-rw-r--r-- Yaakov/None  403280 2008-05-22 00:52 usr/lib/libsqlite3.a
-rwxr-xr-x Yaakov/None  102334 2008-05-22 00:52 usr/lib/libsqlite3.dll.a
-rwxr-xr-x Yaakov/None 909 2008-05-22 00:52 usr/lib/libsqlite3.la

So, now we have two approaches to solve this problem:

1. release a sqlite3 with a static library
2. change Python to build against the import library

Does sqlite3 have a maintainer?  If so, then please release a new
package with the static library included.  This is an easy, short term
fix that can be used, while I pursue the other (harder, more long term)
approach.

Thanks,
Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

--
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: Python and sqlite3

2008-09-09 Thread Yaakov (Cygwin Ports)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Jason Tishler wrote:
> I did some more investigation and I still don't see how you were able to
> build this module without some kind of workaround.  Empirically, I
> determined that setup.py is trying to find one of the following files:
> 
> libsqlite3.dll
> libsqlite3.dylib
> libsqlite3.a
> 
> in typical library locations (e.g., /usr/lib).
> 
> However, sqlite3 only installs the following in /usr/lib:
> 
> libsqlite3.dll.a
> libsqlite3.la
> 
> So, setup.py fails for me in exactly the same way as documented in the
> above bug report.

Ah, the Ports sqlite3 package also provides a static libsqlite3, so that
would explain it.  I'm not sure why the Cygwin package was built
dynamic-only.

> I was able to (temporarily) workaround the problem with the following
> hack:
> 
> $ ln -s libsqlite3.dll.a /usr/lib/libsqlite3.dll
> 
> Obviously, a better solution is to change setup.py to use the libraries
> provided by sqlite3 directly.  I will try to affect this change.

IOW that it should look for .dll.a on Cygwin; I agree, that should be
done anyway.


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

iEYEAREIAAYFAkjGi8MACgkQpiWmPGlmQSPB4wCg3q4M4dwAUwO8sw/83dbJUDAF
/40AoNBekP8L8wzlDFjfR5DEQWcK5TIV
=GA0p
-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/



Re: Python and sqlite3

2008-09-09 Thread Yaakov (Cygwin Ports)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Jason Tishler wrote:
> Does sqlite3 have a maintainer?  If so, then please release a new
> package with the static library included.

I don't know; for some reason the package is not listed on the package
maintainer list.

> This is an easy, short term fix that can be used, while I pursue
> the other (harder, more long term) approach.

Agreed.


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

iEYEAREIAAYFAkjGjFIACgkQpiWmPGlmQSOZrACfSX2+RHlY4ZUt43/LGvrCZPDn
RO8An0X+o6mdxYP9YXG1I5Hafs/Pp4Vz
=ltsv
-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/



Run a script in the Background

2008-09-09 Thread Diogo Branco
Hi, i have Cygwin install on a Windows 2003 Machine and i whant to run a
script on the background from time to time how can I accomplish that?

Thanks


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



Help on dos2unix

2008-09-09 Thread Heude Pascal (LTS)

Hello all,

I am using the command dos2unix to convert file from DOS to UNIX in a makefile. 
But I get the return code 128 from the command which stop the make command. I 
tried to find information about the meaning of this return code without any 
success. Does anyone can help me ?

Thanks in advance.

  
Pascal HEUDE
Responsible of embedded software development
 
LIEBHERR-AEROSPACE TOULOUSE SAS
408, avenue des Etats-Unis
BP 52010
31016 TOULOUSE Cedex 2 - FRANCE
Tél :   +33 5 61 35-22-40
Fax :   +33 5 61 35-29-52
Courriel:   [EMAIL PROTECTED]
Internet :  www.liebherr.com
 Please consider the environment before printing this email. 
 Avant d'imprimer ce mail, pensez à l'environnement.



Re: Run a script in the Background

2008-09-09 Thread Thorsten Kampe
* Diogo Branco (Tue, 9 Sep 2008 15:47:00 +0100)
> Hi, i have Cygwin install on a Windows 2003 Machine and i whant to run
> a script on the background from time to time how can I accomplish
> that?

cron, at, schtasks


--
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: Run a script in the Background

2008-09-09 Thread Francis Litterio
Diogo Branco wrote:

> Hi, i have Cygwin install on a Windows 2003 Machine and i whant to run a
> script on the background from time to time how can I accomplish that?

You can do this in a Bash shell:

$ myscript &> output &

You may want to follow the above command with:

$ disown

so that the script continues to run when you exit Bash.  This can also
be achieved by starting the script with the "nohup" command.

If you want to launch the script from a Windows shortcut, make the
shortcut run this command:

cygstart --hide bash c:/path/to/myscript

You will probably want to make the shortcut start minimized, otherwise
you see a console window flash on the screen briefly when you launch the
shortcut.
--
Fran


--
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: Executable file is there but it said could not find

2008-09-09 Thread Larry Hall (Cygwin)

Maika V wrote:

Hi,
I'm new to cygwin. I've just intalled it for building my C++ using QT3
lib (installed inside cygwin).
When compiling my program with 'make', I got these warnings:
This should work unless it involves constant data structures
referencing symbols from auto-imported DLLs.
Info: resolving QString::shared_null   by linking to
__imp___ZN7QString11shared_nullE (auto-import)
and executable file  "abc.exe". It said "could not find abc" when I
tried "./abc" but found with "where abc" command. How can I solve
this?


In general, I would say there's not enough information here to make a
clear determination about what's wrong.  I'd recommend reading and
following the problem reporting guidelines found here:


Problem reports:   http://cygwin.com/problems.html


But here are a couple of WAGs: Permissions on the file could be a problem.
Check those.  Also try './abc.exe'.

--
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: Run a script in the Background

2008-09-09 Thread Francis Litterio
Francis Litterio wrote:

> If you want to launch the script from a Windows shortcut, make the
> shortcut run this command:
>
>   cygstart --hide bash c:/path/to/myscript
>
> You will probably want to make the shortcut start minimized, otherwise
> you see a console window flash on the screen briefly when you launch the
> shortcut.

Actually, this command does the same without needing to make the
shortcut start minimized:

run bash c:/path/to/myscript
--
Fran


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



Running script on the background

2008-09-09 Thread Diogo Branco
Thanks for the help Francis i gonna try.

Once again, thanks.


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



New install of SSH on Windows XP. Inconsistent connectivity

2008-09-09 Thread Guy Fleegman

Hello:

I just installed Cygwin with setup version 2.573 from the net. 
I installed open ssh 

the XP Workstation I installed Cygwin on I created a local account called
cygwin and even dropped it into the local admin group.

I logged in with the account to verify

I ran the mkpasswd and mkgroup commands

I started the Open SSH service successfully.
I can bring up a cygwin shell and ssh to local host
I connect but i do get these errors

Last login: Tue Sep  9 13:31:47 2008 from localhost
Could not chdir to home directory /cygdrive/h: No such file or directory
mkdir: cannot create directory `/cygdrive/h': No such file or directory
Copying skeleton files.
These files are for the user to personalise
their cygwin experience.

These will never be overwritten.

/usr/bin/install: cannot create directory /cygdrive/h: No such file or
directory
/usr/bin/install: cannot create directory /cygdrive/h: No such file or
directory
/usr/bin/install: cannot create directory /cygdrive/h: No such file or
directory
-bash: cd: /cygdrive/h: No such file or directory


My problem is this...

I can not connect to the system remotely from some systems

I have system A on the same subnet running Windows XP.. I use Putty on it to
connect to many systems
I ran wireshark to capture on the Cygwin SSH server... The server is sending
a FIN ACK after a 5 second pause


1 14:33:46.419454 15.23.19.13015.23.19.164TCP  66   
28033 > ssh [SYN] Seq=0 Len=0 MSS=1460 WS=14

2 14:33:46.419484 15.23.19.16415.23.19.130TCP  66   
ssh > 28033 [SYN, ACK] Seq=0 Ack=1 Win=65535 Len=0 MSS=1460 WS=0

3 14:33:46.419617 15.23.19.13015.23.19.164TCP  60   
28033 > ssh [ACK] Seq=1 Ack=1 Win=151060480 Len=0

4 14:33:51.467217 15.23.19.16415.23.19.130TCP  54   
ssh > 28033 [FIN, ACK] Seq=1 Ack=1 Win=65535 Len=0

5 14:33:51.467347 15.23.19.13015.23.19.164TCP  60   
28033 > ssh [ACK] Seq=1 Ack=2 Win=151060480 Len=0

6 14:33:51.467470 15.23.19.13015.23.19.164TCP  60   
28033 > ssh [FIN, ACK] Seq=1 Ack=2 Win=151060480 Len=0


However.
I have system B a linux box that can connect to it... and it is on a
different subnet
and I have system C another XP box that is on the same subnet and it can
connect as well...

How can I view why the session is being rejected?

Thanks,
Guy


-- 
View this message in context: 
http://www.nabble.com/New-install-of-SSH-on-Windows-XP.-Inconsistent-connectivity-tp19398279p19398279.html
Sent from the Cygwin list mailing list archive at Nabble.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: Python and sqlite3

2008-09-09 Thread Warren Young

Jason Tishler wrote:


Does sqlite3 have a maintainer?


Me, sort of.  :)

I adopted it reluctantly, because I use it on other platforms, and 
because it looked like no one else was going to do it.  This is why I'm 
not releasing new versions to track upstream.  Using it on Cygwin really 
isn't my "itch".  It sounds like you have a better reason for 
maintaining it than I do.  Let me know if you want it.


Anyway, I've rebuilt the packages, with both DLL and .a versions of the 
library.  See the RFU message I just sent to the -apps list if you want 
to grab the packages off our site before they're formally accepted.


--
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: New install of SSH on Windows XP. Inconsistent connectivity

2008-09-09 Thread Andrew Schulman
> How can I view why the session is being rejected?

I know that one.

ssh -v
ssh -vv
ssh -vvv
...

Keep adding -v's until you see the information you're looking for.
A.


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



Empty screen when opening X Terminal

2008-09-09 Thread Sandra Sandra
Hi, I am relatively new to Cygwin, I've tried to search through the
archive but couldn't quite find exactly what i'm looking for.

I've installed Cygwin few months ago, then recently when I try to open
XTerminal, I am getting a blank screen. I've tried opening it through
startx, startwinx.bat, startwinx.sh,  however, still nothing inside
the Xterminal screen.

Below is the Xwin.log. It appears the errors I'm getting should be
only warnings and could be ignored according to the forum.  Any
suggestions or ideas? Do I need to set something else up?

i've tried to uninstall and reinstall again, but same behaviour.

Thanks in advance.

-
$ cat /tmp/XWin.log
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.

(II) XF86Config is not supported
(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
winAdjustVideoModeShadowGDI - Using Windows display depth of 16 bits per pixel
winScreenInit - Monitors do not all have same pixel format / display depth.
Using primary display only.
winAllocateFBShadowGDI - Creating DIB with width: 1440 height: 900 depth: 16
winInitVisualsShadowGDI - Masks f800 07e0 001f BPRGB 6 d 16 bpp 16
null screen fn ReparentWindow
null screen fn RestackWindow
InitQueue - Calling pthread_mutex_init
InitQueue - pthread_mutex_init returned
InitQueue - Calling pthread_cond_init
InitQueue - pthread_cond_init returned
winInitMultiWindowWM - Hello
winMultiWindowXMsgProc - Hello
winInitMultiWindowWM - Calling pthread_mutex_lock ()
winMultiWindowXMsgProc - Calling pthread_mutex_lock ()
MIT-SHM extension disabled due to lack of kernel support
XFree86-Bigfont extension local-client optimization disabled due to lack of shar
ed memory support in the kernel
(--) Setting autorepeat to delay=500, rate=31
(--) winConfigKeyboard - Layout: "0409" (0409)
(--) Using preset keyboard for "English (USA)" (409), type "4"
(--) 3 mouse buttons found
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from li
st!
winInitMultiWindowWM - pthread_mutex_lock () returned.
winProcEstablishConnection - Hello
winInitClipboard ()
winClipboardProc - Hello
DetectUnicodeSupport - Windows NT/2000/XP
winProcEstablishConnection - winInitClipboard returned.
winInitMultiWindowWM - pthread_mutex_unlock () returned.
winClipboardProc - DISPLAY=127.0.0.1:0.0
winMultiWindowXMsgProc - pthread_mutex_lock () returned.
winInitMultiWindowWM - DISPLAY=127.0.0.1:0.0
winMultiWindowXMsgProc - pthread_mutex_unlock () returned.
winMultiWindowXMsgProc - DISPLAY=127.0.0.1:0.0
winClipboardProc - XOpenDisplay () returned and successfully opened the display.

winInitMultiWindowWM - XOpenDisplay () returned and successfully opened the disp
lay.
winMultiWindowXMsgProc - XOpenDisplay () returned and successfully opened the di
splay.

--
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: New install of SSH on Windows XP. Inconsistent connectivity

2008-09-09 Thread Larry Hall (Cygwin)

Guy Fleegman wrote:

Hello:

I just installed Cygwin with setup version 2.573 from the net. 
I installed open ssh 


the XP Workstation I installed Cygwin on I created a local account called
cygwin and even dropped it into the local admin group.

I logged in with the account to verify

I ran the mkpasswd and mkgroup commands

I started the Open SSH service successfully.
I can bring up a cygwin shell and ssh to local host
I connect but i do get these errors

Last login: Tue Sep  9 13:31:47 2008 from localhost
Could not chdir to home directory /cygdrive/h: No such file or directory
mkdir: cannot create directory `/cygdrive/h': No such file or directory
Copying skeleton files.
These files are for the user to personalise
their cygwin experience.

These will never be overwritten.

/usr/bin/install: cannot create directory /cygdrive/h: No such file or
directory
/usr/bin/install: cannot create directory /cygdrive/h: No such file or
directory
/usr/bin/install: cannot create directory /cygdrive/h: No such file or
directory
-bash: cd: /cygdrive/h: No such file or directory


Whoever you're logging in as doesn't have a home directory either because
of access permission problems or the directory doesn't exist.  Check that.


My problem is this...

I can not connect to the system remotely from some systems

I have system A on the same subnet running Windows XP.. I use Putty on it to
connect to many systems
I ran wireshark to capture on the Cygwin SSH server... The server is sending
a FIN ACK after a 5 second pause







However.
I have system B a linux box that can connect to it... and it is on a
different subnet
and I have system C another XP box that is on the same subnet and it can
connect as well...

How can I view why the session is being rejected?


What Andrew said.  If looking at that and the successful machines doesn't
help, then I recommend providing information of exactly what you're doing
on the failing machine along with the cygcheck output as specified here:


Problem reports:   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://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Empty screen when opening X Terminal

2008-09-09 Thread Larry Hall (Cygwin)

Sandra Sandra wrote:

Hi, I am relatively new to Cygwin, I've tried to search through the
archive but couldn't quite find exactly what i'm looking for.

I've installed Cygwin few months ago, then recently when I try to open
XTerminal, I am getting a blank screen. I've tried opening it through
startx, startwinx.bat, startwinx.sh,  however, still nothing inside
the Xterminal screen.




Wrong list.  You want cygwin-xfree.

--
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: New install of SSH on Windows XP. Inconsistent connectivity

2008-09-09 Thread Guy Fleegman

Is that for the SSHd server? Or the SSH Client?
I am connecting from putty and attachmate's ssh clients on XP systems.

I do not have a machine running cygwin/openssh to connect back to the sshd
server.
How can i have the sshd server give me output?

-Guy


Andrew Schulman-3 wrote:
> 
>> How can I view why the session is being rejected?
> 
> I know that one.
> 
> ssh -v
> ssh -vv
> ssh -vvv
> ...
> 
> Keep adding -v's until you see the information you're looking for.
> A.
> 
> 
> --
> 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/
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/New-install-of-SSH-on-Windows-XP.-Inconsistent-connectivity-tp19398279p19399219.html
Sent from the Cygwin list mailing list archive at Nabble.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/



2.573.2.3 setup on Vista Ultimate fails: cygintl-8.dll was not found

2008-09-09 Thread Mark Molinari
Hello,

I am trying to install Cygwin on Vista Ultimate 32 bit.  I have
downloaded the entire Cygwin archive to a windows 2003 servers.  I run
setup.exe across the network and just try to do the default install.
The installation proceeds until the installer attempts to run
/etc/postinstall/base-files/mketc.sh.  From that point on I receive
error messages stating:
"This application has  failed to start because cygintl-8.dll was not
found.  Re-installing the application may fix this problem."

I tried uninstalling, reinstalling, and deleting the Cygwin
installation directory without success.  When I look through the
packages list in the installer before I click Next> to install, I
can't find libintl8 anywhere.

Thanks for you help,
Mark

--
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: New install of SSH on Windows XP. Inconsistent connectivity

2008-09-09 Thread Larry Hall (Cygwin)

Guy Fleegman wrote:

Is that for the SSHd server? Or the SSH Client?


'ssh' is the client.


I am connecting from putty and attachmate's ssh clients on XP systems.

I do not have a machine running cygwin/openssh to connect back to the sshd
server.


That's not hard to fix, right?


How can i have the sshd server give me output?


That's a bit more work.  There is a log already for 'sshd' in '/var/log'.
You can look at that.  But probably you'd need to enable debugging
before you'll see much there.  Why don't you try what's been suggested
so far and see what you find?  Maybe you won't need to "go there".

--
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: 2.573.2.3 setup on Vista Ultimate fails: cygintl-8.dll was not found

2008-09-09 Thread Larry Hall (Cygwin)

Mark Molinari wrote:

Hello,

I am trying to install Cygwin on Vista Ultimate 32 bit.  I have
downloaded the entire Cygwin archive to a windows 2003 servers.  I run
setup.exe across the network and just try to do the default install.
The installation proceeds until the installer attempts to run
/etc/postinstall/base-files/mketc.sh.  From that point on I receive
error messages stating:
"This application has  failed to start because cygintl-8.dll was not
found.  Re-installing the application may fix this problem."

I tried uninstalling, reinstalling, and deleting the Cygwin
installation directory without success.  When I look through the
packages list in the installer before I click Next> to install, I
can't find libintl8 anywhere.



Sounds like your archive is missing it.  Either download it to your
archive and try again or just install off the Internet pointing at
one of the current mirrors.

--
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: SSH publickey problem, password works (Win 2003, OpenSSH_5.1p1, Cygwin DLL1.5.25 )

2008-09-09 Thread Tom Schutter
On Tue 08-09-09 04:24, Just Me wrote:
> I've been fighting with SSH for a week now, I've read everything I can
> google, it's finally time to ask for help.
> 
> I can ssh to any account using a password, no problem.  It bombs with a
> cannot seteuid error in the event log when I use a keypair.

I just solved this yesterday on my box.

If you get a "Connection closed by xxx.xxx.xxx.xxx" message when using
ssh to connect to a Cygwin sshd server, and/or the event log on the
server machine contains the error "sshd: PID : fatal: seteuid Y:
Permission denied", the user account that sshd is running under probably
does not have the "Create a token object" right.

Note that if the account does not have this right, it probably doen't
have other important rights as well.  These rights are normally setup by
the ssh-host-config script for the sshd_server user.

-- 
Tom Schutter
First American - Proxix Solutions
303-440-7272 x6822

--
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: SSH publickey problem, password works (Win 2003, OpenSSH_5.1p1, Cygwin DLL1.5.25 )

2008-09-09 Thread Roger Wells

IIRC I had to set permissions on ~/.ssh to 700

Just Me wrote:

I've been fighting with SSH for a week now, I've read everything I can
google, it's finally time to ask for help.

I can ssh to any account using a password, no problem.  It bombs with a
cannot seteuid error in the event log when I use a keypair.

The account name is sfinfo.

The permissions of /home/sfinfo are 755

The permissions of /home/sfinfo/.ssh are 755

The permissions of /home/sfinfo/.ssh/authorized_keys are 644

The authorized_keys file contains one DSA public key.

The permissions on the private key, sfinfo_id_dsa are 600.

RSAAuthentication and PubKeyAuthentication are both set to "yes" in
sshd_config, and the AuthorizedKeysFile is set to .ssh/authorized_keys

I'm using ssh -i sfinfo_id_dsa [EMAIL PROTECTED]

I receive this error when running checkcheck as anyone but Administrator:

[EMAIL PROTECTED] ~$ cygcheck.exe -s -v -r > ~/cygcheck2.txt
/usr/bin/cygrunsrv: warning: OpenService failed for 'TapiSrv': Win32 error 5
Access is denied.


This is the result from doing cygcheck -s -v -r as the sfinfo user after
ssh'ing in with a password:

Cygwin Configuration Diagnostics
Current System Time: Tue Sep 09 04:47:04 2008

Windows 2003 Server Ver 5.2 Build 3790 Service Pack 2

Path:C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
C:\cygwin\usr\X11R6\bin
c:\Program Files\Windows Resource Kits\Tools\
c:\WINDOWS\system32
c:\WINDOWS
c:\WINDOWS\System32\Wbem
C:\cygwin\bin

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 1029(sfinfo) GID: 513(None)
513(None) 547(Power Users)  545(Users)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 1029(sfinfo) GID: 513(None)
513(None) 547(Power Users)  545(Users)

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

USER = 'sfinfo'
PWD = '/home/sfinfo'
CYGWIN = 'ntsec'
HOME = '/home/sfinfo'
MAKE_MODE = 'unix'

HOMEPATH = '\cygwin\home\sfinfo'
MANPATH = '/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man'
HOSTNAME = 'cit-8j0wppuv2l9'
TERM = 'cygwin'
SHELL = '/bin/bash'
PROCESSOR_IDENTIFIER = 'x86 Family 15 Model 104 Stepping 2, AuthenticAMD'
WINDIR = 'C:\WINDOWS'
SSH_CLIENT = '127.0.0.1 1037 22'
OLDPWD = '/home/sfinfo'
USERDOMAIN = 'CIT-8J0WPPUV2L9'
SSH_TTY = '/dev/tty1'
OS = 'Windows_NT'
ALLUSERSPROFILE = 'C:\Documents and Settings\All Users'
TEMP = '/cygdrive/c/DOCUME~1/CYG_SE~1.005/LOCALS~1/Temp'
COMMONPROGRAMFILES = 'C:\Program Files\Common Files'
USERNAME = 'sfinfo'
PROCESSOR_LEVEL = '15'
MAIL = '/var/spool/mail/sfinfo'
SYSTEMDRIVE = 'C:'
PS1 = '\[\e]0;[EMAIL PROTECTED] \[\e[33m\]\w\[\e[0m\]\n\$ '
LOGONSERVER = '\\CIT-8J0WPPUV2L9'
PROCESSOR_ARCHITECTURE = 'x86'
SHLVL = '1'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
HOMEDRIVE = 'C:'
COMSPEC = 'C:\WINDOWS\system32\cmd.exe'
LOGNAME = 'sfinfo'
TMP = '/cygdrive/c/DOCUME~1/CYG_SE~1.005/LOCALS~1/Temp'
SYSTEMROOT = 'C:\WINDOWS'
PRINTER = 'Microsoft XPS Document Writer'
CVS_RSH = '/bin/ssh'
PROCESSOR_REVISION = '6802'
SSH_CONNECTION = '127.0.0.1 1037 127.0.0.1 22'
INFOPATH = '/usr/local/info:/usr/share/info:/usr/info:'
PROGRAMFILES = 'C:\Program Files'
NUMBER_OF_PROCESSORS = '1'
COMPUTERNAME = 'CIT-8J0WPPUV2L9'
_ = '/usr/bin/cygcheck.exe'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
  (default) = '/cygdrive'
  cygdrive flags = 0x0022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = 'C:\cygwin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = 'C:\cygwin/bin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = 'C:\cygwin/lib'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

a:  fd N/AN/A   
c:  hd  NTFS  7153Mb  82% CP CS UN PA FC
d:  cd  CDFS   565Mb 100%CS  BRMSVOL_EN


C:\cygwin  /  system  binmode
C:\cygwin/bin  /usr/bin   system  binmode
C:\cygwin/lib  /usr/lib   system  binmode
.  /cygdrive  system  binmode,cygdrive

Found: C:\cygwin\bin\awk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Not Found: cpp (good!)
Not Found: crontab
Found: C:\cygwin\bin\find.exe
Not Found: gcc
Not Found: gdb
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\kill.exe
Not Found: ld
Found: C:\cygwin\bin\ls.exe
Not Found: make
Found: C:\cygwin\bin\mv.exe
Not Found: patch
Not Found: perl
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\bin\ssh.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe
Found: C:\cygwin\bin\test.exe
Not Found: vi
Found

Re: Help on dos2unix

2008-09-09 Thread Mark J. Reed
On Tue, Sep 9, 2008 at 10:48 AM, Heude Pascal (LTS)  wrote:
> I am using the command dos2unix to convert file from DOS to UNIX in a 
> makefile.

If that's the Cygwin version of dos2unix.exe, then I assume you are
also using the Cygwin version of make, which you are in turn running
from a Cygwin bash shell?

> But I get the return code 128 from the command

Exit code 128 is a "something went wrong but I'm not sure what"
signal.  Usually, exit codes above 128 mean that the process was
killed by a fatal signal, whose number you get if you subtract 128.
But there's no fatal signal 0, so 128 is sort of a default "execution
environment not working right for that command".  Hence my suspicion
that some non-Cygwin component is at work 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/



cron without sendmail generates bogus logfile names

2008-09-09 Thread Linus Hicks
The "poor man's mailer" included as part of the cron package uses the
following construct to generate part of the filename used in making
log file names:

DATE=$(date '+%Y%m%d_%H%M%S')

It then generates the filename as:

FILE="/tmp/cron.$DATE.$$.log"

However, it seems to be tacking on a CR character at the end of the
DATE portion which messes up the generated filenames. I cannot
reproduce this behavior in sh running in an xterm window:

[EMAIL PROTECTED] log $ DATE=$(date '+%Y%m%d_%H%M%S')
[EMAIL PROTECTED] log $ echo $DATE
20080909_170639
[EMAIL PROTECTED] log $ FILE="/tmp/cron.$DATE.$$.log"
[EMAIL PROTECTED] log $ echo $FILE
/tmp/cron.20080909_170639.6588.log
[EMAIL PROTECTED] log $ ls -l /usr/sbin/sendmail
lrwxrwxrwx 1 oracle None 16 Jul  3 15:00 /usr/sbin/sendmail -> /usr/bin/cronlog*
[EMAIL PROTECTED] log $

Here's a hexdump of the cron.log showing the spurious characters:

[EMAIL PROTECTED] log $ hexdump.exe -C cron.log
  2f 75 73 72 2f 73 62 69  6e 2f 73 65 6e 64 6d 61  |/usr/sbin/sendma|
0010  69 6c 3a 20 6c 69 6e 65  20 34 30 3a 20 2f 74 6d  |il: line 40: /tm|
0020  70 2f 63 72 6f 6e 2e 32  30 30 38 30 39 30 35 5f  |p/cron.20080905_|
0030  32 33 35 35 30 32 0d 2e  34 35 39 36 2e 6c 6f 67  |235502..4596.log|
0040  3a 20 4e 6f 20 73 75 63  68 20 66 69 6c 65 20 6f  |: No such file o|
0050  72 20 64 69 72 65 63 74  6f 72 79 0a 2f 75 73 72  |r directory./usr|
0060  2f 73 62 69 6e 2f 73 65  6e 64 6d 61 69 6c 3a 20  |/sbin/sendmail: |
0070  6c 69 6e 65 20 34 30 3a  20 2f 74 6d 70 2f 63 72  |line 40: /tmp/cr|
0080  6f 6e 2e 32 30 30 38 30  39 30 36 5f 32 33 35 35  |on.20080906_2355|
0090  30 32 0d 2e 35 38 38 34  2e 6c 6f 67 3a 20 4e 6f  |02..5884.log: No|
00a0  20 73 75 63 68 20 66 69  6c 65 20 6f 72 20 64 69  | such file or di|
00b0  72 65 63 74 6f 72 79 0a  2f 75 73 72 2f 73 62 69  |rectory./usr/sbi|
00c0  6e 2f 73 65 6e 64 6d 61  69 6c 3a 20 6c 69 6e 65  |n/sendmail: line|
00d0  20 34 30 3a 20 2f 74 6d  70 2f 63 72 6f 6e 2e 32  | 40: /tmp/cron.2|
00e0  30 30 38 30 39 30 37 5f  32 33 35 35 30 32 0d 2e  |0080907_235502..|
00f0  33 32 30 34 2e 6c 6f 67  3a 20 4e 6f 20 73 75 63  |3204.log: No suc|
0100  68 20 66 69 6c 65 20 6f  72 20 64 69 72 65 63 74  |h file or direct|
0110  6f 72 79 0a 2f 75 73 72  2f 73 62 69 6e 2f 73 65  |ory./usr/sbin/se|
0120  6e 64 6d 61 69 6c 3a 20  6c 69 6e 65 20 34 30 3a  |ndmail: line 40:|
0130  20 2f 74 6d 70 2f 63 72  6f 6e 2e 32 30 30 38 30  | /tmp/cron.20080|
0140  39 30 38 5f 32 33 35 35  30 32 0d 2e 38 33 36 2e  |908_235502..836.|
0150  6c 6f 67 3a 20 4e 6f 20  73 75 63 68 20 66 69 6c  |log: No such fil|
0160  65 20 6f 72 20 64 69 72  65 63 74 6f 72 79 0a |e or directory.|
016f

I am baffled as to why this is a problem, and have seen it on two
different systems both running Windows 2003 Server.

cygcheck output attached...


cygcheck.out
Description: Binary data
--
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: SSH publickey problem, password works (Win 2003, OpenSSH_5.1p1, Cygwin DLL1.5.25 )

2008-09-09 Thread Mark J. Reed
On Tue, Sep 9, 2008 at 5:24 AM, Just Me wrote:
> I've been fighting with SSH for a week now, I've read everything I can
> google, it's finally time to ask for help.
>
> I can ssh to any account using a password, no problem.  It bombs with a
> cannot seteuid error in the event log when I use a keypair.

Are you sure the seteuid error is the important one?

> The permissions of /home/sfinfo are 755
Acceptable.

> The permissions of /home/sfinfo/.ssh are 755
Bzzt.

> The permissions of /home/sfinfo/.ssh/authorized_keys are 644
Bzzt.

The symptoms you describe are not what I would expect, but I'm pretty
sure this will definitely not work unless the permissions on .ssh are
0700 and those on .ssh/authorized_keys are 0600.

> The authorized_keys file contains one DSA public key.
OK.

> The permissions on the private key, sfinfo_id_dsa are 600.

...the private key is, of course, on the system you're ssh'ing *from*
while the authorized_keys file is on the system you're ssh'ing *to*,
correct?

--
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: cron without sendmail generates bogus logfile names

2008-09-09 Thread Larry Hall (Cygwin)

Linus Hicks wrote:

The "poor man's mailer" included as part of the cron package uses the
following construct to generate part of the filename used in making
log file names:

DATE=$(date '+%Y%m%d_%H%M%S')

It then generates the filename as:

FILE="/tmp/cron.$DATE.$$.log"

However, it seems to be tacking on a CR character at the end of the
DATE portion which messes up the generated filenames. I cannot
reproduce this behavior in sh running in an xterm window:


Try running the mailer script through 'd2u'.  If that doesn't work,
it suggests a difference in the environment for the cron service
versus your interactive shell.  Any chance you have another, Win32-
native "date" hanging around?

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



Perl module Audio::Data

2008-09-09 Thread Mary

Hello,

I am trying to get the Audio::Data perl module because a program, rsynth
called by the HSLab
utility of HTK, needs it.
I have not found it in the cygwin perl packages and when I use
perl -MCPAN -e shell
and then
install Audio::Data (or fforce install Audio::Data) I get the following:

CPAN.pm: Going to build N/NI/NI-S/Audio-1.029.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for Audio::Data
ERROR from evaluation of
/home/Mary/.cpan/build/Audio-1.029-vjksgS/Play/Makefile.PL: Cannot open
config/dummy.xs:No such file or directory at ./Makefile.PL line 54.
Warning: No success on command[/usr/bin/perl.exe Makefile.PL]
 NI-S/Audio-1.029.tar.gz
 /usr/bin/perl.exe Makefile.PL -- NOT OK
Running make test
 Make had some problems, won't test
Running make install
 Make had some problems, won't install
Failed during this command:
NI-S/Audio-1.029.tar.gz  : writemakefile NO
'/usr/bin/perl.exe Makefile.PL' returned status 512

Please help

Mary





Vinsamlega athugið að upplýsingar í tölvupósti þessum og viðhengi eru eingöngu 
ætlaðar þeim sem póstinum er beint til og gætu innihaldið upplýsingar sem eru 
trúnaðarmál. Sjá nánar: http://www.ru.is/trunadur

Please note that this e-mail and attachments are intended for the named 
addresses only and may contain information that is confidential and privileged. 
Further information:
http://www.ru.is/trunadur

--
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: 2.573.2.3 setup on Vista Ultimate fails: cygintl-8.dll was not found

2008-09-09 Thread Mark Molinari
Hello,

I discovered what the problem was.  I was trying to only download
using setup.exe to a different directory than I was using previously.
But since I already had Cygwin installed on my windows 2003 server, it
didn't download anything I had already installed.  I thought by
selecting "download only" and then selecting "install" (at the top of
the tree) for all packages, it would download everything to the new
directory.  But it just skipped over everything I already had
installed.  So when I tried to install on Vista over the network,
things were missing.

Thanks for the hint,
Mark

On Tue, Sep 9, 2008 at 2:30 PM, Larry Hall (Cygwin)
<[EMAIL PROTECTED]> wrote:
> Mark Molinari wrote:
>>
>> Hello,
>>
>> I am trying to install Cygwin on Vista Ultimate 32 bit.  I have
>> downloaded the entire Cygwin archive to a windows 2003 servers.  I run
>> setup.exe across the network and just try to do the default install.
>> The installation proceeds until the installer attempts to run
>> /etc/postinstall/base-files/mketc.sh.  From that point on I receive
>> error messages stating:
>> "This application has  failed to start because cygintl-8.dll was not
>> found.  Re-installing the application may fix this problem."
>>
>> I tried uninstalling, reinstalling, and deleting the Cygwin
>> installation directory without success.  When I look through the
>> packages list in the installer before I click Next> to install, I
>> can't find libintl8 anywhere.
>>
>
> Sounds like your archive is missing it.  Either download it to your
> archive and try again or just install off the Internet pointing at
> one of the current mirrors.
>
> --
> 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/
>
>

--
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: Perl module Audio::Data

2008-09-09 Thread Yaakov (Cygwin Ports)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Mary wrote:
> I am trying to get the Audio::Data perl module because a program, rsynth
> called by the HSLab utility of HTK, needs it.
> I have not found it in the cygwin perl packages and when I use
> perl -MCPAN -e shell and then
> install Audio::Data (or fforce install Audio::Data) I get the following:

It appears as this package needs to be told how to handle Cygwin.  I've
attached a patch which allows the module to build by using the oss
driver instead of the nonexistent dummy driver.  But given the nature of
this package, I suggest testing the package further to make sure that it
is actually working properly before relying on it.


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

iEYEAREIAAYFAkjHGYUACgkQpiWmPGlmQSOh+wCfatmVVahPbilaAnIgPd3iqQAE
YoEAoKejrvzigXzx3ewoXvqEC0eJi7qB
=rOQJ
-END PGP SIGNATURE-
--- origsrc/Audio-1.029/Play/Makefile.PL	2004-01-06 01:56:03.0 -0600
+++ src/Audio-1.029/Play/Makefile.PL	2008-09-09 19:33:40.974262100 -0500
@@ -80,7 +80,7 @@
  }
 $driver = 'oss';
}
-  elsif (/^(\w+bsd)$/i)
+  elsif (/^(cygwin|\w+bsd)$/i)
{
 $driver = 'oss';
}

--
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: 2.573.2.3 setup on Vista Ultimate fails: cygintl-8.dll was not found

2008-09-09 Thread Larry Hall (Cygwin)

Mark Molinari wrote:

Hello,

I discovered what the problem was.  I was trying to only download
using setup.exe to a different directory than I was using previously.
But since I already had Cygwin installed on my windows 2003 server, it
didn't download anything I had already installed.  I thought by
selecting "download only" and then selecting "install" (at the top of
the tree) for all packages, it would download everything to the new
directory.  But it just skipped over everything I already had
installed.  So when I tried to install on Vista over the network,
things were missing.


Thanks for the feedback.  It's strange how similar problems get reported
in batches.  I've just moved the "Did you use 'setup.exe' to create your
archive?" up a notch on my list of questions to ask at the start.

--
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: 2.573.2.3 setup on Vista Ultimate fails: cygintl-8.dll was not found

2008-09-09 Thread Larry Hall (Cygwin)

Larry Hall (Cygwin) wrote:

Mark Molinari wrote:

Hello,

I discovered what the problem was.  I was trying to only download
using setup.exe to a different directory than I was using previously.
But since I already had Cygwin installed on my windows 2003 server, it
didn't download anything I had already installed.  I thought by
selecting "download only" and then selecting "install" (at the top of
the tree) for all packages, it would download everything to the new
directory.  But it just skipped over everything I already had
installed.  So when I tried to install on Vista over the network,
things were missing.


Thanks for the feedback.  It's strange how similar problems get reported
in batches.  I've just moved the "Did you use 'setup.exe' to create your
archive?" up a notch on my list of questions to ask at the start. 

   ^
question

--
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: SSH publickey problem, password works (Win 2003, OpenSSH_5.1p1, Cygwin DLL1.5.25 )

2008-09-09 Thread Just Me
Tom Schutter wrote:
> On Tue 08-09-09 04:24, Just Me wrote:
>   
>> I've been fighting with SSH for a week now, I've read everything I can
>> google, it's finally time to ask for help.
>>
>> I can ssh to any account using a password, no problem.  It bombs with a
>> cannot seteuid error in the event log when I use a keypair.
>> 
>
> I just solved this yesterday on my box.
>
> If you get a "Connection closed by xxx.xxx.xxx.xxx" message when using
> ssh to connect to a Cygwin sshd server, and/or the event log on the
> server machine contains the error "sshd: PID : fatal: seteuid Y:
> Permission denied", the user account that sshd is running under probably
> does not have the "Create a token object" right.
>
> Note that if the account does not have this right, it probably doen't
> have other important rights as well.  These rights are normally setup by
> the ssh-host-config script for the sshd_server user.
>
>   

Both the cyg_server and sshd account have these rights:
Act as part of the Operating System
Create a Token Object
Impersonate a client after authentication
Log On as a service

--
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: SSH publickey problem, password works (Win 2003, OpenSSH_5.1p1, Cygwin DLL1.5.25 )

2008-09-09 Thread Just Me
Mark J. Reed wrote:
> On Tue, Sep 9, 2008 at 5:24 AM, Just Me wrote:
>   
>> I've been fighting with SSH for a week now, I've read everything I can
>> google, it's finally time to ask for help.
>>
>> I can ssh to any account using a password, no problem.  It bombs with a
>> cannot seteuid error in the event log when I use a keypair.
>> 
>
> Are you sure the seteuid error is the important one?
>
>   
>> The permissions of /home/sfinfo are 755
>> 
> Acceptable.
>
>   
>> The permissions of /home/sfinfo/.ssh are 755
>> 
> Bzzt.
>
>   
>> The permissions of /home/sfinfo/.ssh/authorized_keys are 644
>> 
> Bzzt.
>
> The symptoms you describe are not what I would expect, but I'm pretty
> sure this will definitely not work unless the permissions on .ssh are
> 0700 and those on .ssh/authorized_keys are 0600.
>
>   
>> The authorized_keys file contains one DSA public key.
>> 
> OK.
>
>   
>> The permissions on the private key, sfinfo_id_dsa are 600.
>> 
>
> ...the private key is, of course, on the system you're ssh'ing *from*
> while the authorized_keys file is on the system you're ssh'ing *to*,
> correct?
>
> --
> 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/
>
>
>
>   
I'm not sure if it's the important error.  I just noticed that the event
viewer is throwing a message that says "syslogin_perform_logout:
logout()returned an error."

Changed the permissions as listed.  No luck.  And yes, the private key
is on the from box.  I've been bitten by that one before.

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



Octave 3.0.1 exits without a prompt, no error message

2008-09-09 Thread rmcd

I am having a problem that I have seen reported before, but I didn't see a
resolution. I have cygwin installs on two machines, both XP SP2. This
problem occurs on one and not the other. I'm not even sure how to go about
debugging this.

The problem: I run octave from the command line, and it exits almost
immediately without an error. From previous postings, here is what I've
looked at:

/usr/lib/lapack is in the path (last item)

cygcheck -c octave reports that version 3.0.1-1 is okay.

cygcheck /bin/octave.exe  returns d:\cygwin\bin/octave.exe

octave -V and octave -x return nothing

echo $? returns 53

I have tried setting the cygwin environment variable to TTY, NOTTY, and
neither. (It is ntsec notty on the machine where octave runs successfully).

I have tried uninstalling and reinstalling octave using setup.exe. 

Any suggestions for debugging this? I've attached my cygcheck.out. Thanks
very much for any assistance. 
http://www.nabble.com/file/p19405952/cygcheck.out cygcheck.out 
-- 
View this message in context: 
http://www.nabble.com/Octave-3.0.1-exits-without-a-prompt%2C-no-error-message-tp19405952p19405952.html
Sent from the Cygwin list mailing list archive at Nabble.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: Octave 3.0.1 exits without a prompt, no error message

2008-09-09 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to rmcd on 9/9/2008 10:03 PM:
> octave -V and octave -x return nothing
> 
> echo $? returns 53

Classic symptom of a missing .dll.  Run 'cygcheck octave' to find out
what's missing, 'cygcheck -p filename.dll' to find which package provides
it, then reuse setup.exe to download and install it.  And tell us what the
culprit was, in case it is a missing dependency that we can fix for future
users.

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

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

iEYEARECAAYFAkjHSBwACgkQ84KuGfSFAYAKhACeNFZgyLhWXacUXNyaUbhERi1G
vlcAn1KxWsPTvN59iY/3mK5eOsK4RBnV
=D4yn
-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/



Re: upgrading to perl-5.8.8-4

2008-09-09 Thread Brian Dessent
Rob wrote:

> 1. Why is /usr/lib/perl5/site_perl not listed on 5.8.8 ?

Because having an unversioned directory in @INC was a mistake that was
corrected.

> 2. why are there "duplicate" entries for:
>/usr/lib/perl5/site_perl/5.8
>/usr/lib/perl5/vendor_perl/5.8

vendor_perl contains modules that ship with perl from the packager. 
site_perl contains modules that were locally installed from CPAN.

> 3. Even though /usr/lib/perl5/site_perl/5.8/cygwin and
> /usr/lib/perl5/site_perl/5.8 are listed in @INC,
> the /lib/perl5/site_perl directory does not get created when the package is
> installed and is missing.

Then it sounds like you've not installed anything from CPAN.  It should
be created and populated the first time you do that.

Brian

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