Re: pdksh package proposal

2003-02-20 Thread Corinna Vinschen
On Thu, Feb 20, 2003 at 07:03:17AM -, Elfyn McBratney wrote:
 http://twoducks.exposure.org.uk/elfyn/cygwin/pdksh/pdksh-5.2.14-1-src.tar.bz
 2
 http://twoducks.exposure.org.uk/elfyn/cygwin/pdksh/pdksh-5.2.14-1.tar.bz2
 http://twoducks.exposure.org.uk/elfyn/cygwin/pdksh/setup.hint
 
 category: Shells
 requires: cygwin
 sdesc:A public domain ksh
 ldesc:PD-ksh is a clone of the ATT Korn shell. At the moment,
 it has most of the ksh88 features, not much of the ksh93
 features, and a number of it's own features.

This has my vote.

I reviewed the packaging and I found one problems in the binary package:

Even though you install the /etc files via postinstall script, they
are already installed in /etc.  This way they do overwrite the already
existing files and the postinstall script will do basically nothing.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.



Re: pdksh package proposal

2003-02-20 Thread Elfyn McBratney
 On Thu, Feb 20, 2003 at 07:03:17AM -, Elfyn McBratney wrote:
 
http://twoducks.exposure.org.uk/elfyn/cygwin/pdksh/pdksh-5.2.14-1-src.tar.bz
  2
 
http://twoducks.exposure.org.uk/elfyn/cygwin/pdksh/pdksh-5.2.14-1.tar.bz2
  http://twoducks.exposure.org.uk/elfyn/cygwin/pdksh/setup.hint
 
  category: Shells
  requires: cygwin
  sdesc:A public domain ksh
  ldesc:PD-ksh is a clone of the ATT Korn shell. At the moment,
  it has most of the ksh88 features, not much of the ksh93
  features, and a number of it's own features.

 This has my vote.

 I reviewed the packaging and I found one problems in the binary package:

 Even though you install the /etc files via postinstall script, they
 are already installed in /etc.  This way they do overwrite the already
 existing files and the postinstall script will do basically nothing.

 Corinna


Kewl! I have just uplaoded the package, removed the files in /etc too.


Regards,

Elfyn McBratney
[EMAIL PROTECTED]
www.exposure.org.uk





Re: pdksh package proposal

2003-02-20 Thread Elfyn McBratney
  Even though you install the /etc files via postinstall script, they
  are already installed in /etc.  This way they do overwrite the already
  existing files and the postinstall script will do basically nothing.
 
  Corinna


 Kewl! I have just uplaoded the package, removed the files in /etc too.

Sorry, same URLs as before. And sorry for the dupes, don't knw why that's
happening. :/

http://twoducks.exposure.org.uk/elfyn/cygwin/pdksh/pdksh-5.2.14-1-src.tar.b
z2
http://twoducks.exposure.org.uk/elfyn/cygwin/pdksh/pdksh-5.2.14-1.tar.bz2
http://twoducks.exposure.org.uk/elfyn/cygwin/pdksh/setup.hint


Regards,

Elfyn McBratney
[EMAIL PROTECTED]
www.exposure.org.uk





Re: pdksh package proposal

2003-02-20 Thread Corinna Vinschen
On Thu, Feb 20, 2003 at 09:49:55AM -, Elfyn McBratney wrote:
 http://twoducks.exposure.org.uk/elfyn/cygwin/pdksh/pdksh-5.2.14-1-src.tar.b
 z2
 http://twoducks.exposure.org.uk/elfyn/cygwin/pdksh/pdksh-5.2.14-1.tar.bz2
 http://twoducks.exposure.org.uk/elfyn/cygwin/pdksh/setup.hint

Looks good now.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.



Pending packages status

2003-02-20 Thread Pavel Tsekov
1. grace

date   : 25 Nov 2002
version: 5.1.10-1
status : not reviewed
notes  : http://cygwin.com/ml/cygwin-apps/2002-11/msg00322.html
votes  : 2 (Lapo and Robert)
url: http://www.scytek.de/cygwin/grace-5.1.10-1.tar.bz2
 http://www.scytek.de/cygwin/grace-5.1.10-1-src.tar.bz2
 http://www.scytek.de/cygwin/setup.hint

2. nfs-server

date   : 09 Dec 2002
version: 2.2.47-1
status : reviewed; there are several pending issues (more info
 can be found in the nfs related threads starting after
 Feb 11, 2003)
notes  : http://www.cygwin.com/ml/cygwin-apps/2002-12/msg00113.html
 http://www.cygwin.com/ml/cygwin-apps/2003-01/msg00072.html
 http://www.cygwin.com/ml/cygwin-apps/2003-01/msg00109.html
 http://www.cygwin.com/ml/cygwin-apps/2003-01/msg00211.html
 http://www.cygwin.com/ml/cygwin-apps/2003-02/msg00133.html
reviews: http://www.cygwin.com/ml/cygwin-apps/2002-12/msg00117.html
 http://www.cygwin.com/ml/cygwin-apps/2002-12/msg00120.html
 http://www.cygwin.com/ml/cygwin-apps/2002-12/msg00161.html
 http://www.cygwin.com/ml/cygwin/2003-01/msg00885.html
 http://www.cygwin.com/ml/cygwin-apps/2003-02/msg00135.html
 http://www.cygwin.com/ml/cygwin-apps/2003-02/msg00149.html
 http://www.cygwin.com/ml/cygwin-apps/2003-02/msg00153.html
 http://www.cygwin.com/ml/cygwin-apps/2003-02/msg00154.html
 http://www.cygwin.com/ml/cygwin-apps/2003-02/msg00173.html
 http://www.cygwin.com/ml/cygwin-apps/2003-02/msg00175.html
votes  : 4 (Christopher, Corinna, Hack and Sergey)
url: 
http://www.oneparticularharbor.net/cygwin/nfs-server/nfs-server-2.2.47-1.tar.bz2
 
http://www.oneparticularharbor.net/cygwin/nfs-server/nfs-server-2.2.47-1-src.tar.bz2
 http://www.oneparticularharbor.net/cygwin/nfs-server/setup.hint

3. LPRng

date   : 21 Jan 2003
version: 3.8.19-1
status : reviewed; updated package available
notes  : http://www.cygwin.com/ml/cygwin-apps/2003-01/msg00215.html
 http://cygwin.com/ml/cygwin-apps/2003-02/msg00172.html
reviews: http://www.cygwin.com/ml/cygwin-apps/2003-02/msg00061.html
votes  : 1 (Joshua)
url: https://www.as.cmu.edu/~geek/LPRng/LPRng-3.8.19-1.tar.bz2
 https://www.as.cmu.edu/~geek/LPRng/LPRng-3.8.19-1-src.tgz
 https://www.as.cmu.edu/~geek/LPRng/setup.hint

4. ifhp

date   : 21 Jan 2003
version: 3.5.10-1
status : not reviewed
notes  : http://www.cygwin.com/ml/cygwin-apps/2003-01/msg00215.html
 http://www.cygwin.com/ml/cygwin-apps/2003-02/msg00172.html
votes  : 1 (Joshua)
url: https://www.as.cmu.edu/~geek/ifhp/ifhp-3.5.10-1.tar.bz2
 https://www.as.cmu.edu/~geek/ifhp/ifhp-3.5.10-1-src.tar.bz2
 https://www.as.cmu.edu/~geek/ifhp/setup.hint

5. TCM

date   : 27 Jan 2003
version: 2.20-1
status : not reviewed
notes  : http://www.cygwin.com/ml/cygwin-apps/2003-01/msg00299.html
 http://www.cygwin.com/ml/cygwin-apps/2003-01/msg00100.html
votes  : 2 (Christopher and Lapo)
url: http://home.in.tum.de/~boesswet/tcm-2.20-1.tar.bz2
 http://home.in.tum.de/~boesswet/tcm-2.20-1-src.tar.bz2
 http://home.in.tum.de/~boesswet/setup.hint

6. par

date   : 04 Feb 2003
version: 1.52-1
status : reviewed; ready to upload once it gets the votes
notes  : http://www.cygwin.com/ml/cygwin-apps/2003-02/msg00040.html
reviews: http://www.cygwin.com/ml/cygwin-apps/2003-02/msg00062.html
votes  : 1 (Joshua)
url: http://www.lapo.it/tmp/par-1.52-1.tar.bz2
 http://www.lapo.it/tmp/par-1.52-1-src.tar.bz2

7. pdksh

date   : 20 Feb 2003
version: 5.2.14-1
status : reviewed; updated package is available
notes  : http://cygwin.com/ml/cygwin-apps/2003-02/msg00190.html
reivews: http://cygwin.com/ml/cygwin-apps/2003-02/msg00194.html
 http://cygwin.com/ml/cygwin-apps/2003-02/msg00197.html
votes  : 2 (Christopher and Corinna)
url: http://twoducks.exposure.org.uk/elfyn/cygwin/pdksh/pdksh-5.2.14-1.tar.bz2
 http://twoducks.exposure.org.uk/elfyn/cygwin/pdksh/pdksh-5.2.14-1-src.tar.bz2
 http://twoducks.exposure.org.uk/elfyn/cygwin/pdksh/setup.hint




Re: Pending packages status

2003-02-20 Thread Marcel Telka

Napsan da 2003.02.20 11:32, (autor: Pavel Tsekov):
 1. grace
 2. nfs-server
 3. LPRng
 4. ifhp
 5. TCM
 6. par
 7. pdksh

There are missing my DocBook XML packages :-(.
http://cygwin.com/ml/cygwin-apps/2003-02/msg00148.html


Regards.

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



[Fixed] Pending packages status

2003-02-20 Thread Pavel Tsekov
The previous post didn't include the DocBook utility packages
proposed by Marcel Telka.

1. grace

date   : 25 Nov 2002
version: 5.1.10-1
status : not reviewed
notes  : http://cygwin.com/ml/cygwin-apps/2002-11/msg00322.html
votes  : 2 (Lapo and Robert)
url: http://www.scytek.de/cygwin/grace-5.1.10-1.tar.bz2
 http://www.scytek.de/cygwin/grace-5.1.10-1-src.tar.bz2
 http://www.scytek.de/cygwin/setup.hint

2. nfs-server

date   : 09 Dec 2002
version: 2.2.47-1
status : reviewed; there are several pending issues (more info
 can be found in the nfs related threads starting after
 Feb 11, 2003)
notes  : http://www.cygwin.com/ml/cygwin-apps/2002-12/msg00113.html
 http://www.cygwin.com/ml/cygwin-apps/2003-01/msg00072.html
 http://www.cygwin.com/ml/cygwin-apps/2003-01/msg00109.html
 http://www.cygwin.com/ml/cygwin-apps/2003-01/msg00211.html
 http://www.cygwin.com/ml/cygwin-apps/2003-02/msg00133.html
reviews: http://www.cygwin.com/ml/cygwin-apps/2002-12/msg00117.html
 http://www.cygwin.com/ml/cygwin-apps/2002-12/msg00120.html
 http://www.cygwin.com/ml/cygwin-apps/2002-12/msg00161.html
 http://www.cygwin.com/ml/cygwin/2003-01/msg00885.html
 http://www.cygwin.com/ml/cygwin-apps/2003-02/msg00135.html
 http://www.cygwin.com/ml/cygwin-apps/2003-02/msg00149.html
 http://www.cygwin.com/ml/cygwin-apps/2003-02/msg00153.html
 http://www.cygwin.com/ml/cygwin-apps/2003-02/msg00154.html
 http://www.cygwin.com/ml/cygwin-apps/2003-02/msg00173.html
 http://www.cygwin.com/ml/cygwin-apps/2003-02/msg00175.html
votes  : 4 (Christopher, Corinna, Hack and Sergey)
url: 
http://www.oneparticularharbor.net/cygwin/nfs-server/nfs-server-2.2.47-1.tar.bz2
 
http://www.oneparticularharbor.net/cygwin/nfs-server/nfs-server-2.2.47-1-src.tar.bz2
 http://www.oneparticularharbor.net/cygwin/nfs-server/setup.hint

3. LPRng

date   : 21 Jan 2003
version: 3.8.19-1
status : reviewed; updated package available
notes  : http://www.cygwin.com/ml/cygwin-apps/2003-01/msg00215.html
 http://cygwin.com/ml/cygwin-apps/2003-02/msg00172.html
reviews: http://www.cygwin.com/ml/cygwin-apps/2003-02/msg00061.html
votes  : 1 (Joshua)
url: https://www.as.cmu.edu/~geek/LPRng/LPRng-3.8.19-1.tar.bz2
 https://www.as.cmu.edu/~geek/LPRng/LPRng-3.8.19-1-src.tgz
 https://www.as.cmu.edu/~geek/LPRng/setup.hint

4. ifhp

date   : 21 Jan 2003
version: 3.5.10-1
status : not reviewed
notes  : http://www.cygwin.com/ml/cygwin-apps/2003-01/msg00215.html
 http://www.cygwin.com/ml/cygwin-apps/2003-02/msg00172.html
votes  : 1 (Joshua)
url: https://www.as.cmu.edu/~geek/ifhp/ifhp-3.5.10-1.tar.bz2
 https://www.as.cmu.edu/~geek/ifhp/ifhp-3.5.10-1-src.tar.bz2
 https://www.as.cmu.edu/~geek/ifhp/setup.hint

5. TCM

date   : 27 Jan 2003
version: 2.20-1
status : not reviewed
notes  : http://www.cygwin.com/ml/cygwin-apps/2003-01/msg00299.html
 http://www.cygwin.com/ml/cygwin-apps/2003-01/msg00100.html
votes  : 2 (Christopher and Lapo)
url: http://home.in.tum.de/~boesswet/tcm-2.20-1.tar.bz2
 http://home.in.tum.de/~boesswet/tcm-2.20-1-src.tar.bz2
 http://home.in.tum.de/~boesswet/setup.hint

6. par

date   : 04 Feb 2003
version: 1.52-1
status : reviewed; ready to upload once it gets the votes
notes  : http://www.cygwin.com/ml/cygwin-apps/2003-02/msg00040.html
reviews: http://www.cygwin.com/ml/cygwin-apps/2003-02/msg00062.html
votes  : 1 (Joshua)
url: http://www.lapo.it/tmp/par-1.52-1.tar.bz2
 http://www.lapo.it/tmp/par-1.52-1-src.tar.bz2

7. docbook-xml42

date   : 13 Feb 2003
version: 4.2-1
status : not reviewed
notes  : http://www.cygwin.com/ml/cygwin-apps/2003-02/msg00148.html
votes  : none
url: http://telka.sk/docbook/xml42/docbook-xml42-4.2-1.tar.bz2
 http://telka.sk/docbook/xml42/docbook-xml42-4.2-1-src.tar.bz2
 http://telka.sk/docbook/xml42/setup.hint 

8. docbook-xsl

date   : 13 Feb 2003
version: 1.60.1-1
status : not reviewed
notes  : http://www.cygwin.com/ml/cygwin-apps/2003-02/msg00148.html
votes  : none
url: http://telka.sk/docbook/xsl/docbook-xsl-1.60.1-1.tar.bz2
 http://telka.sk/docbook/xsl/docbook-xsl-1.60.1-1-src.tar.bz2
 http://telka.sk/docbook/xsl/setup.hint

9. xmlto

date   : 13 Feb 2003
version: 0.0.12-1
status : not reviewed
notes  : http://www.cygwin.com/ml/cygwin-apps/2003-02/msg00148.html
votes  : none
url: http://telka.sk/docbook/xmlto/xmlto-0.0.12-1.tar.bz2
 http://telka.sk/docbook/xmlto/xmlto-0.0.12-1-src.tar.bz2
 http://telka.sk/docbook/xmlto/setup.hint

10. pdksh

date   : 20 Feb 2003
version: 5.2.14-1
status : reviewed; updated package is available
notes  : http://cygwin.com/ml/cygwin-apps/2003-02/msg00190.html
reivews: http://cygwin.com/ml/cygwin-apps/2003-02/msg00194.html
 http://cygwin.com/ml/cygwin-apps/2003-02/msg00197.html
votes  : 2 (Christopher and 

Re: pdksh package proposal

2003-02-20 Thread Pavel Tsekov
Hello,

I've reviewed the package files and found the following:

1. The CYGWIN-PATCHES includes two patches - you only need the one
in pdksh-5.2.14-1.patch. It's not good to keep the patch itself in 
CYGWIN-PATCHES, it should be extracted in /usr/src. Take a look at
http://cygwin.com/setup.html, the part about 'Method One', to see
how to properly generate the patch.

2. In CYGWIN-PATCHES you have to put also the Cygwin specific readme + 
setup.hint, the patch then should reflect this.

3. The Cygwin specific readme contains this:

Build instructions:
  unpack pdksh-5.2.14-1-src.tar.bz2
If you used setup to install this src package, it will
be unpacked under /usr/src automatically
  cd /usr/src
  ./pdksh-5.2.14-1.sh all

This will create:
  /usr/src/pdksh-4.2.14-1.tar.bz2
  /usr/src/pdksh-5.2.14-1-src.tar.bz2

This is not correct. From what I see the source package is using 'Method
One' for preparing a Cygwin package. This doesn't involve the build script
written by Charles Wilson. If i'm wrong and you actually used such a 
script then you should include it in the root of the source package along 
with the patch.

4. I see that the binary package includes /usr/bin/ksh.exe. It may be 
better to renamed this to /usr/bin/pdksh.exe, just in case someone 
packages ATT's ksh for Cygwin.

On Thu, 20 Feb 2003, Elfyn McBratney wrote:

  I reviewed the packaging and I found one problems in the binary package:
 
  Even though you install the /etc files via postinstall script, they
  are already installed in /etc.  This way they do overwrite the already
  existing files and the postinstall script will do basically nothing.
 
  Corinna
 
 
 Kewl! I have just uplaoded the package, removed the files in /etc too.




Re: pdksh package proposal

2003-02-20 Thread Max Bowsher
Corinna Vinschen wrote:
 On Thu, Feb 20, 2003 at 12:27:32PM +0100, Pavel Tsekov wrote:
 4. I see that the binary package includes /usr/bin/ksh.exe. It may be
 better to renamed this to /usr/bin/pdksh.exe, just in case someone
 packages ATT's ksh for Cygwin.

 Hmm, I disagree.  pdksh should be used as a ksh substitute and I'd
 expect to run my scripts w/o having to change the shebang line to be
 `#!/bin/pdksh' for all my ksh scripts.

 However, this is just *my* opinion.

And, based on the messages when ATT ksh was possibly going to be packaged
for Cygwin, it was a big job. (Multiple support packages required). So, we
should get sufficient warning to avoid the problem, *if* it ever occurs.


Max.




Re: pdksh package proposal

2003-02-20 Thread Pavel Tsekov
On Thu, 20 Feb 2003, Corinna Vinschen wrote:

 On Thu, Feb 20, 2003 at 12:27:32PM +0100, Pavel Tsekov wrote:
  4. I see that the binary package includes /usr/bin/ksh.exe. It may be 
  better to renamed this to /usr/bin/pdksh.exe, just in case someone 
  packages ATT's ksh for Cygwin.
 
 Hmm, I disagree.  pdksh should be used as a ksh substitute and I'd
 expect to run my scripts w/o having to change the shebang line to be
 `#!/bin/pdksh' for all my ksh scripts.
 
 However, this is just *my* opinion.

I agree with you. Maybe a symlink is an option ?

I've also looked at how OpenBSD handles this, since they have pdksh 
installed as ksh by default. If the ast-ksh port is used, the binary is 
installed as ksh93. But this doesn't seem to solve the problem you 
describe.




Re: Re: pdksh package proposal

2003-02-20 Thread Elfyn McBratney


You wrote:
 

I'm at work now and can't really get the time to fix this so when I get home I'll 
re-package the changes. Btw, I did use Charles' script, from the link on 
http://cygwin.com/setup.html . IMO, it should stay as ksh.exe and have a symlink to 
pdksh.exe.

One question: Should I append /bin/ksh to /etc/shells or should that be up to the 
user. I think that's me, right :-)


Regards,

Elfyn McBratney
elfyn@[EMAIL PROTECTED]
www.exposure.org.uk



Re: pdksh package proposal (ATT ksh93 info)

2003-02-20 Thread Nicholas Wourms
[EMAIL PROTECTED] wrote:

Elfyn McBratney wrote:


No problem...I was waiting to see if the ATT ksh would crop up so 
jumped at
the chance when I saw yours and Igor's message :-)


I have a script to build the ATT ksh93 if you want to work on beating 
it into
package form.  We use ksh93 and some other things for a build system where
I work, and it has been running quite well.  I am busy enough with 
Cygwin emacs
stuff as it is, and have no time for working on a ksh93 package.

I also have an email from the ksh authors with the conditions for 
releasing a
Cygwin package for ksh93.  I don't think there was anything 
objectionable --
they just want patches fed back to them and that sort of thing.

ksh is actually part of a UNIX portability framework that includes all 
sorts of
other things, both commands and libraries.  But you don't need most of the
other stuff if you just want to package ksh.

Yes, please do considier using the real thing.  David Korn 
has, on numerous instances, pointed out that pdksh does not 
fully comply with Korn Shell standards, and thus may not be 
fully compatible.  As you'll note from the change logs on 
the website, he's done much work recently to get it to work 
properly within Cygwin's framework.  I think it should be a 
considieration for the Korn purists out there :-).  Any 
volunteers?

In case he's listening... Karsten, now would be the time to 
speak up.  [For those that don't know, he was working on 
ksh93 packages about 9 months ago...]

Cheers,
Nicholas



Re: [ITP] rebase

2003-02-20 Thread Jason Tishler
On Tue, Feb 18, 2003 at 08:15:51PM -0500, Charles Wilson wrote:
 Jason Tishler wrote:
 When I link with popt.
 
 (2) But isn't rebase written in C++?

Which version? :,)  The first version is C++.  The second version (this
one) is C, because I considered contributing it to binutils.  The third
version (a test driver for my 2002/02 setup-rebase patch) is C++.  The
fourth version (the merge of version 2 and 3) will be C++.

 If so, you'd probably be better off using Robert's GetOpt++ library
 instead -- which has the added benefit of easing rebase integration
 with/into setup, since setup already uses it.

I will consider the above when I get to that point.

Thanks,
Jason

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



Re: Pending packages status

2003-02-20 Thread Nicholas Wourms
[EMAIL PROTECTED] wrote:

Napsan da 2003.02.20 11:32, (autor: Pavel Tsekov):


1. grace
2. nfs-server
3. LPRng
4. ifhp
5. TCM
6. par
7. pdksh



There are missing my DocBook XML packages :-(.
http://cygwin.com/ml/cygwin-apps/2003-02/msg00148.html



Not that I object, but as someone who is well aware of the 
frustration that sgml/xml processing systems cause on linux, 
shouldn't we have a complete roadmap for the potential 
cygwin system before we start checking in stylesheet 
packages?  I don't know of anyone who wouldn't agree that 
getting a working docbook system is a royal PITA.  Are we 
going to have some sort of style-sheet management 
infrastructure at some point?  Although I realize that xmlto 
is stand-alone from jade, I think we should plan for a fully 
working docbook rendering system at some point.  I really 
don't have a good solution for this, but I feel it was at 
least worth noting the possible complications that may arise 
in the future from an improperly planned stylesheet 
installation.  We should decide now on the type of layout 
that we want and what sort of management infrastructure we 
are going to use (RedHat, Mandrake, Suse, Debian, or our 
own?).  You know, an ounce of prevention...

Cheers,
Nicholas



CMake 1.6.5-1

2003-02-20 Thread William A. Hoffman
There has been a new release of the official cmake (1.6.5).
This is a minor release from 1.6.3 to 1.6.5. 

Changes from 1.6.4 to 1.6.5

A fix to the TestForANSIForScope module so that it doesn't keep check each configure. 
A fix to the Visual studio 7 generator to better support Visual studio 7.1. A fix for 
nmake makefiles that include out of build libraries that have lib as part of their 
formal name. A fix for Borland makefile dependencies causing some dependencies to be 
unrecognized by Borland's make. An improvement to the Windows GUI such that if you 
have MSVC7 installed it will be the default generator for new projects. 

Changes from 1.6.3 to 1.6.4

A fix for TRY_COMPILE on Windows 95, 98, ME. A fix for windows nmake builds with 
spaces in the path. A minor fix for the FindLibrary command. Some fixes for the 
FindJNI.cmake module for MacOSX.

Here are the required files:

ftp://www.cmake.org/pub/cmake/cygwin/setup.hint
ftp://www.cmake.org/pub/cmake/cygwin/cmake-1.6.5-1.tar.bz2
ftp://www.cmake.org/pub/cmake/cygwin/cmake-1.6.5-1-src.tar.bz2




# CMake setup.hint file for cygwin setup.exe program
category: Devel 
requires: libncurses6 cygwin 
sdesc: A cross platform build manger 
ldesc: CMake is a cross platform build manager. It allows you to specify build 
parameters for C and C++ programs in a cross platform manner. For cygwin Makefiles 
will be generated. CMake is also capable of generating microsoft project files, nmake, 
and borland makefiles. CMake can also perform system inspection operations like 
finding installed libraries and header files. 
prev: 1.4.7-1
curr: 1.6.5-1





update-setup

2003-02-20 Thread otmar . tschendel

I like to generate private setup.ini files for our local cygwin package distribution. We have a lot private cygwin program packages, we like to install with the setup program. I have heard there should be a script update-setup. Where can i get it ?
Thanks for your help. 

Otmar Tschendel
Philips Research Lab Hamburg
Röntgenstrasse 24-26
22335 Hamburg
[EMAIL PROTECTED]

Re: update-setup

2003-02-20 Thread Max Bowsher
[EMAIL PROTECTED] wrote:
 I like to generate private setup.ini files for our local cygwin
 package distribution. We have a lot private cygwin program packages,
 we like to install with the setup program. I have heard there should
 be a script update-setup. Where can i get it ?

cvs -d:pserver:[EMAIL PROTECTED]:/cvs/sourceware co
infra/bin/cygwin


Max.




where are Xlib.h Xutil.h Xatom.h ecc???

2003-02-20 Thread kkk
i'm trying to compile a small program (that uses Xforms)
make requests:
X11/Xlib.h
X11/Xutil.h
X11/Xatom.h
X11/keysum.h
X11/Xresource.h
X11/cursorfont.h

where are they placed?
/usr/include/X11 is absent!








Re: where are Xlib.h Xutil.h Xatom.h ecc???

2003-02-20 Thread Sylvain Petreolle
you forgot to install the headers!
install the XFree86-prog package with setup.exe.
see http://www.cygwin.com/packages
 --- kkk [EMAIL PROTECTED] a écrit :  i'm trying to compile a
small program (that uses Xforms)
 make requests:
 X11/Xlib.h
 X11/Xutil.h
 X11/Xatom.h
 X11/keysum.h
 X11/Xresource.h
 X11/cursorfont.h
 
 where are they placed?
 /usr/include/X11 is absent!
 
 
 
 
  

=
Sylvain Petreolle
[EMAIL PROTECTED] 
Fight against Spam ! http://www.euro.cauce.org/en/index.html
ICQ #170597259

Don't think you are. Know you are. Morpheus, in Matrix.

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com



Re: (fwd) non us keyboards and cygwin xfree86

2003-02-20 Thread David Starks-Browning
On Thursday 6 Feb 03, Alexander Gottwald writes:
 On Thu, 6 Feb 2003, J S wrote:
 
  Hi Tom,
  
  I tried that but got:
  
  $ xkbcomp -xkm -m gb /usr/X11R6/lib/X11/xkb/keymap/xfree86 
  /etc/X11/xkb/keymap/gb
  Error:Include file wrong type (expected KeyNames, got Keymap)
Include file xfree86 ignored
Abandoning keycodes file gb
 
 Why are still people working with this way? The keyboard is configurable
 in the config file /etc/X11/XF86Config. A sample config file can be found
 at http://www.tu-chemnitz.de/~goal/xfree/XF86Config-4.bz2

But how do we use /etc/X11/XF86Config?  I don't have one there
already.  I downloaded your sample, but there was a lot of other stuff
besides the keyboard options.  Is there a trick to getting it to work?
I tried deleting everything in your sample except:

Section InputDevice
Option XkbRules   xfree86
Option XkbModel   pc105
Option XkbLayout  gb
EndSection

(I'm trying to use a UK keyboard layout.)  Did I delete too much?

Note the FAQ (4.5) talks about this, but doesn't say anything about
XF86Config.  I also have no XF86Config man page.  I use
/usr/X11R6/bin/startx to start X.

Thanks for your help!

Regards,
David




Re: (fwd) non us keyboards and cygwin xfree86

2003-02-20 Thread Colin Harrison

Hi

You will need more than that in your /etc/X11/XF86Config file:-

Section ServerLayout
Identifier  dummy
Screen  dummy
InputDevice Keyboard1 CoreKeyboard
EndSection

Section InputDevice
Identifier  Keyboard1
Driver  Keyboard
Option  XkbRules xfree86
Option  XkbModel pc105
Option  XkbLayout gb
EndSection

Section Monitor
Identifier  dummy
EndSection

Section Device
Identifier  dummy
Driver  dummy
EndSection

Section Screen
Identifier  dummy
Device  dummy
Monitor dummy
EndSection


Works for me.

The X system is fussy..so use dos2unix if you used a Windows editor to
create it.

Colin Harrison





Re[2]: XKB config?

2003-02-20 Thread Lev Serebryakov
Hello, Alexander!
Tuesday, February 18, 2003, 12:17:56 AM, you wrote:

AG I've used the parse from the XFree86 server and unfortunatly it requires
AG some special sections which we do not need. 

AG A minimal config file is:

AG Section InputDevice
AG  Identifier RuKeyboard
AG  Driver Keyboard
AG  Option XkbRules   xfree86
AG  Option XkbModel   pc101
AG  Option XkbLayout  ru
AG  Option XkbOptions grp:ctrl_shift_toggle
AG EndSection

AG Section Device
AG Identifier  dummy
AG Driver  dummy
AG EndSection

AG Section Monitor
AG Identifier  dummy
AG EndSection

AG Section Screen
AG Identifier  dummy
AG Device  dummy
AG Monitor dummy
AG EndSection
 Thank you! It works! May be, it will be good idea to put something
 like this (not for Russian keyboard, but, for example, for default)
 into XFree86-etc-4.2.0-x.tar.bz2?

   Lev Serebryakov
/---\
| FIDONet: 2:5030/661.0 |
| E-Mail:  [EMAIL PROTECTED]   |
| Page:http://lev.serebryakov.spb.ru/   |
| ICQ UIN: 3670018  |
| Phone:   You know, if you have world nodelist |
\===/




XFree86-cygwin KDE national keybord layouts

2003-02-20 Thread Lev Serebryakov
Hello, cygwin-xfree! How are you?

  Does somebody use KDE under cygwin XFree86 (of course, KDE is
  started on UNIX, not on Win+cygwin) and national keyboard layout?

  I've setup russian keyboard (thanks to Alexander Gottwald), and it
  works under twm + xterm.

  No I'm trying to make it work under KDE.

  KDE is configured for two keyboard layouts: English and Russian.
  I've configured `ctrl+shift' group toggle in KDE. But it doen't work
  -- it allows to switch layouts via clicing on flag icon on dock, but
  it doesn't do anything when I press ctrl+shift.

  Is it problem of KDE or XFree86-cygwin or something else?

   Lev Serebryakov
/---\
| FIDONet: 2:5030/661.0 |
| E-Mail:  [EMAIL PROTECTED]   | 
| Page:http://lev.serebryakov.spb.ru/   |
| ICQ UIN: 3670018  |
| Phone:   You know, if you have world nodelist |
\===/




Re: XFree86-cygwin KDE national keybord layouts

2003-02-20 Thread Andrew Markebo
/ Lev Serebryakov [EMAIL PROTECTED] wrote:
| [...]
|   KDE is configured for two keyboard layouts: English and Russian.
|   I've configured `ctrl+shift' group toggle in KDE. But it doen't work
|   -- it allows to switch layouts via clicing on flag icon on dock, but
|   it doesn't do anything when I press ctrl+shift.
|
|   Is it problem of KDE or XFree86-cygwin or something else?

Something else I think, if my memory doesn't fail me, MS Windows can't
provide all the nifty keyboard-combinations (like C-S-[something])
that are available under for example linux..

 /Andy

-- 
 The eye of the beholder rests on the beauty!




Re: (fwd) non us keyboards and cygwin xfree86

2003-02-20 Thread Alexander Gottwald
David Starks-Browning wrote:

 But how do we use /etc/X11/XF86Config?  I don't have one there
 already.  I downloaded your sample, but there was a lot of other stuff
 besides the keyboard options.  

The other stuff is not used, but partly required. The easiest way is to 
add/replace the options you already mentioned in your mail. 

bye
ago

NP: Blutengel - No god
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723




Re: (fwd) non us keyboards and cygwin xfree86

2003-02-20 Thread Alexander Gottwald
David Starks-Browning wrote:

 But how do we use /etc/X11/XF86Config?  I don't have one there
 already.  I downloaded your sample, but there was a lot of other stuff
 besides the keyboard options. 

I have replaced the configfile with a version, where all unused sections 
were replaced with the minimal (dummy) sections.

http://www.tu-chemnitz.de/~goal/xfree/XF86Config.bz2

bye
ago
NP: Blutengel - No god
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723




Re: using rxvt with other shells

2003-02-20 Thread Igor Pechtchanski
On Thu, 20 Feb 2003, Elfyn McBratney wrote:

  On Wed, Feb 19, 2003 at 05:00:51PM -0500, Igor Pechtchanski wrote:
  FYI, pdksh (http://web.cs.mun.ca/~michael/pdksh/) compiles OOTB on
  Cygwin and is a fully conformant ksh implementation.  If all you need is
  ksh, there you go.
 
  Anyone want to provide pdksh as a package?  It seems like last year's
  offer to provide the real ATT ksh has dried up.
  cgf

 Perhaps I'm showing my getopt weakness' but I'm getting an error originating
 in sh.h from a redef of struct option? Igor did you do anything special to
 get rid of this, or is it my lack of getopt'ness knowledge?
 Elfyn McBratney

Umm, no, I didn't do anything special.  But I haven't compiled pdksh since
last June.  It seems that in the meantime, unistd.h included getopt.h, and
now the struct option defined by pdksh (which doesn't use getopt at all)
conflicts with getopt's.  I'm sure I could get it to compile.  The easiest
would be to rename the struct, I suppose...  I'd like to have a minimal
patch if I intend to package it...
Igor
P.S. I'll report to the cygwin-apps list when I make progress on this one.
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune




src/winsup/mingw ChangeLog Makefile.in

2003-02-20 Thread corinna
CVSROOT:/cvs/src
Module name:src
Changes by: [EMAIL PROTECTED]  2003-02-20 10:12:15

Modified files:
winsup/mingw   : ChangeLog Makefile.in 

Log message:
* Makefile.in: Make sure libmingwex.a from current build tree is used.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/mingw/ChangeLog.diff?cvsroot=srcr1=1.116r2=1.117
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/mingw/Makefile.in.diff?cvsroot=srcr1=1.33r2=1.34




src/winsup cygwin/ChangeLog cygwin/fhandler_di ...

2003-02-20 Thread corinna
CVSROOT:/cvs/src
Module name:src
Changes by: [EMAIL PROTECTED]  2003-02-20 10:14:53

Modified files:
winsup/cygwin  : ChangeLog fhandler_disk_file.cc path.h 
 wincap.cc wincap.h 
winsup/w32api  : ChangeLog 
winsup/w32api/include: winioctl.h 

Log message:
w32api:

* include/winioctl.h (FSCTL_SET_SPARSE): Define.

cygwin:

* wincap.h (wincaps::supports_sparse_files): New flag.
(wincapc::supports_sparse_files): New method.
* wincap.cc (wincap_unknown): Define value for the new flag.
(wincap_95): Ditto.
(wincap_95osr2): Ditto.
(wincap_98): Ditto.
(wincap_98se): Ditto.
(wincap_me): Ditto.
(wincap_nt3): Ditto.
(wincap_nt4): Ditto.
(wincap_nt4sp4): Ditto.
(wincap_2000): Ditto.
(wincap_xp): Ditto.
* path.h (path_conv::fs_flags): New method.
* fhandler_disk_file.cc: Include winioctl.h for DeviceIoControl.
(fhandler_disk_file::open): Set newly created and truncated files as
sparse on platforms that support it.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=srcr1=1.1765r2=1.1766
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler_disk_file.cc.diff?cvsroot=srcr1=1.40r2=1.41
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/path.h.diff?cvsroot=srcr1=1.51r2=1.52
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/wincap.cc.diff?cvsroot=srcr1=1.18r2=1.19
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/wincap.h.diff?cvsroot=srcr1=1.14r2=1.15
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/w32api/ChangeLog.diff?cvsroot=srcr1=1.332r2=1.333
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/w32api/include/winioctl.h.diff?cvsroot=srcr1=1.8r2=1.9




src/winsup/cygwin ChangeLog fhandler_disk_file ...

2003-02-20 Thread corinna
CVSROOT:/cvs/src
Module name:src
Changes by: [EMAIL PROTECTED]  2003-02-20 14:14:37

Modified files:
winsup/cygwin  : ChangeLog fhandler_disk_file.cc 
 fhandler_socket.cc fhandler_virtual.cc net.cc 

Log message:
* fhandler_disk_file.cc (fhandler_disk_file::opendir): Check descriptor
created by cygheap_fdnew constructor.
* fhandler_virtual.cc (fhandler_virtual::opendir): Ditto.
* fhandler_socket.cc (fhandler_socket::accept): Ditto and move
creation of file descriptor behind blocking OS call.
* net.cc (cygwin_socket): Ditto.
(cygwin_rcmd): Ditto.
(cygwin_rresvport): Ditto.
(cygwin_rexec): Ditto.
(socketpair): Ditto.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=srcr1=1.1767r2=1.1768
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler_disk_file.cc.diff?cvsroot=srcr1=1.42r2=1.43
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler_socket.cc.diff?cvsroot=srcr1=1.78r2=1.79
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler_virtual.cc.diff?cvsroot=srcr1=1.12r2=1.13
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/net.cc.diff?cvsroot=srcr1=1.139r2=1.140




src/winsup/cygwin ChangeLog wincap.cc wincap.h

2003-02-20 Thread corinna
CVSROOT:/cvs/src
Module name:src
Changes by: [EMAIL PROTECTED]  2003-02-20 15:58:56

Modified files:
winsup/cygwin  : ChangeLog wincap.cc wincap.h 

Log message:
* wincap.h (wincap): Remove unnecessary definition of
supports_sparse_files.
* wincap.cc: Ditto.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=srcr1=1.1768r2=1.1769
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/wincap.cc.diff?cvsroot=srcr1=1.19r2=1.20
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/wincap.h.diff?cvsroot=srcr1=1.15r2=1.16




src/winsup/cygwin ChangeLog fhandler.cc fhandl ...

2003-02-20 Thread cgf
CVSROOT:/cvs/src
Module name:src
Changes by: [EMAIL PROTECTED]  2003-02-21 04:33:53

Modified files:
winsup/cygwin  : ChangeLog fhandler.cc fhandler_disk_file.cc 
 sigproc.cc 

Log message:
* fhandler.cc (fhandler_base::open): Move some filesystem specific stuff.
(fhandler_disk_file::open): Accept some filesystem specific stuff.
* sigproc.cc (wait_for_sigthread): Become slightly more thread safe.
(sig_send): Don't assume that signal thread is ready.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=srcr1=1.1769r2=1.1770
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler.cc.diff?cvsroot=srcr1=1.143r2=1.144
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler_disk_file.cc.diff?cvsroot=srcr1=1.43r2=1.44
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/sigproc.cc.diff?cvsroot=srcr1=1.132r2=1.133




Re: Create new files as sparse on NT systems. (2nd try)

2003-02-20 Thread Corinna Vinschen
On Tue, Feb 18, 2003 at 10:51:31PM +0100, Vaclav Haisman wrote:
 2003-02-17 Vaclav Haisman [EMAIL PROTECTED]
 
   * include/winioctl.h (FSCTL_SET_SPARSE): Define.
 
 2003-02-18  Vaclav Haisman  [EMAIL PROTECTED]
 
   * wincap.h (wincaps::supports_sparse_files): New flag.
   (wincapc::supports_sparse_files): New method.
   * wincap.cc (wincap_unknown): Define value for the new flag.
   (wincap_95): Ditto.
   (wincap_95osr2): Ditto.
   (wincap_98): Ditto.
   (wincap_98se): Ditto.
   (wincap_me): Ditto.
   (wincap_nt3): Ditto.
   (wincap_nt4): Ditto.
   (wincap_nt4sp4): Ditto.
   (wincap_2000): Ditto.
   (wincap_xp): Ditto.
   * path.h (path_conv::fs_flags): New method.
   * fhandler_disk_file.cc: Include winioctl.h for DeviceIoControl.
   (fhandler_disk_file::open): Set newly created and truncated files as
   sparse on platforms that support it.

I've applied that patch now.  If anybody still has problems with it,
please feel free to post a *testcase* which shows the problem.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.



Re: Create new files as sparse on NT systems. (2nd try)

2003-02-20 Thread Corinna Vinschen
On Wed, Feb 19, 2003 at 10:06:37PM +0100, Corinna Vinschen wrote:
 Since st_blocks contains the number of blocks allocated, according to
 the Linux man page and SUSv3, shouldn't we change st_blocks to reflect
 the value of GetCompressedFileSize() now?

I've checked in a patch so st_blocks is now computed using
GetCompressedFileSize() on NT systems.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.



Re: Fix testsuite failures with GCC 3.4

2003-02-20 Thread Corinna Vinschen
On Wed, Feb 19, 2003 at 11:59:11PM +0100, Vaclav Haisman wrote:
 2003-02-19  Vaclav Haisman  [EMAIL PROTECTED]
   * winsup.api/crlf.c: Fix C signed/unsigned compare warning.
   * winsup.api/mmaptest01.c: Ditto.
   * winsup.api/ltp/chmod01.c: Ditto.
   * winsup.api/ltp/fork04.c: Ditto.
   * winsup.api/ltp/lseek03.c: Ditto.
   * winsup.api/ltp/lseek06.c: Ditto.
   * winsup.api/ltp/lseek07.c: Ditto.
   * winsup.api/ltp/lseek08.c: Ditto.
   * winsup.api/ltp/mmap001.c: Ditto.
   * winsup.api/ltp/mmap02.c: Ditto.
   * winsup.api/ltp/mmap03.c: Ditto.
   * winsup.api/ltp/mmap04.c: Ditto.
   * winsup.api/ltp/mmap05.c: Ditto.
   * winsup.api/ltp/mmap06.c: Ditto.
   * winsup.api/ltp/mmap07.c: Ditto.
   * winsup.api/ltp/mmap08.c: Ditto.
   * winsup.api/ltp/pipe11.c: Ditto.
   * winsup.api/ltp/poll01.c: Ditto.
   * winsup.api/ltp/sync02.c: Ditto.
   * winsup.api/ltp/times03.c: Ditto.
   * winsup.api/ltp/umask03.c: Ditto.
   * winsup.api/ltp/getpgid01.c: Remove unused obsolete include.
   * winsup.api/ltp/getpgid02.c: Ditto.

Applied.

Thanks,
Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.



Re: Create new files as sparse on NT systems. (2nd try)

2003-02-20 Thread Christopher Faylor
On Thu, Feb 20, 2003 at 11:16:06AM +0100, Corinna Vinschen wrote:
On Tue, Feb 18, 2003 at 10:51:31PM +0100, Vaclav Haisman wrote:
 2003-02-17 Vaclav Haisman [EMAIL PROTECTED]
 
  * include/winioctl.h (FSCTL_SET_SPARSE): Define.
 
 2003-02-18  Vaclav Haisman  [EMAIL PROTECTED]
 
  * wincap.h (wincaps::supports_sparse_files): New flag.
  (wincapc::supports_sparse_files): New method.
  * wincap.cc (wincap_unknown): Define value for the new flag.
  (wincap_95): Ditto.
  (wincap_95osr2): Ditto.
  (wincap_98): Ditto.
  (wincap_98se): Ditto.
  (wincap_me): Ditto.
  (wincap_nt3): Ditto.
  (wincap_nt4): Ditto.
  (wincap_nt4sp4): Ditto.
  (wincap_2000): Ditto.
  (wincap_xp): Ditto.
  * path.h (path_conv::fs_flags): New method.
  * fhandler_disk_file.cc: Include winioctl.h for DeviceIoControl.
  (fhandler_disk_file::open): Set newly created and truncated files as
  sparse on platforms that support it.

I've applied that patch now.  If anybody still has problems with it,
please feel free to post a *testcase* which shows the problem.

Um.  I was still hoping for benchmarks indicating that there was no performance
hit from this patch.  Also, this patch introduces a change to wincap which is
never used.  We don't need to change wincap.

cgf

cgf



Re: Create new files as sparse on NT systems. (2nd try)

2003-02-20 Thread Corinna Vinschen
On Thu, Feb 20, 2003 at 10:25:00AM -0500, Christopher Faylor wrote:
 On Thu, Feb 20, 2003 at 11:16:06AM +0100, Corinna Vinschen wrote:
 I've applied that patch now.  If anybody still has problems with it,
 please feel free to post a *testcase* which shows the problem.
 
 Um.  I was still hoping for benchmarks indicating that there was no performance
 hit from this patch.  Also, this patch introduces a change to wincap which is
 never used.  We don't need to change wincap.

I can quickly remove the wincap change (I didn't realize it isn't used
after all the discussions here).

However, since some people were objecting so doggedly, I was thinking
that committing this patch would give a hint that a testcase(tm) is more
useful than just musing.  Everybody who wants this patch removed can
accomplish this by showing us the testcase and the oh so bad results...

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.



Re: Create new files as sparse on NT systems. (2nd try)

2003-02-20 Thread Christopher Faylor
On Thu, Feb 20, 2003 at 04:52:22PM +0100, Corinna Vinschen wrote:
However, since some people were objecting so doggedly, I was thinking
that committing this patch would give a hint that a testcase(tm) is more
useful than just musing.  Everybody who wants this patch removed can
accomplish this by showing us the testcase and the oh so bad results...

Ok.  Makes sense.

cgf



Silent some more warnings.

2003-02-20 Thread Vaclav Haisman

Hi,
this patch silents warnings about strict-aliasing rules breach.
There are also two hunks that remove obviously always true assert().

Vaclav Haisman


2003-02-20  Vaclav Haisman  [EMAIL PROTECTED]

* libc/stdio/vfprintf.c (cvt): Fix strict-aliasing rules
breach warning.
* libc/stdlib/ldtoa.c (_ldtoa_r): Ditto.
(_strtold): Ditto.

2003-02-20  Vaclav Haisman  [EMAIL PROTECTED]

* cygserver_transport_sockets.cc (transport_layer_sockets::read):
Remove obvously always true assert.
(transport_layer_sockets::write): Ditto

2003-02-20  Vaclav Haisman  [EMAIL PROTECTED]

* mingwex/math/powl.c (LOG2EA): Fix strict-aliasing rules breach
warning.

2003-02-20  Vaclav Haisman  [EMAIL PROTECTED]

* mkgroup.c (enum_local_users): Silent strict-aliasing rules breach
warning.
(enum_local_groups): Ditto.
(enum_users): Ditto.
(enum_groups): Ditto.
(main): Ditto.
* mkpasswd.c (enum_users): Ditto.
(enum_local_groups): Ditto.
(main): Ditto.
* passwd.c (GetPW): Ditto.
(PrintPW): Ditto.
(SetModals): Ditto.

Index: newlib/libc/stdio/vfprintf.c
===
RCS file: /cvs/src/src/newlib/libc/stdio/vfprintf.c,v
retrieving revision 1.18
diff -u -p -r1.18 vfprintf.c
--- newlib/libc/stdio/vfprintf.c7 Jan 2003 20:02:33 -   1.18
+++ newlib/libc/stdio/vfprintf.c20 Feb 2003 21:54:44 -
@@ -1158,7 +1158,7 @@ cvt(data, value, ndigits, flags, sign, d

digits = _dtoa_r(data, value, mode, ndigits, decpt, dsgn, rve);
 #else /* !_NO_LONGDBL */
-   ldptr = (struct ldieee *)value;
+   ldptr = (struct ldieee *)(void *)value;
if (ldptr-sign) { /* this will check for  0 and -0.0 */
value = -value;
*sign = '-';
Index: newlib/libc/stdlib/ldtoa.c
===
RCS file: /cvs/src/src/newlib/libc/stdlib/ldtoa.c,v
retrieving revision 1.8
diff -u -p -r1.8 ldtoa.c
--- newlib/libc/stdlib/ldtoa.c  3 Feb 2003 21:29:45 -   1.8
+++ newlib/libc/stdlib/ldtoa.c  20 Feb 2003 21:54:47 -
@@ -2729,13 +2729,13 @@ if (_REENT_MP_RESULT(ptr))
   }

 #if LDBL_MANT_DIG == 24
-e24toe( (unsigned short *)d, e, ldp );
+e24toe( (unsigned short *)(void *)d, e, ldp );
 #elif LDBL_MANT_DIG == 53
-e53toe( (unsigned short *)d, e, ldp );
+e53toe( (unsigned short *)(void *)d, e, ldp );
 #elif LDBL_MANT_DIG == 64
-e64toe( (unsigned short *)d, e, ldp );
+e64toe( (unsigned short *)(void *)d, e, ldp );
 #else
-e113toe( (unsigned short *)d, e, ldp );
+e113toe( (unsigned short *)(void *)d, e, ldp );
 #endif

 if( eisneg(e) )
@@ -3228,7 +3228,7 @@ long double _strtold (char *s, char **se
   rnd.rlast = -1;
   rnd.rndprc = NBITS;

-  lenldstr = asctoeg( s, (unsigned short *)x, LDBL_MANT_DIG, ldp );
+  lenldstr = asctoeg( s, (unsigned short *)(void *)x, LDBL_MANT_DIG, ldp );
   if (se)
 *se = s + lenldstr;
   return x;
Index: winsup/cygwin/cygserver_transport_sockets.cc
===
RCS file: /cvs/src/src/winsup/cygwin/cygserver_transport_sockets.cc,v
retrieving revision 1.4
diff -u -p -r1.4 cygserver_transport_sockets.cc
--- winsup/cygwin/cygserver_transport_sockets.cc22 Sep 2002 12:04:15 - 
 1.4
+++ winsup/cygwin/cygserver_transport_sockets.cc20 Feb 2003 21:55:04 -
@@ -269,8 +269,6 @@ transport_layer_sockets::read (void *con
 {
   read_buf += res;
   read_buf_len -= res;
-
-  assert (read_buf_len = 0);
 }

   if (res != -1)
@@ -315,8 +313,6 @@ transport_layer_sockets::write (void *co
 {
   write_buf += res;
   write_buf_len -= res;
-
-  assert (write_buf_len = 0);
 }

   if (res != -1)
Index: winsup/mingw/mingwex/math/powl.c
===
RCS file: /cvs/src/src/winsup/mingw/mingwex/math/powl.c,v
retrieving revision 1.2
diff -u -p -r1.2 powl.c
--- winsup/mingw/mingwex/math/powl.c6 Oct 2002 23:26:43 -   1.2
+++ winsup/mingw/mingwex/math/powl.c20 Feb 2003 21:55:12 -
@@ -270,7 +270,7 @@ static const unsigned short R[] = {
 #define MNEXP (-NXT*16384.0L)
 #endif
 static const unsigned short L[] = {0xc2ef,0x705f,0xeca5,0xe2a8,0x3ffd, XPD};
-#define LOG2EA (*(long double *)(L[0]))
+#define LOG2EA (*(long double *)(void *)(L[0]))
 #endif

 #ifdef MIEEE
@@ -359,7 +359,7 @@ static long R[] = {
 #define MNEXP (-NXT*16382.0L)
 #endif
 static long L[3] = {0x3ffd,0xe2a8eca5,0x705fc2ef};
-#define LOG2EA (*(long double *)(L[0]))
+#define LOG2EA (*(long double *)(void *)(L[0]))
 #endif


Index: winsup/utils/mkgroup.c
===
RCS file: /cvs/src/src/winsup/utils/mkgroup.c,v
retrieving revision 1.19
diff -u -p -r1.19 mkgroup.c
--- winsup/utils/mkgroup.c  15 Jan 2003 10:08:37 -

access()

2003-02-20 Thread Pierre A. Humblet
Corinna,

Here is a patch with a new implementation of access() using AccessCheck.
Compared to the old version, the readonly attribute and the deny ace's
are taken into account, and the function does not rely on /etc/passwd
nor on /etc/group. It also seems to be somewhat faster.

I was wondering if it would declare that all directories are x, because
of the Bypass Traverse (a.k.a. Change Notify) privilege, but it doesn't.
Except for that it reflects the Windows permissions perfectly.

Note that the builtin test in ash uses access(), but /bin/test and 
bash don't.
/ ls -l test
--wx-wx---+   1 PHumblet Users   43310 Oct 24 15:13 test*
/ sh -c 'if [ -r test ]; then echo yes; else echo no; fi'
yes  == CORRECT!
/ bash -c 'if [ -r test ]; then echo yes; else echo no; fi'
no   == WRONG
/ getfacl test
# file: test
# owner: PHumblet
# group: Users
user::--x
group::-wx
group:Administrators:r-x== NOT CONSIDERED BY bash
mask:rwx
other:---

The reason that bash and /bin/test do not use access() is that
according to POSIX (but not to Cygwin), access() reflects the 
permissions for the real (and not effective) {u,g}ids.
Thus these two programs define an eaccess() function based on stat().
It doesn't work properly on Cygwin, as shown above.

However bash already uses access() when AFS is defined. Thus it
would be a 1/2 line patch in bash (test.c and findcmd.c) to also
use access() for Cygwin. 
- #if defined (AFS)
+ #if defined (AFS) || defined (__CYGWIN__)
That would be a significant improvement, IMO. What do you think?

Going off-topic, there is a strange feature in findcmd.c (file_status). 
If we are the owner of a file but do not have x permission, 
and the gid is one of our groups and has x permission, 
or others have x permission, then bash considers that the file is 
executable, although it isn't for us.
  /* If `others' have execute permission to the file, then so do we,
 since we are also `others'. */
Fortunately this interpretation is not present in the eaccess function.

Finally I have two questions:
1) Is (!real_path.exists ()) a reliable indicator of file non-existence?
   If so, shouldn't stat take advantage of that, for disk files?
   Stat currently tries twice to open non-existent files. 
2) I am not sure when to use LoadDLLfuncEx vs. LoadDLLfunc.

Pierre

2003-02-21  Pierre Humblet  [EMAIL PROTECTED]

* autoload.cc (AccessCheck): Add.
(DuplicateToken): Add.
* security.h (check_file_access): Declare.
* syscalls.cc (access): Convert path to Windows, check existence
and readonly attribute. Call check_file_access instead of acl_access.
* security.cc (check_file_access): Create.
* sec_acl (acl_access): Delete.


Index: autoload.cc
===
RCS file: /cvs/src/src/winsup/cygwin/autoload.cc,v
retrieving revision 1.62
diff -u -p -r1.62 autoload.cc
--- autoload.cc 20 Feb 2003 11:12:44 -  1.62
+++ autoload.cc 21 Feb 2003 00:14:23 -
@@ -307,6 +307,7 @@ wsock_init ()
 LoadDLLprime (wsock32, wsock_init)
 LoadDLLprime (ws2_32, wsock_init)

+LoadDLLfunc (AccessCheck, 32, advapi32)
 LoadDLLfunc (AddAccessAllowedAce, 16, advapi32)
 LoadDLLfunc (AddAccessDeniedAce, 16, advapi32)
 LoadDLLfunc (AddAce, 20, advapi32)
@@ -318,6 +319,7 @@ LoadDLLfuncEx (CryptAcquireContextA, 20,
 LoadDLLfuncEx (CryptGenRandom, 12, advapi32, 1)
 LoadDLLfuncEx (CryptReleaseContext, 8, advapi32, 1)
 LoadDLLfunc (DeregisterEventSource, 4, advapi32)
+LoadDLLfunc (DuplicateToken, 12, advapi32)
 LoadDLLfuncEx (DuplicateTokenEx, 24, advapi32, 1)
 LoadDLLfunc (EqualSid, 8, advapi32)
 LoadDLLfunc (GetAce, 12, advapi32)
Index: security.h
===
RCS file: /cvs/src/src/winsup/cygwin/security.h,v
retrieving revision 1.40
diff -u -p -r1.40 security.h
--- security.h  10 Feb 2003 22:43:29 -  1.40
+++ security.h  21 Feb 2003 00:14:29 -
@@ -225,6 +225,7 @@ LONG __stdcall read_sd(const char *file,
 LONG __stdcall write_sd(const char *file, PSECURITY_DESCRIPTOR sd_buf, DWORD sd_size);
 BOOL __stdcall add_access_allowed_ace (PACL acl, int offset, DWORD attributes, PSID 
sid, size_t len_add, DWORD inherit);
 BOOL __stdcall add_access_denied_ace (PACL acl, int offset, DWORD attributes, PSID 
sid, size_t len_add, DWORD inherit);
+int __stdcall check_file_access (const char *, int);

 void set_security_attribute (int attribute, PSECURITY_ATTRIBUTES psa,
 void *sd_buf, DWORD sd_buf_size);
Index: syscalls.cc
===
RCS file: /cvs/src/src/winsup/cygwin/syscalls.cc,v
retrieving revision 1.245
diff -u -p -r1.245 syscalls.cc
--- syscalls.cc 10 Feb 2003 22:43:29 -  1.245
+++ syscalls.cc 21 Feb 2003 00:14:35 -
@@ -1163,8 +1163,6 @@ cygwin_lstat 

Re: access()

2003-02-20 Thread Christopher Faylor
On Thu, Feb 20, 2003 at 08:15:34PM -0500, Pierre A. Humblet wrote:
2) I am not sure when to use LoadDLLfuncEx vs. LoadDLLfunc.

LoadDLLfunc issues an error if a function isn't found.  LoadDllFuncEx
lets you return an error code when the function isn't found.

cgf



RE: MANPATH Problems

2003-02-20 Thread Ralf Hauser


 -Original Message-
 From: Elfyn McBratney [mailto:[EMAIL PROTECTED]]
 Sent: Donnerstag, 20. Februar 2003 08:58
 To: cygwin; [EMAIL PROTECTED]
 Subject: Re: MANPATH Problems
 
 
 Ralf, Please keep replies on list as there are more people there 
 and smarter
 too might I add ;-)
 
Elfyn McBratney wrote:
 What is the contents of your MANPATH
 environment variable?
   
   /cygdrive/c/data/MyDocRalf/bin/cgywin/usr/man:/cygdrive/c/data/MyD
   ocRalf/McKBrC/man
   
I also tried the version with it ending in a colon - no change
   
For example, the file 
 /cygdrive/c/data/MyDocRalf/McKBrC/Man/cat1/gif.1
is not found and previously, it was found...
  
   What's the output of
  
   $ ls -al /cygdrive/c/data/MyDocRalf/McKBrC/Man/cat1/gif.1
  -rw-r--r-- 1 rhauser mkgroup 45 Dec 13 2001
^^^
 
 This could be your problem. Run mkgroup, as your sneakily being told, to
 refresh your /etc/group file.
 
  /cygdrive/c/data/MyDocRalf/McKBrC/Man/cat1/gif.1
 
And from your second mail:
 Apologies Ralf! Sorry! :-) My tired head is mis-reading things... :-(
nothing particularly interesting found when doing mkgroup -lu
still get 
rhauser@PC:~/2Man/cat1 man gif
No manual entry for gif

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: MANPATH Problems

2003-02-20 Thread Elfyn McBratney
 [...]
  Apologies Ralf! Sorry! :-) My tired head is mis-reading things... :-(
 nothing particularly interesting found when doing mkgroup -lu
 still get
 rhauser@PC:~/2Man/cat1 man gif
 No manual entry for gif

AFAIK there's some new detect stale group and passwd code that detects a
change and chnages your user/group name accordingly. If you update the file
anyway, as sid or gid may have changed, and see if that helps.


Regards,

Elfyn McBratney
[EMAIL PROTECTED]
www.exposure.org.uk



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: MANPATH Problems

2003-02-20 Thread Elfyn McBratney
  AFAIK there's some new detect stale group and passwd code that detects
a
  change and changes your user/group name accordingly. If you
  update the file
  anyway, as sid or gid may have changed, and see if that helps.
 What would I have to type on the command line to get this new detection
code
 executed?

Sorry, reading what I said what a bit in the details-lacking variety :-)
What I meant was that cygwin1.dll now detects when the information in
/etc/passwd and /etc/group is stale (?). So if your username or group name
is set to mkpasswd or mkgroup that's the user's alert to update those that
file or files. The code isn't executed by mkpasswd or mkgroup, it's part of
the kernel, cygwin1.dll .

Did updating the your /etc/group fix your problem?


Regards,

Elfyn McBratney
[EMAIL PROTECTED]
www.exposure.org.uk



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: MANPATH Problems

2003-02-20 Thread Ralf Hauser


 -Original Message-
 From: Elfyn McBratney [mailto:[EMAIL PROTECTED]]
 Sent: Donnerstag, 20. Februar 2003 09:20

  nothing particularly interesting found when doing mkgroup -lu
  still get
  rhauser@PC:~/2Man/cat1 man gif
  No manual entry for gif

 AFAIK there's some new detect stale group and passwd code that detects a
 change and changes your user/group name accordingly. If you
 update the file
 anyway, as sid or gid may have changed, and see if that helps.
What would I have to type on the command line to get this new detection code
executed?


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




g++ linking probs

2003-02-20 Thread Manu Anand
Guys
I am linking a simple C++ program with an external library using
g++ -W -Wall -ansi -pedantic -I/usr/local/include -L /usr/local/lib
-lcppunit prog.cxx

The linker is giving me a lot of undefined references.
However when I connect using telnet to RH Linux box the program runs OK.
I looked up the last post about undefined references but I think I am
linking
alright.

Whattya say??

-Manu

There are things known and things unknown.
In between are the doors - Jim Morrisson


DISCLAIMER: Information contained and transmitted by this E-MAIL is
proprietary to Mascot Systems Limited and is intended for use only by the
individual or entity to which it is addressed, and may contain information
that is privileged, confidential or exempt from disclosure under applicable
law. If this is a forwarded message, the content of this E-MAIL may not have
been sent with the authority of the Company. If you are not the intended
recipient, an agent of the intended recipient or a person responsible for
delivering the information to the named recipient, you are notified that any
use, distribution, transmission, printing, copying or dissemination of this
information in any way or in any manner is strictly prohibited. If you have
received this communication in error, please delete this mail  notify us
immediately at [EMAIL PROTECTED] Before opening attachments,
please scan for viruses. 



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: g++ linking probs

2003-02-20 Thread Elfyn McBratney
 Guys
 I am linking a simple C++ program with an external library using
 g++ -W -Wall -ansi -pedantic -I/usr/local/include -L /usr/local/lib
 -lcppunit prog.cxx
 
 The linker is giving me a lot of undefined references.
 However when I connect using telnet to RH Linux box the program runs OK.
 I looked up the last post about undefined references but I think I am
 linking
 alright.
 
 Whattya say??

How about a snippet of the errors from ld?


Regards,

Elfyn McBratney
[EMAIL PROTECTED]
www.exposure.org.uk


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: g++ linking probs

2003-02-20 Thread Manu Anand
Sure
The general format is like this 

/home/Administrator/work/cxx/tests/Employee.cpp:72: undefined reference to
`CppUnit::TestCase::TestCase[not-in-charge](std::basic_stringchar,
std::char_traitschar, std::allocatorchar )'

/cygdrive/c/TEMP/ccL6jx4L.o(.text$_ZN7CppUnit16TestSuiteBuilderI12EmployeeTe
stE7addTestEPNS_4TestE+0x1c):/home/Administrator/work/cxx/tests/Employee.cpp
:70: undefined reference to `CppUnit::TestSuite::addTest(CppUnit::Test*)'

This is thrown for every method call.

-Manu

There are things known and things Unknown.
In between are the doors - Jim Morrisson

 --
 From: Elfyn McBratney[SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, February 20, 2003 2:19 PM
 To:   cygwin; Manu Anand
 Subject:  Re: g++ linking probs
 
  Guys
  I am linking a simple C++ program with an external library using
  g++ -W -Wall -ansi -pedantic -I/usr/local/include -L /usr/local/lib
  -lcppunit prog.cxx
  
  The linker is giving me a lot of undefined references.
  However when I connect using telnet to RH Linux box the program runs OK.
  I looked up the last post about undefined references but I think I am
  linking
  alright.
  
  Whattya say??
 
 How about a snippet of the errors from ld?
 
 
 Regards,
 
 Elfyn McBratney
 [EMAIL PROTECTED]
 www.exposure.org.uk
 
 
 
DISCLAIMER: Information contained and transmitted by this E-MAIL is
proprietary to Mascot Systems Limited and is intended for use only by the
individual or entity to which it is addressed, and may contain information
that is privileged, confidential or exempt from disclosure under applicable
law. If this is a forwarded message, the content of this E-MAIL may not have
been sent with the authority of the Company. If you are not the intended
recipient, an agent of the intended recipient or a person responsible for
delivering the information to the named recipient, you are notified that any
use, distribution, transmission, printing, copying or dissemination of this
information in any way or in any manner is strictly prohibited. If you have
received this communication in error, please delete this mail  notify us
immediately at [EMAIL PROTECTED] Before opening attachments,
please scan for viruses. 



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: MANPATH Problems

2003-02-20 Thread Ralf Hauser
yesterday, I got 1.3.20-1 and the problem is still here...
 -Original Message-
 From: Elfyn McBratney [mailto:[EMAIL PROTECTED]]
 Sent: Donnerstag, 20. Februar 2003 09:42
 To: cygwin; [EMAIL PROTECTED]
 Subject: Re: MANPATH Problems


   AFAIK there's some new detect stale group and passwd code
 that detects
 a
   change and changes your user/group name accordingly. If you
   update the file
   anyway, as sid or gid may have changed, and see if that helps.
  What would I have to type on the command line to get this new detection
 code
  executed?

 Sorry, reading what I said what a bit in the details-lacking variety :-)
 What I meant was that cygwin1.dll now detects when the information in
 /etc/passwd and /etc/group is stale (?). So if your username or group name
 is set to mkpasswd or mkgroup that's the user's alert to update those that
 file or files. The code isn't executed by mkpasswd or mkgroup,
 it's part of
 the kernel, cygwin1.dll .

 Did updating the your /etc/group fix your problem?


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: g++ linking probs

2003-02-20 Thread Elfyn McBratney
 /home/Administrator/work/cxx/tests/Employee.cpp:72: undefined reference to
 `CppUnit::TestCase::TestCase[not-in-charge](std::basic_stringchar,
 std::char_traitschar, std::allocatorchar )'


/cygdrive/c/TEMP/ccL6jx4L.o(.text$_ZN7CppUnit16TestSuiteBuilderI12EmployeeTe

stE7addTestEPNS_4TestE+0x1c):/home/Administrator/work/cxx/tests/Employee.cpp
 :70: undefined reference to `CppUnit::TestSuite::addTest(CppUnit::Test*)'

 This is thrown for every method call.


Did you build libcppunit as a static lib or a shared (.dll) lib? It the
latter then try linking eith the static lib (adding libcppunit.a on the
end).


Regards,

Elfyn McBratney
[EMAIL PROTECTED]
www.exposure.org.uk



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: g++ linking probs

2003-02-20 Thread Manu Anand
Hi
I have libcppunit.la and libcppunit.a
That'll be static,right??

How do I link it then?
-Manu

There are things known and things Unknown.
In between are the doors - Jim Morrisson

 --
 From: Elfyn McBratney[SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, February 20, 2003 2:32 PM
 To:   cygwin; Manu Anand
 Subject:  Re: g++ linking probs
 
  /home/Administrator/work/cxx/tests/Employee.cpp:72: undefined reference
 to
  `CppUnit::TestCase::TestCase[not-in-charge](std::basic_stringchar,
  std::char_traitschar, std::allocatorchar )'
 
 
 /cygdrive/c/TEMP/ccL6jx4L.o(.text$_ZN7CppUnit16TestSuiteBuilderI12Employee
 Te
 
 stE7addTestEPNS_4TestE+0x1c):/home/Administrator/work/cxx/tests/Employee.c
 pp
  :70: undefined reference to
 `CppUnit::TestSuite::addTest(CppUnit::Test*)'
 
  This is thrown for every method call.
 
 
 Did you build libcppunit as a static lib or a shared (.dll) lib? It the
 latter then try linking eith the static lib (adding libcppunit.a on the
 end).
 
 
 Regards,
 
 Elfyn McBratney
 [EMAIL PROTECTED]
 www.exposure.org.uk
 
 
 
 
DISCLAIMER: Information contained and transmitted by this E-MAIL is
proprietary to Mascot Systems Limited and is intended for use only by the
individual or entity to which it is addressed, and may contain information
that is privileged, confidential or exempt from disclosure under applicable
law. If this is a forwarded message, the content of this E-MAIL may not have
been sent with the authority of the Company. If you are not the intended
recipient, an agent of the intended recipient or a person responsible for
delivering the information to the named recipient, you are notified that any
use, distribution, transmission, printing, copying or dissemination of this
information in any way or in any manner is strictly prohibited. If you have
received this communication in error, please delete this mail  notify us
immediately at [EMAIL PROTECTED] Before opening attachments,
please scan for viruses. 



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: 1.3.16-1: Apache 1.3.24 not rotating/lockup problem

2003-02-20 Thread Stipe Tolj
Dylan Cuthbert wrote:
 
 Any more information on this problem?  Anyone solved it?

unfortunatly no. I guessed the latest cygwin 1.3.20-x, which included
some TCP connection related fixes would be the cure, but it didn't.

 server-status makes it obvious what's being said in this thread - ie. the
 children forked by apache aren't allowing themselves to be re-used on a
 different connection properly, hence they all eventually lock up (once
 KeepAlive times out) and your web site goes down.
 
 Corinna - simply set KeepAlive on, and the time out value to 10.  Then
 access your index page, wait 10 seconds and then access it again... continue
 this a few times and you will end up locking all the children up.  (they
 work fine until the keepalive system tries to reset them to another
 connection)

thanks for the analysis. I'll try to scratch that down on one of our
installations here.

Stipe

[EMAIL PROTECTED]
---
Wapme Systems AG

Vogelsanger Weg 80
40470 Düsseldorf

Tel: +49-211-74845-0
Fax: +49-211-74845-299

E-Mail: [EMAIL PROTECTED]
Internet: http://www.wapme-systems.de
---
wapme.net - wherever you are

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: MANPATH Problems

2003-02-20 Thread Elfyn McBratney
 yesterday, I got 1.3.20-1 and the problem is still here...
  -Original Message-
 [...]
 
  Sorry, reading what I said what a bit in the details-lacking variety :-)
  What I meant was that cygwin1.dll now detects when the information in
  /etc/passwd and /etc/group is stale (?). So if your username or group
name
  is set to mkpasswd or mkgroup that's the user's alert to update those
that
  file or files. The code isn't executed by mkpasswd or mkgroup,
  it's part of
  the kernel, cygwin1.dll .
 
  Did updating the your /etc/group fix your problem?

And have you updated them again, ie. now? I know it may sound useless but it
might just fix your problems :-)


Regards,

Elfyn McBratney
[EMAIL PROTECTED]
www.exposure.org.uk



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Duplicate cygwin

2003-02-20 Thread Ronald Landheer-Cieslak
Fair enough. Earnie's already made a list for this topic. Please feel free 
to redirect any inquiries on this subject to it. The address is 
[EMAIL PROTECTED]

I don't agree that it is misguided (but that could just be me being 
misguided ;) but I do agree that, as this is against official Cygwin (Red 
Hat) policy, this has no place on this list. You won't see me talk about 
this on this list again (other than redirecting people to the now-correct 
list for this non-Cygwin topic).

rlc


On Wed, 19 Feb 2003, Christopher Faylor wrote:

 On Wed, Feb 19, 2003 at 05:00:45PM +0100, Ronald Landheer-Cieslak wrote:
 On Wed, 19 Feb 2003, Christopher Faylor wrote:
  On Wed, Feb 19, 2003 at 12:15:59PM +0100, Ronald Landheer-Cieslak wrote:
  As Cliff Hones suggested (also yesterday), it may well be a good idea to 
  start supporting this kind of thing. If Ben wants to put some time and 
  effort into it, forking off a Cygwin, developing the capability to have 
  two run at the same time, that could lead to a merge with the current 
  Cygwin to let Cygwin have that capability (and if he can get the mount 
  points out of the registry, I think Chris and Corinna may be interested in 
  that as well).
  
  Actually, no.  I'm not interested in this at all.  Use chroot or write a
  .bat file to switch between two different mount configurations.
  
  I am very very much not interested in attempting to support two different
  versions of cygwin on the same system.
 Well, in that case, Ben will be stuck with his forked-off BenCygwin :)
 
 Hope you don't mind us discussing it on the Cygwin list, though - IMHO, it 
 may lead to less questions for the Cygwin people (and more for Ben) if he 
 gets anywhere with this. (But, it might lead to exactly the inverse).
 
 If you do mind this discussion, I opt we move it elsewhere, because I *am* 
 interested :)
 
 I'd prefer that you move it elsewhere.  The cygwin mailing list page makes
 it pretty clear that it is intended for the cygwin that is officially
 released.  Watching people poke at cygwin, attempting to figure out how
 to use it in a way other than the officially supported one, is clearly
 off topic.
 
 I'll again note that I think this attempt is misguided.
 
 cgf
 
 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Bug reporting: http://cygwin.com/bugs.html
 Documentation: http://cygwin.com/docs.html
 FAQ:   http://cygwin.com/faq/
 



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: g++ linking probs

2003-02-20 Thread Andrew Markebo
/ Manu Anand [EMAIL PROTECTED] wrote:
| Guys
| I am linking a simple C++ program with an external library using
| g++ -W -Wall -ansi -pedantic -I/usr/local/include -L /usr/local/lib
| -lcppunit prog.cxx

Try throwing -lcppunit _after_ prog.cxx

/Andy

-- 
 The eye of the beholder rests on the beauty!


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: g++ linking probs

2003-02-20 Thread Elfyn McBratney
 / Manu Anand [EMAIL PROTECTED] wrote:
 | Guys
 | I am linking a simple C++ program with an external library using
 | g++ -W -Wall -ansi -pedantic -I/usr/local/include -L /usr/local/lib
 | -lcppunit prog.cxx
 
 Try throwing -lcppunit _after_ prog.cxx
 
 /Andy


I can't believe I didn't see that! :-( I've been working way to long.


Regards,

Elfyn McBratney
[EMAIL PROTECTED]
www.exposure.org.uk


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: g++ linking probs

2003-02-20 Thread Manu Anand
Hey 

Andrew: It worked!!
Thanks Andrew,Elfyn

I'll be saying bye to that stupid telnet.

Thanks a lot guys!!
-Manu
There are things known and things Unknown.
In between are the doors - Jim Morrisson

 --
 From: Andrew Markebo[SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, February 20, 2003 2:46 PM
 To:   [EMAIL PROTECTED]
 Subject:  Re: g++ linking probs
 
 / Manu Anand [EMAIL PROTECTED] wrote:
 | Guys
 | I am linking a simple C++ program with an external library using
 | g++ -W -Wall -ansi -pedantic -I/usr/local/include -L /usr/local/lib
 | -lcppunit prog.cxx
 
 Try throwing -lcppunit _after_ prog.cxx
 
 /Andy
 
 -- 
  The eye of the beholder rests on the beauty!
 
 
 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Bug reporting: http://cygwin.com/bugs.html
 Documentation: http://cygwin.com/docs.html
 FAQ:   http://cygwin.com/faq/
 
 
 
DISCLAIMER: Information contained and transmitted by this E-MAIL is
proprietary to Mascot Systems Limited and is intended for use only by the
individual or entity to which it is addressed, and may contain information
that is privileged, confidential or exempt from disclosure under applicable
law. If this is a forwarded message, the content of this E-MAIL may not have
been sent with the authority of the Company. If you are not the intended
recipient, an agent of the intended recipient or a person responsible for
delivering the information to the named recipient, you are notified that any
use, distribution, transmission, printing, copying or dissemination of this
information in any way or in any manner is strictly prohibited. If you have
received this communication in error, please delete this mail  notify us
immediately at [EMAIL PROTECTED] Before opening attachments,
please scan for viruses. 



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: stat/fstat incompatibility w/ unix sockets

2003-02-20 Thread Corinna Vinschen
On Thu, Feb 20, 2003 at 02:02:40AM -0500, Paul Swartz wrote:
Content-Description: Mail message body
 The man page for stat/fstat says that the results 
 returned should be the same.  However, when asking 
 for the fstat on a unix socket, the result is not 
 the same.  The attached python code demonstrates 
 this problem.  Is this an already known issue with 
 a solution already?  Are there plans to resolve 
 it?

*What* is the difference?  Some details would be helpful.  Especially
I'm not using python at all.  A short test case in C would be appreciated
or at least a description of the difference you see.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Question about mixing objects beetween MSVC++ and GCC

2003-02-20 Thread Eric Jacquemard
In the FAQ I read that I can mix objects compiled with
msvc++ and gcc. I would like to have a precision : 
Can I mix mscv++ object files (C++) with C object
files generated by gcc ? 
If OK : how can I do that ? Do I need specific options
(for compiling and linking) ? In my case : I would
like to call my « C_GCC_dll » from a C++_msvc++
application.
Thanks 


___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: arrow keys under mc via SSH with PuTTY

2003-02-20 Thread Pavel Tsekov
Hello,

This problem has been reported by Marcel Telka some time ago:
http://cygwin.com/ml/cygwin/2003-01/msg00485.html

Apparently some changes in newer Cygwin versions broke the arrow keys 
handling in MC 4.5.55. I planned to investigate this problem but couldn't 
get enough time. Are you establishing the ssh session over a slow 
connection ? Steve O expressed an opinion that this may be actually a 
problem in MC's key handling code.

Btw newer versions of MC (4.6.0) seem to not experience this problem. 
I've already prepared the Cygwin package for MC 4.6.0, but I was delaying 
the release, because I've a pending patch, which I want to be accepted, 
before I release the updated package. Unfortunately the MC maintainer is
quite busy now and doesn't have time to properly review it.

I think that if this patch is not reviewed until the end of this week I'll
release the updated package anyway.

 On Thu, 20 Feb 2003, Lucifer Hong wrote:

 I setup sshd in cygwin and use PuTTY to login.  Everything seems going
 well.  But when I start mc(GNU Midnight Commander 4.5.55) and use
 arrow keys to move the cursor bar among listed files, strange things
 occured:
 
 When I press down key, a 'B' charactor appears in the prompt line (the
 line with a '$' at the most left) and cursor bar doesn't move. And when
 I press up key, a 'A' appears instead. However, I still have some
 chances (about 1 out of 10 tries) to move the cursor bar successfully.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Question about mixing objects beetween MSVC++ and GCC

2003-02-20 Thread Pavel Tsekov
No, you cannot mix C++ object. GCC and MSVC use different name mangling 
schemes.

However, you can try to wrap the C++ functionality in C functions and
link against them. Eventually this will work.

On Thu, 20 Feb 2003, Eric Jacquemard wrote:

 In the FAQ I read that I can mix objects compiled with
 msvc++ and gcc. I would like to have a precision : 
 Can I mix mscv++ object files (C++) with C object
 files generated by gcc ? 
 If OK : how can I do that ? Do I need specific options
 (for compiling and linking) ? In my case : I would
 like to call my « C_GCC_dll » from a C++_msvc++
 application.
 Thanks 


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: g++ linking probs

2003-02-20 Thread Andrew Markebo
/ Elfyn McBratney [EMAIL PROTECTED] wrote:
| / Manu Anand [EMAIL PROTECTED] wrote:
| | Guys
| | I am linking a simple C++ program with an external library using
| | g++ -W -Wall -ansi -pedantic -I/usr/local/include -L /usr/local/lib
| | -lcppunit prog.cxx
| 
| Try throwing -lcppunit _after_ prog.cxx
| 
| /Andy
|
|
| I can't believe I didn't see that! :-( I've been working way to long.

Yah yah yah blame the work :-) 

Hehe I don't know why, today that is the first thing I check for when
people complain, have had a bunch of friends who all does that on
their first try.. To driven into MSVC++.

/Andy

-- 
 The eye of the beholder rests on the beauty!


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




rxvt dialog at shutdown suggests failure to exit due to ssh-agent?

2003-02-20 Thread David Starks-Browning
On Wednesday 19 Feb 03, Jim Kleckner writes:
 Consistently when I shutdown Win2K I get a dialog
 asking to end an rxvt process:
 End Program: rxvt0510
 Windows cannot end this program.  It may need
 more time to complete an operation. ...
 End Now/Cancel
 
 I launch rxvt via an rxvt.lnk that contains
 the following as the Target:
C:\cygwin\bin\rxvt.exe -e bash.exe -i
 I typically launch two instances of rxvt so
 that I can toggle from one to the other.  Prior
 to shutdown, I type exit into each shell and the
 window closes.  ...  I use keychain and ssh-agent
 is still running.  If I shut down ssh-agent
 with keychain -k prior to exiting the bash
 shells, then shutdown proceeds properly.
 
 Is there a way for keychain to launch ssh-agent
 such that it doesn't cause this hang?

(caveat: I don't use Win2K and I don't use keychains, and I don't know
precisely how keychains work.  Presumably it just manages ssh-agent
and ssh-add.)

I don't know how to launch ssh-agent such that it doesn't cause this
hang.  But I do know how to kill ssh-agent automatically when you
exit a shell.  Just add:

trap 'test -n $SSH_AGENT_PID  eval `ssh-agent -k`' EXIT

to your .bash_profile (or whatever).  Actually, the test for
$SSH_AGENT_PID should not be necessary, but on Win9x I had problems
running 'ssh-agent -k' when there was no agent to kill.  Maybe
keychain users need to replace

eval `ssh-agent -k`
with
keychain -k

(but I'm just guessing).

If *all* shells source that line, then you have the problem that the
first one to exit will kill ssh-agent, and maybe you don't want that.
You could put something a bit more sophisticated in your .bash_profile
(or whatever) to identify a master shell, depending on your
requirements.

Killing ssh-agent when your shell exits is not a Cygwin-specific
problem.  (Though the need to kill ssh-agent before logging off or
shutting down *is*.)

Hope this helps.

Regards,
David


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: arrow keys under mc via SSH with PuTTY

2003-02-20 Thread Thorsten Kampe
* Lucifer Hong (03-02-20 06:35 +0100)
 I setup sshd in cygwin and use PuTTY to login.  Everything seems going
 well.  But when I start mc(GNU Midnight Commander 4.5.55) and use
 arrow keys to move the cursor bar among listed files, strange things
 occured:
 
 When I press down key, a 'B' charactor appears in the prompt line (the
 line with a '$' at the most left) and cursor bar doesn't move. And when
 I press up key, a 'A' appears instead. However, I still have some
 chances (about 1 out of 10 tries) to move the cursor bar successfully.

Right and left cursor insert a 'C' and 'D'...
 
 I have tried exporting TERM=linux, but the annoying A/B's still remains. :(
 
 If I use the cygwin.bat directly form the start menu and export
 TERM=linux, mc works very well.
 
 I have searched the cygwin mailing list archive using keywords mc and
 putty, but nothing helpful is found.  Anyone had met the same problem
 here?  Any help will be much appreciated.

Aaah, another victim: same thing with me. Despite your description the 
problem isn't bound to remote login via SSH. It's the same thing when 
you log in locally with bash or zsh (both with a console window or 
rxvt). The only thing I can say about it is: when I installed MC it 
wasn't like that. Something's changed and is broken and it isn't MC.

Work around: Turn of the command prompt (under Layout). The annoying 
behaviour still exists (for example in a MC editor window (F4)), but 
you can bypass it if you delay the pressing between to cursor key 
strokes to half a second (or more).

Thorsten
-- 
 Content-Type: text/explicit; charset=ISO-8859-666 (Parental Advisory)
 Content-Transfer-Warning: message contains innuendos not suited for
 children under the age of 18


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Cygwin Sybase Open-client

2003-02-20 Thread Frederic BOYER

Hello,

I try to use cygwin  Open client together. But I cannot manage to link my
binary with
the sybase lib. In fact, if I do not generate .a libs, I can link but I do
have a rellocation
error at execution, and I cannot link when I use .a generated libs.

Have someone either succeded in using Cygwin with Sybase  / Open Client /
ctlib ?

I generate my .a with this script :

#! /bin/sh
for i in libblk  libcs libct libsybdb ; do
 echo LIBRARY ${i} ${i}.def
echo EXPORTS ${i}.def
strings ${i}.lib | grep _imp | sed s/__imp__// ${i}.def
dlltool --dllname ${i}.dll  --def ${i}.def  --output-lib ${i}.a  -k
done

Thanx 4 help.

Frédéric BOYER.


This message,  including any attachments may contain confidential and
privileged material;  it is intended only for the person to whom it is
addressed.  Its  contents  do not  constitute  a commitment  by Crédit
Agricole Indosuez Cheuvreux  except  where  provided  for in a written
agreement.  Crédit Agricole Indosuez Cheuvreux assumes no liability or
responsibility for the consequences arising out of a delay and/or loss
in  transit  of  this  message,  or for corruption  or other  error(s)
arising in its transmission and for any misuse or fraudulent use which
may  be made thereof.  If you are not the  intended recipient,  please
contact us  and abstain from  any disclosure, use or dissemination. To
the extent  that  this message  contains  research information  and/or
recommendations,  these  are  provided  on  the  same  basis as Crédit
Agricole Indosuez Cheuvreux's  published  research  and  the recipient
must  have  regard  to  all   disclosures  and  disclaimers  contained
therein.




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: procmail and NTSEC

2003-02-20 Thread Olaf Foellinger
On Sat, Feb 15, 2003 at 09:11:21PM -0500, Ajay Simha wrote:
 I now have mutt, procmail, fetchmail, ssh, aspell combination working. I want to get 
something
 decent working for printing from within mutt next.

I use muttprint(http://muttprint.sourceforge.net/) together with a home
brewed lpr. The result looks fine for me.
 
 
Gruss Olaf Föllinger

-- 
Olaf Föllinger
Berater 
S.E.S.A. Software und Systeme AG

Alt-Moabit 91a
D-10559 Berlin
Germany
Tel:   +49 30 390722 -291
Fax:   +49 30 390722 -222
Mobil: +49 173 6227080
http://www.sesa.de
mailto: [EMAIL PROTECTED]

#!/bin/bash

Server=SESABLN1
Printer=HPLJ4050_R6
ProgramName=$(basename $0)
WinDir=$(cygpath -u $WINDIR)
Lpr=$WinDir/system32/lpr

TempFile=/tmp/$ProgramName.$$
WinTempFile=$(cygpath -w $TempFile)

cat $TempFile
$Lpr -S $Server -P $Printer $WinTempFile
Status=$?

rm -fr $TempFile
exit $Status


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


RE: Postgresql

2003-02-20 Thread Vince Hoffman
follow the instuctions in /usr/doc/Cygwin/postgresql-7.3.2.README

especialy the bit about installing cygipc

 -Original Message-
 From: Maurício [mailto:[EMAIL PROTECTED]]
 Sent: 20 February 2003 11:58
 To: [EMAIL PROTECTED]
 Subject: Postgresql
 
 
Hi,
 
After installing (using setup.exe) postgresql, what should I do to 
 get it up and running (as a service)?
 
Thanks,
Maurício
 
 
 
 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Bug reporting: http://cygwin.com/bugs.html
 Documentation: http://cygwin.com/docs.html
 FAQ:   http://cygwin.com/faq/
 

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Postgresql

2003-02-20 Thread Jason Tishler
Maurício,

On Thu, Feb 20, 2003 at 08:58:13AM -0300, Maurício wrote:
 After installing (using setup.exe) postgresql, what should I do to get
 it up and running (as a service)?

Read the README:

/usr/doc/Cygwin/postgresql-7.3.2.README

Jason

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


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: procmail and NTSEC

2003-02-20 Thread Jason Tishler
Olaf,

On Thu, Feb 20, 2003 at 12:49:14PM +0100, Olaf Foellinger wrote:
 together with a home brewed lpr.
  ^^^

Hmm... I'm getting that deja vu feeling:

http://cygwin.com/ml/cygwin/2002-06/msg00581.html
http://sources.redhat.com/ml/cygwin/2000-10/msg00242.html

Specifically, compare your lpr:

 #!/bin/bash
 
 Server=SESABLN1
 Printer=HPLJ4050_R6
 ProgramName=$(basename $0)
 WinDir=$(cygpath -u $WINDIR)
 Lpr=$WinDir/system32/lpr
 
 TempFile=/tmp/$ProgramName.$$
 WinTempFile=$(cygpath -w $TempFile)
 
 cat $TempFile
 $Lpr -S $Server -P $Printer $WinTempFile
 Status=$?
 
 rm -fr $TempFile
 exit $Status

to mine:

On Fri, 6 Oct 2000 08:01:01 -0400, Jason Tishler wrote:
 #!/bin/bash
 
 Server=prodserv
 Printer=eng-duplex
 ProgramName=$(basename $0)
 WinDir=$(cygpath -u $WINDIR)
 Lpr=$WinDir/system32/lpr
 
 TempFile=/tmp/$ProgramName.$$
 WinTempFile=$(cygpath -w $TempFile)
 
 cat $TempFile
 $Lpr -S $Server -P $Printer $WinTempFile
 Status=$?
 
 rm -fr $TempFile
 exit $Status

Jason

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

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




GPL Violation

2003-02-20 Thread Jason Tishler
You are violating the GPL license by not providing the source for Cygwin
on your fetchmail web page:

http://spt.free.fr/fetchmail/

Please provide the Cygwin source that corresponds to the version of
cygwin1.dll on the above web page at your earliest convenience.

Thanks,
Jason

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

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: procmail and NTSEC

2003-02-20 Thread Olaf Foellinger
On Thu, Feb 20, 2003 at 07:30:02AM -0500, Jason Tishler wrote:
 Olaf,
 
 On Thu, Feb 20, 2003 at 12:49:14PM +0100, Olaf Foellinger wrote:
  together with a home brewed lpr.
   ^^^
 
 Hmm... I'm getting that deja vu feeling:
 
 http://cygwin.com/ml/cygwin/2002-06/msg00581.html
 http://sources.redhat.com/ml/cygwin/2000-10/msg00242.html

O.k. I don't wanted to offend anyone or to sell his work as mine. I
did not tell at which home the script was brewed ;-). So all the honor
belongs to Jason.

It's often so that I don't remember where I've picked up the scripts
that I use but nevertheless I wanted to mention the solution here.
Please consider some remarks in the first lines of your scripts about the
author so everything will be clear in the future.

No offence meant.
 
Gruss Olaf Föllinger

-- 
Olaf Föllinger
Berater 
S.E.S.A. Software und Systeme AG

Alt-Moabit 91a
D-10559 Berlin
Germany
Tel:   +49 30 390722 -291
Fax:   +49 30 390722 -222
Mobil: +49 173 6227080
http://www.sesa.de
mailto: [EMAIL PROTECTED]

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Kudos

2003-02-20 Thread Joe Buehler
Christopher Faylor wrote:


I just wanted to say thank you to all of the dedicated people on this
mailing list who spend countless hours answering questions.  My hat is
off to all of you.  There is no way that cygwin could survive without
your guidance and support.


Thank YOU Cygwin hackers for Cygwin itself -- you have no idea what life
was like before I could get a real X11 GNU emacs on our remote Windows NT
build machines.  We use Cygwin now and have identical build environments
on UNIX and NT using the ATT ast (ksh93) software.
--
Joe Buehler



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Installing perl...

2003-02-20 Thread Henry Holland
Hi,

I'm trying to install perl on cygwin from source (5.6.1-2) and I get an
error on make:
  make: *** No rule to make target 'built-in', needed by
'miniperlmain.o'. Stop.

Okay, I'm working on XP. Here's the configuration that I'm attempting:

-
#!/bin/sh

# This script is designed to provide a handy summary of the
configuration
# information being used to build perl. This is especially useful if you
# are requesting help from comp.lang.perl.misc on usenet or via mail.

# Note that the text lines /^Summary of/ .. /^\s*$/ are copied into
Config.pm.
cat '!NO!SUBS!'
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
  Platform:
osname=cygwin, osvers=1.3.20(0.7332), archname=cygwin-multi
uname='cygwin_nt-5.1 spoedniek 1.3.20(0.7332) 2003-02-08 12:10 i686
unknown unknown cygwin '
config_args='-de -Dusemultiplicity'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=define
useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
  Compiler:
cc='gcc', ccflags ='-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing
-I/usr/local/include',
optimize='-O2',
cppflags='-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing
-I/usr/local/include'
ccversion='', gccversion='3.2 20020927 (prerelease)',
gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=4
alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
ld='ld2', ldflags =' -s -L/usr/local/lib'
libpth=/usr/local/lib /usr/lib /lib
libs=-lgdbm -lcrypt -lcygipc
perllibs=-lcrypt -lcygipc
libc=/usr/lib/libc.a, so=dll, useshrplib=true, libperl=libperl5_6_1
  Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' -s'
cccdlflags=' ', lddlflags=' -s -L/usr/local/lib'

!NO!SUBS!


Any ideas on why I can't get this to work? What more information do you
need to be able to help me?

This is exhausting...

Thanks for any help,
Henry


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: arrow keys under mc via SSH with PuTTY

2003-02-20 Thread Corinna Vinschen
On Thu, Feb 20, 2003 at 12:38:12PM +0100, Thorsten Kampe wrote:
 * Lucifer Hong (03-02-20 06:35 +0100)
  I setup sshd in cygwin and use PuTTY to login.  Everything seems going
  well.  But when I start mc(GNU Midnight Commander 4.5.55) and use
  arrow keys to move the cursor bar among listed files, strange things
  occured:
  
  When I press down key, a 'B' charactor appears in the prompt line (the
  line with a '$' at the most left) and cursor bar doesn't move. And when
  I press up key, a 'A' appears instead. However, I still have some
  chances (about 1 out of 10 tries) to move the cursor bar successfully.
 
 Right and left cursor insert a 'C' and 'D'...
  
  I have tried exporting TERM=linux, but the annoying A/B's still remains. :(
  
  If I use the cygwin.bat directly form the start menu and export
  TERM=linux, mc works very well.

In this case, TERM should be set to cygwin, though.  Setting it to
linux doesn't make sense (yeah, I did that, too, once, but...)

However, in case of using PuTTY, the question is, which terminal type
is PuTTY emulating?  Is it actually linux or is it vt100 or some
other term?  You should find this in the PuTTY docs.  Set TERM to the
appropriate value and you should be done.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: procmail and NTSEC

2003-02-20 Thread Jason Tishler
Olaf,

On Thu, Feb 20, 2003 at 03:06:42PM +0100, Olaf Foellinger wrote:
 So all the honor belongs to Jason.

I'm not looking for honor just attribution.

 Please consider some remarks in the first lines of your scripts about
 the author so everything will be clear in the future.

A very good suggestion -- I will do so in the future.

 No offence meant.

None taken.

Thanks,
Jason

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

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: sshd, ftpd telnetd starts, but says incorrect passwd

2003-02-20 Thread Malghan, Ravi
Please let me know if anybody responds to you. I think it's something very
simple and I have been searching all over the mailing lists and have only
seen questions but no answers for this problem.

Thanks
Ravi

-Original Message-
From: Nandini [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 19, 2003 8:09 PM
To: [EMAIL PROTECTED]
Subject: sshd, ftpd telnetd starts, but says incorrect passwd


Hi: I am trying to set these deamons (sshd, ftpd
telnetd). The deamon starts fine. But when I ssh or
ftp or telnet I keep getting incorrect password. I
have created the /etc/passwd and /etc/group using
mkpasswd -lc, mkgroup -lc and I see the username I am
using in /etc/passwd. Is there anything else I have to
do for the authentication to work?
For ftpd, I donot have the file /etc/nologin, no lines
in /etc/ftpusers and the shell for all users is bash
which does exist in /etc/shells file.

Thanks
Nand

__
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




zsh, mkzsh, zsh.bat

2003-02-20 Thread Mattias Brändström
Hi!

I just tried to set up cygwin with zsh using the mkzsh script provided in
the distribution (the latest one as of February 20). After the script has
executed I get the expected shortcut on my desktop but when I double-click
on the shortcut the only thing I get is a console window with the word OFF
printed in the upper left corner. I'm guessing that there is something
wrong with the zsh.bat script. That script is a pretty simple one and as
far as I can see there shouldn't be anything wrong with it.

Has anyone else had similar problems? Or is mkzsh not the proper way to
get to run cygwin with zsh instead of bash?

Regards,
Mattias


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Seg fault in home-built mutt

2003-02-20 Thread Jason Tishler
On Tue, Feb 18, 2003 at 09:01:20PM +0100, [EMAIL PROTECTED] wrote:
 I managed to get mutt built at the weekend such that
 the dotlock stuff was external. The build I made was
 as follows:
 Mutt 1.4i (2002-05-29)
 [snip]
 System: CYGWIN_98-4.10 1.3.20(0.73/3/2) (i686) [using ncurses 5.2]
 Compile options:
 -DOMAIN
 -DEBUG
 -HOMESPOOL  -USE_SETGID  -USE_DOTLOCK  +DL_STANDALONE
   

Shouldn't the above be +USE_DOTLOCK?

I have a private mutt build with the following configuration:

Mutt 1.4i (2002-05-29)
Copyright (C) 1996-2001 Michael R. Elkins and others.
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
Mutt is free software, and you are welcome to redistribute it
under certain conditions; type `mutt -vv' for details.

System: CYGWIN_NT-5.0 1.3.17(0.67/3/2) (i686) [using ncurses 5.2]
Compile options:
-DOMAIN
-DEBUG
-HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE  
+USE_FCNTL  -USE_FLOCK
+USE_POP  +USE_IMAP  -USE_GSS  +USE_SSL  -USE_SASL  
+HAVE_REGCOMP  -USE_GNU_REGEX  
+HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET  
+HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM  
+HAVE_PGP  +BUFFY_SIZE -EXACT_ADDRESS  -SUN_ATTACHMENT  
+ENABLE_NLS  +LOCALES_HACK  -HAVE_WC_FUNCS  -HAVE_LANGINFO_CODESET  
+-HAVE_LANGINFO_YESEXPR  
+HAVE_ICONV  -ICONV_NONTRANS  -HAVE_GETSID  -HAVE_GETADDRINFO  
ISPELL=/usr/local/bin/ispell
SENDMAIL=/usr/sbin/sendmail
MAILPATH=/var/spool/mail
PKGDATADIR=/usr/local/share/mutt
SYSCONFDIR=/usr/local/etc
EXECSHELL=/bin/sh
-MIXMASTER

Do you want me to send it to you to see if it works with your testcase?

Jason

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

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Kudos

2003-02-20 Thread Joe Buehler
Gershon Kagan wrote:


Do you use make in a GNU emacs X window on both platforms for an
identical build interface?  Do you use gcc on both platforms or MS
Visual C++ ?  How do your makefiles support multiple platforms?

I wrote some templates that generate Makefiles that use make variables
to support the native  compiler on multiple platforms.  I just wanted to
compare approaches.


I use emacs for maintenance work and fixing build problems.  The builds
are automated, with a status monitoring system that reports on builds
in real time to a database server that distributes the information to
Java GUI clients, so developers can see whether their build worked
and what kinds of errors have been detected.

We use ATT nmake with native compilers on all platforms (xlC on AIX,
cc/aCC on HPUX, cc/CC on SUNOS, msvc++ 5/6 on Windows).  ATT nmake is
vastly superior to GNU make feature-wise.  I think it was originally
written for performance reasons, to reduce the ATT 5ESS switch build
times, which were taking several days back in the 80's.

The cross-platform abilities are a major reason we use it -- we use
the same ksh build scripts and same makefiles on all machines.  There are
some conditionals for platform tests, but it is minimal because of the
rule set we have running on top of the nmake engine (we don't use
the rule set that comes with nmake).  Basically, we developed a set
of functions that get used in the makefiles.  Like this:

temp.exe :make: file1.c file2.cpp libwhatever.a

The :make: function takes care of filename translation (libwhatever.a
becomes libewhatever.lib on a Windows box) and generation of all the
make rules and shell command blocks to generate temp.exe, build lint
for it, export it into an export area, etc.  If we want to add something,
we just change :make: in the master rules file and don't have to touch
the makefiles.

Parallel build performance is another reason we use it.  GNU make can
do parallel builds, but it does not have any mutual exclusion capabilities
built in for rules that conflict with one another -- nmake does.
Then there's automatic header file scanning, compiled makefiles (for speed),
state retention between builds (also for speed), viewpathing (for multiple
developers working against a shared baseline build), much simplified makefiles,
and probably a few other things that don't occur to me at the moment.
Oh, yes, shell command blocks are just that, blocks -- they are not
executed one line per shell and you don't need those awful \ characters
to continue lines.  Multimachine network builds are supported also,
though we don't use that (yet).
--
Joe Buehler


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: using rxvt with other shells

2003-02-20 Thread Igor Pechtchanski
On Thu, 20 Feb 2003, Igor Pechtchanski wrote:

 On Thu, 20 Feb 2003, Elfyn McBratney wrote:

   On Wed, Feb 19, 2003 at 05:00:51PM -0500, Igor Pechtchanski wrote:
   FYI, pdksh (http://web.cs.mun.ca/~michael/pdksh/) compiles OOTB on
   Cygwin and is a fully conformant ksh implementation.  If all you need is
   ksh, there you go.
  
   Anyone want to provide pdksh as a package?  It seems like last year's
   offer to provide the real ATT ksh has dried up.
   cgf
 [snip]
 I'd like to have a minimal patch if I intend to package it...
 Igor
 P.S. I'll report to the cygwin-apps list when I make progress on this one.

No I won't.  Just read the cygwin-apps list...  Wow.  Quick work, Elfyn!
And it's only been what, 16 hours? ;-)
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: arrow keys under mc via SSH with PuTTY

2003-02-20 Thread Pavel Tsekov
On Thu, 20 Feb 2003, Corinna Vinschen wrote:

   When I press down key, a 'B' charactor appears in the prompt line (the
   line with a '$' at the most left) and cursor bar doesn't move. And when
   I press up key, a 'A' appears instead. However, I still have some
   chances (about 1 out of 10 tries) to move the cursor bar successfully.
  
  Right and left cursor insert a 'C' and 'D'...
   
   I have tried exporting TERM=linux, but the annoying A/B's still remains. :(
   
   If I use the cygwin.bat directly form the start menu and export
   TERM=linux, mc works very well.
 
 In this case, TERM should be set to cygwin, though.  Setting it to
 linux doesn't make sense (yeah, I did that, too, once, but...)
 
 However, in case of using PuTTY, the question is, which terminal type
 is PuTTY emulating?  Is it actually linux or is it vt100 or some
 other term?  You should find this in the PuTTY docs.  Set TERM to the
 appropriate value and you should be done.
 
 Corinna

I think PuTTY is behaving well. The problem lies somewhere in MC's key 
handling code or in the recent changes to terminal io in Cygwin. I'll try 
to see what I can do to track this down, *really*. In the meantime I'm 
almost ready to release the new version of MC which doesn't have this 
problem.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: rxvt dialog at shutdown suggests failure to exit due to ssh-agent?

2003-02-20 Thread Jim Kleckner
Thank you for the suggestion.

David Starks-Browning wrote:


On Wednesday 19 Feb 03, Jim Kleckner writes:

[snip]

If *all* shells source that line, then you have the problem that the
first one to exit will kill ssh-agent, and maybe you don't want that.
You could put something a bit more sophisticated in your .bash_profile
(or whatever) to identify a master shell, depending on your
requirements.


Unfortunately, this is exactly what keychain is for -
to start the agent in one shell and then share access
from many shells.  I start up and shut down many rxvt/bash
shells during the day without having to provide my
passphrase.  Stopping the agent with keychain is easy by
just typing keychain -k.  I forget to do that just
about every time.

This is not a big problem.  I just thought someone
might know how to strongly detach the process while
at the same time allowing stdin interaction for the
passphrase.

Jim


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Question re. export environment variable

2003-02-20 Thread Fred Ma
Hello,

I'm using cygwin bash 2.05b-8 (it's actually gnu).
I thought that $HOSTNAME was an environment
variable.  When I run gnu make (I'm pretty
sure this is not a make problem), $(HOSTNAME)
is empty.  It gets fixed if I do export HOSTNAME
before running make.

Is there a way to check if the export command
has been applied to $HOSTNAME?  Does the
actual transcription of $HOSTNAME's value to
the environment happen only once, when
export is applied, or is there a continual
monitoring an mirroring of changes to $HOSTNAME
forever after applying export?

Fred



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: rxvt dialog at shutdown suggests failure to exit due to ssh-agent?

2003-02-20 Thread David Starks-Browning
On Thursday 20 Feb 03, Jim Kleckner writes:
 Thank you for the suggestion.
 
 David Starks-Browning wrote:
 
  On Wednesday 19 Feb 03, Jim Kleckner writes:
 [snip]
  If *all* shells source that line, then you have the problem that the
  first one to exit will kill ssh-agent, and maybe you don't want that.
  You could put something a bit more sophisticated in your .bash_profile
  (or whatever) to identify a master shell, depending on your
  requirements.
 
 Unfortunately, this is exactly what keychain is for -
 to start the agent in one shell and then share access
 from many shells.  I start up and shut down many rxvt/bash
 shells during the day without having to provide my
 passphrase.  Stopping the agent with keychain is easy by
 just typing keychain -k.  I forget to do that just
 about every time.

Your exit trap function could be something that checks to see if it's
the last rxvt window remaining, and if so, runs keychain -k.

(I agree, this is a workaround.  It would be nicer if ssh-agent would
die quickly and quietly at Windows logout or shutdown.  I don't know
if that's possible.)

Regards,
David


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




tee is coredumping

2003-02-20 Thread Fred Ma
Hello,

I've got the latest cygwin 1.3.20-1, cygutils 1.1.3-1.
The tee command is core dumping on me, but
only with a particular set of circumstances.  I use
it as follows:

make -f client.mak 21 | tee client.out

I realize this is not telling you a whole lot because
it depends on what all happens in client.mak.  I don't
get a core dump if I just do ls 21 | tee client.out.
Here is the short contents of client.mak:

 CC = gfilt

 $(warning Hostname is $(HOSTNAME))
 ifeq ($(HOSTNAME),fmalap)
$(warning Disabling Matlab engine code.)
NOML = -DNOML
LIBS =
 else
NOML =
 LIBS = -L /opt/matlab13/extern/lib/sol2 -leng -lmx
 endif

 client: client.cpp client.hpp client.mak
 $(CC) $(NOML) -O -o client \
 -I/opt/matlab13/extern/include \
 client.cpp \
$(LIBS)

The key in this file that seems to cause the crash is
using CC=gfilt instead of g++.  gfilt is a perl script
(or rather, a shell script that invokes perl) to decrypt
the very confusing messages from the C++ standard
library.

I realize it's not realistic to ask What's wrong, but
perhaps a few strategies to isolate the problem?  I
am no perl guy (I've used twice, like an overpowered
sed script).  The perl version is 5.6.1-2, with gnu license.
But perl is probably not the problem, since it's tee that's
dumping.

Thanks in advance.

Fred


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Compiling Perl modules

2003-02-20 Thread Garry Heaton
I have a recent 'make' but cpan if failing to compile modules such as
DBI and DBD::mysql properly. It seems to be having problems with 'make'
some of the time. Are there any special requirements for loading Perl
modules within Cygwin?

Garry Heaton


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Question re. export environment variable

2003-02-20 Thread Igor Pechtchanski
On Thu, 20 Feb 2003, Fred Ma wrote:

 Hello,

 I'm using cygwin bash 2.05b-8 (it's actually gnu).
 I thought that $HOSTNAME was an environment
 variable.  When I run gnu make (I'm pretty
 sure this is not a make problem), $(HOSTNAME)
 is empty.  It gets fixed if I do export HOSTNAME
 before running make.

 Is there a way to check if the export command
 has been applied to $HOSTNAME?  Does the
 actual transcription of $HOSTNAME's value to
 the environment happen only once, when
 export is applied, or is there a continual
 monitoring an mirroring of changes to $HOSTNAME
 forever after applying export?

 Fred

Fred,

I'm afraid you might be confused about what exporting a variable means.
Bash maintains an environment, which contains the values of all the
variables it's using.  When bash spawns a child, that child inherits those
variables from the parent's environment that are exported.  Thus, if you
export HOSTNAME, the child will get the current value of HOSTNAME.  If you
then change HOSTNAME in the parent, the child *will not* see the change.
However, if you spawn another child, that new child *will* see the new
value.

BTW, export with no variable name will print out the list of all
variables that are exported from the current shell.  And, if you want to
make sure it's exported, export HOSTNAME can do no harm.  But both this
and the above are off-topic for the Cygwin list, and could have been found
by a simple perusal of man bash.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Question re. export environment variable

2003-02-20 Thread Bob McGowan
Fred, perhaps this will help:

echo $TEST	# Test has no value, hence the blank line.

$ TEST=noexport # Set but not exported
$ echo $TEST
noexport
$ env|grep TEST # Nothing found, no output.
$ export TEST   # Export it.
$ env|grep TEST # And now it's found in the environment.
TEST=noexport
$ TEST=second   # Change its value.
$ env|grep TEST # Same search as above, but the value is changed.
TEST=second

Perhaps the easiest way to look at it is to think of exporting as making a type 
of global variable.  Everyone (within certain limits; for the shell, only its 
children...) will see the exported variable.  If the value changes, it changes 
everywhere.  I've quoted everywhere because this only applies to children 
invoked after the change.  So if TEST=second and you run an xterm, the new shell 
sees TEST=second.  Change TEST=third in the first shell, you still have 
TEST=second in the second shell, since it already got its value for TEST.  Start 
a third shell from the first, it will see TEST=third.  And so on.

Fred Ma wrote:
Hello,

I'm using cygwin bash 2.05b-8 (it's actually gnu).
I thought that $HOSTNAME was an environment
variable.  When I run gnu make (I'm pretty
sure this is not a make problem), $(HOSTNAME)
is empty.  It gets fixed if I do export HOSTNAME
before running make.

Is there a way to check if the export command
has been applied to $HOSTNAME?  Does the
actual transcription of $HOSTNAME's value to
the environment happen only once, when
export is applied, or is there a continual
monitoring an mirroring of changes to $HOSTNAME
forever after applying export?

Fred



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


--
Bob McGowan
Staff Development Engineer
VERITAS Software
[EMAIL PROTECTED]


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: GPL Violation

2003-02-20 Thread Frédéric L. W. Meunier
I bet I'm too. Well, sue me ? Can I provide a link ? Or what
about the Cygwin people making the latest released cygwin1.dll
available like the snapshots ? Then I'd just link to it.

I make cygwin1.dll.bz2 available so that people can run the
static binaries.

I'm not allowed to transfer more than 100Mb a month.
cygwin-1.3.18-1-src.tar.bz2 is 4631969 bytes. While I don't
think many people would download the sources...

http://www.pervalidus.net/cygwin/

-- 
0@pervalidus.{tk, dyndns.org}

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: tee is coredumping

2003-02-20 Thread Igor Pechtchanski
On Thu, 20 Feb 2003, Fred Ma wrote:

 Hello,

 I've got the latest cygwin 1.3.20-1, cygutils 1.1.3-1.
 The tee command is core dumping on me, but
 only with a particular set of circumstances.  I use
 it as follows:

 make -f client.mak 21 | tee client.out

 I realize this is not telling you a whole lot because
 it depends on what all happens in client.mak.  I don't
 get a core dump if I just do ls 21 | tee client.out.
 Here is the short contents of client.mak:

  CC = gfilt

  $(warning Hostname is $(HOSTNAME))
  ifeq ($(HOSTNAME),fmalap)
 $(warning Disabling Matlab engine code.)
 NOML = -DNOML
 LIBS =
  else
 NOML =
  LIBS = -L /opt/matlab13/extern/lib/sol2 -leng -lmx
  endif

  client: client.cpp client.hpp client.mak
  $(CC) $(NOML) -O -o client \
  -I/opt/matlab13/extern/include \
  client.cpp \
 $(LIBS)

 The key in this file that seems to cause the crash is
 using CC=gfilt instead of g++.  gfilt is a perl script
 (or rather, a shell script that invokes perl) to decrypt
 the very confusing messages from the C++ standard
 library.

 I realize it's not realistic to ask What's wrong, but
 perhaps a few strategies to isolate the problem?  I
 am no perl guy (I've used twice, like an overpowered
 sed script).  The perl version is 5.6.1-2, with gnu license.
 But perl is probably not the problem, since it's tee that's
 dumping.

 Thanks in advance.

 Fred

man addr2line.  cd /bin  cygcheck tee.exe.  This should get you
started.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: sshd, ftpd telnetd starts, but says incorrect passwd

2003-02-20 Thread Harig, Mark A.
1. Confirm that you have '/usr/bin/ssh-user-config'.
   If you do not have it, run 'setup.exe' and download
   the openssh package.

2. Run '/usr/bin/ssh-user-config --help' at your shell
   prompt.  Also, read the manual page for ssh-keygen:

  $ man ssh-keygen

3. Run /usr/bin/ssh-user-config.  This will create
   public/private-key encryption files that you need
   before you can use ssh.

 -Original Message-
 From: Malghan, Ravi [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 20, 2003 9:22 AM
 To: 'Nandini'; [EMAIL PROTECTED]
 Subject: RE: sshd, ftpd telnetd starts, but says incorrect passwd
 
 
 Please let me know if anybody responds to you. I think it's 
 something very
 simple and I have been searching all over the mailing lists 
 and have only
 seen questions but no answers for this problem.
 
 Thanks
 Ravi
 
 -Original Message-
 From: Nandini [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 19, 2003 8:09 PM
 To: [EMAIL PROTECTED]
 Subject: sshd, ftpd telnetd starts, but says incorrect passwd
 
 
 Hi: I am trying to set these deamons (sshd, ftpd
 telnetd). The deamon starts fine. But when I ssh or
 ftp or telnet I keep getting incorrect password. I
 have created the /etc/passwd and /etc/group using
 mkpasswd -lc, mkgroup -lc and I see the username I am
 using in /etc/passwd. Is there anything else I have to
 do for the authentication to work?
 For ftpd, I donot have the file /etc/nologin, no lines
 in /etc/ftpusers and the shell for all users is bash
 which does exist in /etc/shells file.
 
 Thanks
 Nand
 
 __
 Do you Yahoo!?
 Yahoo! Shopping - Send Flowers for Valentine's Day
 http://shopping.yahoo.com
 
 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Bug reporting: http://cygwin.com/bugs.html
 Documentation: http://cygwin.com/docs.html
 FAQ:   http://cygwin.com/faq/
 
 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Bug reporting: http://cygwin.com/bugs.html
 Documentation: http://cygwin.com/docs.html
 FAQ:   http://cygwin.com/faq/
 
 

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: sshd, ftpd telnetd starts, but says incorrect passwd

2003-02-20 Thread Vince Hoffman
Also check that your mounts are all system mounts. 

 -Original Message-
 From: Harig, Mark A. [mailto:[EMAIL PROTECTED]]
 Sent: 20 February 2003 17:06
 To: Malghan, Ravi; Nandini; [EMAIL PROTECTED]
 Subject: RE: sshd, ftpd telnetd starts, but says incorrect passwd
 
 
 1. Confirm that you have '/usr/bin/ssh-user-config'.
If you do not have it, run 'setup.exe' and download
the openssh package.
 
 2. Run '/usr/bin/ssh-user-config --help' at your shell
prompt.  Also, read the manual page for ssh-keygen:
 
   $ man ssh-keygen
 
 3. Run /usr/bin/ssh-user-config.  This will create
public/private-key encryption files that you need
before you can use ssh.
 
  -Original Message-
  From: Malghan, Ravi [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, February 20, 2003 9:22 AM
  To: 'Nandini'; [EMAIL PROTECTED]
  Subject: RE: sshd, ftpd telnetd starts, but says incorrect passwd
  
  
  Please let me know if anybody responds to you. I think it's 
  something very
  simple and I have been searching all over the mailing lists 
  and have only
  seen questions but no answers for this problem.
  
  Thanks
  Ravi
  
  -Original Message-
  From: Nandini [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, February 19, 2003 8:09 PM
  To: [EMAIL PROTECTED]
  Subject: sshd, ftpd telnetd starts, but says incorrect passwd
  
  
  Hi: I am trying to set these deamons (sshd, ftpd
  telnetd). The deamon starts fine. But when I ssh or
  ftp or telnet I keep getting incorrect password. I
  have created the /etc/passwd and /etc/group using
  mkpasswd -lc, mkgroup -lc and I see the username I am
  using in /etc/passwd. Is there anything else I have to
  do for the authentication to work?
  For ftpd, I donot have the file /etc/nologin, no lines
  in /etc/ftpusers and the shell for all users is bash
  which does exist in /etc/shells file.
  
  Thanks
  Nand
  
  __
  Do you Yahoo!?
  Yahoo! Shopping - Send Flowers for Valentine's Day
  http://shopping.yahoo.com
  
  --
  Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
  Bug reporting: http://cygwin.com/bugs.html
  Documentation: http://cygwin.com/docs.html
  FAQ:   http://cygwin.com/faq/
  
  --
  Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
  Bug reporting: http://cygwin.com/bugs.html
  Documentation: http://cygwin.com/docs.html
  FAQ:   http://cygwin.com/faq/
  
  
 
 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Bug reporting: http://cygwin.com/bugs.html
 Documentation: http://cygwin.com/docs.html
 FAQ:   http://cygwin.com/faq/
 

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: remapping Cygwin 'bash' readline functions to PC keys

2003-02-20 Thread Lee D. Rothstein
John, thanks for the C-V heads up! Others had
suggested, variations of 'cat  foo' and 'od -c'. (The
former I got to work, the latter remains a mystery.)
Your solution, besides being the most straight-forward,
is also a great tool to have around. Apparently, it's a
feature of Cygwin, or 'bash', since it doesn't work in
a naked 'cmd.exe' window. I'll be sure to add it to my
documentation.

Unfortunately the key combos I'm trying to map to
are: ^-- and ^-- (control- and the right and left
arrow keys). It turns out that the character string
outputs for both the:

* naked key
* shift - and the naked key
* control- and the naked key

are all the same.

Actually, I no longer consider these to be KIDs; these
are the character string graphemic outputs of hitting
the key. I'll continue to reserve KIDs for when one
represents these [and the key isomorphisms]
with '/e...', 'C-...', etc. notation.

Apparently (?), the only way to discriminate among these
three alternatives is with Scan Codes. Apparently, all
the -x-ish stuff I've used (Microemacs, Thompson shell
command line editing) that can discriminate among the
three alternatives all use Scan Codes (?).

 - Any way to map to Scan Codes to 'bash' 'readline'
   functions under Cygwin?
   + Or to key names like: 'CTRL-left-arrow',
 'CTRL-HOME'
 - Any interest among Cygwin developers in adding
   this?

At 2003-02-19 08:02 AM -0800, John Mapole wrote:
...
You can build your own KID table. Once at the cygwin
prompt you can type C-V, that's control-V, followed
by the key.  On my machine, if I type C-VINSERT, I
see ^[[2~.  This is the same as \e[2~.

Why these mapping are like this relates to how windows
maps them and then how cygwin maps them.  Something I
am now very clear on.

Hope this helps some.

John Mapoles

--- Lee D. Rothstein [EMAIL PROTECTED] wrote:
...
 Q1 -- When you remap a 'bash' Edit Mode function in
 .inputrc, it looks like this:

 \e[3~:  delete-char # DEL key

 The entity in double quotes (\e[3~), I'm calling
 the key ID (KID). In the above '.inputrc' declaration,
 the function 'delete-char' being remapped from its
 default key assignment to the KID -- \e[3~ -- the
 DEL key.

 What are the KIDs of the following IBM PC keys
 (specified below with facsimiles of the key caps
 contained in angle brackets -- '...')?

 Cursor control key pad
 --
 HOME
 END
 left-arrow
 right-arrow
 PAGE_UP
 PAGE_DOWN
 INSERT

 Numeric pad
 ---
 -
 +
 ENTER
 /

I should have included in the above lists, all variations
of the above with the control, alt and shift keys.

 In general, I'd like a table that maps the KIDs for all
 104 keys on the keyboard I use. Or, better still, is
 there a way to use scan codes?

 (Incidentally, what makes finding a table of these
 KIDs so difficult is the failure of the documentation
 to assign this concept a unique, or even a consistent
 word.)

 Q2
 --

 Is there a way to make the INSERT key a toggle
 between the insert and overwrite modes of 'bash'
 edit mode?

 I used to have these figured out for 'Microemacs',
 but that was half a lifetime ago, for me,  Microemacs
 supported scan codes, if I remember correctly.

--
Lee D. Rothstein -- [EMAIL PROTECTED]
VeriTech -- 603-424-2900
7 Merry Meeting Drive
Merrimack, NH 03054-2934  



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: GPL Violation

2003-02-20 Thread Igor Pechtchanski
On Thu, 20 Feb 2003, Frédéric L. W. Meunier wrote:

 I bet I'm too. Well, sue me ? Can I provide a link ? Or what
 about the Cygwin people making the latest released cygwin1.dll
 available like the snapshots ? Then I'd just link to it.

 I make cygwin1.dll.bz2 available so that people can run the
 static binaries.

 I'm not allowed to transfer more than 100Mb a month.
 cygwin-1.3.18-1-src.tar.bz2 is 4631969 bytes. While I don't
 think many people would download the sources...

 http://www.pervalidus.net/cygwin/

I don't think anyone downloads the sources... :-)

This has been hashed and re-hashed on the list a couple of months ago.
You could recommend people download cygwin1.dll from cygwin mirrors, but
then you'd have to make sure your binaries work with the latest release.
You could also post the sources but put a note that people not download
them unless absolutely necessary, due to bandwidth requirements.  Most
people should honor that.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




GDB Insight not running

2003-02-20 Thread Kim, Seungchan (NIH/NHGRI)
hi all,

well, i may be having a simple stupid problem.  anyway, i have been using
GDB(Insight) with cygwin for a while, well, before a week ago.  i have the
latest version of all cygwin packages right now (i just reinstalled
everything last night) but GDB only runs in command-line mode even with '-w'
option.  any idea?

Seungchan,




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




info is not loading...

2003-02-20 Thread Eduardo Osorio Armenta

I have some troubles with 
info

a lot of packages show their information
but not the all
that i have under
/usr/info

for example binutils.info

how can i fixed that?

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: GPL Violation

2003-02-20 Thread Corinna Vinschen
On Thu, Feb 20, 2003 at 02:02:24PM -0300, Frédéric L. W. Meunier wrote:
 I bet I'm too. Well, sue me ? Can I provide a link ? Or what
 about the Cygwin people making the latest released cygwin1.dll
 available like the snapshots ? Then I'd just link to it.
 
 I make cygwin1.dll.bz2 available so that people can run the
 static binaries.

If you provide the Cygwin DLL in binary form, you must provide
the sources of that version as well.

 I'm not allowed to transfer more than 100Mb a month.
 cygwin-1.3.18-1-src.tar.bz2 is 4631969 bytes. While I don't
 think many people would download the sources...

Sure but why not simply point to the Cygwin home page anyway and not
providing your own Cygwin DLL binary?  No binary, no licensing problems.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: sshd, ftpd telnetd starts, but says incorrect passwd

2003-02-20 Thread Thorsten Kampe
* Malghan, Ravi (03-02-20 15:21 +0100)
 Please let me know if anybody responds to you. I think it's something very
 simple and I have been searching all over the mailing lists and have only
 seen questions but no answers for this problem.

Try changing the shell to /bin/sh.

Thorsten
-- 
 Content-Type: text/explicit; charset=ISO-8859-666 (Parental Advisory)
 Content-Transfer-Warning: message contains innuendos not suited for
 children under the age of 18


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Question re. export environment variable

2003-02-20 Thread Shing-Fat Fred Ma
Igor Pechtchanski wrote:

 On Thu, 20 Feb 2003, Fred Ma wrote:

  Hello,
 
  I'm using cygwin bash 2.05b-8 (it's actually gnu).
  I thought that $HOSTNAME was an environment
  variable.  When I run gnu make (I'm pretty
  sure this is not a make problem), $(HOSTNAME)
  is empty.  It gets fixed if I do export HOSTNAME
  before running make.
 
  Is there a way to check if the export command
  has been applied to $HOSTNAME?  Does the
  actual transcription of $HOSTNAME's value to
  the environment happen only once, when
  export is applied, or is there a continual
  monitoring an mirroring of changes to $HOSTNAME
  forever after applying export?
 
  Fred

 Fred,

 I'm afraid you might be confused about what exporting a variable means.
 Bash maintains an environment, which contains the values of all the
 variables it's using.  When bash spawns a child, that child inherits those
 variables from the parent's environment that are exported.  Thus, if you
 export HOSTNAME, the child will get the current value of HOSTNAME.  If you
 then change HOSTNAME in the parent, the child *will not* see the change.
 However, if you spawn another child, that new child *will* see the new
 value.

 BTW, export with no variable name will print out the list of all
 variables that are exported from the current shell.  And, if you want to
 make sure it's exported, export HOSTNAME can do no harm.  But both this
 and the above are off-topic for the Cygwin list, and could have been found
 by a simple perusal of man bash.
 Igor
 --
http://cs.nyu.edu/~pechtcha/
   |\  _,,,---,,_[EMAIL PROTECTED]
 ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
  |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski
 '---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

 Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
   -- /usr/games/fortune

Igor,

Thanks for the information.  The man bash confirms what
you said, and what I thought I knew before encountering
the problem.  What made me uncertain was that things don't
always behave the same in the cygwin environment as they
do in, say, solaris, and I'm never sure what behaviour might
be due to customizations.  Another thing that made me unsure
was that it seems strange for $HOSTNAME not to be marked
export by default, I didn't think that would happen intentionally.
Though it appears now that it is that way.

I did miss the bit in the man pages about showing all the
export variables.  My apologies, I should have spent more
time reading it more carefully.

Fred

--
Fred Ma, [EMAIL PROTECTED]
Carleton University, Dept. of Electronics
1125 Colonel By Drive, Ottawa, Ontario
Canada, K1S 5B6




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: sshd, ftpd telnetd starts, but says incorrect passwd

2003-02-20 Thread Don Sharp
Are you running the inetd daemon to start ftpd and telnetd? If you
aren't make sure you look at /usr/doc/Cygwin/inetutils-1.3.2.README. I
run ftpd and telnetd all the time via inetd.

Ensure your /etc/passwd and /etc/group are up to date.

HTH

Don Sharp

Malghan, Ravi wrote:
 
 Please let me know if anybody responds to you. I think it's something very
 simple and I have been searching all over the mailing lists and have only
 seen questions but no answers for this problem.
 
 Thanks
 Ravi
 
 -Original Message-
 From: Nandini [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 19, 2003 8:09 PM
 To: [EMAIL PROTECTED]
 Subject: sshd, ftpd telnetd starts, but says incorrect passwd
 
 Hi: I am trying to set these deamons (sshd, ftpd
 telnetd). The deamon starts fine. But when I ssh or
 ftp or telnet I keep getting incorrect password. I
 have created the /etc/passwd and /etc/group using
 mkpasswd -lc, mkgroup -lc and I see the username I am
 using in /etc/passwd. Is there anything else I have to
 do for the authentication to work?
 For ftpd, I donot have the file /etc/nologin, no lines
 in /etc/ftpusers and the shell for all users is bash
 which does exist in /etc/shells file.
 
 Thanks
 Nand
 
 __
 Do you Yahoo!?
 Yahoo! Shopping - Send Flowers for Valentine's Day
 http://shopping.yahoo.com
 
 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Bug reporting: http://cygwin.com/bugs.html
 Documentation: http://cygwin.com/docs.html
 FAQ:   http://cygwin.com/faq/
 
 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Bug reporting: http://cygwin.com/bugs.html
 Documentation: http://cygwin.com/docs.html
 FAQ:   http://cygwin.com/faq/

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




  1   2   >