winsup/cygwin ChangeLog exceptions.cc include/ ...

2005-10-31 Thread cgf
CVSROOT:/cvs/uberbaum
Module name:winsup
Changes by: [EMAIL PROTECTED]   2005-11-01 05:55:31

Modified files:
cygwin : ChangeLog exceptions.cc 
cygwin/include/sys: cygwin.h 

Log message:
* include/sys/cygwin.h: Define CYGWIN_SIGNAL_STRING.
* exceptins.cc (sigpacket::process): Send a _CYGWIN_SIGNAL_STRING to 
gdb if the
process is being debugged.  A WIP.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/ChangeLog.diff?cvsroot=uberbaumr1=1.3180r2=1.3181
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/exceptions.cc.diff?cvsroot=uberbaumr1=1.260r2=1.261
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/include/sys/cygwin.h.diff?cvsroot=uberbaumr1=1.60r2=1.61



Cygwin setup of sshd for non-administrators documentation?

2005-10-31 Thread Theo Kanter
The following message contains my findings regarding a working setup of
Cygwin of sshd for non-administrators -- a topic I would like to see
addressed in the official documentation, since no other source was found
(at least via Google) with conclusive information on the subject:

INTRODUCTION

Two often cited pages with guides for setting up sshd on Win32:

  http://pigtail.net/LRP/printsrv/cygwin-sshd.html
  http://ncyoung.com/entry/389

mention it to be necessary to make every user who wishes to gain access
via ssh/sftp a member of the Administrators group (!).

I did not find this subject covered in the Cygwin documentation, but it
seems urgent that this *is* covered by the documentation. Making all
users who access a W2K or WXP system member of the Administrators group
poses a security risk.

ANALYSIS

Users gain access to the Cygwin system via ssh/sftp as themselves with
the rights that were assigned to them in Win32 and in NTFS. Therefore
any problems that may occur are a result of either insufficient
permissions to access a file or folder or a result of not being the
owner of a folder that belongs to them.

After reinstalling cygwin several times and trial  error with changing
file and folder permissions and ownership I indeed found it that users
who are not member of the Administrators group can gain access via
ssh/sftp. However, this requires tweaking of the permissions and
ownership from a cygwin shell:

SOLUTION

1) user X must have a /home/X folder which they are owner of and with
rwx permissions for themselves.

  $ ls -l /home
  total 0
  drwx--+ 3 Administrator None 0 Oct 30 18:35 Administrator
  drwx--+ 2 X None 0 Oct 30 18:40 X

2) users must have access to the passwd, group, profile and profile.d
file and folders in /etc. In fact I ended up giving full access rights
to users to all files and folders in /etc except the ssh* key and config
files

  $ ls -l etc
  total 204
  ...
  -rwxrwxr-x+ 1 Administrator Users 14 Oct 28 18:41 ftpusers
  -rwxrwxr-x+ 1 Administrator Users 49 Oct 28 18:41 ftpwelcome
  ...
  -rwxrwx---+ 1 Administrator Users   1692 Oct 29 18:39 group
  -rwxrwx---+ 1 Administrator Users   1385 Oct 29 18:38 passwd
  ...
  -rwxrwx---+ 1 Administrator Users   6530 Oct 28 18:41 profile
  drwxrwx---+ 2 Administrator Users  0 Oct 28 18:39 profile.d
  ...

3) Users need full access rights to execute the .exe files in /bin,
/usr/bin and /usr/sbin (it seems to me now that chmod 770 would have
been sufficient):

  $ ls -l /usr/sbin/
  total 897
  ...
  -rwxrwxrwx+ 1 Administrator Users  46592 Apr 19  2005 in.ftpd.exe
  ...
  -rwxrwxrwx+ 1 Administrator Users  29184 Jul  5 23:30 sftp-server.exe
  -rwxrwxrwx+ 1 Administrator Users 130048 Jul  5 23:30 ssh-keysign.exe
  -rwxrwxrwx+ 1 Administrator Users 267776 Jul  5 23:30 sshd.exe


POST SCRIPTUM

Please review the information under 1-3 and if this is useful I would
welcome the maintainers of cygwin to include something along these lines
in the documentation. Hopefully this saves some time for others who
apparently were looking for the same.

with best regards
Theo

-- 
Ericsson Research, Service Layer Technologies
KI/EAB/TGB,SE-164 80 Kista, Sweden


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



Re: problem with displaying graphical chars in mc under rxvt (CYGWIN=codepage:oem didnt fix it)

2005-10-31 Thread Pavel Tsekov
On Sat, 29 Oct 2005, Andy Kosela wrote:

 I got a problem with displaying graphical characters in mc 4.6.1-2
 under rxvt 2.7.10-6. The lines are screwed up. I tried setting
 CYGWIN=codepage:oem but the problem persists. When I launch bash under
 cmd.com everything is ok with mc. It only happens in rxvt. I'm using
 courier fonts set in ~/.Xdefaults

 Any help would be greatly appreciated.

Quoting an excerpt from /usr/share/doc/Cygwin/mc-4.6.1.README:

[...]
o Why don't line drawing characters work ?

  That depends, on how do you run Midnight Commander.

  If you start MC from a console window, you need to add the
'codepage:oem'
  option to the CYGWIN environment variable. There are many ways to do
this,
  some are operating system specific others are shell specific. For
example
  from a Bourne like shell you can type:

export CYGWIN=$CYGWIN codepage:oem

  If you run MC in a native rxvt window (as opposed to rxvt running
  under X), you need:

1) A font, which supports line drawing characters.

2) A terminfo entry, which contains correct information about which
   characters are used to do the line drawing with that font.

  Once you have the font and the terminfo entry installed, you have to
  set the TERM environment variable to the name of the terminfo entry
  and then start rxvt, instructing it to use the font with line drawing
  characters:

export TERM=terminfo-entry-name
rxvt -fn font-name [other-rxvt-options]

  You can get a font with line drawing characters here:
  http://www.neuro.gatech.edu/users/cwilson/cygutils/bashprompt/luconP.zip

  This font must be used together with the 'rxvt-cygwin-native' terminfo
  entry. This terminfo entry is provided by the Cygwin terminfo database.

export TERM=cygwin-rxvt-native
rxvt -fn Lucida ConsoleP-14 ...
[...]


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



Re: problem with displaying graphical chars in mc under rxvt (CYGWIN=codepage:oem didnt fix it)

2005-10-31 Thread Brian Dessent
Pavel Tsekov wrote:

   You can get a font with line drawing characters here:
   http://www.neuro.gatech.edu/users/cwilson/cygutils/bashprompt/luconP.zip

This is a 404, I think Charles shut down his site in 2004.  For the sake
of the archives, you can get this at
http://dessent.net/tmp/luconP.zip.

   This font must be used together with the 'rxvt-cygwin-native' terminfo
   entry. This terminfo entry is provided by the Cygwin terminfo database.

I don't know what the difference between rxvt-cygwin and
rxvt-cygwin-native is, but they both seem to work for me.

Brian

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



Re: Cygwin setup of sshd for non-administrators documentation?

2005-10-31 Thread Brian Dessent
Theo Kanter wrote:

 Two often cited pages with guides for setting up sshd on Win32:
 
   http://pigtail.net/LRP/printsrv/cygwin-sshd.html
   http://ncyoung.com/entry/389

These sites are wrong if they suggest that users must be
administrators.  In general we frown on sites like the above on this
list because they constantly give bad advice.  Don't follow any of that
rubbish, and if you do, go pester the authors of those sites for help --
don't ask here.

The only documentation that you need to setup sshd is run
ssh-host-config.  If you need details then read
/usr/share/doc/Cygwin/*openssh*.  If you do this then there is no such
need for the user that is connecting to be an administrator.

Brian

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



Re: problem with displaying graphical chars in mc under rxvt (CYGWIN=codepage:oem didnt fix it)

2005-10-31 Thread Pavel Tsekov
On Mon, 31 Oct 2005, Brian Dessent wrote:

 Pavel Tsekov wrote:

You can get a font with line drawing characters here:
http://www.neuro.gatech.edu/users/cwilson/cygutils/bashprompt/luconP.zip

 This is a 404, I think Charles shut down his site in 2004.  For the sake
 of the archives, you can get this at
 http://dessent.net/tmp/luconP.zip.

Thanks for the headsup. I'll fix this in the next release.

This font must be used together with the 'rxvt-cygwin-native' terminfo
entry. This terminfo entry is provided by the Cygwin terminfo database.

 I don't know what the difference between rxvt-cygwin and
 rxvt-cygwin-native is, but they both seem to work for me.

There is a small difference in the description of the acsc capability. You
can diff them by yourself using the output of infocmp. And after all
rxvt-cygwin-native is supposed to be used when rxvt is using W11 instead
of X11.

Anyway the point of my last email was that the information is available in
the MC readme file.

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



Re: PostgreSQL : Bad system calls

2005-10-31 Thread Larry Hall (Cygwin)

Alex Goldman wrote:

On 10/30/05, Larry Hall (Cygwin) [EMAIL PROTECTED] wrote:


Alex Goldman wrote:


Hi

I get Bad system call errors, when I try to run 'initdb'. I searched
the net for cygwin + postgresql + bad system call, and saw that
others are complaining about this problem too, but I found no
explanations or solutions. I tried both 7.4.3-1 and 7.4.5-1 versions
of postgresql. Any idea what's going on? Here's a sample of the
output:



snip

Please read and follow the problem reporting guidelines found at:



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


Given your description though, I'm wondering if you read
'/usr/share/doc/Cygwin/postgresql-7.4.3.README'.  If not, check it out.
I believe you'll find appropriate information to resolve this problem.
If not, then I point you back to my previous advice.



According to the README, I wasn't running cygserver (and
cygserver-config). I tried doing that, but get bad system call
errors anyway.



OK, so you still have something mis-configured then on your end.  Given
the information you've provided so far, that's all the feedback I can
give you.



If your previous advice is about sending cygcheck.out to the list,
I'm going to have to say no. Otherwise, I don't understand your
complaint.



As I mentioned above, without the details of your problem, neither I nor
anyone else on this list can help you figure out what your problem is.
The output of 'cygcheck' is part of the requested information that I
pointed you to.  Specifics about what you did and how you did them is
even more important.  FWIW, I wasn't complaining about anything.  I
was simply pointing out that you hadn't provided much in the way of
information to form the basis of useful feedback to you.  Pointing you
at the Postgresql readme was my best guess at the probable source of
your problem.



Anyway, I found out that PostgreSQL seems to support Win32 directly,
so I'll try that.



That's certainly another option.


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

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



Re: PostgreSQL : Bad system calls

2005-10-31 Thread Alexander Gottwald
On Mon, 2005-10-31 at 10:32 -0500, Larry Hall (Cygwin) wrote:

  According to the README, I wasn't running cygserver (and
  cygserver-config). I tried doing that, but get bad system call
  errors anyway.

You must have set server in the CYGWIN environment variable too.
CYGWIN=server $CYGWIN postmaster

  Anyway, I found out that PostgreSQL seems to support Win32 directly,
  so I'll try that.

 That's certainly another option.

It works like a charm for me.

bye
ago


signature.asc
Description: This is a digitally signed message part


Ugly prompt with ksh

2005-10-31 Thread al1_24
I would like to use ksh as shell but, if most of commands work as
desired, an ugly prompt is displayed before each line, something like
[e]0;[EMAIL PROTECTED] [e[33m]w[e[0m]n$, until I change the PS1 value.
Is there a way to get the [EMAIL PROTECTED] pwd $ prompt inside ksh ?

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



Re: Ugly prompt with ksh

2005-10-31 Thread Wayne Willcox
Sure change PS1 in your .profile or .kshrc file.  Export it to be
whatever you want it to be.  Not a cygwin specific question by the
way. 

On Mon, Oct 31, 2005 at 05:22:48PM +0100, al1_24 wrote:
 I would like to use ksh as shell but, if most of commands work as
 desired, an ugly prompt is displayed before each line, something like
 [e]0;[EMAIL PROTECTED] [e[33m]w[e[0m]n$, until I change the PS1 value.
 Is there a way to get the [EMAIL PROTECTED] pwd $ prompt inside ksh ?
 
 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Problem reports:   http://cygwin.com/problems.html
 Documentation: http://cygwin.com/docs.html
 FAQ:   http://cygwin.com/faq/

-- 
Slowly and surely the unix crept up on the Nintendo user ...
Wayne Willcox  I will not eat green eggs and ham
[EMAIL PROTECTED] I will not eat them Sam I Am!!
A wise person makes his own decisions, a weak one obeys public opinion.
-- Chinese proverb

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



Re: Ugly prompt with ksh

2005-10-31 Thread Igor Pechtchanski
On Mon, 31 Oct 2005, al1_24 wrote:

 I would like to use ksh as shell but, if most of commands work as
 desired, an ugly prompt is displayed before each line, something like
 [e]0;[EMAIL PROTECTED] [e[33m]w[e[0m]n$, until I change the PS1 value.
 Is there a way to get the [EMAIL PROTECTED] pwd $ prompt inside ksh ?

The default /etc/profile should already have a ksh-specific case for
setting the prompt correctly.  Make sure you have an up-to-date
/etc/profile (if you haven't customized it, simply copy
/etc/defaults/etc/profile in its place).

Without further details I can only guess, but it looks like you're
starting ksh from bash (i.e., not as a login shell).  This would make ksh
inherit the (incompatible) PS1 from bash.  Either start the shell with the
-l option, or set PS1 appropriately before/after invoking the shell...

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

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

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



Newbie: How to change $HOME path?

2005-10-31 Thread Thomas Hartmann
Hi,

I suppose I ask a quite obvious newbie-question, but: 
How can I change the $HOME path?
At the moment it points onto my desktop and I want to change to another 
directory since .* files are not hidden (because I tinker with my system so 
it 
displays all files...).

Cheers  Thanks,
  Thomas


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



Wanted: Help translating classpath from CMD.EXE to bash

2005-10-31 Thread Siegfried Heintze
Can someone help me translate this to bash? It works with CMD.EXE. java and
javac are programs for sun that are not cygwin based so I believe they want
windows style file specifications and not cygwin/bash/unix style file
specifications.

Here is the CMD.EXE script:

SET
CLASSPATH=.;c:\dev\xalan\xalan-j_2_7_0\samples\xsltcservlet.jar;c:\dev\xalan
\xalan-j_2_7_0\samples\xsltcejb.jar;c:\dev\xalan\xalan-j_2_7_0\samples\xsltc
brazil.jar;c:\dev\xalan\xalan-j_2_7_0\samples\xsltcapplet.jar;c:\dev\xalan\x
alan-j_2_7_0\samples\xalansamples.jar;c:\dev\xalan\xalan-j_2_7_0\serializer.
jar;c:\dev\xalan\xalan-j_2_7_0\xalan.jar;c:\dev\xalan\xalan-j_2_7_0\xercesIm
pl.jar;c:\dev\xalan\xalan-j_2_7_0\xml-apis.jar;c:\dev\xalan\xalan-j_2_7_0\xs
ltc.jar
javac -g ApplyXPathDOM.java
java ApplyXPathDOM foo.xml /doc/name[1]/@last

Woops -- I did not intend it to wrap!

Thanks,
Siegfried


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



Re: Wanted: Help translating classpath from CMD.EXE to bash

2005-10-31 Thread Wayne Willcox
If I understand your question you can convert paths to and from
dos by using the cygpath command.

On Mon, Oct 31, 2005 at 10:29:56AM -0700, Siegfried Heintze wrote:
 Can someone help me translate this to bash? It works with CMD.EXE. java and
 javac are programs for sun that are not cygwin based so I believe they want
 windows style file specifications and not cygwin/bash/unix style file
 specifications.
 
 Here is the CMD.EXE script:
 
 SET
 CLASSPATH=.;c:\dev\xalan\xalan-j_2_7_0\samples\xsltcservlet.jar;c:\dev\xalan
 \xalan-j_2_7_0\samples\xsltcejb.jar;c:\dev\xalan\xalan-j_2_7_0\samples\xsltc
 brazil.jar;c:\dev\xalan\xalan-j_2_7_0\samples\xsltcapplet.jar;c:\dev\xalan\x
 alan-j_2_7_0\samples\xalansamples.jar;c:\dev\xalan\xalan-j_2_7_0\serializer.
 jar;c:\dev\xalan\xalan-j_2_7_0\xalan.jar;c:\dev\xalan\xalan-j_2_7_0\xercesIm
 pl.jar;c:\dev\xalan\xalan-j_2_7_0\xml-apis.jar;c:\dev\xalan\xalan-j_2_7_0\xs
 ltc.jar
 javac -g ApplyXPathDOM.java
 java ApplyXPathDOM foo.xml /doc/name[1]/@last
 
 Woops -- I did not intend it to wrap!
 
 Thanks,
 Siegfried
 
 
 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Problem reports:   http://cygwin.com/problems.html
 Documentation: http://cygwin.com/docs.html
 FAQ:   http://cygwin.com/faq/

-- 
Slowly and surely the unix crept up on the Nintendo user ...
Wayne Willcox  I will not eat green eggs and ham
[EMAIL PROTECTED] I will not eat them Sam I Am!!
A wise person makes his own decisions, a weak one obeys public opinion.
-- Chinese proverb

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



RE: [ANNOUNCEMENT] Updated: openssl-0.9.8a-1 - core dump

2005-10-31 Thread Ralf Hauser
Hi Corinna,

As per your message cited below, I am trying to use the new openssl version
as follows and it core dumps:
 openssl smime -decrypt -inkey  decryptionKey.pem -in
mimeMessageEncrypted.eml
Enter pass phrase for decryptionKey.pem:
Segmentation fault (core dumped)
What did I do wrong?
Are you by any chance using the 0.9.8a 'smime' utility with the older 
'0.9.8' OpenSSL shared library? If so the you'd get that result 
because the required functionality isn't in 0.9.8, only 0.9.8a.
[EMAIL PROTECTED] ... you said:
 
 Cygwin: OpenSSL 0.9.8a 11 Oct 2005 (Library: OpenSSL 0.9.8 05 Jul 2005)
 
 You get that when the shared library (DLL) isn't the same as the openssl
 utility version. This is the cause of the problems.
 
 You need to find where the DLL is that the openssl utility is using and
 replace it with the 0.9.8a version. It might be called something like
 cryptoeay32-0.9.8.dll
I only find
libcrypt.a*
libcrypt.dll.a*
where do you put the openssl libraries?
 
 You can tell the difference by doing:
 
 nm whatever.dll | grep X509_VERIFY_PARAM_set_flags
 nm whatever.dll | grep X509_VERIFY_PARAM_get_flags
 
 If you don't get any output for X509_VERIFY_PARAM_get_flags its the
 0.9.8 library. If you get output for both its 0.9.8a or later. If you
 don't get output for either its probably 0.9.7X.
In the above 2 .a files, I don't find either...

Many thanks for any hints in advance!

   Ralf
 -Original Message-
 From: Corinna Vinschen [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 11, 2005 3:33 PM
 To: cygwin@cygwin.com
 Subject: [ANNOUNCEMENT] Updated: openssl-0.9.8a-1, openssl-devel-0.9.8a-1,
 openssl097-0.9.7h-1
 
 I've updated the version of OpenSSL to 0.9.8a-1.  This also includes the
 openssl-devel package.  The compatibility package openssl097 has been
 updated to 0.9.7h-1.
 
 This is a upstream ecurity and bugfix release.  The Cygwin release is the
 vanilla version, no additional patches.
 
 Official release message:
 ===
 
OpenSSL version 0.9.8a and 0.9.7h released
==
 
OpenSSL - The Open Source toolkit for SSL/TLS
http://www.openssl.org/
 
The OpenSSL project team is pleased to announce the release of
version 0.9.8a of our open source toolkit for SSL/TLS. This new
OpenSSL version is a security and bugfix release and incorporates
changes and bugfixes to the toolkit.  For a complete list of
changes, please see http://www.openssl.org/source/exp/CHANGES.
 
We also release 0.9.7h, which contains the same security bugfix as
0.9.8a and a few small bugfixes compared to 0.9.7g.
...


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



RE: [ANNOUNCEMENT] Updated: openssl-0.9.8a-1 - core dump

2005-10-31 Thread Ralf Hauser
Hi Corinna,

As per your message cited below, I am trying to use the new openssl version
as follows and it core dumps:
 openssl smime -decrypt -inkey  decryptionKey.pem -in
mimeMessageEncrypted.eml
Enter pass phrase for decryptionKey.pem:
Segmentation fault (core dumped)
What did I do wrong?
Are you by any chance using the 0.9.8a 'smime' utility with the older 
'0.9.8' OpenSSL shared library? If so the you'd get that result 
because the required functionality isn't in 0.9.8, only 0.9.8a.
[EMAIL PROTECTED] ... you said:
 
 Cygwin: OpenSSL 0.9.8a 11 Oct 2005 (Library: OpenSSL 0.9.8 05 Jul 2005)
 
 You get that when the shared library (DLL) isn't the same as the openssl
 utility version. This is the cause of the problems.
 
 You need to find where the DLL is that the openssl utility is using and
 replace it with the 0.9.8a version. It might be called something like
 cryptoeay32-0.9.8.dll
I only find
libcrypt.a*
libcrypt.dll.a*
where do you put the openssl libraries?
 
 You can tell the difference by doing:
 
 nm whatever.dll | grep X509_VERIFY_PARAM_set_flags
 nm whatever.dll | grep X509_VERIFY_PARAM_get_flags
 
 If you don't get any output for X509_VERIFY_PARAM_get_flags its the
 0.9.8 library. If you get output for both its 0.9.8a or later. If you
 don't get output for either its probably 0.9.7X.
In the above 2 .a files, I don't find either...

Many thanks for any hints in advance!

   Ralf
 -Original Message-
 From: Corinna Vinschen [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 11, 2005 3:33 PM
 To: cygwin@cygwin.com
 Subject: [ANNOUNCEMENT] Updated: openssl-0.9.8a-1, openssl-devel-0.9.8a-1,
 openssl097-0.9.7h-1
 
 I've updated the version of OpenSSL to 0.9.8a-1.  This also includes the
 openssl-devel package.  The compatibility package openssl097 has been
 updated to 0.9.7h-1.
 
 This is a upstream ecurity and bugfix release.  The Cygwin release is the
 vanilla version, no additional patches.
 
 Official release message:
 ===
 
OpenSSL version 0.9.8a and 0.9.7h released
==
 
OpenSSL - The Open Source toolkit for SSL/TLS
http://www.openssl.org/
 
The OpenSSL project team is pleased to announce the release of
version 0.9.8a of our open source toolkit for SSL/TLS. This new
OpenSSL version is a security and bugfix release and incorporates
changes and bugfixes to the toolkit.  For a complete list of
changes, please see http://www.openssl.org/source/exp/CHANGES.
 
We also release 0.9.7h, which contains the same security bugfix as
0.9.8a and a few small bugfixes compared to 0.9.7g.
...


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



sub

2005-10-31 Thread frank



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



Re: Wanted: Help translating classpath from CMD.EXE to bash

2005-10-31 Thread Igor Pechtchanski
On Mon, 31 Oct 2005, Siegfried Heintze wrote:

 Can someone help me translate this to bash? It works with CMD.EXE. java
 and javac are programs for sun that are not cygwin based so I believe
 they want windows style file specifications and not cygwin/bash/unix
 style file specifications.

 Here is the CMD.EXE script:

 SET 
 CLASSPATH=.;c:\dev\xalan\xalan-j_2_7_0\samples\xsltcservlet.jar;c:\dev\xalan\xalan-j_2_7_0\samples\xsltcejb.jar;c:\dev\xalan\xalan-j_2_7_0\samples\xsltcbrazil.jar;c:\dev\xalan\xalan-j_2_7_0\samples\xsltcapplet.jar;c:\dev\xalan\xalan-j_2_7_0\samples\xalansamples.jar;c:\dev\xalan\xalan-j_2_7_0\serializer.jar;c:\dev\xalan\xalan-j_2_7_0\xalan.jar;c:\dev\xalan\xalan-j_2_7_0\xercesImpl.jar;c:\dev\xalan\xalan-j_2_7_0\xml-apis.jar;c:\dev\xalan\xalan-j_2_7_0\xsltc.jar
 javac -g ApplyXPathDOM.java
 java ApplyXPathDOM foo.xml /doc/name[1]/@last

As someone mentioned, you can use cygpath -p to convert a POSIX-style
path into a Win32-style one.

Alternatively, you can try using my java wrapper scripts that will do the
translation automatically for you (the scripts can be found at
http://cygwin.com/cgi-bin/cvsweb.cgi/wrappers/java/?cvsroot=cygwin-apps;
you'll need to edit the scripts to point them to your Java installation
directory).

SHAMELESS_PLUG
Or, since you're doing XML processing in Java, you might find XJ
(http://www.research.ibm.com/xj/) useful.  There's a prototype on IBM
alphaWorks (a free download), and it works under Cygwin.
/SHAMELESS_PLUG

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

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

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



cscope compilation error in cygwin

2005-10-31 Thread frank

hi,
I try to use cscope  in cygwin. My pc is win2000. the cygwin version is

$ cygcheck -V
cygcheck version 1.64
System Checker for Cygwin
Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
Compiled on Mar  1 2005

try to use cscope-15.5.

Could anybody help me out? thanks in advance!

**
below is the error,
**

$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking for a BSD-compatible install... /usr/bin/install -c
checking for gcc... gcc
checking for C compiler default output... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
configure: checking location of ncurses.h file...
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking for regcomp in -lregex... no
checking for gnome-config... no
checking for pkg-config... no
./configure: line 4370: pkg-config: command not found
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/window.h usability... no
checking sys/window.h presence... no
checking for sys/window.h... no
checking sys/termios.h usability... yes
checking sys/termios.h presence... yes
checking for sys/termios.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking return type of signal handlers... void
checking for strchr... yes
checking for memcpy... yes
checking for memset... yes
checking for setmode... yes
checking for _setmode... yes
checking for getcwd... yes
checking for regcmp... no
checking for regcomp... yes
checking for strerror... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking for lstat... yes
checking for fixkeypad... no
checking whether lstat dereferences a symlink specified with a trailing 
slash... yes

checking whether lstat accepts an empty string... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating src/Makefile
config.status: creating contrib/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands


$ make
make  all-recursive
make[1]: Entering directory `/usr/cscope-15.5'
Making all in doc
make[2]: Entering directory `/usr/cscope-15.5/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/cscope-15.5/doc'
Making all in src
make[2]: Entering directory `/usr/cscope-15.5/src'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT build.o -MD -MP -MF 
.deps/build.Tpo \

-c -o build.o `test -f 'build.c' || echo './'`build.c; \
then mv .deps/build.Tpo .deps/build.Po; \
else rm -f .deps/build.Tpo; exit 1; \
fi
build.c:51:20: curses.h: No such file or directory
make[2]: *** [build.o] Error 1
make[2]: Leaving directory `/usr/cscope-15.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/cscope-15.5'
make: *** [all] Error 2

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



RE: cscope compilation error in cygwin

2005-10-31 Thread Reid Thompson
Original Message
From: frank [mailto:[EMAIL PROTECTED]
Sent: Monday, October 31, 2005 1:59 PM
To: cygwin@cygwin.com
Subject: cscope compilation error in cygwin

 hi,
 I try to use cscope  in cygwin. My pc is win2000. the
 cygwin version is 
 
 $ cygcheck -V
 cygcheck version 1.64
 System Checker for Cygwin
 Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004 Red
 Hat, Inc. Compiled on Mar  1 2005 
 
 try to use cscope-15.5.
 
 Could anybody help me out? thanks in advance!
 
 **
 below is the error,
 **
 
 $ ./configure
 checking for a BSD-compatible install... /usr/bin/install
 -c checking whether build environment is sane... yes
 checking 
 for gawk... gawk checking whether make sets $(MAKE)... yes
 checking build system type... i686-pc-cygwin checking host
 system type... i686-pc-cygwin checking for a
 BSD-compatible install... /usr/bin/install -c checking
 for gcc... gcc checking for C compiler default output...
 a.exe checking whether the C compiler works... yes
 checking whether we are cross compiling... no checking
 for suffix of executables... .exe checking for suffix of
 object files... o checking 
 whether we are using the GNU C compiler... yes checking
 whether gcc accepts -g... yes checking for gcc option to
 accept ANSI C... none needed checking for style of include
 used by make... GNU checking dependency style of gcc...
 gcc3 checking for flex... flex checking for yywrap in
 -lfl... yes checking lex output file root... lex.yy
 checking whether yytext is a pointer... yes checking for
 bison... bison -y checking how to run the C
 preprocessor... gcc -E checking for egrep... grep -E
 configure: checking location of ncurses.h file... 
 checking for ANSI C header files... yes
 checking for sys/types.h... yes
 checking for sys/stat.h... yes
 checking for stdlib.h... yes
 checking for string.h... yes
 checking for memory.h... yes
 checking for strings.h... yes
 checking for inttypes.h... yes
 checking for stdint.h... yes
 checking for unistd.h... yes
 checking regex.h usability... yes
 checking regex.h presence... yes
 checking for regex.h... yes
 checking for regcomp in -lregex... no
 checking for gnome-config... no
 checking for pkg-config... no
 ./configure: line 4370: pkg-config: command not found
 checking for dirent.h that defines DIR... yes
 checking for library containing opendir... none required
 checking for ANSI C header files... (cached) yes checking
 fcntl.h usability... yes checking fcntl.h presence... yes
 checking for fcntl.h... yes checking sys/window.h
 usability... no checking sys/window.h presence... no
 checking for sys/window.h... no checking sys/termios.h
 usability... 
 yes checking sys/termios.h presence... yes checking for
 sys/termios.h... yes checking for unistd.h... (cached) yes
 checking for an ANSI C-conforming const... yes checking
 for mode_t... yes checking for pid_t... yes checking for
 size_t... yes checking return type of signal handlers...
 void checking for strchr... yes checking for memcpy... yes
 checking for memset... yes checking for setmode... yes
 checking for _setmode... yes checking for getcwd... yes
 checking for regcmp... no checking for regcomp... yes
 checking for strerror... yes checking for vsnprintf... yes
 checking for snprintf... yes checking for lstat... yes
 checking for fixkeypad... no checking whether lstat
 dereferences a symlink specified with a trailing
 slash... yes
 checking whether lstat accepts an empty string... no
 configure: creating ./config.status
 config.status: creating Makefile
 config.status: creating doc/Makefile
 config.status: creating src/Makefile
 config.status: creating contrib/Makefile
 config.status: creating config.h
 config.status: config.h is unchanged
 config.status: executing depfiles commands
 
 
 $ make
 make  all-recursive
 make[1]: Entering directory `/usr/cscope-15.5'
 Making all in doc
 make[2]: Entering directory `/usr/cscope-15.5/doc'
 make[2]: Nothing to be done for `all'.
 make[2]: Leaving directory `/usr/cscope-15.5/doc'
 Making all in src
 make[2]: Entering directory `/usr/cscope-15.5/src'
 if gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT
 build.o -MD -MP -MF .deps/build.Tpo \
  -c -o build.o `test -f 'build.c' || echo './'`build.c; \
 then mv .deps/build.Tpo .deps/build.Po; \
 else rm -f .deps/build.Tpo; exit 1; \
 fi
 build.c:51:20: curses.h: No such file or directory
 make[2]: *** [build.o] Error 1
 make[2]: Leaving directory `/usr/cscope-15.5/src'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory `/usr/cscope-15.5'
 make: *** [all] Error 2
 
 --
 Unsubscribe info: 
 http://cygwin.com/ml/#unsubscribe-simple Problem reports:
 http://cygwin.com/problems.html Documentation:
 http://cygwin.com/docs.html 
 FAQ:   http://cygwin.com/faq/

verify that you have the [n]curses package installed, else
run setup.exe and select [n]curses package for download

reid

--
Unsubscribe info:  

Cygwin Fails

2005-10-31 Thread Samvel Khalatian

Hi,

I am using cygwin very tight since I am working with Linux system a lot.
I downloaded it's release from:
   http://fsources-redhat.mirror.redwire.net/cygwin
one year ago. Installed and was enjoying working in it. Recently I had 
problems
with my Windows System so I reinstalled it. After I downloaded all 
patches from

www.microsoft.com, bug fixes etc.
Also I installed Zone Alarm Internet Security Site v.6.0.667.
After system was set up I started install cygwin. I used my downloaded 
version

as source. Never had problems before. Now either.
But ...
I tried to run `startxwin.bat` and nothing happened except `X` sign in 
my task bar.
I even can not unload it, clicking on icon does not give any response. 
Moreover no

windows are opened :(
I tried to reinstall cygwin, also removed Firewall, but nothing helped. 
Then I started

bash session and typed:
  emacs ./ 
The responce was:
[1]+ Stopped   emacs ./
What's that? Why It does not go through? I even can not start regular 
emacs, without XServer!!!


Could anyone help me please. I am really stuck :(

Thank you.

Sincerely yours, Samvel.

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



Re: Cygwin Fails

2005-10-31 Thread Christopher Faylor
On Mon, Oct 31, 2005 at 01:19:49PM -0600, Samvel Khalatian wrote:
Hi,

I am using cygwin very tight since I am working with Linux system a lot.
I downloaded it's release from:
   http://fsources-redhat.mirror.redwire.net/cygwin
one year ago. Installed and was enjoying working in it. Recently I had 
problems
with my Windows System so I reinstalled it. After I downloaded all 
patches from
www.microsoft.com, bug fixes etc.
Also I installed Zone Alarm Internet Security Site v.6.0.667.
After system was set up I started install cygwin. I used my downloaded 
version
as source. Never had problems before. Now either.
But ...
I tried to run `startxwin.bat` and nothing happened except `X` sign in 
my task bar.
I even can not unload it, clicking on icon does not give any response. 
Moreover no
windows are opened :(
I tried to reinstall cygwin, also removed Firewall, but nothing helped. 
Then I started
bash session and typed:
  emacs ./ 
The responce was:
[1]+ Stopped   emacs ./
What's that? Why It does not go through? I even can not start regular 
emacs, without XServer!!!

Could anyone help me please. I am really stuck :(

Please use the cygwin-xfree mailing lists for x-related questions.

See: http://cygwin.com/lists.html for more details.

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



Re: cscope compilation error in cygwin

2005-10-31 Thread frank

I can't find curse package in cygwin setup. but i did installed ncurses.
Below is returned by cygcheck -c

ncurses  5.4-2  OK

thanks,


Reid Thompson wrote:


Original Message
From: frank [mailto:[EMAIL PROTECTED]
Sent: Monday, October 31, 2005 1:59 PM
To: cygwin@cygwin.com
Subject: cscope compilation error in cygwin

 


hi,
I try to use cscope  in cygwin. My pc is win2000. the
cygwin version is 


$ cygcheck -V
cygcheck version 1.64
System Checker for Cygwin
Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004 Red
Hat, Inc. Compiled on Mar  1 2005 


try to use cscope-15.5.

Could anybody help me out? thanks in advance!

**
below is the error,
**

$ ./configure
checking for a BSD-compatible install... /usr/bin/install
-c checking whether build environment is sane... yes
checking 
for gawk... gawk checking whether make sets $(MAKE)... yes

checking build system type... i686-pc-cygwin checking host
system type... i686-pc-cygwin checking for a
BSD-compatible install... /usr/bin/install -c checking
for gcc... gcc checking for C compiler default output...
a.exe checking whether the C compiler works... yes
checking whether we are cross compiling... no checking
for suffix of executables... .exe checking for suffix of
object files... o checking 
whether we are using the GNU C compiler... yes checking

whether gcc accepts -g... yes checking for gcc option to
accept ANSI C... none needed checking for style of include
used by make... GNU checking dependency style of gcc...
gcc3 checking for flex... flex checking for yywrap in
-lfl... yes checking lex output file root... lex.yy
checking whether yytext is a pointer... yes checking for
bison... bison -y checking how to run the C
preprocessor... gcc -E checking for egrep... grep -E
configure: checking location of ncurses.h file... 
checking for ANSI C header files... yes

checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking for regcomp in -lregex... no
checking for gnome-config... no
checking for pkg-config... no
./configure: line 4370: pkg-config: command not found
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes checking
fcntl.h usability... yes checking fcntl.h presence... yes
checking for fcntl.h... yes checking sys/window.h
usability... no checking sys/window.h presence... no
checking for sys/window.h... no checking sys/termios.h
usability... 
yes checking sys/termios.h presence... yes checking for

sys/termios.h... yes checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes checking
for mode_t... yes checking for pid_t... yes checking for
size_t... yes checking return type of signal handlers...
void checking for strchr... yes checking for memcpy... yes
checking for memset... yes checking for setmode... yes
checking for _setmode... yes checking for getcwd... yes
checking for regcmp... no checking for regcomp... yes
checking for strerror... yes checking for vsnprintf... yes
checking for snprintf... yes checking for lstat... yes
checking for fixkeypad... no checking whether lstat
dereferences a symlink specified with a trailing
slash... yes
checking whether lstat accepts an empty string... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating src/Makefile
config.status: creating contrib/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands


$ make
make  all-recursive
make[1]: Entering directory `/usr/cscope-15.5'
Making all in doc
make[2]: Entering directory `/usr/cscope-15.5/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/cscope-15.5/doc'
Making all in src
make[2]: Entering directory `/usr/cscope-15.5/src'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT
build.o -MD -MP -MF .deps/build.Tpo \
-c -o build.o `test -f 'build.c' || echo './'`build.c; \
then mv .deps/build.Tpo .deps/build.Po; \
else rm -f .deps/build.Tpo; exit 1; \
fi
build.c:51:20: curses.h: No such file or directory
make[2]: *** [build.o] Error 1
make[2]: Leaving directory `/usr/cscope-15.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/cscope-15.5'
make: *** [all] Error 2

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



verify that you have the [n]curses package installed, else
run setup.exe and select 

Re: cscope compilation error in cygwin

2005-10-31 Thread frank
Problem solved.  I installed libcurses-dev package which was missing.  
This is different from ncurses.


frank wrote:


I can't find curse package in cygwin setup. but i did installed ncurses.
Below is returned by cygcheck -c

ncurses  5.4-2  OK

thanks,


Reid Thompson wrote:


Original Message
From: frank [mailto:[EMAIL PROTECTED]
Sent: Monday, October 31, 2005 1:59 PM
To: cygwin@cygwin.com
Subject: cscope compilation error in cygwin

 


hi,
I try to use cscope  in cygwin. My pc is win2000. the
cygwin version is
$ cygcheck -V
cygcheck version 1.64
System Checker for Cygwin
Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004 Red
Hat, Inc. Compiled on Mar  1 2005
try to use cscope-15.5.

Could anybody help me out? thanks in advance!

**
below is the error,
**

$ ./configure
checking for a BSD-compatible install... /usr/bin/install
-c checking whether build environment is sane... yes
checking for gawk... gawk checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-cygwin checking host
system type... i686-pc-cygwin checking for a
BSD-compatible install... /usr/bin/install -c checking
for gcc... gcc checking for C compiler default output...
a.exe checking whether the C compiler works... yes
checking whether we are cross compiling... no checking
for suffix of executables... .exe checking for suffix of
object files... o checking whether we are using the GNU C 
compiler... yes checking

whether gcc accepts -g... yes checking for gcc option to
accept ANSI C... none needed checking for style of include
used by make... GNU checking dependency style of gcc...
gcc3 checking for flex... flex checking for yywrap in
-lfl... yes checking lex output file root... lex.yy
checking whether yytext is a pointer... yes checking for
bison... bison -y checking how to run the C
preprocessor... gcc -E checking for egrep... grep -E
configure: checking location of ncurses.h file... checking for 
ANSI C header files... yes

checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking for regcomp in -lregex... no
checking for gnome-config... no
checking for pkg-config... no
./configure: line 4370: pkg-config: command not found
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes checking
fcntl.h usability... yes checking fcntl.h presence... yes
checking for fcntl.h... yes checking sys/window.h
usability... no checking sys/window.h presence... no
checking for sys/window.h... no checking sys/termios.h
usability... yes checking sys/termios.h presence... yes checking for
sys/termios.h... yes checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes checking
for mode_t... yes checking for pid_t... yes checking for
size_t... yes checking return type of signal handlers...
void checking for strchr... yes checking for memcpy... yes
checking for memset... yes checking for setmode... yes
checking for _setmode... yes checking for getcwd... yes
checking for regcmp... no checking for regcomp... yes
checking for strerror... yes checking for vsnprintf... yes
checking for snprintf... yes checking for lstat... yes
checking for fixkeypad... no checking whether lstat
dereferences a symlink specified with a trailing
slash... yes
checking whether lstat accepts an empty string... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating src/Makefile
config.status: creating contrib/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands


$ make
make  all-recursive
make[1]: Entering directory `/usr/cscope-15.5'
Making all in doc
make[2]: Entering directory `/usr/cscope-15.5/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/cscope-15.5/doc'
Making all in src
make[2]: Entering directory `/usr/cscope-15.5/src'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT
build.o -MD -MP -MF .deps/build.Tpo \
-c -o build.o `test -f 'build.c' || echo './'`build.c; \
then mv .deps/build.Tpo .deps/build.Po; \
else rm -f .deps/build.Tpo; exit 1; \
fi
build.c:51:20: curses.h: No such file or directory
make[2]: *** [build.o] Error 1
make[2]: Leaving directory `/usr/cscope-15.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/cscope-15.5'
make: *** [all] Error 2

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

Re: Newbie: How to change $HOME path?

2005-10-31 Thread Larry Hall (Cygwin)

Thomas Hartmann wrote:

Hi,

I suppose I ask a quite obvious newbie-question, but: 
How can I change the $HOME path?
At the moment it points onto my desktop and I want to change to another 
directory since .* files are not hidden (because I tinker with my system so it 
displays all files...).


See:


FAQ:   http://cygwin.com/faq/



http://cygwin.com/faq/faq-nochunks.html#faq.setup.home


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

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



Hang with 1.5.18, 1.5.19 snapshot 20051029

2005-10-31 Thread Peter Rehley

Hi,

I have a problem where a configure script is hanging.  I first saw  
the behavior in 1.5.18, and it's still there in the latest snapshot.  
The only machines that we are seeing it hang on are windows 2000  
machines, sp4, with duel pentinum 933 mhz processors, and using ssh  
to login to the machine.  I haven't been able to reproduce the  
problem on single processor machines or when ssh is not used.


Under 1.5.18, the hang occurred about 1 in ten times in the  
test_configure script (provided in the bash_test.tar.bz2 file.  Under  
the latest snapshot it's about 1 in 900.


When the hang happens it appears that a process is completed, but  
still can be found in the process directory.  The cmdline file says  
defunct, but the process still shows up in the process list (ps - 
ef).  If I try to clean up by killing the process, the kill command  
says that the process doesn't exist.  The only way that I can make  
the hung process go away is by using the task manager to kill the  
process.


The simplest test I've gotten down to is:

### Simple Test
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.59 for expr-configure 1.5.11-1.
#
# Report bugs to cygwin at cygwin dot com.
#
# Copyright (C) 2003 Free Software Foundation, Inc.
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
## - ##
## M4sh Initialization.  ##
## - ##

set -xv

count=0
while [ ! -f stop ] ; do
  as_var=LC_MONETARY
  if (test -z `(eval $as_var=C; export $as_var; echo ho) 21`); then
echo hi
eval $as_var=C; export $as_var
  fi
  count=`expr $count + 1`
  echo $count
done
### End simple test

Someplace in the eval line the hang occurs.  Unfortunately I haven't  
had success when using strace.


If I've missed anything or there are questions about the above,  
please let me know.

Peter



cygcheck.out
Description: Binary data




bash_test.tar.bz2
Description: Binary data







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

RE: Wanted: Help translating classpath from CMD.EXE to bash

2005-10-31 Thread Siegfried Heintze
Thanks Igor!

 As someone mentioned, you can use cygpath -p to convert a POSIX-style
 path into a Win32-style one.

I think I need to go the other way. Given a CLASSPATH variable in windows,
how do I convert it to cygwin? Do I use : to separate the elements, or do
I use \;. If I use :, what about the windows device names?

It seems to me this should have worked, but it does not:
 * CLASSPATH=.\;c:\\dev\\xalan\\xalan-j_2_7_0\\xsltcservlet.jar\;others
 * export $CLASSPATH
 * echo ${CLASSPATH}
 * javac myprogram.java

 
 Alternatively, you can try using my java wrapper scripts that will do the
 translation automatically for you (the scripts can be found at
 http://cygwin.com/cgi-bin/cvsweb.cgi/wrappers/java/?cvsroot=cygwin-apps;
 you'll need to edit the scripts to point them to your Java installation
 directory).
 

OK, is there any documentation? What kind of wrappers are these? I have
never heard of bash wrappers before. (hmmm... bash wrappers, sounds like a
new genre of music! -- maybe something like slam dancing?)

How about an example? That would probably suffice.

Well, even if I get Igor's bash wrappers to work, I'm kinda curious why my
attempt did not.

Siegfried


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



Re: Wanted: Help translating classpath from CMD.EXE to bash

2005-10-31 Thread Larry Hall (Cygwin)

On 10/31/2005, Siegfried Heintze wrote:

As someone mentioned, you can use cygpath -p to convert a POSIX-style
 path into a Win32-style one.


I think I need to go the other way. Given a CLASSPATH variable in windows,
how do I convert it to cygwin? Do I use : to separate the elements, or do
I use \;. If I use :, what about the windows device names?

It seems to me this should have worked, but it does not:
 * CLASSPATH=.\;c:\\dev\\xalan\\xalan-j_2_7_0\\xsltcservlet.jar\;others
 * export $CLASSPATH
 * echo ${CLASSPATH}
 * javac myprogram.java


If you're running from bash or any other Cygwin shell, then the path is
already in POSIX form.  'javac' won't understand this, since it is a
Windows program.  'cygpath' is the way to convert between POSIX paths and
Windows/DOS, forward and back.  In your case, you want POSIX-Windows/DOS
conversion.  See 'man cygpath' for more details.

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

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



Re: Newbie: How to change $HOME path?

2005-10-31 Thread frank
You can right click my computer and \properties\advanced\environment 
variables.

add HOME variable and class path there. and restart bash.

That's my way

Larry Hall (Cygwin) wrote:


Thomas Hartmann wrote:


Hi,

I suppose I ask a quite obvious newbie-question, but: How can I 
change the $HOME path?
At the moment it points onto my desktop and I want to change to 
another directory since .* files are not hidden (because I tinker 
with my system so it displays all files...).



See:


FAQ:   http://cygwin.com/faq/




http://cygwin.com/faq/faq-nochunks.html#faq.setup.home





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



signals and read blocking - EINTR

2005-10-31 Thread Jim Easton
Hi,

Correct me if I'm wrong but it is my understanding that a signal,
specifically SIGALRM, should free a blocked read request and,
for example, getchar() or read(), should return an EINTR error.
(viz. Interrupted system call)

This happens on Solaris, sun 4, Sgi and AIX machines but apparently
not on Cygwin, or Red Hat Linux of any release that I have tested
(Scientific Linux SL Release 4.0 and Red Hat Linux release 9).

In fact the solaris man page for read states explicitly:

  If a read() is interrupted by a signal before it  reads  any
  data, it will return -1 with errno set to EINTR.

I have no desire to turn off blocking and poll for input as
this adds one to the machine's load average.  I can almost do
what I need with select - not quite.

I'm wondering what am I missing?  Is there a flag in sigaction
or something else that I could be setting?  Perhaps there is
something I can do in the service routine to break the block?
If this is discussed somewhere on the web I would be beholden if
someone would point me to it.

Following is a little demo program that will run on the afore
mentioned systems (except the sun4 needs a bit of tweeking)
The difference between, say, solaris and cygwin is that getchar
does not return unless one types in a character.

If anyone is interested this in reference to a printer driver
I am trying to port to linux.

Jim

/* a test of alarm signal and read */

#include stdio.h
#include sys/time.h
#include signal.h

struct itimerval tick;
struct itimerval left;
struct itimerval save;
struct itimerval zero;

struct sigaction act;

void timer (nn)
int nn;
 {
fprintf (stderr, in timer, arg is %d\n\r, nn);
signal (SIGALRM, timer);
tick.it_value.tv_usec -= tick.it_value.tv_usec/300;
setitimer (0, tick, save);
}

main() {
int c;

/*  tick.it_interval.tv_sec = 0;
 *  tick.it_interval.tv_usec = 99;
 */
tick.it_value.tv_sec = 0;
tick.it_value.tv_usec = 99;
zero.it_value.tv_sec = 0;
zero.it_value.tv_usec = 0;
signal (SIGALRM, timer);
setitimer (0, tick, 0);
system (/bin/stty raw -echo);

for (;;) {
fprintf (stderr, \n\rabout to read getchar\n\r);
c = getchar();
fprintf (stderr, input c is %d %c\n\r, c, c);

getitimer (0, left);
fprintf (stderr, value in timer is %d %d\n\r,
left.it_value.tv_sec, left.it_value.tv_usec);


if (c == 's') setitimer (0, zero, save);
if (c == 'g') setitimer (0, save, NULL);
if (c == 'q') break;
fprintf (stderr, saved value is %d %d\n\r,
save.it_value.tv_sec, save.it_value.tv_usec);
getitimer (0, left);
fprintf (stderr, value in timer is %d %d\n\r,
left.it_value.tv_sec, left.it_value.tv_usec);
}
system (/bin/stty -raw echo);
}

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



Console Setup

2005-10-31 Thread Rudi
Hy,
will there sometimes be a Setup-program available that works on the
console? I would like to update or add new packages through ssh instead
of Windows GUI to speedup these processes

-- 
hochachtungsvoll / best regards
Rudolf Spitaler
3580 Horn, Zwettlerstrasse 1/G/1
[EMAIL PROTECTED]


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



RE: Wanted: Help translating classpath from CMD.EXE to bash

2005-10-31 Thread Igor Pechtchanski
On Mon, 31 Oct 2005, Siegfried Heintze wrote:

 Thanks Igor!

  As someone mentioned, you can use cygpath -p to convert a POSIX-style
  path into a Win32-style one.

 I think I need to go the other way. Given a CLASSPATH variable in
 windows, how do I convert it to cygwin? Do I use : to separate the
 elements, or do I use \;. If I use :, what about the windows device
 names?

I should've been clearer, and said you can use 'cygpath -p' to convert
*between* a POSIX-style path and a Win32-style one.  cygpath -[u]p (the
u is optional) will convert from a Win32 path to a POSIX one, whereas
cygpath -wp will convert from a POSIX path to a Win32 one.  For more
details, see man cygpath, as Larry said.

 It seems to me this should have worked, but it does not:
  * CLASSPATH=.\;c:\\dev\\xalan\\xalan-j_2_7_0\\xsltcservlet.jar\;others
  * export $CLASSPATH
  * echo ${CLASSPATH}
  * javac myprogram.java

What exactly didn't work here?  What were the errors?

  Alternatively, you can try using my java wrapper scripts that will do
  the translation automatically for you (the scripts can be found at
  http://cygwin.com/cgi-bin/cvsweb.cgi/wrappers/java/?cvsroot=cygwin-apps;
  you'll need to edit the scripts to point them to your Java
  installation directory).

 OK, is there any documentation?

Nope.  I haven't really had time to package them properly.  I won't be
able to write full-fledged documentation, but I'm willing to answer
questions and accept documentation patches against the CVS repository
above.  Care to help out?

 What kind of wrappers are these?

They are wrappers around the java, javac, etc, executables.  Just make
sure they precede the real executables in the PATH.  They will basically
invoke the real ones, having translated the known path arguments to POSIX
format.  They will not translate all arguments -- if you pass filenames to
your Java program, you're responsible for translating those.  But they
help (a lot, actually -- I use them constantly on my machine).

 I have never heard of bash wrappers before. (hmmm... bash wrappers,
 sounds like a new genre of music! -- maybe something like slam dancing?)

They are wrapper programs written in bash.

 How about an example? That would probably suffice.

Sure.  You can run

/usr/local/bin/java -classpath /home/me/jars/a.jar:/home/me/classes SomeClass

And it'll call the Windows Java executable with the right paths.

 Well, even if I get Igor's bash wrappers to work, I'm kinda curious why
 my attempt did not.

You'll have to provide more details on what exactly didn't work in your
attempt.
HTH,
Igor
P.S. If you decide to try XJ after all, I'd be interested in your feedback
off-list.
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

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



Re: Console Setup

2005-10-31 Thread Larry Hall (Cygwin)

Rudi wrote:

Hy,
will there sometimes be a Setup-program available that works on the
console? I would like to update or add new packages through ssh instead
of Windows GUI to speedup these processes



There are command line options.  Below is an old pointer.  I'm sure you can
find more up-to-date ones in the email archives.

http://www.cygwin.com/ml/cygwin/2002-11/msg01490.html

This is still a Windows GUI program though, not a console app.  You may
find that this suffices for your needs however.  If not, feel free to jump
in and help move setup more quickly in this direction. :-)

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

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



Re: signals and read blocking - EINTR

2005-10-31 Thread Christopher Faylor
On Mon, Oct 31, 2005 at 08:49:30PM -0700, Jim Easton wrote:
I'm wondering what am I missing?  Is there a flag in sigaction
or something else that I could be setting?

Yes.  SA_RESTART is the flag.

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



RE: Wanted: Help translating classpath from CMD.EXE to bash

2005-10-31 Thread Siegfried Heintze
I figured it out. This does work after all:

CLASSPATH=.\;c\:\\dev\\xalan\\xalan-j_2_7_0\\samples\\xsltcservlet.jar\;c\:\
\dev\\xalan\\xalan-j_2_7_0\\samples\\xsltcejb.jar\;c\:\\dev\\xalan\\xalan-j_
2_7_0\\samples\\xsltcbrazil.jar\;c\:\\dev\\xalan\\xalan-j_2_7_0\\samples\\xs
ltcapplet.jar\;c\:\\dev\\xalan\\xalan-j_2_7_0\\samples\\xalansamples.jar\;c\
:\\dev\\xalan\\xalan-j_2_7_0\\serializer.jar\;c\:\\dev\\xalan\\xalan-j_2_7_0
\\xalan.jar\;c\:\\dev\\xalan\\xalan-j_2_7_0\\xercesImpl.jar\;c\:\\dev\\xalan
\\xalan-j_2_7_0\\xml-apis.jar\;c\:\\dev\\xalan\\xalan-j_2_7_0\\xsltc.jar
export CLASSPATH
javac -g ApplyXPathDOM.java


One has to escape the colons and the semi colons. I don't understand why I
have to escape the colons too -- but it works.

Thanks for the example for the java/bash wrappers -- I think I understand
now.

Siegfried

-Original Message-
From: Igor Pechtchanski [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 31, 2005 9:06 PM
To: Siegfried Heintze
Cc: cygwin@cygwin.com
Subject: RE: Wanted: Help translating classpath from CMD.EXE to bash

On Mon, 31 Oct 2005, Siegfried Heintze wrote:

 Thanks Igor!

  As someone mentioned, you can use cygpath -p to convert a POSIX-style
  path into a Win32-style one.

 I think I need to go the other way. Given a CLASSPATH variable in
 windows, how do I convert it to cygwin? Do I use : to separate the
 elements, or do I use \;. If I use :, what about the windows device
 names?

I should've been clearer, and said you can use 'cygpath -p' to convert
*between* a POSIX-style path and a Win32-style one.  cygpath -[u]p (the
u is optional) will convert from a Win32 path to a POSIX one, whereas
cygpath -wp will convert from a POSIX path to a Win32 one.  For more
details, see man cygpath, as Larry said.

 It seems to me this should have worked, but it does not:
  * CLASSPATH=.\;c:\\dev\\xalan\\xalan-j_2_7_0\\xsltcservlet.jar\;others
  * export $CLASSPATH
  * echo ${CLASSPATH}
  * javac myprogram.java

What exactly didn't work here?  What were the errors?

  Alternatively, you can try using my java wrapper scripts that will do
  the translation automatically for you (the scripts can be found at
 
http://cygwin.com/cgi-bin/cvsweb.cgi/wrappers/java/?cvsroot=cygwin-apps;
  you'll need to edit the scripts to point them to your Java
  installation directory).

 OK, is there any documentation?

Nope.  I haven't really had time to package them properly.  I won't be
able to write full-fledged documentation, but I'm willing to answer
questions and accept documentation patches against the CVS repository
above.  Care to help out?

 What kind of wrappers are these?

They are wrappers around the java, javac, etc, executables.  Just make
sure they precede the real executables in the PATH.  They will basically
invoke the real ones, having translated the known path arguments to POSIX
format.  They will not translate all arguments -- if you pass filenames to
your Java program, you're responsible for translating those.  But they
help (a lot, actually -- I use them constantly on my machine).

 I have never heard of bash wrappers before. (hmmm... bash wrappers,
 sounds like a new genre of music! -- maybe something like slam dancing?)

They are wrapper programs written in bash.

 How about an example? That would probably suffice.

Sure.  You can run

/usr/local/bin/java -classpath /home/me/jars/a.jar:/home/me/classes
SomeClass

And it'll call the Windows Java executable with the right paths.

 Well, even if I get Igor's bash wrappers to work, I'm kinda curious why
 my attempt did not.

You'll have to provide more details on what exactly didn't work in your
attempt.
HTH,
Igor
P.S. If you decide to try XJ after all, I'd be interested in your feedback
off-list.
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA


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