Re: gdb: which dll starts at 0x461000 ?

2004-09-20 Thread Gerrit P. Haase
Hallo Jan,

Am Montag, 20. September 2004 um 08:43 schriebst du:

> Jani tiainen writes:

>> It might be that you can't.

> Huh?

>> And it's impossible to say which DLL since
>> DLLs are loaded in dynamic locations it may vary even from run to run,
>> from computer to computer.
>>
>> Try running strace to see what it tries to access etc.

> I tried that, the popup comes before strace outputs anything.

Try 'Dependency Walker' from sysinternals.


Gerrit
-- 
=^..^=



--
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: gdb: which dll starts at 0x461000 ?

2004-09-20 Thread Gerrit P. Haase
Hallo Gerrit,

Am Montag, 20. September 2004 um 09:28 schriebst du:

> Hallo Jan,

> Am Montag, 20. September 2004 um 08:43 schriebst du:

>> Jani tiainen writes:

>>> It might be that you can't.

>> Huh?

>>> And it's impossible to say which DLL since
>>> DLLs are loaded in dynamic locations it may vary even from run to run,
>>> from computer to computer.
>>>
>>> Try running strace to see what it tries to access etc.

>> I tried that, the popup comes before strace outputs anything.

> Try 'Dependency Walker' from sysinternals.


Actually it seems to be from Microsoft, get a copy here:
http://www.dependencywalker.com/


Gerrit
-- 
=^..^=



--
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 login to PC stopped working

2004-09-20 Thread luke . kendall
This afternoon, while trying to diagnose why I couldn't slogin to a new
machine with Cygwin installed, I slogin-ed to my own PC (logged in
successfully) and looked at some file permissions.  Then logged out.

A few minutes later I tried to slogin again, and this time it failed.
(I am confident no one else touched the machine in the meantime, since
I was nearby and could see it the whole time.)

Since then, I sorted out the problems on the new machine (/var/empty
wasn't owned by system, and group not writeable, and similarly for
/etc/ssh*: none of which is detected by ssh-host-config), and so was
able to start sshd and slogin to the new machine.

But I can't work out what's wrong on my own PC (doyle) now!  It appears
to accept the password, then simply close the connection.

And this problem developed minutes after it had all been working.  Is
it failing because I don't have write permission on /var/log/sshd.log?
I have Administrator rights.

Any suggestions about how I could diagnose what's going wrong?

Some possibly useful info is:

$ ls -ld /var/empty /var/log/sshd.log 
drwxr-xr-x+   2 SYSTEM   root0 Sep  3 16:55 /var/empty
-rw-r--r--1 SYSTEM   SYSTEM   1164 Sep 10 12:09 /var/log/sshd.log

$ tail -33 /var/log/sshd.log
Could not load host key: /etc/ssh_host_key
Could not load host key: /etc/ssh_host_rsa_key
Could not load host key: /etc/ssh_host_dsa_key
Disabling protocol version 1. Could not load host key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.
Could not load host key: /etc/ssh_host_key
Could not load host key: /etc/ssh_host_rsa_key
Could not load host key: /etc/ssh_host_dsa_key
Disabling protocol version 1. Could not load host key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.
Could not load host key: /etc/ssh_host_key
Could not load host key: /etc/ssh_host_rsa_key
Could not load host key: /etc/ssh_host_dsa_key
Disabling protocol version 1. Could not load host key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.
Could not load host key: /etc/ssh_host_key
Could not load host key: /etc/ssh_host_rsa_key
Could not load host key: /etc/ssh_host_dsa_key
Disabling protocol version 1. Could not load host key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.

$ ls -l /etc/ssh*
-rwxr-xr-x1 SYSTEM   Domain U 1159 Sep 10 10:45 /etc/ssh_config
-rwxr-xr-x1 SYSTEM   Domain U 1159 Sep  3 16:55 /etc/ssh_config.saved
-rw---1 SYSTEM   Domain U  668 Sep  3 16:55 /etc/ssh_host_dsa_key
-rw-r--r--1 SYSTEM   Domain U  600 Sep  3 16:55 /etc/ssh_host_dsa_key.pub
-rw---1 SYSTEM   Domain U  525 Sep  3 16:55 /etc/ssh_host_key
-rw-r--r--1 SYSTEM   Domain U  329 Sep  3 16:55 /etc/ssh_host_key.pub
-rw---1 SYSTEM   Domain U  887 Sep  3 16:55 /etc/ssh_host_rsa_key
-rw-r--r--1 SYSTEM   Domain U  220 Sep  3 16:55 /etc/ssh_host_rsa_key.pub
-rw-r--r--1 SYSTEM   Domain U 2910 Sep 10 10:45 /etc/sshd_config
-rw-r--r--1 SYSTEM   Domain U 2910 Sep  8 15:54 /etc/sshd_config.saved

$ cygrunsrv -Q sshd
Service sshd exists
Type: Own Process
Current State   : Running
Controls Accepted   : Accept Stop

$ slogin -v doyle
OpenSSH_3.9p1, OpenSSL 0.9.7d 17 Mar 2004
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to doyle [10.2.3.39] port 22.
debug1: Connection established.
debug1: identity file /home/luke/.ssh/identity type 0
debug1: identity file /home/luke/.ssh/id_rsa type -1
debug1: identity file /home/luke/.ssh/id_dsa type 2
debug1: Remote protocol version 1.99, remote software version OpenSSH_3.9p1
debug1: match: OpenSSH_3.9p1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.9p1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host doyle is known and matches the RSA host key.
debug1: Found key in /home/luke/.ssh/known_hosts:19
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /home/luke/.ssh/id_rsa
debug1: Offering public key: /home/luke/.ssh/id_dsa
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can cont

Re: ssh login to PC stopped working

2004-09-20 Thread luke . kendall
On 20 Sep, To: [EMAIL PROTECTED] wrote:
>  [EMAIL PROTECTED] password:  
>  debug1: Authentication succeeded (password). 
>  debug1: channel 0: new [client-session] 
>  debug1: Entering interactive session. 
>  debug1: client_input_channel_req: channel 0 rtype exit-status reply 0 
>  debug1: channel 0: free: client-session, nchannels 1 
>  Connection to doyle closed. 
>  debug1: Transferred: stdin 0, stdout 0, stderr 29 bytes in 0.1 seconds 
>  debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 381.6 
>  debug1: Exit status 255 

Hmm.  Problem was solved by rebooting.  (This is under Windows XP SP1.)

Here's what it looks like following the reboot:

debug1: Next authentication method: password
[EMAIL PROTECTED]'s password: 
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: channel 0: request pty-req
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: channel 0: request x11-req
debug1: Requesting authentication agent forwarding.
debug1: channel 0: request [EMAIL PROTECTED]
debug1: channel 0: request shell
debug1: channel 0: open confirm rwindow 0 rmax 32768
Last login: Mon Sep 13 18:10:42 2004 from pessard.research.canon.com.au
Fanfare!!!
You are successfully logged in to this server!!!
Logged in via ssh: now restoring any network connections
Setting OFFICE_PATH (if MS Office is installed) ...
Path is /cygdrive/c/Program Files/Microsoft Office/Office10/, version: 10.0
Running .profile
Setting up for bash
Setting up GNU environment
Setting up CVS environment

[EMAIL PROTECTED]:/home/luke

Does this make sense to anyone?

luke


--
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 cmd programs in cygwin / rxvt

2004-09-20 Thread overbored
There are some cmd shell programs that don't run well in rxvt. Most 
noticeably, they don't always immediately write out their output. They 
seem to work fine in the default cmd window though (doesn't matter if 
it's in cmd or in bash). Does anybody know what the problem is here, and 
how to fix it? Thanks in advance.

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


Login behaviour oddities: won't run .profile

2004-09-20 Thread luke . kendall
I looked into a problem reported today, that ~/.profile is not executed
if you use Cygwin to create your home directory, instead of using
Windows Explorer to create the directory.

The user who reported it and I played around for a while, with getfacl
and setfacl to try to find the difference and fix them.  While setfacl
doesn't seem to allow you to do everything you need (specifically, you
can't use it to delete the default group ACL for ~ since you have to
specify a group, but there is no group for the default group), ACLs may
not be the full explanation anyway.

We managed to set the two directories to appear to have identical ACLs
according to the Advanced security tab in the Windows Explorer
properties - but that still didn't help!

Cygwin will only run ~/.profile if "~" was created via Win Explorer.
(This seems to be reasonably new behaviour - we've got a lot of users
who would have been affected every day, if this had been true for a
long time.)

My colleague said that he had to run an strace (presumably on bash), to
find out why .profile was being run.  It appears to stat ~/.profile,
look at the ACL, and then close .profile without reading and executing
commands from it (in the case where ~ was created by a Cygwin mkdir).

We explicitly mount, e.g., D:/home on /home in textmode, if that's any
help.

I've confirmed this problem on a fresh install.  I'm continuing to look
into it.  It doesn't appear to be a problem for older Cygwins.

CYGWIN_NT-5.1 DOYLE 1.5.10(0.116/4/2) 2004-05-25 22:07 i686 unknown unknown Cygwin

(That version above seems insensitive to who creates ~.  Whereas the one
below is sensitive.)

CYGWIN_NT-5.1 STOUT 1.5.10(0.116/4/2) 2004-05-25 22:07 i686 unknown unknown Cygwin

Hmm.  They look the same to me (perhaps because I update my Cygwin
quite regularly).

Anyway, as I said, I'm just starting to look into this.  Feel free to
suggest other tests I should try or things I should look into.

Regards,

luke


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



Starting sshd with ipv6 address only (cont.)

2004-09-20 Thread dimitri berbanov
So how come I can ping6 under cygwin?
From: Corinna Vinschen <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Starting sshd with ipv6 address only
Date: Fri, 17 Sep 2004 21:40:24 +0200
On Sep 17 15:33, dimitri berbanov wrote:
> Hi,
>  I'm running cygwin under Win XP, but I cannot get sshd to listen only 
on
> ipv6 address. I've installed sshd as a service with "cygrunsrv -I sshd
> --path /usr/sbin/sshd.exe -a -6" (in order to force sshd to use only 
IPv6
> address), and I've modified sshd_config with "ListenAddress 
> global address>". But when I try to start sshd "process unexpectedly
> terminates", and  in /var/log/sshd.log it says "bad addr or host: 

> ipv6 global address> (no address associated with host name)."
>
>  What could have gone wrong? Any help would be mostly appreciated.

Cygwin doesn't support ipv6 and therefore Cygwin's OpenSSH doesn't suport
it, too.
Corinna
--
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:[EMAIL PROTECTED]
Red Hat, Inc.
--
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/
_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

--
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: Login behaviour oddities: won't run .profile

2004-09-20 Thread Corinna Vinschen
On Sep 20 18:10, [EMAIL PROTECTED] wrote:
> I looked into a problem reported today, that ~/.profile is not executed
> if you use Cygwin to create your home directory, instead of using
> Windows Explorer to create the directory.
> 
> The user who reported it and I played around for a while, with getfacl
> and setfacl to try to find the difference and fix them.  While setfacl
> doesn't seem to allow you to do everything you need (specifically, you
> can't use it to delete the default group ACL for ~ since you have to
> specify a group, but there is no group for the default group), ACLs may
> not be the full explanation anyway.

get/setfacl are not designed to manipulate the ACLs in a WIndows way,
but in a Unixy way.  Keep in mind that you always have a primary
group and always primary group permission bits in the POSIX permissions.
You can't delete them, just set them to --- if you like.  To get rid of
the primary group ACE entirely, either use NT tools (cacls) or change
the primary group for the file first.

> We managed to set the two directories to appear to have identical ACLs
> according to the Advanced security tab in the Windows Explorer
> properties - but that still didn't help!
> 
> Cygwin will only run ~/.profile if "~" was created via Win Explorer.
> (This seems to be reasonably new behaviour - we've got a lot of users
> who would have been affected every day, if this had been true for a
> long time.)

Sorry but this is bogus.  There's no difference whether a directory is
created using Cygwin or Windows.

bash gets its idea of where the home directory is from the setting of
$HOME.  When starting up `bash --login' locally, then the Cygwin DLL
constructs $HOME using the following rule:

- If $HOME is present in the environment, convert it to a POSIX path
  and use it.
- Otherwise, if the user has an /etc/passwd entry and this entry contains
  a non-empty pw_dir field, use this as $HOME.
- Otherwise, if $HOMEDRIVE and $HOMEPATH are set in the Windows environment
  (they usually are), use them to create a POSIXy $HOME from them.
- Otherwise use "/" as $HOME.

Does that help?

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
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: Starting sshd with ipv6 address only (cont.)

2004-09-20 Thread Corinna Vinschen
On Sep 20 08:20, dimitri berbanov wrote:
> So how come I can ping6 under cygwin?

$ which ping6
/cygdrive/c/WINDOWS/system32/ping6

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
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: Latest snapshot with XP SP2 and unison and cvs

2004-09-20 Thread Corinna Vinschen
On Sep 18 12:23, Karl M wrote:
> Hi All...
> 
> I just updated an xp machine to sp2 and unison-2.9.1 (the win32 version) 
> using ssh (cygwin) started hanging. I have done a clean install of cygwin 
> and am running with the 16sep snapshot. cvs (cygwin) works fine with ssh. 
> unison hangs with ssh.
> 
> Because win32 unison will not run under bash, I opened a cygwin bash 
> window, did an strace of cmd
> and then ran unison. The strace is attached.
> 
> Any thoughts?

No.  I don't see any change in Cygwin between 1.5.10 and 1.5.11 which
could result in a new behaviour on sockets.  The strace is useless.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:[EMAIL PROTECTED]
Red Hat, Inc.

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



Re: Running cmd programs in cygwin / rxvt

2004-09-20 Thread Brian Dessent
overbored wrote:

> There are some cmd shell programs that don't run well in rxvt. Most
> noticeably, they don't always immediately write out their output. They
> seem to work fine in the default cmd window though (doesn't matter if
> it's in cmd or in bash). Does anybody know what the problem is here, and
> how to fix it? Thanks in advance.

What you're seeing is caused by the output of the program going through
a tty (or pty as the case may be.)  When you run it from a straight
cmd.exe it's not using tty code (unless you have CYGWIN=tty set.)  From
my meagre knowledge of the subject it has to do with the program not
explicitly flushing stdout (or not knowing that it needs to as this is
usually not required under windows.)

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/



Re: Starting sshd with ipv6 address only (cont.)

2004-09-20 Thread Vince Hoffman

Came intot this thread late so sorry if someone has already said this
if you are desperate for IPv6 in cygwin progs, have a look at
http://win6.jp/Cygwin/
Its pretty upto date but says its not happy in a non ipv6 environment.
On Mon, 20 Sep 2004, Corinna Vinschen wrote:

> On Sep 20 08:20, dimitri berbanov wrote:
> > So how come I can ping6 under cygwin?
>
> $ which ping6
> /cygdrive/c/WINDOWS/system32/ping6
>
> Corinna
>
> --
> Corinna Vinschen  Please, send mails regarding Cygwin to
> Cygwin Project Co-Leader  mailto:[EMAIL PROTECTED]
> Red Hat, Inc.
>
> --
> 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/



Cygwin-specific Libtool patches (Was Re: Is cygffi.dll needed for SableVM JVM?)

2004-09-20 Thread Dalibor Topic
Gerrit P. Haase wrote:
It is as is for backward compatibility, new created DLLs don't need
all the stuff with __declspec(import/export), however, some libs still
use it and if you link against one which uses import/export
definitions it may break things when using pass_all.   Then there are
still some problems with exporting data, so it may also be needed to
use import/export definitions with DLLs containing data, and then it
would break too.  As long as you have libraries which don't use
import/export definitions and since all code is PIC on Windows anyway,
you may safely use pass_all.
I was wondering whether you know if there are pending patches from 
Cygwin developers for GNU Libtool, as they are preparing Libtool 2.0, so 
it would be nice to have those included, if possible :) The Libtool 
upstream is very cooperative and responsive to patches in my experience.

cheers,
dalibor topic
--
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: Dia & gtk 2 & cygwin

2004-09-20 Thread S. L.
Gerrit,

[...]
> 
> Actually it is:
> 
> http://cygnome2.sourceforge.net/howto/dia-0.93-cygwin.patch
> 
[...]

Oops! Sorry, I didn't check the link, just copy'n'pasted it from the patches
page. 

SLao

P.S. (As an add-on to my previous N.B.) My gtk2 build is using your
glib/atk/pango packages, which suite as a glove for the win32 gdktarget.
Good job!

-- 
NEU: GMX ProMail mit bestem Virenschutz http://www.gmx.net/de/go/mail
+++ Empfehlung der Redaktion +++ Internet Professionell 10/04 +++


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



PostgreSQL on Win98: initdb failed

2004-09-20 Thread Christian Rank
Hello,

I'm trying to run the Cygwin version of PostgreSQL on Windows 98 SE.
During initdb, creation of the initial database cluster is aborted with
the message
creating template1 database in /var/pgsql/data/base/1...
shmat(id=1179648) failed: invalid argument

The sequence of commands leading to this is as follows:

  mkdir /var/pgsql
  export CYGWIN=server
  /usr/bin/cygserver-config -n
  /usr/sbin/cygserver -E &
  mkdir /var/pgsql/data
  initdb -D /var/pgsql/data -E LATIN1

Software versions used:
  cygwin 1.5.11-1
  PostgreSQL 7.4.5-1
  Windows 98 Second Edition 4.10. A

The same setup runs on Windows 2000 without problems. According to the
cygserver docs, it should run on Win98, too.

Does anybody know what's going wrong here?

Thanks in advance,
Christian

-- 
Dr. Christian Rank
Rechenzentrum Universität Passau
Innstr. 33
D-94032 Passau
GERMANY
Tel.: 0851/509-1838
Fax:  0851/509-1802
PGP public key see http://www.rz.uni-passau.de/mitarbeiter/rank




--
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: 1.5.11 - tcp problems

2004-09-20 Thread Marcus Davage
Corinna,

>I'm wondering if C:\WINNT\system32\drivers\etc\services is readable
>for everyone.  Could you go into the above directory and call
>
>  chmod a+r services

Everyone can read it.

>Attaching the cygcheck output could perhaps give us a clue what's
>going wrong on your system.

Attached - cygcheck.txt.bz2

Thanks.

Marcus



cygcheck.txt.bz2
Description: Zip archive
--
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/

Installation error message sed.exe: cygintl-3.dll not found

2004-09-20 Thread Håkan Andersson
I performed a standard installation whith default settings.
When starting cygwin I get the following error-message:

Sed.exe
Could not find cygintl-3.dll 


cygwin ver. 1.5.11-1
on Windows XP

Cygwin is started in a console window and appears to be working.


Best regards

Håkan Andersson

Cygwin Configuration Diagnostics
Current System Time: Mon Sep 20 13:18:37 2004

Windows XP Professional Ver 5.1 Build 2600 Service Pack 1

Path:   C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
C:\cygwin\usr\X11R6\bin
c:\WINDOWS\system32
c:\WINDOWS
c:\WINDOWS\system32\WBEM
c:\WINDOWS\system32
c:\WINDOWS
c:\WINDOWS\System32\Wbem
c:\Program\ATI Technologies\ATI Control Panel
c:\Program\ATI Technologies\ATI Control Panel
c:\AppliedBio\Shared\Bin

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 400(Harald) GID: 401(mkpasswd)
401(mkpasswd)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 400(Harald) GID: 401(mkpasswd)
401(mkpasswd)

SysDir: C:\WINDOWS\System32
WinDir: C:\WINDOWS

HOME = `c:\Documents and Settings\Harald'
MAKE_MODE = `unix'
PWD = `/cygdrive/c/Documents and Settings/Harald'
USER = `Harald'

ABIHOME = `c:\AppliedBio'
ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\Harald\Application Data'
CLIENTNAME = `Console'
COLLECTIONID = `wuclient'
COMMONPROGRAMFILES = `C:\Program\Delade filer'
COMPUTERNAME = `BMBARBAR'
COMSPEC = `C:\WINDOWS\system32\cmd.exe'
CVS_RSH = `/bin/ssh'
HMSERVER = `https://h30083.www3.hp.com/wuss/servlet/WUSSServlet'
HOMEDRIVE = `C:'
HOMEPATH = `\Documents and Settings\Harald'
HOSTNAME = `BMbarbar'
INFOPATH = 
`/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:'
ITEMID = `wuclientsv'
LANG = `1053'
LOGONSERVER = `\\BMBARBAR'
MANPATH = `/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man:'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/usr/bin'
OS = `Windows_NT'
OSVER = `winXPP'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PRINTER = `'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 15 Model 2 Stepping 9, GenuineIntel'
PROCESSOR_LEVEL = `15'
PROCESSOR_REVISION = `0209'
PROGRAMFILES = `C:\Program'
PROMPT = `$P$G'
PS1 = `\[\033]0;\w\007
[EMAIL PROTECTED] \[\033[33m\w\033[0m\]
$ '
SESSIONID = `1094774110387wuws06-l221e9e:ff19727e5a:-6fe3'
SESSIONNAME = `Console'
SHLVL = `1'
SWUTVER = `1.0.18.20030625'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINDOWS'
TEMP = `C:\DOCUME~1\Harald\LOKALA~1\Temp'
TERM = `cygwin'
TIMEOUT = `0'
TMP = `C:\DOCUME~1\Harald\LOKALA~1\Temp'
TOOLPATH = `/C:\Program\Hewlett-Packard\HP%20Software%20Update\install.htm'
UPDATEDIR = `C:\DOCUME~1\Harald\LOKALA~1\Temp\rad23BA2.tmp'
USERDOMAIN = `BMBARBAR'
USERNAME = `Harald'
USERPROFILE = `C:\Documents and Settings\Harald'
VERSION = `2.0.35'
WINDIR = `C:\WINDOWS'
_ = `/usr/bin/cygcheck'
POSIXLY_CORRECT = `1'

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

c:  hd  NTFS   38146Mb  21% CP CS UN PA FC 
d:  cd  CDFS 197Mb 100%CS UN   Embedded Linux

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!)
Found: C:\cygwin\bin\find.exe
Not Found: gcc
Not Found: gdb
Found: C:\cygwin\bin\grep.exe
Not Found: ld
Found: C:\cygwin\bin\ls.exe
Not Found: make
Found: C:\cygwin\bin\mv.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe

   45k 2001/04/25 C:\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0
  "cygform5.dll" v0.0 ts=2001/4/25 7:28
   35k 2002/01/09 C:\cygwin\bin\cygform6.dll - os=4.0 img=1.0 sys=4.0
  "cygform6.dll" v0.0 ts=2002/1/9 7:03
   48k 2003/08/09 C:\cygwin\bin\cygform7.dll - os=4.0 img=1.0 sys=4.0
  "cygform7.dll" v0.0 ts=2003/8/9 11:25
   28k 2003/07/20 C:\cygwin\bin\cyggdbm-3.dll - os=4.0 img=1.0 sys=4.0
  "cyggdbm-

Rebuilding GDB

2004-09-20 Thread Adrian Cox
I'm trying to build a Cygwin hosted GDB for debugging ARM and PowerPC
boards.  After running into a lot of problems, I tried to rebuild the
native GDB that Cygwin installed for me, and that didn't work either.

I'm up to date with Cygwin setup, and running on Win2k SP4. Below is the
end of the build where everything goes wrong:

make[3]: Entering directory `/tmp/inbuild/libgui/src'
gcc -DHAVE_CONFIG_H -I. -I/usr/src/gdb-20030919-1/libgui/src -I.. -DWIN32 -mwin3
2 -fwritable-strings -I/usr/include -I/usr/include -I"/netrel/src/libtcltk/tk/xl
ib" -DHAVE_NO_SEH=1 -DEXCEPTION_DISPOSITION=int   -I/usr/include/../unix -I/usr/
include/../win -DTBL_VERSION=\"2.7\" -DTBL_COMMAND=\"table\" -DTBL_RUNTIME=\"tkT
able.tcl\" -DTBL_RUNTIME_DIR=\"/usr/local/insight/share/redhat/gui\" -DSTATIC_BU
ILD-g -O2 -c /usr/src/gdb-20030919-1/libgui/src/tclwinprint.c
/usr/src/gdb-20030919-1/libgui/src/tclwinprint.c:26:22: tkWinInt.h: No such file
 or directory
/usr/src/gdb-20030919-1/libgui/src/tclwinprint.c: In function `winprint_page_set
up_command':
/usr/src/gdb-20030919-1/libgui/src/tclwinprint.c:187: warning: assignment makes
pointer from integer without a cast
/usr/src/gdb-20030919-1/libgui/src/tclwinprint.c: In function `winprint_print_te
xt_dialog':
/usr/src/gdb-20030919-1/libgui/src/tclwinprint.c:360: warning: assignment makes
pointer from integer without a cast
/usr/src/gdb-20030919-1/libgui/src/tclwinprint.c: At top level:
/usr/src/gdb-20030919-1/libgui/src/tclwinprint.c:905: warning: initialization fr
om incompatible pointer type
/usr/src/gdb-20030919-1/libgui/src/tclwinprint.c:906: warning: initialization fr
om incompatible pointer type
/usr/src/gdb-20030919-1/libgui/src/tclwinprint.c:907: warning: initialization fr
om incompatible pointer type
/usr/src/gdb-20030919-1/libgui/src/tclwinprint.c:908: warning: initialization fr
om incompatible pointer type
make[3]: *** [tclwinprint.o] Error 1

Where should tkWinInt.h come from? I've got other Tcl/Tk header files in
/usr/include, but I'm missing this one.

- Adrian Cox
Humboldt Solutions Ltd.


Cygwin Configuration Diagnostics
Current System Time: Mon Sep 20 14:45:16 2004

Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 4

Path:   C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
C:\cygwin\usr\X11R6\bin
c:\WINNT\system32
c:\WINNT
c:\WINNT\System32\Wbem

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 500(Administrator) GID: 513(None)
513(None)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 500(Administrator) GID: 513(None)
0(root) 513(None)
544(Administrators) 545(Users)

SysDir: C:\WINNT\system32
WinDir: C:\WINNT

HOME = `C:\cygwin\home\Administrator'
MAKE_MODE = `unix'
PWD = `/home/Administrator'
USER = `Administrator'

ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\Administrator\Application Data'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `FROG'
COMSPEC = `C:\WINNT\system32\cmd.exe'
CVS_RSH = `/bin/ssh'
HOMEDRIVE = `C:'
HOMEPATH = `\Documents and Settings\Administrator'
HOSTNAME = `frog'
INFOPATH = 
`/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:'
LOGONSERVER = `\\FROG'
MANPATH = 
`/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man::/usr/ssl/man'
NUMBER_OF_PROCESSORS = `2'
OLDPWD = `/usr/bin'
OS2LIBPATH = `C:\WINNT\system32\os2\dll;'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PKG_CONFIG_PATH = `/usr/X11R6/lib/pkgconfig'
PRINTER = `\\http://newt.humboldt.co.uk:631\Kyocera FS-600'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 8 Stepping 3, GenuineIntel'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0803'
PROGRAMFILES = `C:\Program Files'
PROMPT = `$P$G'
PS1 = `\[\033]0;\w\007
[EMAIL PROTECTED] \[\033[33m\w\033[0m\]
$ '
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINNT'
TEMP = `C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp'
TERM = `cygwin'
TMP = `C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp'
USERDOMAIN = `FROG'
USERNAME = `Administrator'
USERPROFILE = `C:\Documents and Settings\Administrator'
WINDIR = `C:\WINNT'
_ = `/usr/bin/cygcheck'
POSIXLY_CORRECT = `1'

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\/home/adrian
  (default) = `h:'
  flags = 0x010a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `C:\cygwin/bin'
  flags = 0x0

Re: Cygwin-specific Libtool patches

2004-09-20 Thread Gerrit P. Haase
Hallo Dalibor,

Am Montag, 20. September 2004 um 12:01 schriebst du:

> I was wondering whether you know if there are pending patches from
> Cygwin developers for GNU Libtool, as they are preparing Libtool 2.0, so
> it would be nice to have those included, if possible :) The Libtool 
> upstream is very cooperative and responsive to patches in my experience.

If our libtool maintainer and his family survived Ivan I'm pretty sure
that he will submit pending patches timely.


Gerrit
-- 
=^..^=



--
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: Login behaviour oddities: won't run .profile

2004-09-20 Thread Igor Pechtchanski
On Mon, 20 Sep 2004, Corinna Vinschen wrote:

> On Sep 20 18:10, lukekendallcisracanoncomau wrote:
   ^^
Hmmm?

> > I looked into a problem reported today, that ~/.profile is not executed
> > if you use Cygwin to create your home directory, instead of using
> > Windows Explorer to create the directory.
> [snip]
> > We managed to set the two directories to appear to have identical ACLs
> > according to the Advanced security tab in the Windows Explorer
> > properties - but that still didn't help!
> [snip]
>
> Sorry but this is bogus.  There's no difference whether a directory is
> created using Cygwin or Windows.

Umm, sure there is.  Windows Explorer will inherit the permissions of the
parent directory by default, whereas Cygwin will always create a new set
of ACLs (or, at least, I haven't found a way to make Cygwin directories
inherit the parent's ACLs).  I don't know how that can make a difference,
but there it is.

@Luke: when you say "use Cygwin to create the home directory", do you mean
"let /etc/profile create it for you", or "use Cygwin's mkdir"?  If the
latter, then Corinna's right, and it shouldn't make any difference (even
if the inheritance properties differ).  If the former, then beware that
one of the /etc/skel files copied to $HOME by /etc/profile is
".bash_profile", which bash will use in preference to ".profile".  If the
home directory already exists by the time /etc/profile is first run for a
user, the /etc/skel files won't be copied, which I think is what's
happening in your case.

One solution is to remove /etc/skel/.bash_profile after the installs
(maybe even in your own site-specific postinstall script).  I don't know
if the base-files postinstall script will re-create that file, though --
if it does, it needs to be fixed.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

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



Re: Running cmd programs in cygwin / rxvt

2004-09-20 Thread Andrew DeFaria
Brian Dessent wrote:
overbored wrote:
There are some cmd shell programs that don't run well in rxvt. Most 
noticeably, they don't always immediately write out their output. 
They seem to work fine in the default cmd window though (doesn't 
matter if it's in cmd or in bash). Does anybody know what the problem 
is here, and how to fix it? Thanks in advance.
What you're seeing is caused by the output of the program going 
through a tty (or pty as the case may be.) When you run it from a 
straight cmd.exe it's not using tty code (unless you have CYGWIN=tty 
set.) From my meagre knowledge of the subject it has to do with the 
program not explicitly flushing stdout (or not knowing that it needs 
to as this is usually not required under windows.)
Is there a CYGWIN setting to tell rxvt not to use ptys?
--
3 kinds of people: those who can count & those who can'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: Login behaviour oddities: won't run .profile

2004-09-20 Thread John Morrison
> One solution is to remove /etc/skel/.bash_profile after the installs
> (maybe even in your own site-specific postinstall script).  I don't know
> if the base-files postinstall script will re-create that file, though --
> if it does, it needs to be fixed.

The base-files postinstall script will attempt to recreate its files
if they don't exist, it can't differentiate between deleted and clean install
(do any?).

If you want to use a ~/.profile instead change /etc/skel/.bash_profile to
be something along the lines of

source ~/.profile

Base-files *will not* (now) overwrite a user modified file.

Would this be sufficient?  I don't know how to improve this... make a note
during preremove of any of the manifest files missing and don't create
them upon installation?  Possible I suppose...

J.


--
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: Installation error message sed.exe: cygintl-3.dll not found (Attn: sed maintainer)

2004-09-20 Thread Igor Pechtchanski
On Mon, 20 Sep 2004, Håkan Andersson wrote:

> I performed a standard installation whith default settings.
> When starting cygwin I get the following error-message:
>
> Sed.exe
> Could not find cygintl-3.dll
>
> cygwin ver. 1.5.11-1 on Windows XP

This is a packaging bug in the "sed" package.  It's been apparently
recompiled using libintl3, but the "requires:" line in setup.hint still
says libintl2.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw
--
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: Updated: cvs-1.11.17-1

2004-09-20 Thread Joaquim Ballabrera
Dear Charles Wilson,
I'm a cygwin user and I have problems using CVS. I'm trying to use the 
following command fron cygwin:

> cvs -d :ext:[EMAIL PROTECTED]:/cvsroot/gcc co -D 8/25/2004 gcc
The result is
' from cvs serverning: unrecognized response`ok
and then the program hangs.
The very same command works smoothly in a SGI workstation.
In both machines I have
setenv CVS_RSH ssh
Question: Do I have to configure CVS in cygwin with any other option?
Thank you very much,
Joaquim Ballabrera
University of Maryland

Charles Wilson wrote:
CVS is the 'Concurrent Versioning System', a widely-used package for 
maintianing revision histories of source code.  This port is based on 
the official cvs-1.11.17 release, and requires that libgdbm4-1.8.3-7 
be installed as well.

CHANGES:
* updated to the latest release (thanks to Volker Quetschke for doing 
the heavy lifting)


--
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: [INFO] Adding "Cygwin here" to Windows Explorer

2004-09-20 Thread kurtz
Thorsten Kampe escribió:
[HKEY_CLASSES_ROOT\Folder\shell\command\command]
@="C:\\cygwin\\bin\\rxvt.exe -e /bin/zsh --login -i -s \"%1\""
and...
if [[ $OSTYPE = cygwin && $ARGC = 1 ]]; then 
cd $@; fi
I set bash instead of zsh, and try to use $# instead of $ARGC, in my 
.bashrc. There, $# always has the value 0. Any ideas?

Cordially, Ismael
--
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: signal delivery problem (with pthreads)

2004-09-20 Thread Christopher Faylor
On Sun, Sep 19, 2004 at 11:17:28PM -0700, Yitzchak Scott-Thoennes wrote:
>On Fri, Sep 17, 2004 at 10:08:31AM +0100, Dave Korn wrote:
>>No SEGV for me.  -lpthread didn't seem necessary.  I'm using a version
>>of the cygwin1.dll built from CVS sources on 20041407.
>
>did you try it more than once?  I'm using gcc 3.4.1 and the 20040907
>snapshot and seeing intermittent SEGVs with the test program.  Several
>times I got "select was interrupted 4202497 times", indicating that
>something bad is happening to the thread's stack.

FWIW, I tried it ten times without error.  I have it running in a loop
now.  If it dies, I'll fix the problem.

cgf

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



Re: Running cmd programs in cygwin / rxvt

2004-09-20 Thread Christopher Faylor
On Mon, Sep 20, 2004 at 02:27:42AM -0700, Brian Dessent wrote:
>overbored wrote:
>>There are some cmd shell programs that don't run well in rxvt.  Most
>>noticeably, they don't always immediately write out their output.  They
>>seem to work fine in the default cmd window though (doesn't matter if
>>it's in cmd or in bash).  Does anybody know what the problem is here,
>>and how to fix it?  Thanks in advance.
>
>What you're seeing is caused by the output of the program going through
>a tty (or pty as the case may be.) When you run it from a straight
>cmd.exe it's not using tty code (unless you have CYGWIN=tty set.) From
>my meagre knowledge of the subject it has to do with the program not
>explicitly flushing stdout (or not knowing that it needs to as this is
>usually not required under windows.)

That's more or less correct.  The larger problem is that ptys are
actually pipes under the hood and some native programs don't deal well
with having pipes for their stdin and stdout.  They either don't flush
their output correctly or they refuse to output anything at all.

cgf

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



Re: Running cmd programs in cygwin / rxvt

2004-09-20 Thread Christopher Faylor
On Mon, Sep 20, 2004 at 07:15:46AM -0700, Andrew DeFaria wrote:
>Is there a CYGWIN setting to tell rxvt not to use ptys?

How could a program like rxvt possibly work without ptys?

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



Re: Running cmd programs in cygwin / rxvt

2004-09-20 Thread Brian Dessent
Andrew DeFaria wrote:

> > What you're seeing is caused by the output of the program going
> > through a tty (or pty as the case may be.) When you run it from a
> > straight cmd.exe it's not using tty code (unless you have CYGWIN=tty
> > set.) From my meagre knowledge of the subject it has to do with the
> > program not explicitly flushing stdout (or not knowing that it needs
> > to as this is usually not required under windows.)
> 
> Is there a CYGWIN setting to tell rxvt not to use ptys?

I don't think that would do any good.  rxvt is a posix program and
expects an environment where it has ptys that it can use.  Without pty
support it would likely complain loudly and refuse to run.

Again, I'm pontificating on something I know little about here, but I'm
guessing one solution might be some kind of kludge in the cygwin layer
that would attempt to detect when a native app is doing buffered writes
to a pty and autoflush after each call.  But, just a WAG.  It might even
be out of cygwin's control, if the buffering is done in the CRT of the
app.

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/



Re: Updated: cvs-1.11.17-1

2004-09-20 Thread Igor Pechtchanski
On Mon, 20 Sep 2004, Joaquim Ballabrera wrote:

> Dear Charles Wilson,
>
> I'm a cygwin user and I have problems using CVS. I'm trying to use the
> following command fron cygwin:
>
> > cvs -d :ext:[EMAIL PROTECTED]:/cvsroot/gcc co -D 8/25/2004 gcc
>
> The result is
>
> ' from cvs serverning: unrecognized response`ok
>
> and then the program hangs.
>
> The very same command works smoothly in a SGI workstation.

Try piping the result to "cat -A", i.e.,

> cvs -d :ext:[EMAIL PROTECTED]:/cvsroot/gcc co -D 8/25/2004 gcc 2>&1 | cat -A

You have a ^M (carriage return) character embedded in the output of cvs,
and the cat command will show the full output.

> In both machines I have
>
> setenv CVS_RSH ssh
>
> Question: Do I have to configure CVS in cygwin with any other option?

This should be it.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

--
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: Installation error message sed.exe: cygintl-3.dll not found

2004-09-20 Thread Corinna Vinschen
On Sep 20 15:04, H?kan Andersson wrote:
> I performed a standard installation whith default settings.
> When starting cygwin I get the following error-message:
> 
> Sed.exe
> Could not find cygintl-3.dll 

Install the libintl3 package.  I've fixed the setup.hint file for sed.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:[EMAIL PROTECTED]
Red Hat, Inc.

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



[ANNOUNCEMENT] New packge: lighttpd-1.3.0

2004-09-20 Thread Jan Kneschke

The following package has been added to the Cygwin distribution:
 
 *** lighttpd-1.3.0-1
 
lighttpd a secure, fast, compliant and very flexible web-server which
has been optimized for high-performance environments. It has a very low
memory footprint compared to other webservers and takes care of
cpu-load. Its advanced feature-set (FastCGI, CGI, Auth,
Output-Compression, URL-Rewriting and many more) make lighttpd the
perfect webserver-software for every server that is suffering load
problems.  

Main site: http://jan.kneschke.de/projects/lighttpd/

Cygwin users of lighttpd are invited to join the lighttpd mailinglist
directly as the cygwin-port is maintain in the main-source-tree of
lighttpd.

  Jan
 
 
~ *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***
 
 
If you want to unsubscribe from the cygwin-announce mailing list, look
at the "List-Unsubscribe: " tag in the email header of this message.
Send email to the address specified there.  It will be in the format:

 [EMAIL PROTECTED]
 
 If you need more information on unsubscribing, start reading here:
 
 http://sources.redhat.com/lists.html#unsubscribe-simple
 
 
Please read *all* of the information on unsubscribing that is available
starting at this URL.


  
-- 
Jan Kneschke http://jan.kneschke.de/
Perhaps you want to say 'thank you, jan':http://jk.123.org/wishlist/


--
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: Login behaviour oddities: won't run .profile

2004-09-20 Thread Corinna Vinschen
On Sep 20 10:08, Igor Pechtchanski wrote:
> On Mon, 20 Sep 2004, Corinna Vinschen wrote:
> 
> > On Sep 20 18:10, luke[...] wrote:
>^^
> Hmmm?

Urgh, sorry about that.  That's what mutt creates when no real name is
given.  Does anybody know how to suppress this?  I didn't find this in
the mutt documentation so far.

> > Sorry but this is bogus.  There's no difference whether a directory is
> > created using Cygwin or Windows.
> 
> Umm, sure there is.  Windows Explorer will inherit the permissions of the
> parent directory by default, whereas Cygwin will always create a new set
> of ACLs (or, at least, I haven't found a way to make Cygwin directories
> inherit the parent's ACLs).  I don't know how that can make a difference,
> but there it is.

I wasn't in pedantic mode when writing that.  Let's assume that when Luke
played with the permissions, he's already changed this to some sufficient
value, like, say, the owner may read files in the own directory...


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:[EMAIL PROTECTED]
Red Hat, Inc.

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



[APPS] ping python maintainer (and others) - Launching cygwin apps from cmd.exe vs. softlinks in /bin

2004-09-20 Thread Dave Korn


  I thought this topic ought to be on the -apps list, but the description
does say...

"It is not (with one exception) for bug reports, "it would be nice", or "how
do I" type of musings."

... so I'm mentioning this here instead.

  It's quite a common idiom in cygwin packages (based on longstanding unix
tradition) to have an executable that has the version number appended to it,
and then use a soft-link to provide an unadorned executable, e.g.:

[EMAIL PROTECTED] /bin> ls -la python*
lrwxrwxrwx1 dk   Users  13 Jan  5  2004 python.exe ->
python2.3.exe
-rwxr-x---+   1 dk   Users4608 Dec 30  2003 python2.3.exe


  Now, in this particular case "python.exe" is a cygwin old-style softlink
rather than a windoze .lnk-style shortcut.  This means that it can't be
invoked from cmd.exe; because a cygwin old-style softlink is basically a
text file, cmd.exe notices that it has no PE/MZ header, but since it's got a
.exe extension, cmd.exe thinks it has to be _some_ kind of executable, so it
guesses the only thing left - that it's an old 16-bit MSDOS .com-type
executable - and invokes NTVDM, which loads the file into memory and starts
happily executing ASCII bytes as opcodes (or at any rate, happily until it
gpfaults within the first few bytes).

  It's a shame, because most normal cygwin apps can be invoked either from
bash or from cmd.  And it's a shame in particular for Python, because the
cygwin and win32-native versions are very close to functionally
interchangeable, and if it wasn't for this slight hiccup they could be used
that way (with only a little attention to not using OS-specific features in
your python scripts).

  Using a non-symbolic link works for me; "ln /bin/python2.3.exe
/bin/cmd-invokable-python.exe" gets me something I can invoke from either
DOS/cmd or bash/sh.  

  Using a new-style symlink fails in several interesting ways:

1) Well, there's the .lnk extension to take into account, which is a minor
nuisance because you can't invoke it with just 'python.exe'.

2) Also, "ln -s" sets utterly wrong ACLs on the link it creates, such that I
have no "read and execute" permission.  (I think this is a genuine bug, but
I'll start a separate thread for it once I've confirmed that.)

3) So after I modify the ACLs, and invoke it by typing
"shortcutname.exe.lnk" at a cmd.exe shell, something very bizarre happens:
it forks off from the shell, and both cmd.exe and the python exe are running
simultaneously, connected to the same stdin and fighting each other for
chars from my command lines.  [ Can I refer to this as "a terrible forking
bug" without getting banned from the list? :-O ] 

  Now, I know that using a hardlink has the effect on FAT filesystems of
simply duplicating the file, and so this might not be a desirable or
possible solution to adopt in the majority of cases.  I'm not sure how
compatible it would or wouldn't be with the cygwin packaging scheme, for
starters.

  But the python executable is a special case, because it's tiny: 4608
bytes, because all the actual functionality is in a .dll, and the .exe
simply has to load the .dll and call out to it.  So in this particular case,
(and any similar ones, such as zsh, perl, and conceivably even tclsh,
although at 16kb the waste/redundancy starts to become more worth
considering) it might be entirely reasonable to simply provide two identical
duplicate .exes in the package, mightn't it?


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: signal delivery problem (with pthreads)

2004-09-20 Thread Dave Korn
> -Original Message-
> From: cygwin-owner On Behalf Of Christopher Faylor
> Sent: 20 September 2004 15:36

> On Sun, Sep 19, 2004 at 11:17:28PM -0700, Yitzchak 
> Scott-Thoennes wrote:
> >On Fri, Sep 17, 2004 at 10:08:31AM +0100, Dave Korn wrote:
> >>No SEGV for me.  -lpthread didn't seem necessary.  I'm 
> using a version
> >>of the cygwin1.dll built from CVS sources on 20041407.
> >
> >did you try it more than once?  I'm using gcc 3.4.1 and the 20040907
> >snapshot and seeing intermittent SEGVs with the test 
> program.  Several
> >times I got "select was interrupted 4202497 times", indicating that
> >something bad is happening to the thread's stack.
> 
> FWIW, I tried it ten times without error.

  Ditto.

>  I have it running in a loop now.  If it dies, I'll fix the problem.

  Not ditto!  :)


cheers, 
  DaveK
-- 
Can't think of a witty .sigline today


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



Re: Running cmd programs in cygwin / rxvt

2004-09-20 Thread Andrew DeFaria
Christopher Faylor wrote:
On Mon, Sep 20, 2004 at 07:15:46AM -0700, Andrew DeFaria wrote:
Is there a CYGWIN setting to tell rxvt not to use ptys?
How could a program like rxvt possibly work without ptys?
I have no idea. I don't know how nor why they are required. Perhaps you 
could enlighten us? 'Cause from the outside rxvt looks just like the 
standard windows window (albeit with more functionality) and that window 
doesn't seem to require ptys...

--
I used to have a handle on life, then it broke.
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Re: Running cmd programs in cygwin / rxvt

2004-09-20 Thread Andrew DeFaria
Brian Dessent wrote:
Andrew DeFaria wrote:
What you're seeing is caused by the output of the program going 
through a tty (or pty as the case may be.) When you run it from a 
straight cmd.exe it's not using tty code (unless you have CYGWIN=tty 
set.) From my meagre knowledge of the subject it has to do with the 
program not explicitly flushing stdout (or not knowing that it needs 
to as this is usually not required under windows.)
Is there a CYGWIN setting to tell rxvt not to use ptys?
I don't think that would do any good. rxvt is a posix program and 
expects an environment where it has ptys that it can use. Without pty 
support it would likely complain loudly and refuse to run.

Again, I'm pontificating on something I know little about here, but 
I'm guessing one solution might be some kind of kludge in the cygwin 
layer that would attempt to detect when a native app is doing buffered 
writes to a pty and autoflush after each call. But, just a WAG. It 
might even be out of cygwin's control, if the buffering is done in the 
CRT of the app.
Cygwin does do some of it's own coding that is conditionally compiled 
right? Why not conditionally compile stuff to get ptys (or some other 
equivalent) to function with native Windows apps that are currently 
having problems with the concept of ptys?

I know I often point people to use rxvt because it's a lot better than 
that silly Windows window. However I often work with Clearcase and 
Clearcase's main command, cleartool, messes up WRT rxvt and ptys (as 
well as other tools), so I'm constantly explaining the problem. I'd just 
like a real solution to offer and to use.

I don't understand the internals of ptys vs. ttys and native console I/O 
nor why it's having the problem. I just deal with the result and would 
like it fixed if possible. Sounds like it may be a complex fix though. 
As I said I'm not sure why ptys are necessarily needed in the first 
place but admittedly I have not researched it.
--
Few women admit their age. Few men act theirs.

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


Re: Running cmd programs in cygwin / rxvt

2004-09-20 Thread Christopher Faylor
On Mon, Sep 20, 2004 at 08:24:44AM -0700, Andrew DeFaria wrote:
>Christopher Faylor wrote:
>>On Mon, Sep 20, 2004 at 07:15:46AM -0700, Andrew DeFaria wrote:
>>>Is there a CYGWIN setting to tell rxvt not to use ptys?
>>
>>How could a program like rxvt possibly work without ptys?
>
>I have no idea.  I don't know how nor why they are required.  Perhaps
>you could enlighten us?  'Cause from the outside rxvt looks just like
>the standard windows window (albeit with more functionality) and that
>window doesn't seem to require ptys...

rxvt is a port of a UNIX program.  UNIX uses ptys.  Windows doesn't
support the notion of ptys.

http://www.google.com/search?q=define:pty

If you want to run a standard windows window (i.e., a console window)
then that's what you get when you click on the cygwin icon.  The terminal
input and output is largely controlled by windows and cygwin has little
say over how characters are handled.  If it was as easy as just using
this, don't you think we'd have been doing this by now?

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: Cygwin-specific Libtool patches

2004-09-20 Thread Dalibor Topic
Gerrit P. Haase wrote:
Hallo Dalibor,
Am Montag, 20. September 2004 um 12:01 schriebst du:

I was wondering whether you know if there are pending patches from
Cygwin developers for GNU Libtool, as they are preparing Libtool 2.0, so
it would be nice to have those included, if possible :) The Libtool 
upstream is very cooperative and responsive to patches in my experience.

If our libtool maintainer and his family survived Ivan I'm pretty sure
that he will submit pending patches timely.
Thanks for the quick reply, Gerrit, and for putting things in 
perspective. I hope all are well.

cheers,
dalibor topic
--
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: [APPS] ping python maintainer (and others) - Launching cygwin apps from cmd.exe vs. softlinks in /bin

2004-09-20 Thread Christopher Faylor
On Mon, Sep 20, 2004 at 04:09:50PM +0100, Dave Korn wrote:
>Now, in this particular case "python.exe" is a cygwin old-style
>softlink rather than a windoze .lnk-style shortcut.

Because that's how setup.exe sets up symlinks.  PTC.

cgf

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



Re: Running cmd programs in cygwin / rxvt

2004-09-20 Thread Andrew DeFaria
Christopher Faylor wrote:
On Mon, Sep 20, 2004 at 08:24:44AM -0700, Andrew DeFaria wrote:
Christopher Faylor wrote:
On Mon, Sep 20, 2004 at 07:15:46AM -0700, Andrew DeFaria wrote:
Is there a CYGWIN setting to tell rxvt not to use ptys?
How could a program like rxvt possibly work without ptys?
I have no idea. I don't know how nor why they are required. Perhaps
you could enlighten us? 'Cause from the outside rxvt looks just like
the standard windows window (albeit with more functionality) and that
window doesn't seem to require ptys...

rxvt is a port of a UNIX program. UNIX uses ptys. Windows doesn't 
support the notion of ptys.

http://www.google.com/search?q=define:pty
Thanks for the define: thingy of Google. I didn't know that!
If you want to run a standard windows window (i.e., a console window) 
then that's what you get when you click on the cygwin icon.
I understand that. But I like using rxvt much better WRT terminal 
resizing and copy/paste semantics (as well as color and font options).

The terminal input and output is largely controlled by windows and 
cygwin has little say over how characters are handled. If it was as 
easy as just using this, don't you think we'd have been doing this by now?
I never said it would be easy - just desired. Would it be possible to 
implement a command then that says exec this with tty's instead of ptys?

--
If you mated a bulldog and a shitsu, would it be called a bullshit?
--
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: Login behaviour oddities: won't run .profile

2004-09-20 Thread Igor Pechtchanski
On Mon, 20 Sep 2004, Corinna Vinschen wrote:

> On Sep 20 10:08, Igor Pechtchanski wrote:
> > On Mon, 20 Sep 2004, Corinna Vinschen wrote:
> >
> > > On Sep 20 18:10, luke[...] wrote:
> >^^
> > Hmmm?
>
> Urgh, sorry about that.  That's what mutt creates when no real name is
> given.  Does anybody know how to suppress this?  I didn't find this in
> the mutt documentation so far.

Well, I know how to do it in Pine... 0:)

> > > Sorry but this is bogus.  There's no difference whether a directory is
> > > created using Cygwin or Windows.
> >
> > Umm, sure there is.  Windows Explorer will inherit the permissions of the
> > parent directory by default, whereas Cygwin will always create a new set
> > of ACLs (or, at least, I haven't found a way to make Cygwin directories
> > inherit the parent's ACLs).  I don't know how that can make a difference,
> > but there it is.
>
> I wasn't in pedantic mode when writing that.  Let's assume that when Luke
> played with the permissions, he's already changed this to some sufficient
> value, like, say, the owner may read files in the own directory...

Right, I obviously forgot to put the .. tags in my
reply.  I agree that it shouldn't make any perceptible difference.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

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



Re: Running cmd programs in cygwin / rxvt

2004-09-20 Thread Christopher Faylor
On Mon, Sep 20, 2004 at 08:46:32AM -0700, Andrew DeFaria wrote:
>Would it be possible to implement a command then that says exec this
>with tty's instead of ptys?

Cygwin ttys and ptys are the same thing.  You should be able to start a
command in a new console window with "cygstart" (q.v.).

--
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: Login behaviour oddities: won't run .profile

2004-09-20 Thread Igor Pechtchanski
On Mon, 20 Sep 2004, John Morrison wrote:

> > One solution is to remove /etc/skel/.bash_profile after the installs
> > (maybe even in your own site-specific postinstall script).  I don't know
> > if the base-files postinstall script will re-create that file, though --
> > if it does, it needs to be fixed.
>
> The base-files postinstall script will attempt to recreate its files
> if they don't exist, it can't differentiate between deleted and clean install
> (do any?).

Whoops, you're right.  I didn't think it through, sorry.

> If you want to use a ~/.profile instead change /etc/skel/.bash_profile to
> be something along the lines of
>
> source ~/.profile
>
> Base-files *will not* (now) overwrite a user modified file.
>
> Would this be sufficient?

Right.  That would work (and, of course, will eliminate any chance of
having different profile settings for bash and sh).

> I don't know how to improve this... make a note during preremove of any
> of the manifest files missing and don't create them upon installation?
> Possible I suppose...

Mmm, probably not worth the bother.  Besides, what do you do then if you
*add* a new /etc/skel file to the base-files package?
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

--
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: Login behaviour oddities: won't run .profile

2004-09-20 Thread Christopher Faylor
On Mon, Sep 20, 2004 at 11:53:35AM -0400, Igor Pechtchanski wrote:
>On Mon, 20 Sep 2004, Corinna Vinschen wrote:
>>On Sep 20 10:08, Igor Pechtchanski wrote:
>>>On Mon, 20 Sep 2004, Corinna Vinschen wrote:
 On Sep 20 18:10, luke[...] wrote:
>>>   ^^
>>>Hmmm?
>>
>>Urgh, sorry about that.  That's what mutt creates when no real name is
>>given.  Does anybody know how to suppress this?  I didn't find this in
>>the mutt documentation so far.
>
>Well, I know how to do it in Pine...  0:)

mutt tries to put the person's name in the attribution but switches to
email address if there is no name.  I've never been able to find a method
for DWIW either.

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: [APPS] ping python maintainer (and others) - Launching cygwin apps from cmd.exe vs. softlinks in /bin

2004-09-20 Thread Igor Pechtchanski
On Mon, 20 Sep 2004, Dave Korn wrote:

>   I thought this topic ought to be on the -apps list, but the description
> does say...
>
> "It is not (with one exception) for bug reports, "it would be nice", or "how
> do I" type of musings."
>
> ... so I'm mentioning this here instead.
>
>   It's quite a common idiom in cygwin packages (based on longstanding unix
> tradition) to have an executable that has the version number appended to it,
> and then use a soft-link to provide an unadorned executable, e.g.:
>
> [EMAIL PROTECTED] /bin> ls -la python*
> lrwxrwxrwx1 dk   Users  13 Jan  5  2004 python.exe -> python2.3.exe
> -rwxr-x---+   1 dk   Users4608 Dec 30  2003 python2.3.exe
>
>   Now, in this particular case "python.exe" is a cygwin old-style softlink
> rather than a windoze .lnk-style shortcut.  This means that it can't be
> invoked from cmd.exe; because a cygwin old-style softlink is basically a
> text file, cmd.exe notices that it has no PE/MZ header, but since it's got a
> .exe extension, cmd.exe thinks it has to be _some_ kind of executable, so it
> guesses the only thing left - that it's an old 16-bit MSDOS .com-type
> executable - and invokes NTVDM, which loads the file into memory and starts
> happily executing ASCII bytes as opcodes (or at any rate, happily until it
> gpfaults within the first few bytes).
>
>   It's a shame, because most normal cygwin apps can be invoked either from
> bash or from cmd.  And it's a shame in particular for Python, because the
> cygwin and win32-native versions are very close to functionally
> interchangeable, and if it wasn't for this slight hiccup they could be used
> that way (with only a little attention to not using OS-specific features in
> your python scripts).
>
>   Using a non-symbolic link works for me; "ln /bin/python2.3.exe
> /bin/cmd-invokable-python.exe" gets me something I can invoke from either
> DOS/cmd or bash/sh.

Alternatively, you could Google for "vi.bat site:cygwin.com" and apply the
same technique to python.

> Using a new-style symlink fails in several interesting ways:
>
> 1) Well, there's the .lnk extension to take into account, which is a minor
> nuisance because you can't invoke it with just 'python.exe'.
>
> 2) Also, "ln -s" sets utterly wrong ACLs on the link it creates, such that I
> have no "read and execute" permission.  (I think this is a genuine bug, but
> I'll start a separate thread for it once I've confirmed that.)
>
> 3) So after I modify the ACLs, and invoke it by typing
> "shortcutname.exe.lnk" at a cmd.exe shell, something very bizarre happens:
> it forks off from the shell, and both cmd.exe and the python exe are running
> simultaneously, connected to the same stdin and fighting each other for
> chars from my command lines.  [ Can I refer to this as "a terrible forking
> bug" without getting banned from the list? :-O ]
>
>   Now, I know that using a hardlink has the effect on FAT filesystems of
> simply duplicating the file, and so this might not be a desirable or
> possible solution to adopt in the majority of cases.  I'm not sure how
> compatible it would or wouldn't be with the cygwin packaging scheme, for
> starters.
>
>   But the python executable is a special case, because it's tiny: 4608
> bytes, because all the actual functionality is in a .dll, and the .exe
> simply has to load the .dll and call out to it.  So in this particular case,
> (and any similar ones, such as zsh, perl, and conceivably even tclsh,
> although at 16kb the waste/redundancy starts to become more worth
> considering) it might be entirely reasonable to simply provide two identical
> duplicate .exes in the package, mightn't it?

Some more randomly-ordered points:

a) the cluster size can be as large as 32k, which means that even a
symlink takes up that much space.

b) FWIW, if the symlink is set up in a postinstall script instead of the
tarball, it'll be a new style symlink.

c) the code in spawn.cc currently treats any file with a .exe extension
specially, and passes it on to CreateProcess without looking into it any
more than that.  It could, technically, check whether the file is an
old-style symlink, and do the right thing in that case -- as always,
.

HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

--
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: security and cygwin

2004-09-20 Thread Koskie, Sarah

> >Are there any other security related issues I should know about?  I
have
> >to assume that cygwin as installed is safe until I have time to look
> >into it, so I am hoping that my faith is not misplaced.
> 
> 
> Strange that you should ask this question now, since you admit to
using
> Cygwin prior to all this and apparently this wasn't a concern then.
No
> matter.  See the FAQ entry:
> 
> How secure is Cygwin in a multi-user environment?
> 
> 

Thanks, but that does not answer my question.  I do not know what
daemons are running.  I did not start any.  I assume some are started in
the installation process but I don't know how to find out which they
are.  I just searched the FAQs for any other mention of "daemon" and
found none.  I have also checked the User's guide but it does not seem
to contain any relevant info that I can see.  There should never be any
users logged in remotely to my cygwin and if there is something I have
to do to enforce that, that's part of what I want to know.  I should
also be the only one using sftp, ssh, etc. With the previous version of
cygwin, I was able to sftp and ssh from cygwin to other machines but not
from other machines to  my desktop computer.  I hope that is still the
case.  I'll check it eventually, but as mentioned, I have a
more-than-full time job as other than an UNIX programmer or system
administrator and I cannot just stop and spend a month setting up
cygwin.  In the past I didn't have to.  The lack of relevant
documentation and the complexity of the current setup and install
process are extremely frustrating. 



--
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: security and cygwin

2004-09-20 Thread Igor Pechtchanski
On Mon, 20 Sep 2004, Koskie, Sarah wrote:

> 
> > >Are there any other security related issues I should know about?  I
> > >have to assume that cygwin as installed is safe until I have time to
> > >look into it, so I am hoping that my faith is not misplaced.
> >
> > Strange that you should ask this question now, since you admit to
> > using Cygwin prior to all this and apparently this wasn't a concern
> > then. No matter.  See the FAQ entry:
> >
> > How secure is Cygwin in a multi-user environment?
> > 
>
> Thanks, but that does not answer my question.  I do not know what
> daemons are running.  I did not start any.  I assume some are started in
> the installation process but I don't know how to find out which they
> are.

setup.exe does not, currently, start (or even install) any daemons.  Any
daemon setup is usually done by the corresponding *-config script.  Unless
someone writes a postinstall script that will install a daemon (unlikely,
and should be considered a packaging bug), you should explicitly add any
daemons before they are started.

> I just searched the FAQs for any other mention of "daemon" and
> found none.  I have also checked the User's guide but it does not seem
> to contain any relevant info that I can see.

The Windows equivalent of "daemons" is "services".  Does that help?

> There should never be any users logged in remotely to my cygwin and if
> there is something I have to do to enforce that, that's part of what I
> want to know.

Unless you've added some services, there will be no remote users logged in
via Cygwin programs.

> I should also be the only one using sftp, ssh, etc. With the previous
> version of cygwin, I was able to sftp and ssh from cygwin to other
> machines but not from other machines to my desktop computer.  I hope
> that is still the case.

It should be.

> I'll check it eventually, but as mentioned, I have a
> more-than-full time job as other than an UNIX programmer or system
> administrator and I cannot just stop and spend a month setting up
> cygwin.  In the past I didn't have to.  The lack of relevant
> documentation and the complexity of the current setup and install
> process are extremely frustrating.

It would help more if you described the exact stumbling blocks and things
you didn't find in the docs and had to search for, or even provided
patches to the appropriate parts of the documentation.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

--
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 emacs problems

2004-09-20 Thread Koskie, Sarah
> You might be better to modify the root - /etc/passwd, but I'm kinda

You're right John.  Thanks.  In fact, I later (after sending that email)
found that that was the problem and changed the home directory there.
Now the lines in the .login (copied from /etc/csh.login work correctly
for my tcsh shell.  

I'm still hoping someone can comment on what emacs I should install to
get the normal robust behavior I've come to expect from emacses.

Unrelated issue:  Is there a way to get related messages posted properly
as followons in  the mailing list archives without subscribing to the
mailing list?  I assume it's by replying to actual email from the
mailing list that messages are posted as replies rather than new
threads.  I can't see filling my email box with questions I don't for
the most part even understand, let alone have answers for, yet feel bad
about every message starting a new thread rather than being properly
appended to the previous thread.  I'm unwillingly sending mail using MS
Office Outlook 2003 until I find time to switch to something better.

--sk


--
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: [APPS] ping python maintainer (and others) - Launching cygwin apps from cmd.exe vs. softlinks in /bin

2004-09-20 Thread Dave Korn
> -Original Message-
> From: Igor Pechtchanski  
> Sent: 20 September 2004 17:07


> >   Using a non-symbolic link works for me; "ln /bin/python2.3.exe
> > /bin/cmd-invokable-python.exe" gets me something I can 
> invoke from either
> > DOS/cmd or bash/sh.
> 
> Alternatively, you could Google for "vi.bat site:cygwin.com" 
> and apply the same technique to python.

  Fair enough, but what I really want is something that doesn't require my
makefiles to have to discriminate between what kind of python exe is first
in the path; I want them to be equipotent, and I don't want to have to
install things that aren't standard; I want a makefile that can be invoked
from either cmd.exe or bash, that can run on a system that has either cygwin
python or win32 python or both installed, that isn't sensitive to which one
comes in which order in $PATH, and that doesn't require anything extra to be
installed.  But I guess I could always use a makefile rule to create
python.bat in the objdir I'm building in hmm.  That might have been a
bit simpler than my current solution, which uses a fairly gross makefile
hack to search $PATH and some default install locations for any instances of
python.exe, then discards any which live in a ".../bin/.." subdir to try and
eliminate the cygwin version!

> c) the code in spawn.cc currently treats any file with a .exe 
> extension
> specially, and passes it on to CreateProcess without looking 
> into it any
> more than that.  It could, technically, check whether the file is an
> old-style symlink, and do the right thing in that case -- as always,
> .


  LOL, I don't really think it's within my abilities to come up with a patch
for spawn.cc that modifies the behaviour of cmd.exe... 

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: [APPS] ping python maintainer (and others) - Launching cygwin apps from cmd.exe vs. softlinks in /bin

2004-09-20 Thread Christopher Faylor
On Mon, Sep 20, 2004 at 05:48:13PM +0100, Dave Korn wrote:
>LOL, I don't really think it's within my abilities to come up with a
>patch for spawn.cc that modifies the behaviour of cmd.exe...

Don't give up so easily! While you're at it, you could also get rid of
that silly "ptys are pipes" thing that is annoying all of the cygwin rxvt
users.

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/



please help me

2004-09-20 Thread electa
If I try to retrieve again all my installed packets, using "download from
internet" and the "reinstall" option, which marks all my packages with
"retrieve", I get "An error occurred while
downloading" (in the window the bar was near end, and the package name is
"_update_info_dir...ecc")
Setup tries to re-download all, and again the same error.

How to solve 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: [APPS] ping python maintainer (and others) - Launching cygwin apps from cmd.exe vs. softlinks in /bin

2004-09-20 Thread Igor Pechtchanski
On Mon, 20 Sep 2004, Dave Korn wrote:

> > -Original Message-
> > From: Igor Pechtchanski
> > Sent: 20 September 2004 17:07
>
> > >   Using a non-symbolic link works for me; "ln /bin/python2.3.exe
> > > /bin/cmd-invokable-python.exe" gets me something I can
> > invoke from either
> > > DOS/cmd or bash/sh.
> >
> > Alternatively, you could Google for "vi.bat site:cygwin.com"
> > and apply the same technique to python.
>
>   Fair enough, but what I really want is something that doesn't require my
> makefiles to have to discriminate between what kind of python exe is first
> in the path;

If you use just "python", and the .bat is first in the path, it'll be
picked up.

> I want them to be equipotent, and I don't want to have to
> install things that aren't standard; I want a makefile that can be invoked
> from either cmd.exe or bash, that can run on a system that has either cygwin
> python or win32 python or both installed, that isn't sensitive to which one
> comes in which order in $PATH, and that doesn't require anything extra to be
> installed.  But I guess I could always use a makefile rule to create
> python.bat in the objdir I'm building in hmm.  That might have been a
> bit simpler than my current solution, which uses a fairly gross makefile
> hack to search $PATH and some default install locations for any instances of
> python.exe, then discards any which live in a ".../bin/.." subdir to try and
> eliminate the cygwin version!

You could also just create a python.bat in /bin, and cmd.exe will find
that, while Cygwin will use a symlink.

> > c) the code in spawn.cc currently treats any file with a .exe
> > extension specially, and passes it on to CreateProcess without looking
> > into it any more than that.  It could, technically, check whether the
> > file is an old-style symlink, and do the right thing in that case --
> > as always, .
>
>   LOL, I don't really think it's within my abilities to come up with a patch
> for spawn.cc that modifies the behaviour of cmd.exe...

While CGF was obviously joking about the pty/tty "fix", my suggestion was
only half-humorous.  Look in spawn.cc around line 442...  FWIW, you won't
be fixing the behavior of cmd.exe, you'll be fixing the behavior of
Cygwin1.dll when a .exe program is invoked (before it's passed to Windows
via CreateProcess, i.e., the current action for .exe's and some others is
to *not* look inside the file to check whether it's a script or a
symlink).
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

--
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: security and cygwin

2004-09-20 Thread Reini Urban
Koskie, Sarah schrieb:
Are there any other security related issues I should know about?  I
have to assume that cygwin as installed is safe until I have time to look
into it, so I am hoping that my faith is not misplaced.
See the FAQ entry:
How secure is Cygwin in a multi-user environment?

Thanks, but that does not answer my question.  I do not know what
daemons are running.  
It does answer it.
If you don't know this, you are completely unsafe.
I did not start any.  I assume some are started in
the installation process but I don't know how to find out which they
are.  I just searched the FAQs for any other mention of "daemon" and
found none.  I have also checked the User's guide but it does not seem
to contain any relevant info that I can see.  There should never be any
users logged in remotely to my cygwin and if there is something I have
to do to enforce that, that's part of what I want to know.  I should
also be the only one using sftp, ssh, etc. With the previous version of
cygwin, I was able to sftp and ssh from cygwin to other machines but not
from other machines to  my desktop computer.  I hope that is still the
case.  I'll check it eventually, but as mentioned, I have a
more-than-full time job as other than an UNIX programmer or system
administrator and I cannot just stop and spend a month setting up
cygwin.  In the past I didn't have to.  The lack of relevant
documentation and the complexity of the current setup and install
process are extremely frustrating. 
Trust the FAQ: It's unsafe.
Esp. when you don't know what a daemon is. Just believe it.
A daemon is a long-running "satanic" background process.
See your Task Manager on the Process Tab.
One of the daemons you don't see is for example called "Explorer" (the 
windows desktop). This is one of the worst security holes on windows, 
regardless of cygwin.

sftp, sshd, cygserver, cron and all other cygwin services are also 
daemons, which share global data via cygwin1.dll. If you are running 
them as user, a possible intruder can gain permissions of this user.
If you run cygwin programs as service the intruder might gain 
permissions of the SYSTEM user.
--
Reini Urban

--
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: Rebuilding GDB

2004-09-20 Thread Dave Korn
> -Original Message-
> From: cygwin-owner On Behalf Of Adrian Cox
> Sent: 20 September 2004 14:44

> I'm trying to build a Cygwin hosted GDB for debugging ARM and PowerPC
> boards.  After running into a lot of problems, I tried to rebuild the
> native GDB that Cygwin installed for me, and that didn't work either.
> 
> I'm up to date with Cygwin setup, and running on Win2k SP4. 
> Below is the
> end of the build where everything goes wrong:

  BTW, when discussing compile problems with gnu packages, you should always
quote the options you gave to configure (if any).

> make[3]: Entering directory `/tmp/inbuild/libgui/src'
> gcc -DHAVE_CONFIG_H -I. -I/usr/src/gdb-20030919-1/libgui/src 
> -I.. -DWIN32 -mwin3
> 2 -fwritable-strings -I/usr/include -I/usr/include 
> -I"/netrel/src/libtcltk/tk/xl
> ib" -DHAVE_NO_SEH=1 -DEXCEPTION_DISPOSITION=int   
> -I/usr/include/../unix -I/usr/
> include/../win -DTBL_VERSION=\"2.7\" -DTBL_COMMAND=\"table\" 
> -DTBL_RUNTIME=\"tkT
> able.tcl\" > -DTBL_RUNTIME_DIR=\"/usr/local/insight/share/redhat/gui\"
-DSTATIC_BU
> ILD-g -O2 -c /usr/src/gdb-20030919-1/libgui/src/tclwinprint.c
> /usr/src/gdb-20030919-1/libgui/src/tclwinprint.c:26:22: 
> tkWinInt.h: No such file
>  or directory

  Hmm.  It should be in the source distribution itself, at
/usr/src/gdb-20030919-1/tk/win.

  Let me see compare with the command line I got when I built insight from
source last time  I didn't use the cygwin sources, but they're currently
in fairly close sync with the repository I get the same warnings from
the compile as you did, but didn't get the fatal error from the missing
header.  So it should be instructive to compare the "-I" options in our
respective versions:

gcc -DHAVE_CONFIG_H -I. -I../../../../tools/gdb-6.1.1/libgui/src -I..
-DWIN32 -mwin32 -fwritable-strings -I/repository/tools/gdb-6.1.1/tcl/generic
-I/repository/tools/gdb-6.1.1/tk/generic
-I"/repository/tools/gdb-6.1.1/tk/xlib" -DHAVE_NO_SEH=1
-DEXCEPTION_DISPOSITION=int
-I/repository/tools/gdb-6.1.1/tk/generic/../unix
-I/repository/tools/gdb-6.1.1/tk/generic/../win -DTBL_VERSION=\"2.7\"
-DTBL_COMMAND=\"table\" -DTBL_RUNTIME=\"tkTable.tcl\"
-DTBL_RUNTIME_DIR=\"/usr/local/share/redhat/gui\" -DSTATIC_BUILD-g -O2
-c ../../../../tools/gdb-6.1.1/libgui/src/tclwinprint.c

  Ok, so your one has this strange include path to
/netrel/src/libtcltk/tk/xlib which my one doesn't.  Looks like maybe you
have an older version of the tcl/tk headers in your installation and somehow
it got chosen at configure time over the ones included with the gdb source
distro?  Also, there really shouldn't be all those "-I /usr/include"s in
there.  And what on earth are "/usr/include/../win" and
"/usr/include/../unix"?  Maybe configure has somehow failed to find
something and is using /usr/include as a default, no-hope-last-chance
fallback; and then bogusly concatenating relative paths onto it that would
have been relevant if it had found the real headers but make no sense when
just hoping they're in the standard system includes dir.  Yech.  


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: re emacs problems

2004-09-20 Thread Igor Pechtchanski
On Mon, 20 Sep 2004, Koskie, Sarah wrote:

> [snip]
> I'm still hoping someone can comment on what emacs I should install to
> get the normal robust behavior I've come to expect from emacses.

Isn't the official plural "emacsen"? ;-)  I'm a vi person, so I don't know
for sure...

> Unrelated issue:  Is there a way to get related messages posted properly
> as followons in  the mailing list archives without subscribing to the
> mailing list?

Yes.  Two ways, in fact.  One works with programs that understand the
"mbox" format for e-mail (e.g., pine); the other is more generic, but
requires some effort.

> I assume it's by replying to actual email from the mailing list that
> messages are posted as replies rather than new threads.

Right, that's the idea -- to get the actual message without subscribing to
the list.  For the "mbox" method, Google for "web archives raw text
site:cygwin.com" -- I posted a couple of recipes before (I've since
improved on the automation of the method, if anyone's interested).  The
second method is described in a help message you get from ezmlm (mail to
cygwincom>) -- namely, you can get a copy of any list
message by e-mailing to cygwincom>.  The trick
is finding out the message number -- the "Raw text" link is helpful here
as well; just look at the "From " line (first line of the raw text), and
the MSGNUM will be the digits between "cygwin-return-" and "-listarch-".

> I can't see filling my email box with questions I don't for the most
> part even understand, let alone have answers for, yet feel bad about
> every message starting a new thread rather than being properly appended
> to the previous thread.
>
> I'm unwillingly sending mail using MS Office Outlook 2003 until I find
> time to switch to something better.

Gulp! :-)
In any case, the second method above should work even with Outlook.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

--
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: please help me

2004-09-20 Thread Larry Hall
At 01:03 PM 9/20/2004, you wrote:
>If I try to retrieve again all my installed packets, using "download from
>internet" and the "reinstall" option, which marks all my packages with
>"retrieve", I get "An error occurred while
>downloading" (in the window the bar was near end, and the package name is
>"_update_info_dir...ecc")
>Setup tries to re-download all, and again the same error.
>
>How to solve it?

Try installing from your local directory.  That might work/avoid the problem.


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


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



Crontab issue

2004-09-20 Thread Mogyorósi István
Hello,
I spent quite a lot of time reading the subject and
I still dont have clear sight on the problem.
It is probably a permission/access sync issue
between Cygwin and NT.
But my case is NOT a network drive.
Case 1,
crontab -e [ logged in as Administrator ]
20 12 * * * /home/Administrator/mydate.sh [ my own script to exec ]
-
it works with the result written in my home directory.
mydate.sh is `date >mydate.txt`
Case 2,
crontab -e [ logged in as Administrator ]
25 12 * * * /cygdrive/e/otherpath/mydate.sh [ my second script to exec ]
-
this does not work.
My Error message in Eventlog is:
bla .. bla .. /usr/sbin/cron : PID 2356 : (Administrator) CMD
(/cygdrive/e/otherpath/mydate.sh 2>&1)
The access permissions for both shell scripts are identical.
The only difference is the path to execute.
If I install the service as Administrator, and try to start it
with the Service Control Manager it fails to start and
I get the error message in the Event Log:
... bla bla .. Cygwin_cron : PID 2260 : starting service
'Cygwin_cron' failed : execv: 1 , Operation not permitted.
Any comments welcome,
Regards
Istvan Mogyorosi
begin:vcard
fn;quoted-printable:Istv=C3=A1n Mogyor=C3=B3si
n;quoted-printable;quoted-printable:Mogyor=C3=B3si;Istv=C3=A1n
org:TeleDataCast Kft.
adr:;;HAuszmann Alajos u. 2.;BUDAPEST;;1117;HUNGARY
email;internet:[EMAIL PROTECTED]
title;quoted-printable:fejleszt=C5=91
tel;cell:+36703323249
x-mozilla-html:FALSE
url:http://www.tdc.hu
version:2.1
end:vcard


--
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: Crontab issue

2004-09-20 Thread Igor Pechtchanski
On Mon, 20 Sep 2004, Mogyorósi István wrote:
Hello,
I spent quite a lot of time reading the subject and I still dont have
clear sight on the problem. It is probably a permission/access sync
issue between Cygwin and NT. But my case is NOT a network drive.
Case 1,
crontab -e [ logged in as Administrator ]
20 12 * * * /home/Administrator/mydate.sh [ my own script to exec ]
-
it works with the result written in my home directory.
mydate.sh is `date >mydate.txt`
It's a good idea to specify the absolute paths for any commands or output
files.
Case 2,
crontab -e [ logged in as Administrator ]
25 12 * * * /cygdrive/e/otherpath/mydate.sh [ my second script to exec ]
-
this does not work.
My Error message in Eventlog is:
bla .. bla .. /usr/sbin/cron : PID 2356 : (Administrator) CMD
(/cygdrive/e/otherpath/mydate.sh 2>&1)
Hmm, looks like it *is* getting executed, but the output is lost?  See
the previous comment.
The access permissions for both shell scripts are identical.
The only difference is the path to execute.
Can you execute the latter script from the command line as Administrator?
If not, are the access permissions on both *paths* sufficient?  For a
script to be executable, all the components in the path to it have to be
reachable (i.e., the directories have to have at least the execute
permission).
If I install the service as Administrator, and try to start it
with the Service Control Manager it fails to start and
I get the error message in the Event Log:
... bla bla .. Cygwin_cron : PID 2260 : starting service
'Cygwin_cron' failed : execv: 1 , Operation not permitted.
This is a different symptom -- most likely the necessary DLLs in your /bin
are not executable by non-owners (i.e., SYSTEM, which is the user cron
will run under when installed as service).  A "chmod -R a+X /bin" should
help (you might also need to fix permissions for other files/directories
under /var, and maybe /lib, /share, and /etc).
Igor
--
http://cs.nyu.edu/~pechtcha/
 |\  _,,,---,,_ [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
|,4-  ) )-,_. ,\ (  `'-'Igor Pechtchanski, Ph.D.
   '---''(_/--'  `-'\_) fL  a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!
"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/

Re: Running cmd programs in cygwin / rxvt

2004-09-20 Thread Andrew DeFaria
Christopher Faylor wrote:
On Mon, Sep 20, 2004 at 08:46:32AM -0700, Andrew DeFaria wrote:
Would it be possible to implement a command then that says exec this 
with tty's instead of ptys?
Cygwin ttys and ptys are the same thing. 
OK how about a command that says start this Windows console mode 
application using whatever it is that will make it happy enough to talk 
to stdin/stdout/stderr (short of starting a new window that is).

You should be able to start a command in a new console window with 
"cygstart" (q.v.).
Yes I can, however this starts it in another "Windows window" that does 
not easily resize, has crappy copy/paste semantics, colors and fonts. 
IOW all the reasons why I'm running rxvt! What I want is for it to run 
in the rxvt window so that I can have the nicer copy/paste, etc, not 
start a new window.
--
I put instant coffee in my microwave oven and almost went back in 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: signal delivery problem (with pthreads)

2004-09-20 Thread Valery A. Frolov
On Mon, 20 Sep 2004 10:35:48 -0400, Christopher Faylor wrote:
> FWIW, I tried it ten times without error.  I have it running in a loop
> now.  If it dies, I'll fix the problem.

But I had _no_ one successful run at all.
Maybe the operating system is the essence. I've always tried it on NT 4.0
WS SP6a+hotfixes. Tomorrow I'll check it (the same executable) on 2000/XP.

WBR,
 Valery

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



Re: Running cmd programs in cygwin / rxvt

2004-09-20 Thread Larry Hall
At 02:57 PM 9/20/2004, you wrote:
>Christopher Faylor wrote:
>
>>On Mon, Sep 20, 2004 at 08:46:32AM -0700, Andrew DeFaria wrote:
>>
>>>Would it be possible to implement a command then that says exec this with tty's 
>>>instead of ptys?
>>
>>Cygwin ttys and ptys are the same thing. 
>
>OK how about a command that says start this Windows console mode application using 
>whatever it is that will make it happy enough to talk to stdin/stdout/stderr (short 
>of starting a new window that is).
>

I think the point is that while it may be possible to make changes that do
what you want, they are not straight-forward and compromise POSIX
portability.  I also suspect that this is an area that requires real thought
and real effort by someone interested in taking up the effort.  If that's 
you, perhaps you want to get into the code a little bit and come back with 
questions about specific changes you'd propose.  To me, that seems the most
productive approach to a solution.


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


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



Re: Running cmd programs in cygwin / rxvt

2004-09-20 Thread Christopher Faylor
On Mon, Sep 20, 2004 at 11:57:09AM -0700, Andrew DeFaria wrote:
>Christopher Faylor wrote:
>
>>On Mon, Sep 20, 2004 at 08:46:32AM -0700, Andrew DeFaria wrote:
>>
>>>Would it be possible to implement a command then that says exec this 
>>>with tty's instead of ptys?
>>
>>Cygwin ttys and ptys are the same thing. 
>
>OK how about a command that says start this Windows console mode 
>application using whatever it is that will make it happy enough to talk 
>to stdin/stdout/stderr (short of starting a new window that is).

You keep offering simple-minded suggestions that boil down to "Well just
make rxvt work with these applications that don't like cygwin ptys, then."

Let me say it in big letters so that you will understand:

IT IS NOT POSSIBLE TO DO WHAT YOU WANT.

If it was possible, we would have done something long ago.

I'd be thrilled to be proved wrong or to have someone point me at
documentation which illustrates a way to do this.  Until such time, just
pounding on points from an admitted complete lack of understanding of
the issues is really pretty pointless.

>>You should be able to start a command in a new console window with 
>>"cygstart" (q.v.).
>
>Yes I can, however this starts it in another "Windows window" that does 
>not easily resize, has crappy copy/paste semantics, colors and fonts. 

And that's the one of the main features of rxvt.  But there are
trade-offs.  The fact that you don't like the trade-offs and desperately
want someone to fix them for you does not mean that the trade-offs will
go away if you keep offering uninformed suggestions.

rxvt is only a dessert topping.  It is not a floor wax.  No amount of
buffing is going to give you the shine on your floor that you are hoping
for.

cgf

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



Re: Running cmd programs in cygwin / rxvt

2004-09-20 Thread Christopher Faylor
On Mon, Sep 20, 2004 at 03:19:12PM -0400, Larry Hall wrote:
>At 02:57 PM 9/20/2004, you wrote:
>>Christopher Faylor wrote:
>>>On Mon, Sep 20, 2004 at 08:46:32AM -0700, Andrew DeFaria wrote:
Would it be possible to implement a command then that says exec this
with tty's instead of ptys?
>>>
>>>Cygwin ttys and ptys are the same thing.
>>
>>OK how about a command that says start this Windows console mode
>>application using whatever it is that will make it happy enough to talk
>>to stdin/stdout/stderr (short of starting a new window that is).
>
>I think the point is that while it may be possible to make changes that
>do what you want, they are not straight-forward and compromise POSIX
>portability.

Sorry Larry, but the point is that it is not possible to make the
changes.

So, you start a windows console app and you communicate with it, how,
exactly?  Open up a pipe?  Nope can't do that.  How then?

>I also suspect that this is an area that requires real thought and real
>effort by someone interested in taking up the effort.

I'm not even sure it's possible to do.  If it is possible to do, it's
probably only possible on NT.

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/



[ANNOUNCEMENT] Updated: libxml2-2.6.13-1

2004-09-20 Thread Gerrit P. Haase
Libxml2 has been updated to version 2.6.13

NEWS

Please read the news since the previous Cygwin release (2.6.11) here:
http://www.xmlsoft.org/news.html


DESCRIPTION
===
Libxml2 is the XML C parser and toolkit developed for the Gnome
project (but usable outside of the Gnome platform), it is free
software available under the MIT License. XML itself is a metalanguage
to design markup languages, i.e. text language where semantic and
structure are added to the content using extra 'markup' information
enclosed between angle brackets. HTML is the most well-known markup
language. Though the library is written in C a variety of language
bindings make it available in other environments. 


UPDATE
==
To update your installation, click on the "Install Cygwin now" link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Save it and run setup, answer the questions and pick up
'libxml2' from the 'Libs' category, if you install it for the first
time, click on the 'skip' field next to 'libxml2' until '2.6.13-1' is
displayed. 


DOWNLOAD:
=
Note that downloads from sources.redhat.com (aka cygwin.com) aren't
allowed due to bandwidth limitations.  This means that you will need
to find a mirror which has this update, please choose the one nearest to
you: http://cygwin.com/mirrors.html


QUESTIONS:
==
If you want to make a point or ask a question the Cygwin mailing
list is the appropriate place.


CYGWIN-ANNOUNCE UNSUBSCRIBE INFO:
=
To unsubscribe to the cygwin-announce mailing list, look at the
"List-Unsubscribe: " tag in the email header of this message.  Send
email to the address specified there.  It will be in the format:

[EMAIL PROTECTED]

If you need more information on unsubscribing, start reading here:

http://sources.redhat.com/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.


Gerrit P. Haase
-- 
=^..^=








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



[ANNOUNCEMENT] Updated: libxslt-1.1.10-1

2004-09-20 Thread Gerrit P. Haase
Libxslt has been updated to version 1.1.10.

NEWS

Please read the news since the previous Cygwin release (1.1.8) here:
http://xmlsoft.org/XSLT/news.html


DESCRIPTION
===
Libxslt is the XSLT C library developed for the Gnome project. XSLT
itself is a an XML language to define transformation for XML. Libxslt
is based on libxml2 the XML C library developed for the Gnome project.
It also implements most of the EXSLT set of processor-portable
extensions functions and some of Saxon's evaluate and expressions
extensions. 


UPDATE
==
To update your installation, click on the "Install Cygwin now" link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Save it and run setup, answer the questions and pick up
'libxslt' from the 'Libs' category, if you install it for the first
time, click on the 'skip' field next to 'libxslt' until '1.1.10-1' is
displayed. 


DOWNLOAD:
=
Note that downloads from sources.redhat.com (aka cygwin.com) aren't
allowed due to bandwidth limitations.  This means that you will need
to find a mirror which has this update, please choose the one nearest to
you: http://cygwin.com/mirrors.html



QUESTIONS:
==
If you want to make a point or ask a question the Cygwin mailing
list is the appropriate place.


CYGWIN-ANNOUNCE UNSUBSCRIBE INFO:
=
To unsubscribe to the cygwin-announce mailing list, look at the
"List-Unsubscribe: " tag in the email header of this message.  Send
email to the address specified there.  It will be in the format:

[EMAIL PROTECTED]

If you need more information on unsubscribing, start reading here:

http://sources.redhat.com/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.


Gerrit P. Haase
-- 
=^..^=







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



[ANNOUNCEMENT] Updated: docbook-xsl-1.66.1-1

2004-09-20 Thread Marcel Telka
I've updated the docbook-xsl package to version 1.66.1-1.

docbook-xsl package contains XSL stylesheets for the DocBook XML DTD 
created by Norman Walsh and others.

Changes since 1.65.1-1:
- Updated to mainstream 1.66.1

To update your installation, click on the "Install Cygwin now" link on 
the http://cygwin.com/ web page. This downloads setup.exe to your 
system. Then, run setup and answer all of the questions.

If you have questions or comments, please send them to the Cygwin 
mailing list at: cygwin at cygwin dot com. I would appreciate it if you 
would use this mailing list rather than emailing me directly.

-- 
+---+
| Marcel Telka   e-mail:   [EMAIL PROTECTED]  |
|homepage: http://telka.sk/ |
|jabber:   [EMAIL PROTECTED] |
+---+


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



[ANNOUNCEMENT] New package: unison 2.10.2-1

2004-09-20 Thread Schulman . Andrew




The package 'unison' is now available in the Cygwin distribution.

Unison is a file synchronizer for Unix and Windows. It allows two
replicas of a collection of files and directories to be stored on
different hosts (or different disks on the same host), modified
separately, and then brought up to date by propagating the changes in
each replica to the other.

Please note that 'unison' contains the CLI (command-line interface)
version of Unison.  The GUI version will be released soon for Cygwin as
the unison-gtk2 package.

Home page:  http://www.cis.upenn.edu/~bcpierce/unison/
License:GPL

Andrew E. Schulman

***

To update your installation, click on the "Install Cygwin now" link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Then, run setup and answer all of the questions.

If you have questions or comments, please send them to the Cygwin
mailing list at: [EMAIL PROTECTED] .

*** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, look
at the "List-Unsubscribe: " tag in the email header of this message.
Send email to the address specified there.  It will be in the format:

[EMAIL PROTECTED]

If you need more information on unsubscribing, start reading here:

http://sources.redhat.com/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.

***


--
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: Latest snapshot with XP SP2 and unison and cvs

2004-09-20 Thread Karl M
Hi All...
What can I do that would be usefull? I'm not sure how to tell where things 
are hanging, because unison-2.9.1 is a win32 program that invokes a cygwin 
ssh client.

I did confirm that it is a ssh client side issue. That is, an XP SP2 machine 
is fine as the server, but not as the client.

If I turn on the -v -v -v in ssh, the last thing I get is from a 
channel_input_window_adjust call.


From: Corinna Vinschen <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Latest snapshot with XP SP2 and unison and cvs
Date: Mon, 20 Sep 2004 11:20:14 +0200
On Sep 18 12:23, Karl M wrote:
> Hi All...
>
> I just updated an xp machine to sp2 and unison-2.9.1 (the win32 version)
> using ssh (cygwin) started hanging. I have done a clean install of 
cygwin
> and am running with the 16sep snapshot. cvs (cygwin) works fine with 
ssh.
> unison hangs with ssh.
>
> Because win32 unison will not run under bash, I opened a cygwin bash
> window, did an strace of cmd
> and then ran unison. The strace is attached.
>
> Any thoughts?

No.  I don't see any change in Cygwin between 1.5.10 and 1.5.11 which
could result in a new behaviour on sockets.  The strace is useless.
Corinna
--
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:[EMAIL PROTECTED]
Red Hat, Inc.
--
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/
_
Is your PC infected? Get a FREE online computer virus scan from McAfee® 
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

--
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: Starting sshd with ipv6 address only (cont.)

2004-09-20 Thread Robert Pendell
So basically they are working on it. ;)


On Mon, 20 Sep 2004 10:30:22 +0100 (BST), Vince Hoffman
<[EMAIL PROTECTED]> wrote:
> 
> Came intot this thread late so sorry if someone has already said this
> if you are desperate for IPv6 in cygwin progs, have a look at
> http://win6.jp/Cygwin/
> Its pretty upto date but says its not happy in a non ipv6 environment.
> 
> 
> On Mon, 20 Sep 2004, Corinna Vinschen wrote:
> 
> > On Sep 20 08:20, dimitri berbanov wrote:
> > > So how come I can ping6 under cygwin?
> >
> > $ which ping6
> > /cygdrive/c/WINDOWS/system32/ping6
> >
> > Corinna
> >
> > --
> > Corinna Vinschen  Please, send mails regarding Cygwin to
> > Cygwin Project Co-Leader  mailto:[EMAIL PROTECTED]
> > Red Hat, Inc.
> >
> > --
> > 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/
> 
> 



-- 
Robert Pendell
[EMAIL PROTECTED]

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



SYSTEM user passwd

2004-09-20 Thread Prakash Khemani

On installing CYGWIN on my WinXP machine - it created a user called
SYSTEM in my /etc/passwd directory.

If I go to Control Panel -> User Accounts then there is only one local
user listed - and that is Administrator.

I can say login Administrator. It logs me in and immediately logs me out
- because the home dir and shell for Administrator are not set in
/etc/passwd.

I can't do the same with the user SYSTEM. What is the password for the
SYSTEM user - I tried the Administrator password but that didn't work.

My username, even though it is in the Administrators group, is not able
to read files owned by SYSTEM and having permissions same as -rwx--.

Please help me.

Thanks,
Prakash

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



[ANNOUNCEMENT] Updated: glib2-2.4.6-1

2004-09-20 Thread Gerrit P. Haase
I have updated GLib, the low-level core library that forms the basis for
projects such as GTK+ and GNOME to version 2.4.6.


NEWS

General: This is regular update to the new stable upstream release.


Overview of Changes from GLib 2.4.5 to GLib 2.4.6
=

* Bug fixes [Matthias Clasen, Ray Strode]
* New and updated translations (mn,nb)



DESCRIPTION
===
The GLib library provides data structure handling for C, portability
wrappers, and interfaces for such runtime functionality as an event
loop, threads, dynamic loading, and an object system.  Canonical
website: http://www.gtk.org/


UPDATE
==
To update your installation, click on the "Install Cygwin now" link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Save it and run setup, answer the questions and pick up
'glib2' from the 'Libs' category, if you install it for the first
time, click on the 'skip' field next to 'glib2' until '2.4.6-1' is
displayed.


DOWNLOAD:
=
Note that downloads from sources.redhat.com (aka cygwin.com) aren't
allowed due to bandwidth limitations.  This means that you will need
to find a mirror which has this update, please choose the one nearest to
you: http://cygwin.com/mirrors.html


QUESTIONS:
==
If you want to make a point or ask a question the Cygwin mailing
list is the appropriate place.


CYGWIN-ANNOUNCE UNSUBSCRIBE INFO:
=
To unsubscribe to the cygwin-announce mailing list, look at the
"List-Unsubscribe: " tag in the email header of this message.  Send
email to the address specified there.  It will be in the format:

[EMAIL PROTECTED]


If you need more information on unsubscribing, start reading here:

http://sources.redhat.com/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.


Gerrit P. Haase
-- 
=^..^=





--
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: Updated: cvs-1.11.17-1

2004-09-20 Thread Charles Wilson
Joaquim Ballabrera wrote:
Dear Charles Wilson,
I'm a cygwin user and I have problems using CVS. I'm trying to use the 
following command fron cygwin:

 > cvs -d :ext:[EMAIL PROTECTED]:/cvsroot/gcc co -D 8/25/2004 gcc
The result is
' from cvs serverning: unrecognized response`ok
and then the program hangs.
The very same command works smoothly in a SGI workstation.
In both machines I have
setenv CVS_RSH ssh
I'm sorry, but I can't reproduce this.  I've tried your exact command, 
with 'export CVS_RSH=ssh' (I use bash, not a csh-ish shell).  I've done 
it in a working directory which is mounted in binary (unix) mode, and in 
one which is mounted in text (DOS) mode.  In both cases, it works 
without error.

Now, that's started from a standstill (no previous checkout).
I note that when I do this 'beginning' checkout from a text mode working 
directory, the following files have '^M' endings:

*/CVS/Entries
*/CVS/Entries.log
*/CVS/Repository
*/CVS/Root
*/CVS/Tag
That might be a bad thing -- since it would tend to mess up future 
'update' checkouts (and cvs diffs, and ...) ***IF*** cvs is opening 
those files for READ in binary mode (that is, not translating the '^M's 
away).

But it doesn't.
I mean, cvs opens those files in the appropriate mode, stripping away 
the '^M's as far as I can tell.  I'm going to need more information.

"Run 'cygcheck -s -v -r > cygcheck.out' and include that file as an
attachment in your report.  Please do not compress or otherwise encode
the output. Just attach it as a straight text file so that it can be
easily viewed."
--
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: [APPS] ping python maintainer (and others) - Launching cygwin apps from cmd.exe vs. softlinks in /bin

2004-09-20 Thread Brian Dessent
Christopher Faylor wrote:

> On Mon, Sep 20, 2004 at 04:09:50PM +0100, Dave Korn wrote:
> >Now, in this particular case "python.exe" is a cygwin old-style
> >softlink rather than a windoze .lnk-style shortcut.
> 
> Because that's how setup.exe sets up symlinks.  PTC.

Alternatively, the postinstall[1] script could be used to setup the
symlink using 'ln', instead of including it in the tarball and expecting
setup.exe to make it.  Wouldn't that make everyone happy?  (Except
perhaps the python maintainer, who now has an extra step...)

Brian

[1] And technically you'd need to remove it with a preremove script,
otherwise you'd get a broken link hanging around in your path after you
removed the package with setup.exe.

--
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: [APPS] ping python maintainer (and others) - Launching cygwin apps from cmd.exe vs. softlinks in /bin

2004-09-20 Thread Christopher Faylor
On Mon, Sep 20, 2004 at 06:10:22PM -0700, Brian Dessent wrote:
>Christopher Faylor wrote:
>
>> On Mon, Sep 20, 2004 at 04:09:50PM +0100, Dave Korn wrote:
>> >Now, in this particular case "python.exe" is a cygwin old-style
>> >softlink rather than a windoze .lnk-style shortcut.
>> 
>> Because that's how setup.exe sets up symlinks.  PTC.
>
>Alternatively, the postinstall[1] script could be used to setup the
>symlink using 'ln', instead of including it in the tarball and expecting
>setup.exe to make it.  Wouldn't that make everyone happy?  (Except
>perhaps the python maintainer, who now has an extra step...)

It's better to just fix setup.exe.

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: SYSTEM user passwd

2004-09-20 Thread Brian Dessent
Prakash Khemani wrote:

> On installing CYGWIN on my WinXP machine - it created a user called
> SYSTEM in my /etc/passwd directory.

SYSTEM is a built-in user account on every[1] Windows machine.  Cygwin
did not create it, merely put a line in /etc/passwd that acknowledges
it.  The account would exist even if Cygwin had never been installed. 
Tip: Run Task Manager, select the "Processes" tab, and make sure the
"User name" column is enabled (View -> Select Columns if not.)  You will
see that all your services are run as this account.  If you are using XP
or later you will also see the additional accounts NETWORK SERVICE and
LOCAL SERVICE in addition to SYSTEM.

> If I go to Control Panel -> User Accounts then there is only one local
> user listed - and that is Administrator.

It is a built-in system account, it will not be listed there.  It cannot
be used as a normal account anyway.

> I can't do the same with the user SYSTEM. What is the password for the
> SYSTEM user - I tried the Administrator password but that didn't work.

There is none, you cannot log on to Windows as SYSTEM.  You can however
start processes as that user (as the above example with Task Manager
should show.)  Search/google the archives of this list for "sysbash" for
an example of how to get a bash prompt as the SYSTEM user.  However,
that's hardly ever required unless you're trying to debug a service that
will not start.

> My username, even though it is in the Administrators group, is not able
> to read files owned by SYSTEM and having permissions same as -rwx--.

That's normal too.  That is how POSIX permissions work.  If you are not
the owner you have no r, w, or x access for a file with permissions
700.  If you want to read the file you'll either need to first either
change the ownership ("man chown") or change the permissions ("man
chmod"), or both.  Since this file was likely created by a service you
do NOT want to blindly change its ownership to "Administrator" as then
it will no longer be able to read/write the file, unless you modify the
permissions as well.

Brian

[1] Not counting 95, 98, ME, which have no real notion of accounts
anyway.

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



Re: Running cmd programs in cygwin / rxvt

2004-09-20 Thread Andrew DeFaria
Christopher Faylor wrote:
On Mon, Sep 20, 2004 at 11:57:09AM -0700, Andrew DeFaria wrote:
Christopher Faylor wrote:
On Mon, Sep 20, 2004 at 08:46:32AM -0700, Andrew DeFaria wrote:
Would it be possible to implement a command then that says exec this
with tty's instead of ptys?
Cygwin ttys and ptys are the same thing.
OK how about a command that says start this Windows console mode
application using whatever it is that will make it happy enough to talk
to stdin/stdout/stderr (short of starting a new window that is).

You keep offering simple-minded suggestions that boil down to "Well just
make rxvt work with these applications that don't like cygwin ptys, then."
Let me say it in big letters so that you will understand:
IT IS NOT POSSIBLE TO DO WHAT YOU WANT.
If it was possible, we would have done something long ago.
I'd be thrilled to be proved wrong or to have someone point me at
documentation which illustrates a way to do this. Until such time, just
pounding on points from an admitted complete lack of understanding of
the issues is really pretty pointless.
You should be able to start a command in a new console window with
"cygstart" (q.v.).
Yes I can, however this starts it in another "Windows window" that does
not easily resize, has crappy copy/paste semantics, colors and fonts.

And that's the one of the main features of rxvt. But there are
trade-offs. The fact that you don't like the trade-offs and desperately
want someone to fix them for you does not mean that the trade-offs will
go away if you keep offering uninformed suggestions.
rxvt is only a dessert topping. It is not a floor wax. No amount of
buffing is going to give you the shine on your floor that you are hoping
for.
cgf
Well my mom always used to say: "It doesn't hurt to ask". Apparently she 
never met you!

Seriously though I was just asking whether it would be possible and 
trying to gain an understanding as to the issues involved - you need not 
be rude about it. A simple, "that's not possible to do the way things 
are set up" would have sufficed.

Seems to me that you said similar things when I asked why does a bash 
process hang around when you close it via the X box on top and yet now 
rxvt does kill the bash process...
--
Press any key to continue or any other key to quit...

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


Re: Running cmd programs in cygwin / rxvt

2004-09-20 Thread Brian Dessent
Andrew DeFaria wrote:

> Seriously though I was just asking whether it would be possible and
> trying to gain an understanding as to the issues involved - you need not
> be rude about it. A simple, "that's not possible to do the way things
> are set up" would have sufficed.

Cygwin: You'll come for the posix emulation layer, you'll stay for the
meaness. 

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/



Re: Running cmd programs in cygwin / rxvt

2004-09-20 Thread Christopher Faylor
On Mon, Sep 20, 2004 at 06:54:59PM -0700, Andrew DeFaria wrote:
>Seriously though I was just asking whether it would be possible

I think that was obvious to you, me, and Bobby McNulty.

cgf

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



Re: Running cmd programs in cygwin / rxvt

2004-09-20 Thread Bobby McNulty
Christopher Faylor wrote:
On Mon, Sep 20, 2004 at 06:54:59PM -0700, Andrew DeFaria wrote:
 

Seriously though I was just asking whether it would be possible
   

I think that was obvious to you, me, and Bobby McNulty.
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/
 

What? Did I miss something?
Chris, this guy has no clue as to what he's talking about. He's worse 
than me when I first started.
He does not know how GPL works, he has no clue as to what Cygwin is or 
how it got started.
He's a musician pretending to be a programmer. But he's not a 
programmer. He does not know what POSIX is, or why its important for 
Cygwin, Unix, and Linux. He wants to fix programs that are already 
stable, such as cmd. If he wants to program a Windows program, he needs 
to buy Visual Studio. I am learning more and more about Cygwin as I work 
with it. I learn from my mistakes. Does he? He needs an attitude adjustment.

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