Re: TERM problems

2003-07-08 Thread jurgen . defurne
Hello,

I'd like to use rxvt, but without an X server, its fonts are ugly. I like
bold non-serif fonts, and the only thing I can get are thin serif
fonts.

Does any body have some hints how to fix this ?

Regards,

Jurgen










Nigel Stewart <[EMAIL PROTECTED]>
Sent by: 
[EMAIL PROTECTED]
07/08/2003 03:37 AM

 
To: poff <[EMAIL PROTECTED]>
[EMAIL PROTECTED]
cc: (bcc: Jurgen Defurne/BRG/CE/PHILIPS)
Subject:Re: TERM problems
Classification: 



Try rxvt instead of the dosbox cosole...
rxvt -sl 1000 -rv -geometry 120x30 +sr -e bash -i

It does xterm emulation, which I find quite general
purpose.

Nigel

> I have a script which connects via ssh to the server I want to use, but 
> before doing so sets TERM=vt100



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





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



RE: CygPath to Clipboard (was: example needed pls ...)

2003-07-08 Thread "Schaible, Jörg"

So any reason, why not to use regtool ?

Soren A wrote:
> I had written:
>> Thus one
>> entry I examined looks like this:
>> 
>> 
> "TEMP"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,
> 6f,00,6f,0
>> 0,74,\
>>   00,25,00,5c,00,54,00,45,00,4d,00,50,00,00,00
> 
> Mystery is done. There are two kinds of .REG file: ANSI and Unicode.
> The Regedit tool on WinXP exports keys to .REG files as Unicode,
> naturally. 
> 
> Furthermore it is a known thing that the REGEDIT tool included in
> Win95/98 is *not capable* of *importing* a key that contains a
> REG_EXPAND_SZ datum. It is either a bug or a missing feature,
> depending on who you read.
> 
> I downloaded a trial version of Resplendent Registrar
> (http://www.resplendence.com) which seems like a kick-a** tool, and
> made the needed additions to the Registry using that tool instead of
> via a .REG file. For the purposes of Win9x, all that Perl hacking was
> for nought. 
> 
> Microsoft strikes again.
> 
> --
> "So, tell me, my little one-eyed one, on what poor, pitiful,
> defenseless planet has my MONSTROSITY been unleashed?"
>- Dr. Jumba, Disney's "Lilo & Stitch"
> OpenPGP Key at http://savannah.gnu.org/people/viewgpg.php?user_id=6050


--
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: TERM problems

2003-07-08 Thread poff
On Tue, Jul 08, 2003 at 11:37:12AM +1000, Nigel Stewart wrote:
> Try rxvt instead of the dosbox cosole...
> rxvt -sl 1000 -rv -geometry 120x30 +sr -e bash -i

Did the job thanks.

To emulate that "dos" feel a bit more I used:

rxvt -sl 1000 -ls -rv -geometry 100x30 -sr -e pdksh -l

So here are a few q's to complete my new "Terminal Software":

-I tried -fn Terminal but that didn't work. How can I load the Windows 
Terminal font instead of this rather thin and small one?
-Anyway I can get right-clicking to equal ctrl-ins (paste)?
-How can I get the del key to work and not show "~" instead
-How can I get the backspace key to work where SOMETIMES it's shown as ^H

Thanks for your help,

Poff

ps. I'll write all this up sometime on poff.sixbit.org as an alternative 
terminal "software" (ssh etc.) but no zmodem receive :(

-- 
[EMAIL PROTECTED]
SDF Public Access UNIX System - http://sdf.lonestar.org

--
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: TERM problems

2003-07-08 Thread Brian Dessent
[EMAIL PROTECTED] wrote:

> I'd like to use rxvt, but without an X server, its fonts are ugly. I like
> bold non-serif fonts, and the only thing I can get are thin serif
> fonts.
> 
> Does any body have some hints how to fix this ?

You can supply any Windows font name for use, i.e. '-fn "Lucida
Console-11"'.  Try also shift-keypad-plus/minus to select different
fonts while running.

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: TERM problems

2003-07-08 Thread Elfyn McBratney
On Tue, 8 Jul 2003, poff wrote:

> On Tue, Jul 08, 2003 at 11:37:12AM +1000, Nigel Stewart wrote:
> > Try rxvt instead of the dosbox cosole...
> > rxvt -sl 1000 -rv -geometry 120x30 +sr -e bash -i
>
> Did the job thanks.
>
> To emulate that "dos" feel a bit more I used:
>
> rxvt -sl 1000 -ls -rv -geometry 100x30 -sr -e pdksh -l
>
> So here are a few q's to complete my new "Terminal Software":
>
> -I tried -fn Terminal but that didn't work. How can I load the Windows

Hmm, are you sure you have a "Terminal" font? I'm on XP and don't see it..maybe
they got rid of it on XP.

> Terminal font instead of this rather thin and small one?
> -Anyway I can get right-clicking to equal ctrl-ins (paste)?

I don't think so. If you have a wheel mouse, you can just click it, however.

> -How can I get the del key to work and not show "~" instead

I very, very rarely use rxvt, but I seem to remember `stty erase ^?' doing the
trick for me way back when.

> -How can I get the backspace key to work where SOMETIMES it's shown as ^H

IIRC, The rxvt argument `-backspacekey' e.g., `... -backspacekey ^H'.

HTH,
Elfyn

--
Elfyn McBratney, EMCB
http://www.emcb.co.uk
[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: TERM problems

2003-07-08 Thread poff
On Tue, Jul 08, 2003 at 01:37:49AM -0700, Brian Dessent wrote:
> Console-11"'.  Try also shift-keypad-plus/minus to select different
> fonts while running.

I found a nice font with shift_kp+ * 2.

How can I specify rxvt to load this automatically?

Thanks,

P.

-- 
[EMAIL PROTECTED]
SDF Public Access UNIX System - http://sdf.lonestar.org

--
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: TERM problems

2003-07-08 Thread poff
On Tue, Jul 08, 2003 at 09:38:22AM +0100, Elfyn McBratney wrote:
> Hmm, are you sure you have a "Terminal" font? I'm on XP and don't see it..maybe
> they got rid of it on XP.

My bad, it's a raster font.

> > Terminal font instead of this rather thin and small one?
> > -Anyway I can get right-clicking to equal ctrl-ins (paste)?
> 
> I don't think so. If you have a wheel mouse, you can just click it, however.

I found middle-clicking with my 3 button mouse works a treat.

> > -How can I get the del key to work and not show "~" instead
> 
> > -How can I get the backspace key to work where SOMETIMES it's shown as ^H

Just particular software playing up, so it's fine default.

Thanks!

P.

-- 
[EMAIL PROTECTED]
SDF Public Access UNIX System - http://sdf.lonestar.org

--
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: TERM problems

2003-07-08 Thread Brian Dessent
poff wrote:

> -I tried -fn Terminal but that didn't work. How can I load the Windows
> Terminal font instead of this rather thin and small one?

Try '-fn FixedSys'.  I prefer '-fn "Lucida Console-11"' personally.

> -How can I get the del key to work and not show "~" instead

In .inputrc:

"\M-[3~": delete-char

> -How can I get the backspace key to work where SOMETIMES it's shown as ^H

Please read /usr/doc/Cygwin/rxvt-n.n.n.README

> ps. I'll write all this up sometime on poff.sixbit.org as an alternative
> terminal "software" (ssh etc.) but no zmodem receive :(

Now that takes me back.  Fire up the old 2400 baud modem and Chuck
Forsberg's (sp?) "rz" Zmodem.

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: TERM problems

2003-07-08 Thread Brian Dessent
poff wrote:
> 
> On Tue, Jul 08, 2003 at 01:37:49AM -0700, Brian Dessent wrote:
> > Console-11"'.  Try also shift-keypad-plus/minus to select different
> > fonts while running.
> 
> I found a nice font with shift_kp+ * 2.
> 
> How can I specify rxvt to load this automatically?

That's an excellent question to which I don't know the answer.  :-)

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/



Pb including Xm.h

2003-07-08 Thread philippe guillaume
My program contains some include of "Xm/Xm.h"

Libraries are defined like this : 
INC_DIR_XLIB = /usr/X11R6/include

and for compilation :
  -I$(INC_DIR_LIB) 

I manage to compile it on Linux but not on Cygwin !!!
But the pathes for Xm.h are the same !

When i want to compile it the following message
appears : " Xm/Xm.h " no such file or directory

How do you understand it ?

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



Re: Pb including Xm.h

2003-07-08 Thread Elfyn McBratney
On Tue, 8 Jul 2003, [iso-8859-1] philippe guillaume wrote:

> My program contains some include of "Xm/Xm.h"
>
> Libraries are defined like this :
> INC_DIR_XLIB = /usr/X11R6/include
>
> and for compilation :
>   -I$(INC_DIR_LIB) 
>
> I manage to compile it on Linux but not on Cygwin !!!
> But the pathes for Xm.h are the same !
>
> When i want to compile it the following message
> appears : " Xm/Xm.h " no such file or directory
>
> How do you understand it ?

A search for "Xm.h" on  reveals that the package
'lesstif' contains those headers. So, you need to install the 'lesstif' package.

Elfyn

-- 
Elfyn McBratney, EMCB
http://www.emcb.co.uk
[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: Mount Windows registry into filesystem

2003-07-08 Thread Elfyn McBratney
On Mon, 7 Jul 2003, Christopher Faylor wrote:

> On Mon, Jul 07, 2003 at 10:37:10AM +0100, Elfyn McBratney wrote:
> >On Mon, 7 Jul 2003, William S Fulton wrote:
> >>Is it possible to mount the registry into the filesystem?  I'd love it
> >>if one could use commands like 'ls', 'diff' and 'find' on the registry,
> >>treating keys as directories and values as files.  I have a vague
> >>recollection of a posting about this a long while back, but I can't for
> >>the life of me find it.  Ultimately my goal is to get a diff from two
> >>different registry roots.  The regtool utility doesn't seem so
> >>flexible.  Any pointers much appreciated.
> >
> >This feature is partially available now and will be fully functional,
> >IIRC, in the next CYgwin release.
>
> ?  It's as available now as it will be in the next release.  I'm not
> aware of any improvements for 1.5.0.

Sorry, I've been spending ages in the -developers archives and probably got
confused with some post there :-)

Elfyn

-- 
Elfyn McBratney, EMCB
http://www.emcb.co.uk
[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/



ping Corinna

2003-07-08 Thread james lankton
Hello Corinna,

On the 31/6/2003 referring to ssl you wrote:

>If you have a look into the util/cygwin.sh script, you'll find it makes
>basically this:

 > ./config --prefix=/usr shared no-idea no-rc5 no-mdc2
  >make depend
 > make

>Corinna

please would let me know what  'no-idea' represents?


thanks

James






--
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: ping Corinna

2003-07-08 Thread Elfyn McBratney
On Tue, 8 Jul 2003, james lankton wrote:

> Hello Corinna,
>
> On the 31/6/2003 referring to ssl you wrote:
>
> >If you have a look into the util/cygwin.sh script, you'll find it makes
> >basically this:
>
>  > ./config --prefix=/usr shared no-idea no-rc5 no-mdc2
>   >make depend
>  > make
>

Does the above work for you? If not, what fails?

> please would let me know what  'no-idea' represents?

I'd guess it's be the mere mortal, non-mind reading type, response. :-)

Elfyn

-- 
Elfyn McBratney, EMCB
http://www.emcb.co.uk
[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: ping Corinna

2003-07-08 Thread Vince Hoffman
its an encryption algorithm,  (International Data Encryption Algorithm)

(a tiny bit about the idea algorithm.)
 -Original Message-
> From: james lankton [mailto:[EMAIL PROTECTED]
> Sent: 08 July 2003 18:43
> To: [EMAIL PROTECTED]
> Subject: ping Corinna
> 
> 
> Hello Corinna,
> 
> On the 31/6/2003 referring to ssl you wrote:
> 
> >If you have a look into the util/cygwin.sh script, you'll 
> find it makes
> >basically this:
> 
>  > ./config --prefix=/usr shared no-idea no-rc5 no-mdc2
>   >make depend
>  > make
> 
> >Corinna
> 
> please would let me know what  'no-idea' represents?
> 
> 
> thanks
> 
> James
> 
> 
> 
> 
> 
> 
> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:   http://cygwin.com/problems.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
> 

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



RE: php-mysql-cygwin how to

2003-07-08 Thread andrew brian clegg

On Mon, 7 Jul 2003, Bill McCormick wrote:

[mysql client]

> I compiled it myself from the linux src I got from mysql.com. It seems to
> work but maybe there's a more established way.

Wanna try this myself sometime. Did you have to tweak it much or did it 
compile out of the box?

Andrew.



--
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: php-mysql-cygwin how to

2003-07-08 Thread Elfyn McBratney
On Tue, 8 Jul 2003, andrew brian clegg wrote:

> On Mon, 7 Jul 2003, Bill McCormick wrote:
>
> [mysql client]
>
> > I compiled it myself from the linux src I got from mysql.com. It seems to
> > work but maybe there's a more established way.
>
> Wanna try this myself sometime. Did you have to tweak it much or did it
> compile out of the box?
>
> Andrew.

>From memory (haven't compiled MySQL on Cygwin for a while) it compiles fine, the
only problem was, and perhaps still is, with the server.  The libraries work
fine, too. I promised myself that I'd try and get it working...But so little
time and so many things to do. :-)

All it needs is a straight

  ./configure --without-server --prefix=/usr
  make; make install

Elfyn

-- 
Elfyn McBratney, EMCB
http://www.emcb.co.uk
[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: Pb including Xm.h

2003-07-08 Thread philippe guillaume
But when i installed cygwin, i installed all the
packages ...
And even if this package was not installed , why the
file Xm.h is not found ?
I see it in /usr/X11R6/include/Xm/

I'm gonna try your solution
Thanks


 --- Elfyn McBratney <[EMAIL PROTECTED]> a écrit : > On
Tue, 8 Jul 2003, [iso-8859-1] philippe guillaume
> wrote:
> 
> > My program contains some include of "Xm/Xm.h"
> >
> > Libraries are defined like this :
> > INC_DIR_XLIB = /usr/X11R6/include
> >
> > and for compilation :
> >   -I$(INC_DIR_LIB) 
> >
> > I manage to compile it on Linux but not on Cygwin
> !!!
> > But the pathes for Xm.h are the same !
> >
> > When i want to compile it the following message
> > appears : " Xm/Xm.h " no such file or directory
> >
> > How do you understand it ?
> 
> A search for "Xm.h" on 
> reveals that the package
> 'lesstif' contains those headers. So, you need to
> install the 'lesstif' package.
> 
> Elfyn
> 
> -- 
> Elfyn McBratney, EMCB
> http://www.emcb.co.uk
> [EMAIL PROTECTED]
> 
>  

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



Re: users and startup scripts (FAQ alert)

2003-07-08 Thread andrew brian clegg

On Mon, 7 Jul 2003, Igor Pechtchanski wrote:

> The preferred method for switching users is by running "ssh
> [EMAIL PROTECTED]" (after setting up sshd, obviously).  I'm guessing the
> above FAQ entry should be updated as well.

I hope this isn't rehashing old discussions, but I'd always assumed from 
the number of times people talk about using ssh to switch users that there 
was something inherently disadvantageous about using (say)

runas /user:Administrator "c:\cygwin\bin\bash --login -i"

or setting up a shortcut with the 'run as different user' checkbox set (in 
Win2K; I think the semantics are slightly different in XP IIRC).

But now I've tried it, it works fine for me... Is the only drawback that 
this doesn't work in DOS versions of Windows, or is there some other 
reason why it's not recommended?

Andrew.



--
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: Pb including Xm.h

2003-07-08 Thread Elfyn McBratney
On Tue, 8 Jul 2003, [iso-8859-1] philippe guillaume wrote:

> But when i installed cygwin, i installed all the
> packages ...
> And even if this package was not installed , why the
> file Xm.h is not found ?
> I see it in /usr/X11R6/include/Xm/
>
> I'm gonna try your solution

If it's already there, then the pre-processor is not being given the directory
`/usr/X11R6/include', it would seem.

When compiling the file(s) that require this header, are you adding
`-I/usr/X11R6/include' ?

Elfyn

-- 
Elfyn McBratney, EMCB
http://www.emcb.co.uk
[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: ping Corinna

2003-07-08 Thread james lankton
my fault again
IDEA as in  no-idea.

my goodness I should really stop taking all those pills.

james
"Elfyn McBratney" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Tue, 8 Jul 2003, james lankton wrote:
>
> > Hello Corinna,
> >
> > On the 31/6/2003 referring to ssl you wrote:
> >
> > >If you have a look into the util/cygwin.sh script, you'll find it makes
> > >basically this:
> >
> >  > ./config --prefix=/usr shared no-idea no-rc5 no-mdc2
> >   >make depend
> >  > make
> >
>
> Does the above work for you? If not, what fails?
>
> > please would let me know what  'no-idea' represents?
>
> I'd guess it's be the mere mortal, non-mind reading type, response. :-)
>
> Elfyn
>
> --
> Elfyn McBratney, EMCB
> http://www.emcb.co.uk
> [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: ping Corinna

2003-07-08 Thread james lankton
 Hello Elfyn,
no is the answer to your question, but I will today.

What I would like to clear up is it not the case that
openssl 0.9.7b comes installed with cygwin if so
whats the point of running config and make?

James

"james lankton" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> my fault again
> IDEA as in  no-idea.
>
> my goodness I should really stop taking all those pills.
>
> james
> "Elfyn McBratney" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > On Tue, 8 Jul 2003, james lankton wrote:
> >
> > > Hello Corinna,
> > >
> > > On the 31/6/2003 referring to ssl you wrote:
> > >
> > > >If you have a look into the util/cygwin.sh script, you'll find it
makes
> > > >basically this:
> > >
> > >  > ./config --prefix=/usr shared no-idea no-rc5 no-mdc2
> > >   >make depend
> > >  > make
> > >
> >
> > Does the above work for you? If not, what fails?
> >
> > > please would let me know what  'no-idea' represents?
> >
> > I'd guess it's be the mere mortal, non-mind reading type, response. :-)
> >
> > Elfyn
> >
> > --
> > Elfyn McBratney, EMCB
> > http://www.emcb.co.uk
> > [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/



mysqlc (was RE: php-mysql-cygwin how to)

2003-07-08 Thread andrew brian clegg

On Tue, 8 Jul 2003, Elfyn McBratney wrote:

> From memory (haven't compiled MySQL on Cygwin for a while) it compiles
> fine, the only problem was, and perhaps still is, with the server.  The
> libraries work fine, too. I promised myself that I'd try and get it
> working...But so little time and so many things to do. :-)

Know the feeling. Didn't have a chance to try your (and Jason's) rebaseall 
fix for apache last night -- things you can't do over ssh are a pain.

I'm not so worried about the server to be honest... It's only the
readline-based client that uses that nasty B19 dll which is what I want to 
get rid of cleanly.

Although having said that, I don't think MySQL 4.1 Alpha ships with the 
dodgy dll -- not sure what they've done, haven't investigated it properly 
yet.

> All it needs is a straight
> 
>   ./configure --without-server --prefix=/usr
>   make; make install

Wicked, will give that a go.

Cheers,

Andrew.



--
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: ping Corinna

2003-07-08 Thread Elfyn McBratney
On Tue, 8 Jul 2003, james lankton wrote:

>  Hello Elfyn,
> no is the answer to your question, but I will today.
>
> What I would like to clear up is it not the case that
> openssl 0.9.7b comes installed with cygwin if so
> whats the point of running config and make?

Erm, sorry..what do you mean? ;-) If you mean why do you need to run "config;
make" etc, when openssl is in the distribution, then the answer is you don't.
There's no reason to re-build it unless a) there's a feature you need that's not
in the distribution or b) you need to debug a problem, etc, etc.

Elfyn

-- 
Elfyn McBratney, EMCB
http://www.emcb.co.uk
[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: mysqlc (was RE: php-mysql-cygwin how to)

2003-07-08 Thread Elfyn McBratney
On Tue, 8 Jul 2003, andrew brian clegg wrote:

>
> On Tue, 8 Jul 2003, Elfyn McBratney wrote:
>
> > From memory (haven't compiled MySQL on Cygwin for a while) it compiles
> > fine, the only problem was, and perhaps still is, with the server.  The
> > libraries work fine, too. I promised myself that I'd try and get it
> > working...But so little time and so many things to do. :-)
>
> Know the feeling. Didn't have a chance to try your (and Jason's) rebaseall
> fix for apache last night -- things you can't do over ssh are a pain.
>
> I'm not so worried about the server to be honest... It's only the
> readline-based client that uses that nasty B19 dll which is what I want to
> get rid of cleanly.
>
> Although having said that, I don't think MySQL 4.1 Alpha ships with the
> dodgy dll -- not sure what they've done, haven't investigated it properly
> yet.
>
> > All it needs is a straight
> >
> >   ./configure --without-server --prefix=/usr
> >   make; make install
>
> Wicked, will give that a go.

I decided to drop what I'm working on and play with MySQL this afternoon ;-)

If all goes well and I can get everything par the server working I'll see if
it/they (client and libs) would be accepted as packages..then tackle the server.

Elfyn

-- 
Elfyn McBratney, EMCB
http://www.emcb.co.uk
[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: Pb including Xm.h

2003-07-08 Thread philippe guillaume
yes it is added like i told in the first post ...


 --- Elfyn McBratney <[EMAIL PROTECTED]> a écrit : > On
Tue, 8 Jul 2003, [iso-8859-1] philippe guillaume
> wrote:
> 
> > But when i installed cygwin, i installed all the
> > packages ...
> > And even if this package was not installed , why
> the
> > file Xm.h is not found ?
> > I see it in /usr/X11R6/include/Xm/
> >
> > I'm gonna try your solution
> 
> If it's already there, then the pre-processor is not
> being given the directory
> `/usr/X11R6/include', it would seem.
> 
> When compiling the file(s) that require this header,
> are you adding
> `-I/usr/X11R6/include' ?
> 
> Elfyn
> 
> -- 
> Elfyn McBratney, EMCB
> http://www.emcb.co.uk
> [EMAIL PROTECTED]
> 
>  

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



Re: Mount Windows registry into filesystem

2003-07-08 Thread andrew brian clegg

On Mon, 7 Jul 2003, Igor Pechtchanski wrote:

> > Conversely is there a way to determine the type when reading?  It
> > appears that Cygwin does what you expect (e.g. returning a \0 delimited
> > list for REG_MULTI_SZ) but is there any way to ask it directly?
> 
> Not that I know of.  Look at fhandler_registry.cc for implementation
> details.

Suggestion to those who know about these things: being able to go

file /proc/registry/HKEY_CURRENT_USER/blahblahblah

and have it return the type would be way cool. Or would that involve a 
really ugly hack?

Andrew.



--
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: Pb including Xm.h

2003-07-08 Thread Elfyn McBratney
On Tue, 8 Jul 2003, [iso-8859-1] philippe guillaume wrote:

> yes it is added like i told in the first post ...

OK, can you send us the command that's failing?

Elfyn

> > > But when i installed cygwin, i installed all the
> > > packages ...
> > > And even if this package was not installed , why
> > the
> > > file Xm.h is not found ?
> > > I see it in /usr/X11R6/include/Xm/
> > >
> > > I'm gonna try your solution
> >
> > If it's already there, then the pre-processor is not
> > being given the directory
> > `/usr/X11R6/include', it would seem.
> >
> > When compiling the file(s) that require this header,
> > are you adding
> > `-I/usr/X11R6/include' ?

-- 
Elfyn McBratney, EMCB
http://www.emcb.co.uk
[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: Mount Windows registry into filesystem

2003-07-08 Thread Elfyn McBratney
On Tue, 8 Jul 2003, andrew brian clegg wrote:

>
> On Mon, 7 Jul 2003, Igor Pechtchanski wrote:
>
> > > Conversely is there a way to determine the type when reading?  It
> > > appears that Cygwin does what you expect (e.g. returning a \0 delimited
> > > list for REG_MULTI_SZ) but is there any way to ask it directly?
> >
> > Not that I know of.  Look at fhandler_registry.cc for implementation
> > details.
>
> Suggestion to those who know about these things: being able to go
>
> file /proc/registry/HKEY_CURRENT_USER/blahblahblah
>
> and have it return the type would be way cool. Or would that involve a
> really ugly hack?

Kinda, 'cos `file' uses stock source (i.e. fileutils) and this would require
changing it somewhat. It wouldn't be hard to add this as an option to regtool,
however.

Elfyn

-- 
Elfyn McBratney, EMCB
http://www.emcb.co.uk
[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: mysqlc (was RE: php-mysql-cygwin how to)

2003-07-08 Thread andrew brian clegg

On Tue, 8 Jul 2003, Elfyn McBratney wrote:

> I decided to drop what I'm working on and play with MySQL this afternoon ;-)
> 
> If all goes well and I can get everything par the server working I'll see if
> it/they (client and libs) would be accepted as packages..then tackle the server.

You hero.

Andrew.



--
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: Mount Windows registry into filesystem

2003-07-08 Thread andrew brian clegg

On Tue, 8 Jul 2003, Elfyn McBratney wrote:

> > Suggestion to those who know about these things: being able to go
> >
> > file /proc/registry/HKEY_CURRENT_USER/blahblahblah
> >
> > and have it return the type would be way cool. Or would that involve a
> > really ugly hack?
> 
> Kinda, 'cos `file' uses stock source (i.e. fileutils) and this would require
> changing it somewhat.

That's what I was afraid of, spreading cygwarts all over things like file 
might not endear us to the rest of the posix world :)

Andrew.



--
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: mysqlc (was RE: php-mysql-cygwin how to)

2003-07-08 Thread Gerrit P. Haase
Hello Elfyn,

>> I'm not so worried about the server to be honest... It's only the
>> readline-based client that uses that nasty B19 dll which is what I want to
>> get rid of cleanly.

>> Although having said that, I don't think MySQL 4.1 Alpha ships with the
>> dodgy dll -- not sure what they've done, haven't investigated it properly
>> yet.

Weird, it should really be compiled and included with the netrelease.

>>> All it needs is a straight
>>>
>>>   ./configure --without-server --prefix=/usr
>>>   make; make install
>>
>> Wicked, will give that a go.

> I decided to drop what I'm working on and play with MySQL this afternoon ;-)

> If all goes well and I can get everything par the server working I'll see if
> it/they (client and libs) would be accepted as packages..then tackle the server.

The server will build fine and I was also able to run the tests, but
most of the time all tests are failing, but sometimes one or another
succeeds.  Please relibtoolize before configuring, else there will be no
shared libraries.

I can send you my patches this evening (for the 4.1.0-alpha version).

The server:

Well, you should play with the server using cygwin-1.5!  1.3.22 is
broken (in the relevant socket part), like it is a mess with apache too.



Gerrit
-- 
=^..^=


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



Re: Mount Windows registry into filesystem

2003-07-08 Thread Brian Dessent
Elfyn McBratney wrote:

> On Tue, 8 Jul 2003, andrew brian clegg wrote:
> 
> > Suggestion to those who know about these things: being able to go
> >
> > file /proc/registry/HKEY_CURRENT_USER/blahblahblah
> >
> > and have it return the type would be way cool. Or would that involve a
> > really ugly hack?
> 
> Kinda, 'cos `file' uses stock source (i.e. fileutils) and this would require
> changing it somewhat. It wouldn't be hard to add this as an option to regtool,
> however.

Besides, doesn't file work by reading bits of the file and inferring its
type based on content?  You would have to add specific support for it in
file (as opposed to adding entries in its database) to make an ioctl or
something.  I guess that's everyone's point, that it would pollute file
too much.

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: php-mysql-cygwin how to

2003-07-08 Thread Max Bowsher
Elfyn McBratney wrote:
> On Tue, 8 Jul 2003, andrew brian clegg wrote:
>
>> On Mon, 7 Jul 2003, Bill McCormick wrote:
>>
>> [mysql client]
>>
>>> I compiled it myself from the linux src I got from mysql.com. It seems
>>> to work but maybe there's a more established way.
>>
>> Wanna try this myself sometime. Did you have to tweak it much or did it
>> compile out of the box?
>>
>> Andrew.
>
> From memory (haven't compiled MySQL on Cygwin for a while) it compiles
> fine, the only problem was, and perhaps still is, with the server.  The
> libraries work fine, too. I promised myself that I'd try and get it
> working...But so little time and so many things to do. :-)
>
> All it needs is a straight
>
>   ./configure --without-server --prefix=/usr
>   make; make install

I was playing with this recently (mysql-4.0.13). I found the following
problems:

1) Underscore mismatches when using the x86 optimized assembler
implementation of string functions. Workaround: --disable-assembler

2) Missing $(EXEEXT) causes make to invoke an implicit rule, generating a
huge amount of nonsensical errors. Patch:
--- mysql-4.0.13/sql/Makefile.am.orig 2003-06-17 12:24:57.0 +0100
+++ mysql-4.0.13/sql/Makefile.am 2003-06-17 12:25:10.0 +0100
@@ -114,8 +114,8 @@
   $(CXXCOMPILE) $(LM_CFLAGS) -c $<

 lex_hash.h: lex.h gen_lex_hash.cc sql_yacc.h
-  $(MAKE) gen_lex_hash
-  ./gen_lex_hash > $@
+  $(MAKE) gen_lex_hash$(EXEEXT)
+  ./gen_lex_hash$(EXEEXT) > $@

 # Hack to ensure that lex_hash.h is built early
 sql_lex.o: lex_hash.h

3) The long standing server problem. It seems like the complex C++ is
confusing gcc?

Max.



--
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: mysqlc (was RE: php-mysql-cygwin how to)

2003-07-08 Thread Elfyn McBratney
On Tue, 8 Jul 2003, Gerrit P. Haase wrote:

> Hello Elfyn,
>
> >> I'm not so worried about the server to be honest... It's only the
> >> readline-based client that uses that nasty B19 dll which is what I want to
> >> get rid of cleanly.
>
> >> Although having said that, I don't think MySQL 4.1 Alpha ships with the
> >> dodgy dll -- not sure what they've done, haven't investigated it properly
> >> yet.
>
> Weird, it should really be compiled and included with the netrelease.
>
> >>> All it needs is a straight
> >>>
> >>>   ./configure --without-server --prefix=/usr
> >>>   make; make install
> >>
> >> Wicked, will give that a go.
>
> > I decided to drop what I'm working on and play with MySQL this afternoon ;-)
>
> > If all goes well and I can get everything par the server working I'll see if
> > it/they (client and libs) would be accepted as packages..then tackle the server.
>
> The server will build fine and I was also able to run the tests, but
> most of the time all tests are failing, but sometimes one or another
> succeeds.  Please relibtoolize before configuring, else there will be no
> shared libraries.

Already done :-)

> I can send you my patches this evening (for the 4.1.0-alpha version).

They'd be useful, so sure, but I was hesatant about 4.0 let alone 4.1 . I'm
still thinking about using 3.23 .

> The server:
>
> Well, you should play with the server using cygwin-1.5!  1.3.22 is
> broken (in the relevant socket part), like it is a mess with apache too.

1.5, t'is the only way :-)

Elfyn

-- 
Elfyn McBratney, EMCB
http://www.emcb.co.uk
[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: Pb including Xm.h

2003-07-08 Thread philippe guillaume
here it is :
gcc -02 -gddb -Iblabla/include -c myprog.c

and it produces this error :
"In file included from myprog.c:
blabla/myprog.h : Xm/Xm.h : No Such File Or Directory"

 --- Elfyn McBratney <[EMAIL PROTECTED]> a écrit : > On
Tue, 8 Jul 2003, [iso-8859-1] philippe guillaume
> wrote:
> 
> > yes it is added like i told in the first post ...
> 
> OK, can you send us the command that's failing?
> 
> Elfyn
> 
> > > > But when i installed cygwin, i installed all
> the
> > > > packages ...
> > > > And even if this package was not installed ,
> why
> > > the
> > > > file Xm.h is not found ?
> > > > I see it in /usr/X11R6/include/Xm/
> > > >
> > > > I'm gonna try your solution
> > >
> > > If it's already there, then the pre-processor is
> not
> > > being given the directory
> > > `/usr/X11R6/include', it would seem.
> > >
> > > When compiling the file(s) that require this
> header,
> > > are you adding
> > > `-I/usr/X11R6/include' ?
> 
> -- 
> Elfyn McBratney, EMCB
> http://www.emcb.co.uk
> [EMAIL PROTECTED]
> 
>  

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



Re: find -exec oddity

2003-07-08 Thread Ken Dibble


Randall R Schulz wrote:

Ken,

At 16:38 2003-07-07, Ken Dibble wrote:

Ok, I'm an idiot.  I've looked in the FAQ, searched the mail lists
and checked sundry Unix sources (no, not the source code).


Well, I doubt greatly that you're an idiot. Confusion is the prelude 
to enlightenment, after all...

(Compare that with Eudora whose "mood watch" feature seems to think 
the first sentence of the previous paragraph is some kind of insult!)

However, we'd all appreciate it if you'd figure out how to use your 
mail client to make sure text attachments are not placed in-line with 
the message content. Not to do so defeats the purpose of attaching the 
"cygcheck" output, which is to make list searching meaningful by 
preventing the false hits that occur because of all the package and 
file names that are included in the cygcheck output.


I can't make sense of this.

$ find ./ -mtime -1  -print | wc -l
   55
$ find ./ -mtime -1 -ls | wc -l
   55
$ find ./ -mmin -1440 -ls | wc -l
   55
$ find ./ -mtime -1  -exec ls -l  '{}' \; | wc -l
 2046


Look carefully at the man page for find where the "-ls" option is 
described. It says that "-ls" is equivalent to running "ls" with the 
options "-dils". The salient option here is "-d" which suppresses the 
listing of a directory's contents when a directory is an explicit 
argument to ls. You're not including "-d" in your invocation of ls, so 
every directory produced by find contributes its entire contents to 
the output of ls that is subsequently counted by "wc -l".


$ find ./ -mtime -1  -exec ls -l  {} \; | wc -l
 2046
$ find ./ -mmin -1440  -exec ls -l  {} \; | wc -l
 2046
and just for grins

$ find ./ -print | wc -l
31701
$ find ./ -mtime -10 -print | wc -l
  285
$ find ./ -mtime -100 -print | wc -l
15590
The oddity (bug?) appears to be tied to -exec somehow.


No. The "-exec" option is doing just what you ask and just what it 
should.


Attached is cygcheck -c -v -s.


As above.


I can't attach the file lists (unpiped find output) as the message 
size then exceeds 100K and the redhat mailserver bounces it.


No matter. It's not needed.


Any help would be appreciated.


I hope my assumption about the problem is correct (file count 
discrepancies), since you didn't really say what it was that perplexed 
you.

My mistake on the attachment, it was originally sent as an attachment, 
along with the file lists, unfortunately the whole message bounced for size.

Your assumption about directories is a good guess, however seemingly 
only partially correct.

Here is the output today:

$ find ./ -mtime -1  -print
./
./files to backup.txt
./idiot.txt
and

$ find ./ -mtime -1  -print  -exec ls -l '{}' \;
./
total 6195
drwx--+   3 Ken Dibb None0 Jun 25 07:19 Ad Aware
-rwx--+   1 Ken Dibb None  981 Apr 22 09:34 Belarc Advisor 
Current
rofile.txt
drwx--+   3 Ken Dibb None0 Jun 25 07:19 CVS
drwx--+   2 Ken Dibb None0 Jun 25 07:54 Corel User Files
drwx--+   2 Ken Dibb None0 Jun 25 07:32 DMTEdit
drwx--+   3 Ken Dibb None0 Jun 25 07:32 Free Agent
drwx--+   2 Ken Dibb None0 Jun 25 07:33 Mac Desktop
drwx--+   2 Ken Dibb None0 Jun 30 11:48 My Archives
dr-x--+   2 Ken Dibb None0 Jun 25 07:33 My Music
dr-x--+   2 Ken Dibb None0 Jun 25 07:33 My Pictures
drwx--+   2 Ken Dibb None0 Jan 28 19:28 My eBooks
drwx--+   3 Ken Dibb None0 Jun 25 07:21 TransMac
-rwx--+   1 Ken Dibb None   234752 Apr 19 08:00 all-nbuser-faqs.html
-rwx--+   1 Ken Dibb None22672 Apr 24 20:01 alpha roster.wpd
-rwx--+   1 Ken Dibb None  4295398 May 30 07:21 bad_modem.wav
-rwx--+   1 Ken Dibb None 5396 Jun 27 11:57 
create_studentdata_db.
t
-rwx--+   1 Ken Dibb None 5365 Jun 14 14:19 
create_studentdata_db.
t~
-rwx--+   1 Ken Dibb None   322424 May  6 13:59 cygwin-xfree-ug.pdf
-rwx--+   1 Ken Dibb None   81 Mar 30 13:56 desktop.ini
drwx--+   3 Ken Dibb None0 Jun 27 02:36 disclib
-rwx--+   1 Ken Dibb None 6336 Apr  9 10:13 dish_list.rtf
drwx--+   2 Ken Dibb None0 Jun 25 07:32 dmtlink
-rwx--+   1 Ken Dibb None  356 Jun 27 12:26 drop_data.txt
-rwx--+   1 Ken Dibb None   369749 Jul  1 10:20 eclipse-overview.pdf
-rw-r--r--1 Ken Dibb None   55 Jul  7 14:02 files to backup.txt
drwx--+   2 Ken Dibb None0 Jun 25 07:33 ftp commander
-rwx--+   1 Ken Dibb None  301 Jul  6 20:29 ftp_scripts.txt
-rwx--+   1 Ken Dibb None  828 Jul  7 12:35 idiot.txt
-rwx--+   1 Ken Dibb None33768 May 30 07:43 javalicious.pdf
-rwx--+   1 Ken Dibb None   438533 May 31 10:17 
jfreereport-0.8.3-intr
pdf
-rwx--+   1 Ken Dibb None10874 Jul  6 06:14 martin.zip
-rwx--+   1 Ken Dibb None   98 Jun 30 17:54 md5s.txt
-rwx--+   1 Ken Dibb None  

RE: php-mysql-cygwin how to - have_crypt = YES ? have_openssl? mysqld under cygwin?

2003-07-08 Thread Ralf Hauser
> -Original Message-
> From: Elfyn McBratney [mailto:[EMAIL PROTECTED]
> Sent: Dienstag, 8. Juli 2003 12:00
> > [mysql client]
> >
> > Wanna try this myself sometime. Did you have to tweak it much or did it
> > compile out of the box?
> >
> > Andrew.
>
> From memory (haven't compiled MySQL on Cygwin for a while) it
> compiles fine, the
> only problem was, and perhaps still is, with the server.  The
> libraries work
> fine, too. I promised myself that I'd try and get it
> working...But so little
> time and so many things to do. :-)
>
> All it needs is a straight
>
>   ./configure --without-server --prefix=/usr
>   make; make install
Could you please check in this mysql client you compiled with "show
variables;" whether the "have_crypt" and the "have_openssl" are "NO" or
"YES".
If "YES", you might be able to get state-of-the art password verification
working in mysql under windows too!
see the use of the "encrypt()"  as per http://bugs.mysql.com/bug.php?id=784.

mysql> update TBL_USER set password= encrypt('holderio', '$1$saltsalt$')
where login= 'ameyer';
mysql> select encrypt( 'holderio', password) = password from TBL_USER where
login='ameyer';

P.S.: hopefully this solves it and we won't have to wait for the first
successful compilation of mysqld under cygwin.


--
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: mysqlc (was RE: php-mysql-cygwin how to)

2003-07-08 Thread Gerrit P. Haase
Hello Elfyn,

>>> I decided to drop what I'm working on and play with MySQL this afternoon ;-)

>>> If all goes well and I can get everything par the server working I'll see if
>>> it/they (client and libs) would be accepted as packages..then tackle the server.

>> The server will build fine and I was also able to run the tests, but
>> most of the time all tests are failing, but sometimes one or another
>> succeeds.  Please relibtoolize before configuring, else there will be no
>> shared libraries.

> Already done :-)

>> I can send you my patches this evening (for the 4.1.0-alpha version).

> They'd be useful, so sure, but I was hesatant about 4.0 let alone 4.1 . I'm
> still thinking about using 3.23 .

3.23.x doesn't need patches at the source.

I had many problems relibtoolizing, so ended up building the DLL's
manually (works also fine).  I have my old 3.23.43 build online (static
libs only, including the server, it still is running well on very old
Cygwin DLL's, say pre 1.3.12, IIRC it was compiled with 1.3.10, and also
is running on 1.5, besides the fact that it fails 7 from 8 tests.  The
failings are randomly, one time the first test succeeds, anther time the
second and so on.

I would send you the URL on request in PM.


4.0.x is still a mess regarding libtoolizing with newer libtool and
newer autotools than they used at MySQL.com, 4.1.x was the first release
which makes no problems with the build tools and only minor problems
with the sources.



Gerrit
-- 
=^..^=


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



Re: find -exec oddity

2003-07-08 Thread Brian Dessent
Ken Dibble wrote:

> As you can see, there are indeed some directories, but a whole bunch of
> files
> which shouldn't be there as well.
> 
> The big question now is why are some files considered directories?

I don't see the confusion here.  You're feeding to "ls -l" the
parameters "./" , "./files to backup.txt" , and "./idiot.txt" which are
the results of find.  "./" is a directory, so ls prints its contents not
its name, that's why you see listings for all the files in the current
directory, followed by listings for "files to backup.txt" and
"idiot.txt".  When you add "-d" to ls, you get just three lines of
output, corresponding to the three things that find found.  How is this
confusing?

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: TERM problems

2003-07-08 Thread jurgen . defurne
Thanks,

This works much better, but btw. do you also have an idea how
to specify bold fonts ? I tried "Lucida Console-Bold-18", "..-18-Bold",
using a B only, searched in the fonts. It should be possible,
because the standard DOS box can be configured for bold fonts.

Regards,

Jurgen










Brian Dessent <[EMAIL PROTECTED]>
Sent by: 
[EMAIL PROTECTED]
07/08/2003 10:37 AM

 
To: [EMAIL PROTECTED]
cc: (bcc: Jurgen Defurne/BRG/CE/PHILIPS)
Subject:Re: TERM problems
Classification: 



[EMAIL PROTECTED] wrote:

> I'd like to use rxvt, but without an X server, its fonts are ugly. I 
like
> bold non-serif fonts, and the only thing I can get are thin serif
> fonts.
> 
> Does any body have some hints how to fix this ?

You can supply any Windows font name for use, i.e. '-fn "Lucida
Console-11"'.  Try also shift-keypad-plus/minus to select different
fonts while running.

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/





--
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: php-mysql-cygwin how to

2003-07-08 Thread Gerrit P. Haase
Hello Max,

> 1) Underscore mismatches when using the x86 optimized assembler
> implementation of string functions. Workaround: --disable-assembler


> 2) Missing $(EXEEXT) causes make to invoke an implicit rule, generating a
> huge amount of nonsensical errors. Patch:
> --- mysql-4.0.13/sql/Makefile.am.orig 2003-06-17 12:24:57.0 +0100
> +++ mysql-4.0.13/sql/Makefile.am 2003-06-17 12:25:10.0 +0100
> @@ -114,8 +114,8 @@
>$(CXXCOMPILE) $(LM_CFLAGS) -c $<
>
>  lex_hash.h: lex.h gen_lex_hash.cc sql_yacc.h
> -  $(MAKE) gen_lex_hash
> -  ./gen_lex_hash > $@
> +  $(MAKE) gen_lex_hash$(EXEEXT)
> +  ./gen_lex_hash$(EXEEXT) > $@
>
>  # Hack to ensure that lex_hash.h is built early
>  sql_lex.o: lex_hash.h

This one is really the most annoying one...


> 3) The long standing server problem. It seems like the complex C++ is
> confusing gcc?

No, it is a problem with the Cygwin/MySQL socket code.  Nothing works
with 1.3.22, similar as it is with Apache.  The older versions, e.g.
1.3.10 works better, but still not without crashes.

After Corinna fixed the code, so Apache is running without problems on
1.5 now, MySQL still crashes randomly (same behaviour as with 1.3.10),
maybe it crashes more often as before, well it is completely unstable
and nor usable as database server.


Gerrit
-- 
=^..^=


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



Re: Pb including Xm.h

2003-07-08 Thread Elfyn McBratney
On Tue, 8 Jul 2003, [iso-8859-1] philippe guillaume wrote:

> here it is :
> gcc -02 -gddb -Iblabla/include -c myprog.c


Doesn't look like /usr/X11R6/include , does it? You need to add
`-I/usr/X11R6/include' to that above command line.

Elfyn

-- 
Elfyn McBratney, EMCB
http://www.emcb.co.uk
[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: Pb including Xm.h

2003-07-08 Thread philippe guillaume
i think i found why it does not work ...
there's two same-named files ! 
Myprog.h and myprog.h !!!
Cygwin does not understand that this is two different
files apparently ...

oh la la la la :-(


 --- Elfyn McBratney <[EMAIL PROTECTED]> a écrit : > On
Tue, 8 Jul 2003, [iso-8859-1] philippe guillaume
> wrote:
> 
> > yes it is added like i told in the first post ...
> 
> OK, can you send us the command that's failing?
> 
> Elfyn
> 
> > > > But when i installed cygwin, i installed all
> the
> > > > packages ...
> > > > And even if this package was not installed ,
> why
> > > the
> > > > file Xm.h is not found ?
> > > > I see it in /usr/X11R6/include/Xm/
> > > >
> > > > I'm gonna try your solution
> > >
> > > If it's already there, then the pre-processor is
> not
> > > being given the directory
> > > `/usr/X11R6/include', it would seem.
> > >
> > > When compiling the file(s) that require this
> header,
> > > are you adding
> > > `-I/usr/X11R6/include' ?
> 
> -- 
> Elfyn McBratney, EMCB
> http://www.emcb.co.uk
> [EMAIL PROTECTED]
> 
>  

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



Re: users and startup scripts (FAQ alert)

2003-07-08 Thread Larry Hall
andrew brian clegg wrote:

On Mon, 7 Jul 2003, Igor Pechtchanski wrote:


The preferred method for switching users is by running "ssh
[EMAIL PROTECTED]" (after setting up sshd, obviously).  I'm guessing the
above FAQ entry should be updated as well.


I hope this isn't rehashing old discussions, but I'd always assumed from 
the number of times people talk about using ssh to switch users that there 
was something inherently disadvantageous about using (say)

runas /user:Administrator "c:\cygwin\bin\bash --login -i"

or setting up a shortcut with the 'run as different user' checkbox set (in 
Win2K; I think the semantics are slightly different in XP IIRC).

But now I've tried it, it works fine for me... Is the only drawback that 
this doesn't work in DOS versions of Windows, or is there some other 
reason why it's not recommended?


This list tends to recommend Cygwin alternatives, although I've seen
the 'runas' approach mentioned on this list as well.  The only negative
I can see to using it would be if you're launching it from a Cygwin
shell and 'tty' is set in your CYGWIN environment variable.  In that case,
the output is garbled due to Cygwin's use of pipes for I/O handles.
Otherwise, if you prefer it, use it.
--
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: TERM problems

2003-07-08 Thread Brian Dessent
[EMAIL PROTECTED] wrote:

> This works much better, but btw. do you also have an idea how
> to specify bold fonts ? I tried "Lucida Console-Bold-18", "..-18-Bold",
> using a B only, searched in the fonts. It should be possible,
> because the standard DOS box can be configured for bold fonts.

After a little fooling around (and reviewing
/usr/doc/Cygwin/rxvt*README) I found this to work:

rxvt -fg Gray -bg black -fn '-*-lucida console-bold-r-*-*-12' -e bash
-li

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: TERM problems

2003-07-08 Thread jurgen . defurne
Hey,

Works a treat!

I also found that rxvt reads the ~/.Xresources file, so by specifying

Rxvt*font:-*-lucida console-bold-r-*-*-18

the selected font does not need to be specified on the command
line.

Regards,

Jurgen











Brian Dessent <[EMAIL PROTECTED]>
Sent by: 
[EMAIL PROTECTED]
07/08/2003 03:03 PM

 
To: [EMAIL PROTECTED]
cc: (bcc: Jurgen Defurne/BRG/CE/PHILIPS)
Subject:Re: TERM problems
Classification: 



[EMAIL PROTECTED] wrote:

> This works much better, but btw. do you also have an idea how
> to specify bold fonts ? I tried "Lucida Console-Bold-18", "..-18-Bold",
> using a B only, searched in the fonts. It should be possible,
> because the standard DOS box can be configured for bold fonts.

After a little fooling around (and reviewing
/usr/doc/Cygwin/rxvt*README) I found this to work:

rxvt -fg Gray -bg black -fn '-*-lucida console-bold-r-*-*-12' -e bash
-li

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/





--
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: CRLF to LF Issue

2003-07-08 Thread Dean Scarff


On July 3 at 2003 0:49, "Hannu E K Nevalainen (garbage mail)" wrote:

> 
> FYI... :-}
> 
> I've been in this situation since 1985 or so... (Amiga user since 
> then.AmigaOS uses LF EOL. Also been using MS "OS'es" since before 
> '85).
> "My way" has been:
> 1) Keep each OS clean of files not having the default line ending
> 2) Make sure to always CONVERT files _at the very moment_ they're
> transferred
> 

Im sure that must be convenient ;)

> Sidenote:
> There is several ways to accomplish "2)" on the Amiga:
> a) Enable CrossDOS (AmigaDOS file system for vfat) internal 
> conversion b) dos2unix-like utilities
> c) Use an editor that manages files undependent of EOL style

Bingo.  If you're using Cygwin you've got access to vim, emacs, nano, 
all of which support variations to the line terminator.  Richard 
mentioned before that "The source code is designed to ONLY be used in 
MS-Windows, so I'm not interested in porting between Unix/MS-
Windows."  There's plenty of good editors (especially the ones 
intended for development) for windows that can handle LF as EOL.  
ConTEXT is quite nice if you go for 'free'/shareware.

I use LF for all my sources, whether they're unix or not.  As (I 
think?) you say, internal CRLF'ing and vice versa is just going to 
have problems where internal conversion doesn't behave as the user 
expects (read: cant read the user's mind).

Cheers,
Dean Scarff


 


--
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: posix and win32 enviornment

2003-07-08 Thread Andrew DeFaria
Shankar Unni wrote:

Igor Pechtchanski wrote:

[...] you'll be using the MinGW libraries, and your  program will not 
understand POSIX paths (i.e., you'll have to use Win32  ones).
Well, to be totally, utterly nitpicky, I believe "/WinNT/System32" is 
a valid POSIX filename which will be understood by Win32 programs as 
well (assuming that their current drive is "C:" :-). 
And also assuming that your Windows installation is in WinNT. With XP 
that's C:\Windows!

(Hey you were the one that started this "totally, utterly nitpicky" 
stuff :-) )



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


error running cygcheck 1.32

2003-07-08 Thread Kevin Van Workum
I have cygcheck version 1.32. If I run cygcheck -s, a window titled
"Program Error" pops up. The window says "cygcheck.exe has generated
errors and will be closed by Windows. You will need to restart the
program. An error log is being created." cygcheck stops printing
information after the PATH is printed. The output is below.

What causes this problem?
How can I fix it?
Where is this error log created?

<>

Cygwin Win95/NT Configuration Diagnostics
Current System Time: Tue Jul 08 09:51:11 2003

Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 3

Path:   c:\cygwin\usr\X11R6\bin
c:\cygwin\usr\local\bin
c:\cygwin\opt\kde2\bin
c:\cygwin\opt\kde2\lib
c:\cygwin\usr\local\lib\qt2\bin
c:\cygwin\usr\local\bin
c:\cygwin\bin
c:\cygwin\bin
c:\WINNT\system32
c:\WINNT
c:\WINNT\System32\Wbem
c:\Program Files\Common Files\Adaptec Shared\System
c:\matlab6p5\bin\win32
c:\cygwin\bin
c:\cygwin\usr\X11R6\bin
c:\cygwin\home\vanw\bin
.

<>

Kevin Van Workum, PhD
X-Replace-Address: yes
reply-to: vanw a_t nist d_o_t gov


--
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: php-mysql-cygwin how to

2003-07-08 Thread Bill McCormick
Andrew,

I got the latest 4.0.13 src (see the link below) and then configured and
compiled:

$
./configure --without-server --prefix=/usr/local/mysql --with-unix-socket-pa
th=/usr/local/mysql/tmp/mysql.sock
$ make; make install

See my original post:
http://sources.redhat.com/ml/cygwin/2003-07/msg00163.html


Mysql src link:
http://www.mysql.com/downloads/download.php?file=Downloads%2FMySQL-4.0%2Fmys
ql-4.0.13.tar.gz&mirror=ftp%3A%2F%2Fmirror.mcs.anl.gov%2Fpub%2Fmysql%2F


It seems that people are "dropping what they're working on" to get more into
this, so let the group know how it goes for you.


Bill

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf
> Of andrew brian clegg
> Sent: Tuesday, July 08, 2003 4:52 AM
> To: [EMAIL PROTECTED]
> Subject: RE: php-mysql-cygwin how to
>
>
>
> On Mon, 7 Jul 2003, Bill McCormick wrote:
>
> [mysql client]
>
> > I compiled it myself from the linux src I got from mysql.com.
> It seems to
> > work but maybe there's a more established way.
>
> Wanna try this myself sometime. Did you have to tweak it much or did it
> compile out of the box?
>
> Andrew.
>
>
>
> --
> 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/
>
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.491 / Virus Database: 290 - Release Date: 6/18/2003
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.491 / Virus Database: 290 - Release Date: 6/18/2003


--
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: posix and win32 enviornment

2003-07-08 Thread Randall R Schulz
Andrew,

At 14:48 2003-07-07, Andrew DeFaria wrote:
Shankar Unni wrote:

Igor Pechtchanski wrote:

[...] you'll be using the MinGW libraries, and your  program will 
not understand POSIX paths (i.e., you'll have to use Win32  ones).
Well, to be totally, utterly nitpicky, I believe "/WinNT/System32" is 
a valid POSIX filename which will be understood by Win32 programs as 
well (assuming that their current drive is "C:" :-).
And also assuming that your Windows installation is in WinNT. With XP 
that's C:\Windows!
For Windows 2000 the directory name is also "/WinNT" or "/WINNT".


(Hey you were the one that started this "totally, utterly nitpicky" 
stuff :-) )
And it ain't over yet.

%SystemRoot% need not be on the "C:" drive. On my system, it's on "D:", e.g.

Randall Schulz 

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


Advice on where to look to solve a problem

2003-07-08 Thread Steve
Hi;

I'm on windows 2000 with cygwin.

I need to make a script that will check all of the file modified dates 
on all of the files in a list of directories.   If any of these dates is 
older then the current date I want to print the name of the file and the 
date to a file.

I'm new to bash scripting and many unix commands.  What are the commands 
that I want to loook at that could do these things for me?

Thanks in advance

Steve



--
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: mysqlc (was RE: php-mysql-cygwin how to)

2003-07-08 Thread andrew brian clegg



On Tue, 8 Jul 2003, Gerrit P. Haase wrote:

> >> Although having said that, I don't think MySQL 4.1 Alpha ships with the
> >> dodgy dll -- not sure what they've done, haven't investigated it properly
> >> yet.
> 
> Weird, it should really be compiled and included with the netrelease.

Just had a look in the 4.1 for Windows distribution
(mysql-4.1.0-alpha.zip) and there's no mysqlc.exe at all, just the
standard mysql.exe without the readline functionality. Not sure what's
going on there.

Andrew.



--
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: Advice on where to look to solve a problem

2003-07-08 Thread Elfyn McBratney
On Tue, 8 Jul 2003, Steve wrote:

> Hi;
>
> I'm on windows 2000 with cygwin.
>
> I need to make a script that will check all of the file modified dates
> on all of the files in a list of directories.   If any of these dates is
> older then the current date I want to print the name of the file and the
> date to a file.
>
> I'm new to bash scripting and many unix commands.  What are the commands
> that I want to loook at that could do these things for me?

`man find'
`man date'
`man bash'

There's no easy way to explain it in a nutshell, as you'll have to script the
expressions to meet your criteria. Basically, `date' will give you a date
format, `find' has options to find files according to modification time (mtime)
and you'll need bash (or ash) to script it.

Alas, this mailing list is for Cygwin problems and questions etc, so you'll need
to ask another forum/list for extra help as needed.

HTH,
Elfyn

-- 
Elfyn McBratney, EMCB
http://www.emcb.co.uk
[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: TERM problems

2003-07-08 Thread Igor Pechtchanski
On Tue, 8 Jul 2003, poff wrote:

> On Tue, Jul 08, 2003 at 01:37:49AM -0700, Brian Dessent wrote:
> > Console-11"'.  Try also shift-keypad-plus/minus to select different
> > fonts while running.
>
> I found a nice font with shift_kp+ * 2.
>
> How can I specify rxvt to load this automatically?
>
> Thanks,
> P.

According to the source (defaultfont.h), rxvt loads with a "7x14" font by
default.  Using Shift-KP_Add from the start goes through "8x13", "8x16",
"10x20", and "12x24", in that order.  Using Shift-KP_Subtract from the
start goes through "6x13" and "6x10".  So, for the font that you liked,
you could use "rxvt -fn 8x16" plus whatever other flags you give to rxvt.
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!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton


--
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: mysqlc (was RE: php-mysql-cygwin how to)

2003-07-08 Thread Elfyn McBratney
On Tue, 8 Jul 2003, andrew brian clegg wrote:

> On Tue, 8 Jul 2003, Gerrit P. Haase wrote:
>
> > >> Although having said that, I don't think MySQL 4.1 Alpha ships with the
> > >> dodgy dll -- not sure what they've done, haven't investigated it properly
> > >> yet.
> >
> > Weird, it should really be compiled and included with the netrelease.
>
> Just had a look in the 4.1 for Windows distribution
> (mysql-4.1.0-alpha.zip) and there's no mysqlc.exe at all, just the
> standard mysql.exe without the readline functionality. Not sure what's
> going on there.

Apparently, it's in the latest 4.0 release, as they're now "publicly"
distribution the source for the Cygwin DLL. So, I'd guess it's in the 4.0
release..

Still no luck with the server. :-(

Elfyn

-- 
Elfyn McBratney, EMCB
http://www.emcb.co.uk
[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: Advice on where to look to solve a problem

2003-07-08 Thread Randall R Schulz
Steve,

This is elementary Unix script programming. Well, maybe intermediate scripting.

The "find" command will do everything you want. Read the man page ("man 
find"). It's chock full 'o options.

I do suggest you clarify your file age criteria. File time stamps have 
approximately second-level resolution (though find gives you only 
minutes or days as an age specification) so saying "older than the 
current date" sounds a little ambiguous. (No doubt you know what you 
mean. Just be sure you get it straight before writing your script or 
developing your find incantation.)

Find also allows you to use the modification time of an existing file 
as the age reference. In conjunction with this, you might want to 
review the capabilities of the "touch" command, which allows to you set 
the modification time of a file to an arbitrary value.

Good luck.

Randall Schulz

At 07:31 2003-07-08, Steve wrote:
Hi;

I'm on windows 2000 with cygwin.

I need to make a script that will check all of the file modified dates 
on all of the files in a list of directories.   If any of these dates 
is older then the current date I want to print the name of the file 
and the date to a file.

I'm new to bash scripting and many unix commands.  What are the 
commands that I want to loook at that could do these things for me?

Thanks in advance

Steve


--
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: Advice on where to look to solve a problem

2003-07-08 Thread Brian Dessent
Steve wrote:

> I need to make a script that will check all of the file modified dates
> on all of the files in a list of directories.   If any of these dates is
> older then the current date I want to print the name of the file and the
> date to a file.
> 
> I'm new to bash scripting and many unix commands.  What are the commands
> that I want to loook at that could do these things for me?

I think the find command should be able to do what you want.  For
example "find . -mtime +1" should give you a list of files that are
older than 24 hours (based on modification date.)  You didn't say
exactly what you meant by "older than the current date" but you may also
be able to use -daystart if you want files not modified today, rather
than in the last 24 hours.  

For printing the names, you can use "-ls" to give a rather verbose
listing, or append "| xargs ls -l" to get an "ls -l" listing for each
find result... you may want to read the other thread about doing ls -l
on find results, either add "-type f" or use "ls -ld" otherwise you'll
list contents of directories rather then their names.  You can also use
"-printf" and specify whatever output format you want.

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: php-mysql-cygwin how to

2003-07-08 Thread Max Bowsher
Gerrit P. Haase wrote:
> Hello Max,
>> 3) The long standing server problem. It seems like the complex C++ is
>> confusing gcc?
>
> No, it is a problem with the Cygwin/MySQL socket code.  Nothing works
> with 1.3.22, similar as it is with Apache.  The older versions, e.g.
> 1.3.10 works better, but still not without crashes.
>
> After Corinna fixed the code, so Apache is running without problems on
> 1.5 now, MySQL still crashes randomly (same behaviour as with 1.3.10),
> maybe it crashes more often as before, well it is completely unstable
> and nor usable as database server.

Huh? I get lots of "undefined reference to
`__static_initialization_and_destruction_0(int, int)'" errors during
*linking*. I never get a server binary to test.

N.B. This is with 4.0.13  - you mentioned 4.1-alpha before, perhaps that is
why we see different problems.


Max.


--
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: posix and win32 enviornment

2003-07-08 Thread Igor Pechtchanski
On Mon, 7 Jul 2003, Andrew DeFaria wrote:

> Shankar Unni wrote:
>
> > Igor Pechtchanski wrote:
> >
> >> [...] you'll be using the MinGW libraries, and your  program will not
> >> understand POSIX paths (i.e., you'll have to use Win32  ones).
> >
> > Well, to be totally, utterly nitpicky, I believe "/WinNT/System32" is
> > a valid POSIX filename which will be understood by Win32 programs as
> > well (assuming that their current drive is "C:" :-).
>
> And also assuming that your Windows installation is in WinNT. With XP
> that's C:\Windows!
>
> (Hey you were the one that started this "totally, utterly nitpicky"
> stuff :-) )

Upping the level of nitpicking (and off-topicness) here, I don't see where
Shankar assumes that the Windows installation is WinNT.  In fact, Win98
will happily understand (and access, if it exists) the /WinNT/System32
directory (or file, as may well be).  The only thing assumed here is that
the directory is on the C: drive. :-)
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!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton


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



[ANNOUNCEMENT] Updated: gawk-3.1.3-1

2003-07-08 Thread Corinna Vinschen
I've updated the version of GNU awk to 3.1.3-1.

This is a official release update.  The Cygwin release is based on the
original sources.  Besides several bugfixes, gawk-3.1.3 adds the
following new features:

- C-style switch statements are available.

- Under Cygwin, output files were generated always in binmode (LF
  lineendings) in 3.1.2.
  With 3.1.3 output files are generated with the lineendings determined
  by the binmode/textmode flag of the underlying mount point.


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

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

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

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

[EMAIL PROTECTED]

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

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

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

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


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



Re: error running cygcheck 1.32

2003-07-08 Thread Igor Pechtchanski
On Tue, 8 Jul 2003, Kevin Van Workum wrote:

> I have cygcheck version 1.32. If I run cygcheck -s, a window titled
> "Program Error" pops up. The window says "cygcheck.exe has generated
> errors and will be closed by Windows. You will need to restart the
> program. An error log is being created." cygcheck stops printing
> information after the PATH is printed. The output is below.
>
> What causes this problem?
> How can I fix it?
> Where is this error log created?
>
> <>
>
> Cygwin Win95/NT Configuration Diagnostics
> Current System Time: Tue Jul 08 09:51:11 2003
>
> Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 3
>
> Path:   c:\cygwin\usr\X11R6\bin
> c:\cygwin\usr\local\bin
> c:\cygwin\opt\kde2\bin
> c:\cygwin\opt\kde2\lib
> c:\cygwin\usr\local\lib\qt2\bin
> c:\cygwin\usr\local\bin
> c:\cygwin\bin
> c:\cygwin\bin
> c:\WINNT\system32
> c:\WINNT
> c:\WINNT\System32\Wbem
> c:\Program Files\Common Files\Adaptec Shared\System
> c:\matlab6p5\bin\win32
> c:\cygwin\bin
> c:\cygwin\usr\X11R6\bin
> c:\cygwin\home\vanw\bin
> .
>
> <>
>
> Kevin Van Workum, PhD
> X-Replace-Address: yes
> reply-to: vanw a_t nist d_o_t gov

Kevin,

After printing the PATH, the later versions of cygcheck attempt to execute
"id.exe" to get user information.  For some reason this fails for you.
Can you try executing "id" and "CYGWIN=nontsec id" on the command line and
posting the output?  Try also running "cygcheck -s" under strace and
seeing what is the last system call cygcheck makes before it fails.
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!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton


--
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: proftpd hang (1.2.9rc1-2 on 1.3.22)

2003-07-08 Thread Jason Tishler
Bruno,

On Mon, Jul 07, 2003 at 08:25:55AM +0200, Grossniklaus Bruno wrote:
> Does the strace help? 

Send me the *entire* strace via private email and I will try to compare
it to one of mine.

> >BTW, does proftpd hang in the same way with latest Cygwin snapshot?
> 
> I tried now with: cygwin1-20030707.dll.bz2 (unpacked, replaced
> cygwin1.dll) Same result (hang)

Thanks for trying.

Jason

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

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



RE: mysqlc (was RE: php-mysql-cygwin how to)

2003-07-08 Thread Bill McCormick
Elfyn,

I compiled the 4.0.13 and I don't seem to have a mysqlc executable. What I
don't understand is why the mysqlc client that comes with the mysql win32
(which uses the cygwin dll) doesn't run in a cygwin bash shell. Even if it
did, it still doesn't get us to the point where we can use Perl and PHP
under Cygwin, right?

Also, why bother getting a server to run under Cygwin? It runs under Windows
just fine. Getting it to run under Cygwin under Windows seems like a lot of
busy work to little end. The only important thing is that the client works
so we can use the Perl DBI, PHP and other various client interfaces. Or am I
missing something?

Bill


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf
> Of Elfyn McBratney
> Sent: Tuesday, July 08, 2003 9:52 AM
> To: andrew brian clegg
> Cc: [EMAIL PROTECTED]
> Subject: Re: mysqlc (was RE: php-mysql-cygwin how to)
>
>
> On Tue, 8 Jul 2003, andrew brian clegg wrote:
>
> > On Tue, 8 Jul 2003, Gerrit P. Haase wrote:
> >
> > > >> Although having said that, I don't think MySQL 4.1 Alpha
> ships with the
> > > >> dodgy dll -- not sure what they've done, haven't
> investigated it properly
> > > >> yet.
> > >
> > > Weird, it should really be compiled and included with the netrelease.
> >
> > Just had a look in the 4.1 for Windows distribution
> > (mysql-4.1.0-alpha.zip) and there's no mysqlc.exe at all, just the
> > standard mysql.exe without the readline functionality. Not sure what's
> > going on there.
>
> Apparently, it's in the latest 4.0 release, as they're now "publicly"
> distribution the source for the Cygwin DLL. So, I'd guess it's in the 4.0
> release..
>
> Still no luck with the server. :-(
>
> Elfyn
>
> --
> Elfyn McBratney, EMCB
> http://www.emcb.co.uk
> [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/
>
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.491 / Virus Database: 290 - Release Date: 6/18/2003
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.491 / Virus Database: 290 - Release Date: 6/18/2003


--
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: mysqlc (was RE: php-mysql-cygwin how to)

2003-07-08 Thread Max Bowsher
Gerrit P. Haase wrote:
> 4.0.x is still a mess regarding libtoolizing with newer libtool and
> newer autotools than they used at MySQL.com, 4.1.x was the first release
> which makes no problems with the build tools and only minor problems
> with the sources.

I obtained a cygmysqlclient-12.dll with no major difficulties from 4.0.13
(just the usual add -no-undefined to the link line, and "autoreconf -fiv").
So, 4.0.x is certainly viable (and simple, even) for client purposes.

Max.


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



OpenSSH + Public Key Auth + ntsec

2003-07-08 Thread John
Hello,

We are running openssh 3.5p1 with public key authentication working with
no problems.  Currently, we have sshd running with the following:
CYGWIN="binmode ntsec tty".

When making directories via ssh:
ssh  "mkdir /cygdrive/d/temp/test"
or when copying files via scp:
scp file.txt :/cygdrive/d/temp/test

the files are given the "ntsec" permissions from cygwin and are corrupting
the NTFS filesystem.  I have tried installing sshd with:
CYGWIN="binmode nontsec tty"

so that cygwin would stop using ntsec and start using inherited NTFS
permissions.  However public key authentication will not work with this
configuration.  What happens with this configuration is that I can connect
to the remote server but am immediately disconnected.  I think what is
happening is that sshd accepts the public key authentication but rejects
it when it sees world readable files in ~/.ssh since the directory was
initially created via nontsec.

I have also tried specifying CYGWIN="binmode nontsec tty" in .bashrc and
.bash_profile with sshd installed with "ntsec" so that making directories
with ssh.exe uses inherited NTFS permissions.  However, this does not work
for scp.exe.  I tried to write a wrapper script for scp.exe to set the
variables correctly, however that did not work.  I think I would have had
to associate all .exe files with bash.exe to get that to work.

I have digged through the list archives and can not seem to find anyone
using "nontsec" and public key authentication.  Is this possible?  Or are
any of my partial workarounds close to a full workaround with a little
help?  Essentially we need ssh working with public key authentication on a
usable NTFS filesystem.  I would like to avoid using ntsec if at all
possible.  Any advice is greatly appreciated.  I can reply with more
information if needed.  Thank you,

John


--
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: error running cygcheck 1.32

2003-07-08 Thread Kevin Van Workum
On Tue, 8 Jul 2003, Igor Pechtchanski wrote:

> On Tue, 8 Jul 2003, Kevin Van Workum wrote:
>
> > I have cygcheck version 1.32. If I run cygcheck -s, a window titled
> > "Program Error" pops up. The window says "cygcheck.exe has generated
> > errors and will be closed by Windows. You will need to restart the
> > program. An error log is being created." cygcheck stops printing
> > information after the PATH is printed. The output is below.
> >
> > What causes this problem?
> > How can I fix it?
> > Where is this error log created?
> >
> > <>
> >
> > Cygwin Win95/NT Configuration Diagnostics
> > Current System Time: Tue Jul 08 09:51:11 2003
> >
> > Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 3
> >
> > Path:   c:\cygwin\usr\X11R6\bin
> > c:\cygwin\usr\local\bin
> > c:\cygwin\opt\kde2\bin
> > c:\cygwin\opt\kde2\lib
> > c:\cygwin\usr\local\lib\qt2\bin
> > c:\cygwin\usr\local\bin
> > c:\cygwin\bin
> > c:\cygwin\bin
> > c:\WINNT\system32
> > c:\WINNT
> > c:\WINNT\System32\Wbem
> > c:\Program Files\Common Files\Adaptec Shared\System
> > c:\matlab6p5\bin\win32
> > c:\cygwin\bin
> > c:\cygwin\usr\X11R6\bin
> > c:\cygwin\home\vanw\bin
> > .
> >
> > <>
> >
> > Kevin Van Workum, PhD
> > X-Replace-Address: yes
> > reply-to: vanw a_t nist d_o_t gov
>
> Kevin,
>
> After printing the PATH, the later versions of cygcheck attempt to execute
> "id.exe" to get user information.  For some reason this fails for you.
> Can you try executing "id" and "CYGWIN=nontsec id" on the command line and
> posting the output?  Try also running "cygcheck -s" under strace and
> seeing what is the last system call cygcheck makes before it fails.
>   Igor

Running "id" prints:
uid=1003(vanw) gid=513(None) groups=513(None),544(Administrators),545(Users)

Running "CYGWIN=nontsec id" prints:
uid=1003(vanw) gid=513(None) groups=513(None)

I'm not sure what to look for in the strace output. Below is the
last few lines and attached is the entire output of "strace cygcheck -s".

   91   39372 [main] id 1884 etc::file_changed: fn[2] c:\cygwin\etc\group
res 0
   97   39469 [main] id 1884 etc::dir_changed: fn[2] c:\cygwin\etc\group
change_possible 0
   91   39560 [main] id 1884 etc::file_changed: fn[2] c:\cygwin\etc\group
res 0
  183   39743 [main] id 1884 writev: writev (1, 0x22FC70, 1)
   98   39841 [main] id 1884 fhandler_base::write: binary write
 2166   42007 [main] id 1884 fhandler_base::write: 77 = write (0x1008,
77)
  197   42204 [main] id 1884 writev: 77 = write (1, 0x22FC70, 1), errno 0
  101   42305 [main] id 1884 close: close (1)
  539   42844 [main] id 1884 fhandler_base::close: closing '/dev/pipew'
handle 0x60
  160   43004 [main] id 1884 close: 0 = close (1)
  182   43186 [main] id 1884 do_exit: do_exit (0)
   97   43283 [main] id 1884 void: 0x0 = signal (20, 0x1)
   92   43375 [main] id 1884 void: 0x0 = signal (1, 0x1)
   91   43466 [main] id 1884 void: 0x0 = signal (2, 0x1)
   89   43555 [main] id 1884 void: 0x0 = signal (3, 0x1)
  125   43680 [main] id 1884 fhandler_console::close: decremented
open_fhs, now 1
  113   43793 [main] id 1884 fhandler_console::close: decremented
open_fhs, now 0
  108   43901 [main] id 1884 sigproc_terminate: entering
   96   43997 [main] id 1884 proc_terminate: nchildren 0, nzombies 0
   91   44088 [main] id 1884 proc_terminate: leaving
  175   44263 [main] id 1884 __to_clock_t: dwHighDateTime 0, dwLowDateTime
0
   90   44353 [main] id 1884 __to_clock_t: total  
  106   44459 [main] id 1884 __to_clock_t: dwHighDateTime 0, dwLowDateTime
300432
   91   44550 [main] id 1884 __to_clock_t: total  001E
 1545   46095 [main] id 1884 _pinfo::exit: Calling ExitProcess 0

Kevin Van Workum, PhD**

Program name: c:\cygwin\bin\id.exe (2476)

App version:  1003.15, api: 0.63

DLL version:  1003.22, api: 0.78

DLL build:2003-03-18 09:20

OS version:   Windows NT-5.0

Heap size:402653184

Date/Time:2003-07-08 11:46:45

**

  6891589 [main] id 2476 environ_init: 0x100204D0: 
!C:=C:\cygwin\home\vanw\mail\archive

  1681757 [main] id 2476 environ_init: 0x10020500: ALLUSERSPROFILE=C:\Documents 
and Settings\All Users

  1461903 [main] id 2476 environ_init: 0x10020538: APPDATA=C:\Documents and 
Settings\vanw\Application Data

  1462049 [main] id 2476 environ_init: 0x10020008: COLORFGBG=0;default

  2012250 [main] id 2476 environ_init: 0x10020578: COLORTERM=rxvt-xpm

  1642414 [main] id 2476 environ_init: 0x10020590: COMMONPROGRAMFILES=C:\Program 
Files\Common Files

  1482562 [main] id 2476 environ_init: 0x100205C8: COMPUTERNAME=KIRKWOOD

  1452707 [main] id 2476 environ_init: 0x100205E8: 
COMSPEC=C:\WINNT\system32\cmd.exe

  1462853 [main] id 2476 environ_init: 0x10020610: CVSROOT=/home/vanw/cvsroot

  1583011 [main] 

Re: mysqlc (was RE: php-mysql-cygwin how to)

2003-07-08 Thread Gerrit P. Haase
Max schrieb:

> Gerrit P. Haase wrote:
>> 4.0.x is still a mess regarding libtoolizing with newer libtool and
>> newer autotools than they used at MySQL.com, 4.1.x was the first release
>> which makes no problems with the build tools and only minor problems
>> with the sources.

> I obtained a cygmysqlclient-12.dll with no major difficulties from 4.0.13
> (just the usual add -no-undefined to the link line, and "autoreconf -fiv").
> So, 4.0.x is certainly viable (and simple, even) for client purposes.

Yes?  Hmmm, probably it wass too late in the evening as I tried to do
this.  Well, lets talk with Elfyn, she wants to make a package ready.

Elfyn?


Gerrit
-- 
=^..^=


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



is mail or mailx ported to cygwin

2003-07-08 Thread Steve
Hi, I am on win 2000.

Did not notice mail or mailx in my installatin of cygwin.  I didn't find 
it on the cygwin site.

Is there a port of mail or mailx for cygwin.  If not, is there another 
scriptable email utility?

Steve



--
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: error running cygcheck 1.32

2003-07-08 Thread Igor Pechtchanski
On Tue, 8 Jul 2003, Kevin Van Workum wrote:

> On Tue, 8 Jul 2003, Igor Pechtchanski wrote:
>
> > On Tue, 8 Jul 2003, Kevin Van Workum wrote:
> >
> > > I have cygcheck version 1.32. If I run cygcheck -s, a window titled
> > > "Program Error" pops up. The window says "cygcheck.exe has generated
> > > errors and will be closed by Windows. You will need to restart the
> > > program. An error log is being created." cygcheck stops printing
> > > information after the PATH is printed. The output is below.
> > >
> > > What causes this problem?
> > > How can I fix it?
> > > Where is this error log created?
> > >
> > > <>
> > >[snip]
> >
> > Kevin,
> >
> > After printing the PATH, the later versions of cygcheck attempt to execute
> > "id.exe" to get user information.  For some reason this fails for you.
> > Can you try executing "id" and "CYGWIN=nontsec id" on the command line and
> > posting the output?  Try also running "cygcheck -s" under strace and
> > seeing what is the last system call cygcheck makes before it fails.
> >   Igor
>
> Running "id" prints:
> uid=1003(vanw) gid=513(None) groups=513(None),544(Administrators),545(Users)
>
> Running "CYGWIN=nontsec id" prints:
> uid=1003(vanw) gid=513(None) groups=513(None)

Well, this shows that you can run "id" with no crashes...

> I'm not sure what to look for in the strace output. Below is the
> last few lines and attached is the entire output of "strace cygcheck -s".
> [snip]
> Kevin Van Workum, PhD

The included strace lines look like a normal termination sequence...
However, the strace output you've attached says

   Program name: c:\cygwin\bin\id.exe (2476)

at the top, which means you ran "id", not "cygcheck -s" under strace.
The idea was to try to get "cygcheck -s" to crash under strace, and see
what the last action before the crash would be.  Could you also run
"cygcheck -s" under gdb and see if it crashes?  If it does, try to get a
backtrace.
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!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton


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



Does cygwin do "find" a little bit differently?

2003-07-08 Thread Steve
Hi;

I am on windows 2000 with cygwin.

My apologies if this isn't a cygwin issue.

I tried using find in cygwin with some examples from various 
documentation on the command.

I kept getting the same error messages.  I was wondering if the cygwin 
syntax was a bit different.

This is what I tried:



bash-2.05b$ pwd
/cygdrive/c/CUP/VRC
bash-2.05b$ find . -name "errors.txt" -print
FIND: Parameter format not correct
bash-2.05b$
Thanks in advance, and my apologies if this is not a cygwin issue

Steve



--
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: is mail or mailx ported to cygwin

2003-07-08 Thread Vince Hoffman
mutt should be fine to script with.

> -Original Message-
> From: Steve [mailto:[EMAIL PROTECTED]
> Sent: 08 July 2003 17:16
> To: [EMAIL PROTECTED]
> Subject: is mail or mailx ported to cygwin
> 
> 
> Hi, I am on win 2000.
> 
> Did not notice mail or mailx in my installatin of cygwin.  I 
> didn't find 
> it on the cygwin site.
> 
> Is there a port of mail or mailx for cygwin.  If not, is 
> there another 
> scriptable email utility?
> 
> Steve
> 
> 
> 
> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:   http://cygwin.com/problems.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
> 

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



Re: Does cygwin do "find" a little bit differently?

2003-07-08 Thread Don Sharp
Hi Steve

It is almost certain that you have MS Windows paths prior to cygwin/bin
in your PATH and so you are picking up MS' find rather than the Cygwin
find.

Try

which find

HTH

Don Sharp


Steve wrote:
> 
> Hi;
> 
> I am on windows 2000 with cygwin.
> 
> My apologies if this isn't a cygwin issue.
> 
> I tried using find in cygwin with some examples from various
> documentation on the command.
> 
> I kept getting the same error messages.  I was wondering if the cygwin
> syntax was a bit different.
> 
> This is what I tried:
> 
> bash-2.05b$ pwd
> /cygdrive/c/CUP/VRC
> bash-2.05b$ find . -name "errors.txt" -print
> FIND: Parameter format not correct
> bash-2.05b$
> 
> Thanks in advance, and my apologies if this is not a cygwin issue
> 
> Steve
> 
> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:   http://cygwin.com/problems.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/

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



RE: Does cygwin do "find" a little bit differently?

2003-07-08 Thread Bill McCormick
Steve,

It works for me:

[EMAIL PROTECTED]/cygdrive/c
$ pwd
/cygdrive/c

[EMAIL PROTECTED]/cygdrive/c
$ find . -name "boot.ini" -print
./boot.ini

Check your path env var or maybe update the find util.

Bill

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf
> Of Steve
> Sent: Tuesday, July 08, 2003 11:24 AM
> To: [EMAIL PROTECTED]
> Subject: Does cygwin do "find" a little bit differently?
> 
> 
> Hi;
> 
> I am on windows 2000 with cygwin.
> 
> My apologies if this isn't a cygwin issue.
> 
> I tried using find in cygwin with some examples from various 
> documentation on the command.
> 
> I kept getting the same error messages.  I was wondering if the cygwin 
> syntax was a bit different.
> 
> This is what I tried:
> 
> 
> 
> bash-2.05b$ pwd
> /cygdrive/c/CUP/VRC
> bash-2.05b$ find . -name "errors.txt" -print
> FIND: Parameter format not correct
> bash-2.05b$
> 
> 
> Thanks in advance, and my apologies if this is not a cygwin issue
> 
> Steve
> 
> 
> 
> --
> 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/
> 
> 
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.491 / Virus Database: 290 - Release Date: 6/18/2003
> 
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.491 / Virus Database: 290 - Release Date: 6/18/2003


--
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: is mail or mailx ported to cygwin

2003-07-08 Thread Igor Pechtchanski
On Tue, 8 Jul 2003, Steve wrote:

> Hi, I am on win 2000.
>
> Did not notice mail or mailx in my installatin of cygwin.  I didn't find
> it on the cygwin site.
>
> Is there a port of mail or mailx for cygwin.  If not, is there another
> scriptable email utility?
>
> Steve

Well, grepping  for "mail" produces:
   eximA Mail Transfer Agent.
   fetchmail   Remote mail retrieval and forwarding utility
   muttA text mode mail user agent
   pineA text based E-Mail and Newsreader. It includes Pico
   procmailprocmail mail processing program
   ssmtp   A minimal mail-transfer agent which forwards mail to an SMTP server

Also, do you Google? 
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!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton


--
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: Does cygwin do "find" a little bit differently?

2003-07-08 Thread Igor Pechtchanski
On Tue, 8 Jul 2003, Steve wrote:

> Hi;
> I am on windows 2000 with cygwin.
> My apologies if this isn't a cygwin issue.
>
> I tried using find in cygwin with some examples from various
> documentation on the command.
>
> I kept getting the same error messages.  I was wondering if the cygwin
> syntax was a bit different.
>
> This is what I tried:
>
> bash-2.05b$ pwd
> /cygdrive/c/CUP/VRC
> bash-2.05b$ find . -name "errors.txt" -print
> FIND: Parameter format not correct
> bash-2.05b$
>
> Thanks in advance, and my apologies if this is not a cygwin issue
> Steve


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!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton


--
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: OpenSSH + Public Key Auth + ntsec

2003-07-08 Thread andrew brian clegg



On Tue, 8 Jul 2003, John wrote:

> CYGWIN="binmode ntsec tty".
> 
> When making directories via ssh:
> ssh  "mkdir /cygdrive/d/temp/test"
> or when copying files via scp:
> scp file.txt :/cygdrive/d/temp/test
> 
> the files are given the "ntsec" permissions from cygwin and are corrupting
> the NTFS filesystem.  

Corrupting in what sense?

I use ssh with ntsec set on and haven't seen any corruption yet, I should
certainly like to know about it if it's likely to happen. Admittedly my
setup is with password rather than PK authentication though.

Andrew.



--
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: php-mysql-cygwin how to

2003-07-08 Thread Gerrit P. Haase
Hello Max,

> Gerrit P. Haase wrote:
>> Hello Max,
>>> 3) The long standing server problem. It seems like the complex C++ is
>>> confusing gcc?

>> No, it is a problem with the Cygwin/MySQL socket code.  Nothing works
>> with 1.3.22, similar as it is with Apache.  The older versions, e.g.
>> 1.3.10 works better, but still not without crashes.

>> After Corinna fixed the code, so Apache is running without problems on
>> 1.5 now, MySQL still crashes randomly (same behaviour as with 1.3.10),
>> maybe it crashes more often as before, well it is completely unstable
>> and nor usable as database server.

> Huh? I get lots of "undefined reference to
> `__static_initialization_and_destruction_0(int, int)'" errors during
> *linking*. I never get a server binary to test.

> N.B. This is with 4.0.13  - you mentioned 4.1-alpha before, perhaps that is
> why we see different problems.

This was easy :-)

That is the main part of the patch I promised to send Elfyn.

In short:  Comment out all '#pragma interface' and '#pragma implementation'
lines, it doesn't work on Cygwin.

And besides that, compiling and linking works well.


Gerrit
-- 
=^..^=


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



Re: error running cygcheck 1.32

2003-07-08 Thread Kevin Van Workum
On Tue, 8 Jul 2003, Igor Pechtchanski wrote:

> On Tue, 8 Jul 2003, Kevin Van Workum wrote:
>
> > On Tue, 8 Jul 2003, Igor Pechtchanski wrote:
> >
> > > On Tue, 8 Jul 2003, Kevin Van Workum wrote:
> > >
> > > > I have cygcheck version 1.32. If I run cygcheck -s, a window titled
> > > > "Program Error" pops up. The window says "cygcheck.exe has generated
> > > > errors and will be closed by Windows. You will need to restart the
> > > > program. An error log is being created." cygcheck stops printing
> > > > information after the PATH is printed. The output is below.
> > > >
> > > > What causes this problem?
> > > > How can I fix it?
> > > > Where is this error log created?
> > > >
> > > > <>
> > > >[snip]
> > >
> > > Kevin,
> > >
> > > After printing the PATH, the later versions of cygcheck attempt to execute
> > > "id.exe" to get user information.  For some reason this fails for you.
> > > Can you try executing "id" and "CYGWIN=nontsec id" on the command line and
> > > posting the output?  Try also running "cygcheck -s" under strace and
> > > seeing what is the last system call cygcheck makes before it fails.
> > >   Igor
> >
> > Running "id" prints:
> > uid=1003(vanw) gid=513(None) groups=513(None),544(Administrators),545(Users)
> >
> > Running "CYGWIN=nontsec id" prints:
> > uid=1003(vanw) gid=513(None) groups=513(None)
>
> Well, this shows that you can run "id" with no crashes...
>
> > I'm not sure what to look for in the strace output. Below is the
> > last few lines and attached is the entire output of "strace cygcheck -s".
> > [snip]
> > Kevin Van Workum, PhD
>
> The included strace lines look like a normal termination sequence...
> However, the strace output you've attached says
>
>Program name: c:\cygwin\bin\id.exe (2476)
>
> at the top, which means you ran "id", not "cygcheck -s" under strace.
> The idea was to try to get "cygcheck -s" to crash under strace, and see
> what the last action before the crash would be.

Yeah, I noticed that too, but I really did run "strace /usr/bin/cygcheck
-s".

> Could you also run "cygcheck -s" under gdb and see if it crashes?  If it
> does, try to get a backtrace.
>   Igor

After running "cygcheck -s" under gdb, it exited normally. I then realized
that the problem is with my terminal under X. Running "cygcheck
-s" from a non-X terminal works (rxvt). Does that sound plausible? Maybe
there's a problem with X?

Anyways, thanks for the help.

Kevin.

--
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: find -exec oddity

2003-07-08 Thread Ken Dibble


Brian Dessent wrote:

Ken Dibble wrote:

 

As you can see, there are indeed some directories, but a whole bunch of
files
which shouldn't be there as well.
The big question now is why are some files considered directories?
   

I don't see the confusion here.  You're feeding to "ls -l" the
parameters "./" , "./files to backup.txt" , and "./idiot.txt" which are
the results of find.  "./" is a directory, so ls prints its contents not
its name, that's why you see listings for all the files in the current
directory, followed by listings for "files to backup.txt" and
"idiot.txt".  When you add "-d" to ls, you get just three lines of
output, corresponding to the three things that find found.  How is this
confusing?
 

Brian,

Like I said, I'm an idiot.
It did not occur to me that "./" was being passed to "ls" and that ls 
was just doing
what it was told and listing the entire directory.

Thanks for helping me out.

Regards,
Ken
--
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: error running cygcheck 1.32

2003-07-08 Thread Igor Pechtchanski
On Tue, 8 Jul 2003, Kevin Van Workum wrote:

> On Tue, 8 Jul 2003, Igor Pechtchanski wrote:
> > On Tue, 8 Jul 2003, Kevin Van Workum wrote:
> > > On Tue, 8 Jul 2003, Igor Pechtchanski wrote:
> > > > On Tue, 8 Jul 2003, Kevin Van Workum wrote:
> > > >
> > > > > I have cygcheck version 1.32. If I run cygcheck -s, a window titled
> > > > > "Program Error" pops up. The window says "cygcheck.exe has generated
> > > > > errors and will be closed by Windows. You will need to restart the
> > > > > program. An error log is being created." cygcheck stops printing
> > > > > information after the PATH is printed. The output is below.
> > > > >
> > > > > What causes this problem?
> > > > > How can I fix it?
> > > > > Where is this error log created?
> > > > >
> > > > > <>
> > > > >[snip]
> > > >
> > > > Kevin,
> > > >
> > > > After printing the PATH, the later versions of cygcheck attempt to execute
> > > > "id.exe" to get user information.  For some reason this fails for you.
> > > > Can you try executing "id" and "CYGWIN=nontsec id" on the command line and
> > > > posting the output?  Try also running "cygcheck -s" under strace and
> > > > seeing what is the last system call cygcheck makes before it fails.
> > > >   Igor
> > >
> > > Running "id" prints:
> > > uid=1003(vanw) gid=513(None) groups=513(None),544(Administrators),545(Users)
> > >
> > > Running "CYGWIN=nontsec id" prints:
> > > uid=1003(vanw) gid=513(None) groups=513(None)
> >
> > Well, this shows that you can run "id" with no crashes...
> >
> > > I'm not sure what to look for in the strace output. Below is the
> > > last few lines and attached is the entire output of "strace cygcheck -s".
> > > [snip]
> > > Kevin Van Workum, PhD
> >
> > The included strace lines look like a normal termination sequence...
> > However, the strace output you've attached says
> >
> >Program name: c:\cygwin\bin\id.exe (2476)
> >
> > at the top, which means you ran "id", not "cygcheck -s" under strace.
> > The idea was to try to get "cygcheck -s" to crash under strace, and see
> > what the last action before the crash would be.
>
> Yeah, I noticed that too, but I really did run "strace /usr/bin/cygcheck
> -s".

Oops, I'm sorry, my bad.  Cygcheck is not a Cygwin program, so it won't
show up under strace...  So, what this tells us is that cygcheck runs just
fine under strace.

> > Could you also run "cygcheck -s" under gdb and see if it crashes?  If it
> > does, try to get a backtrace.
> >   Igor
>
> After running "cygcheck -s" under gdb, it exited normally. I then realized
> that the problem is with my terminal under X.  Running "cygcheck
> -s" from a non-X terminal works (rxvt). Does that sound plausible? Maybe
> there's a problem with X?
>
> Anyways, thanks for the help.
> Kevin.

Hmm...  Could you try running cygcheck from an rxvt in X mode (just set
DISPLAY before running rxvt), just to keep as many things fixed as
possible?  If that produces a problem, we know there's something wrong
with X.  If not, what terminal do you use?  What's your X server?  FWIW, I
run cygcheck from xterms under Exceed with not problems.

My first suspect would be the console allocation code (cygcheck will not
understand Cygwin ptys and will try to allocate a new console window when
running from X, but that should also happen in rxvt).  That's been
modified recently, IIRC, so it would help if you actually attached the
full output of "cygcheck -svr", so that we know at least which version of
the Cygwin DLL you have.
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!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton


--
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: error running cygcheck 1.32

2003-07-08 Thread Igor Pechtchanski
On Tue, 8 Jul 2003, Igor Pechtchanski wrote:

> [snip]
> My first suspect would be the console allocation code (cygcheck will not
> understand Cygwin ptys and will try to allocate a new console window when
> running from X, but that should also happen in rxvt).  That's been
> modified recently, IIRC, so it would help if you actually attached the
> full output of "cygcheck -svr", so that we know at least which version of
> the Cygwin DLL you have.
> Igor

Correction: AFAIR, until recently, cygcheck would not *propagate* Cygwin
ptys, and *id.exe* would try to allocate a new console window when running
from X.  This doesn't seem to happen now.  I should really re-read my
messages before sending...
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!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton


--
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: OpenSSH + Public Key Auth + ntsec

2003-07-08 Thread John
Here is the corruption as explained by my NT admin:

--- Begin ---
Our current ACL is:

(Owner): Administrators
Administrators : Full Control
SYSTEM : Full Control
ServiceAccount : Full Control

Currently, whatever ssh/scp touches - the following ACL gets applied:

(Owner): ServiceAccount
Administrators : none (no permissions set)
SYSTEM : none (no permissions set)
ServiceAccount : none (no permissions set)
CREATOR GROUP  : none (no permissions set)
CREATOR OWNER  : none (no permissions set)
Everyone   : Read/Write/Execute
None   : none (no permissions set)
--- End ---

Also, when trying to take ownership of the files in windows (as
administrator), we get the following error: "The security descriptor
structure is invalid".  The fix for this was to run xcacls.exe and that
allowed us to take ownership of files and directories.

Obviously, we're using ssh/scp for moving files around for an automated
process.  When files have been pushed to an ssh server, sometimes they are
not accessable by the user that scp'd them in the first place and our jobs
cannot continue.  When I first noticed this, I logged in via ssh and saw
these files were owned by the creator but had  perms.  I did a "chmod
0644" and our automated process was then able to continue.  This happens
sporadically on some of our machines running cygwin.  A work around for
this is to "chmod 0644 " for every file before we do any further
processing of the file (move, copy, open, etc).

So there are two issues, not sure if they are directly related.  One, the
ACL's are getting changed to a point where an administrator can't regain
ownership through normal methods.  And two, when files are written,
sometimes they get  perms.

We have reformatted these machines and done fresh installs and yet the
corruption happens all over again on every machine using cygwin & ssh.

If there were a way to not use ntsec and use inherited permissions via
nontsec, that would be stellar.

Thanks again,
John

On Tue, 8 Jul 2003, andrew brian clegg wrote:

>
>
>
> On Tue, 8 Jul 2003, John wrote:
>
> > CYGWIN="binmode ntsec tty".
> >
> > When making directories via ssh:
> > ssh  "mkdir /cygdrive/d/temp/test"
> > or when copying files via scp:
> > scp file.txt :/cygdrive/d/temp/test
> >
> > the files are given the "ntsec" permissions from cygwin and are corrupting
> > the NTFS filesystem.
>
> Corrupting in what sense?
>
> I use ssh with ntsec set on and haven't seen any corruption yet, I should
> certainly like to know about it if it's likely to happen. Admittedly my
> setup is with password rather than PK authentication though.
>
> Andrew.
>
>
>
> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:   http://cygwin.com/problems.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
>
>


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



send message/mail from command line

2003-07-08 Thread andrew goa
Is it possible to send messages/mail from the command line in cygwin. If so
point me to the manual please.

Andrew




--
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: send message/mail from command line

2003-07-08 Thread Igor Pechtchanski
On Tue, 8 Jul 2003, andrew goa wrote:

> Is it possible to send messages/mail from the command line in cygwin. If so
> point me to the manual please.
> Andrew

See  and the
appropriate READMEs.
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!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton


--
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: send message/mail from command line

2003-07-08 Thread Randall R Schulz
Andrew,

The most minimal solution is "ssmtp." More fully featured is "exim."

Man pages and extended documentation in /usr/doc/exim-* and 
/usr/doc/ssmtp-* are available for both of these.

Randall Schulz

At 18:52 2003-07-08, andrew goa wrote:
Is it possible to send messages/mail from the command line in cygwin. If so
point me to the manual please.
Andrew


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


Performance problem

2003-07-08 Thread Vladimir Baltchev
Hi there,
We are about to port Unix - Irix and Linux applications to Windows using 
Cygwin. However the Cygwin version is very slow compared to Linux, even 
I compiled with the optimize option -O2. It is a Windows 2000, the 
program is a segmentation editor using Qt, OpenGl and some image 
processing.
What is the reason? Is it OpenGL on cygwin, or both?
Here is the library dependency list:
segeditorMax.exe
 C:\cygwin\usr\X11R6\bin\libGL.dll
   C:\cygwin\usr\X11R6\bin\libX11.dll
 C:\cygwin\bin\cygwin1.dll
   C:\winnt\System32\KERNEL32.dll
 C:\winnt\System32\NTDLL.DLL
   C:\cygwin\usr\X11R6\bin\libXext.dll
 C:\cygwin\usr\X11R6\bin\libGLU.dll
 c:\qt-cygwin\qt-3\bin\cygqt-mt-3.dll
   C:\cygwin\usr\X11R6\bin\libICE.dll
   C:\cygwin\usr\X11R6\bin\libSM.dll
   C:\cygwin\usr\X11R6\bin\libXrender.dll
   C:\cygwin\bin\cygpng12.dll
 C:\cygwin\bin\cygz.dll
   C:\winnt\System32\ADVAPI32.DLL
 C:\winnt\System32\RPCRT4.DLL
 c:\Vlad\build\Dev\lib\libOip.dll
   C:\winnt\System32\GDI32.dll
 C:\winnt\System32\USER32.DLL

--
Vladimir Baltchev
Senior Software Developer @ Orthosoft R&D Inc
Tel (514) 861-1837 ext 230
Email: [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/


cygipc problem (was shmctl(blabla,IPC_RMID,NULL) question)

2003-07-08 Thread Jason Tishler
Sergey,

Please post instead of sending private email.

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
--- Begin Message ---
Dear Jason,
I've got some issues with IPC_RMID under cygwin, I got cygipc1.4.
Under Linux it works perfect but under windows it doesn't remove the
schmid.
First you have to start ipctest then start getshm. Find them in attach.
The first one allocates the memory writes the pid to it and the other
gets the memory removes the shmid and kills the previous application by 
the pid.
very simple.
Then when I start ipcs it shows me that the identifer wasn't removed
though it didn't write me any error in shmctl. T
hen I have to remove the identifer by hand
with ipcrm.
What could that be?

thank you for your response
#include 
#include 
#include 
#include 
#include 
#include 
#include 


int main(int argc,char *argv){

int shmid;
key_t key;
char *shm, *s;

/*
 * We need to get the segment named
 * "5678", created by the server.
 */
key = 5000;

/*
 * Locate the segment.
 */
if ((shmid = shmget(key, 0x2, 0666)) < 0) {
perror("shmget");
exit(1);
}
printf("get shmid = %d\n",shmid);
/*
 * Now we attach the segment to our data space.
 */
if ((shm = shmat(shmid, NULL, 0)) == (char *) -1) {
perror("shmat");
exit(1);
}

printf("pid of other proc = %s\n",shm);


if(!shmctl(shmid,IPC_RMID,NULL))
perror("shmctl");

if(kill(atoi(shm),SIGINT)!=0)
perror("cant kill");


}
#include 
#include 
#include 
#include 
#include 
#include 
#include 

int main (int argc, char* argv[]){
pid_t pid = getpid ();
key_t key = 5000;
char *shmem;
int shmid;
shmid= shmget (key,0x400,IPC_CREAT|IPC_EXCL|S_IRUSR|S_IWUSR);

printf("shmid : %d\n",shmid);
printf("pid : %d\n",pid);

shmem = (char *)shmat(shmid,0,0);

sprintf(shmem,"%d",pid);
printf("shmem : %s\n",shmem);

shmdt(shmem);

for(;;)
pause();


shmctl (shmid, IPC_RMID, 0);
}

--- End Message ---
--
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: Performance problem

2003-07-08 Thread Larry Hall
Vladimir Baltchev wrote:

Hi there,
We are about to port Unix - Irix and Linux applications to Windows using 
Cygwin. However the Cygwin version is very slow compared to Linux, even 
I compiled with the optimize option -O2. It is a Windows 2000, the 
program is a segmentation editor using Qt, OpenGl and some image 
processing.
What is the reason? Is it OpenGL on cygwin, or both?


You'd need to do some performance testing to figure out specifically
where the bottleneck is for your applications.  However, as you must
be aware, Cygwin is a POSIX emulation layer.  It's simply going to be
slower than non-emulated environments and native environments.  That
said, you'll certainly be able to find performance issues in Cygwin
that can be addressed to make it faster.  We'd welcome efforts in
this area.  Also, keep in mind that Cygwin is under the GPL license.
This means your applications' licenses would need to conform to the
open source model if you plan to distribute it.  Otherwise, you need
to get a "buy out" license from Red Hat.  See


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: Performance problem

2003-07-08 Thread Vladimir Baltchev
Thanks Larry,
I know about the license. About the speed - it's several times slower... 
May be it worth the effort to make some benchmarking...
Vlad
Larry Hall wrote:

Vladimir Baltchev wrote:

Hi there,
We are about to port Unix - Irix and Linux applications to Windows 
using Cygwin. However the Cygwin version is very slow compared to 
Linux, even I compiled with the optimize option -O2. It is a Windows 
2000, the program is a segmentation editor using Qt, OpenGl and some 
image processing.
What is the reason? Is it OpenGL on cygwin, or both?


You'd need to do some performance testing to figure out specifically
where the bottleneck is for your applications.  However, as you must
be aware, Cygwin is a POSIX emulation layer.  It's simply going to be
slower than non-emulated environments and native environments.  That
said, you'll certainly be able to find performance issues in Cygwin
that can be addressed to make it faster.  We'd welcome efforts in
this area.  Also, keep in mind that Cygwin is under the GPL license.
This means your applications' licenses would need to conform to the
open source model if you plan to distribute it.  Otherwise, you need
to get a "buy out" license from Red Hat.  See


for more details.




--
Vladimir Baltchev
Senior Software Developer @ Orthosoft R&D Inc
Tel (514) 861-1837 ext 230
Email: [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: Performance problem

2003-07-08 Thread Larry Hall
Some amount of benchmarking has been done.  You can see the email archives
for reports from various interested folks with their comparisons.  If you
haven't already, visit .  The FAQ covers some
common issues that may affect your results.  However, it sounds to me from
the general information you've provided that you're seeing 'normal
operation'.  Several times slower than Linux is not beyond expectations.
Again, I point out that this doesn't mean there isn't the possibility of
improvement.  If you feel that there is actually a specific issue here,
please feel free to report it as such.  See
 if that's the case.
Larry

Vladimir Baltchev wrote:

Thanks Larry,
I know about the license. About the speed - it's several times slower... 
May be it worth the effort to make some benchmarking...
Vlad
Larry Hall wrote:

Vladimir Baltchev wrote:

Hi there,
We are about to port Unix - Irix and Linux applications to Windows 
using Cygwin. However the Cygwin version is very slow compared to 
Linux, even I compiled with the optimize option -O2. It is a Windows 
2000, the program is a segmentation editor using Qt, OpenGl and some 
image processing.
What is the reason? Is it OpenGL on cygwin, or both?




You'd need to do some performance testing to figure out specifically
where the bottleneck is for your applications.  However, as you must
be aware, Cygwin is a POSIX emulation layer.  It's simply going to be
slower than non-emulated environments and native environments.  That
said, you'll certainly be able to find performance issues in Cygwin
that can be addressed to make it faster.  We'd welcome efforts in
this area.  Also, keep in mind that Cygwin is under the GPL license.
This means your applications' licenses would need to conform to the
open source model if you plan to distribute it.  Otherwise, you need
to get a "buy out" license from Red Hat.  See


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: Cannot open bayes_path error

2003-07-08 Thread Ajay Simha
On Tue Jul 08 13:15:19 2003, Benjamin Tomhave wrote:
> Hi Ajay,
> 
> You had posted a message to the cywin mailing list about getting an error
> from SpamAssassin along the lines of "Cannot open bayes_path  R/W:
> Permission Denied" (http://www.cygwin.com/ml/cygwin/2003-03/msg01427.html).
> Did you ever find a solution or receive an answer?  I am seeing a similar
> message on my servers ("File Exists" instead of "Permission Denied") and am
> wondering whether or not I should be concerned.

I think you should be conserned about this.

The correct way to fix this problem was to blow away the directory .spamassassin
from my home directory and recreate it using the install script.

sorry I could not find the exact command to recreate the .spamassassin dir.

May be someone on the list remembers.

-ajay
> 
> Thank you,
> 
> -ben
> 
> ---
> Benjamin Tomhave, CISSP
> Senior Systems Engineer
> [EMAIL PROTECTED]
> Sofast Communications  www.sofast.net
> 


"From listening comes wisdom and from speaking repentance."

--
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: OpenSSH + Public Key Auth + ntsec

2003-07-08 Thread Mark Priest
John,

I am using Cygwin and sshd with public key authentication on a Windows XP
Professional machine and I am seeing the same ACL behavior that you are.  I
have set the CYGWIN environment variable to "ntsec nontea" "nontsec ntea"
and "nontsec nontea".  These settings do not affect the fundamental behavior
when I copy files using scp (I am using the putty clients from a W2k
machine) and when I create directories using ssh with a mkdir command.

When files and directories are created the ACLs are set so that there are 3
ACLs of the Allow type.  One is for the file owner (which is always the user
using the scp or ssh), one is for the prmiary group of the user, and one is
for Everybody.  There are no allow ACLs for the Administrators group or for
SYSTEM.  However, on all of my "normal" Windows files and directories not
created by Cygwin the Administrators group and SYSTEM do have allow ACLs
which must be the default Windows behavior.

I am not sure what to suggest to get around this since Cygwin is setting
Unix-style permissions on files and directories as constrained by umask and
the default directory ACLs set using setfacl.  One thing that you could
consider doing is writing a client side script that first performs the scp
and then executes a remote command on the copied file to change the ACLs
using the new setfacl command (or try setting default ACLs on the target
directory using setfacl).  I used setfacl on a file I copied using scp as
follows:

[EMAIL PROTECTED] ~/test
$ getfacl bogus.c
# file: bogus.c
# owner: cvsuser
# group: cvs
user::rw-
group::rw-
mask:rwx
other:rw-

[EMAIL PROTECTED] ~/test
$ setfacl -m g:Administrators:7,u:SYSTEM:7 bogus.c

[EMAIL PROTECTED] ~/test
$ getfacl bogus.c
# file: bogus.c
# owner: cvsuser
# group: cvs
user::rw-
group::rw-
group:SYSTEM:rwx
group:Administrators:rwx
mask:rwx
other:rw-


When I looked at these files in Windows the Administrators group and the
SYSTEM user did have Widnows ACLs that granted most permissions, but not the
Full Control that is granted in Windows by default.  This might be enough
for you, however.

One additional observation I have is that I have no trouble changing
ownership of a file to a member of the Administrators group even without
using setfacl.  Even though ACL permissions are not shown for the
Administrators group I am able to change file ownership from Windows
Explorer if I am logged in as a member of Administrators.

Good luck,
Mark

- Original Message -
From: "John" <[EMAIL PROTECTED]>
To: "andrew brian clegg" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, July 08, 2003 2:39 PM
Subject: Re: OpenSSH + Public Key Auth + ntsec


> Here is the corruption as explained by my NT admin:
>
> --- Begin ---
> Our current ACL is:
>
> (Owner): Administrators
> Administrators : Full Control
> SYSTEM : Full Control
> ServiceAccount : Full Control
>
> Currently, whatever ssh/scp touches - the following ACL gets applied:
>
> (Owner): ServiceAccount
> Administrators : none (no permissions set)
> SYSTEM : none (no permissions set)
> ServiceAccount : none (no permissions set)
> CREATOR GROUP  : none (no permissions set)
> CREATOR OWNER  : none (no permissions set)
> Everyone   : Read/Write/Execute
> None   : none (no permissions set)
> --- End ---
>
> Also, when trying to take ownership of the files in windows (as
> administrator), we get the following error: "The security descriptor
> structure is invalid".  The fix for this was to run xcacls.exe and that
> allowed us to take ownership of files and directories.
>
> Obviously, we're using ssh/scp for moving files around for an automated
> process.  When files have been pushed to an ssh server, sometimes they are
> not accessable by the user that scp'd them in the first place and our jobs
> cannot continue.  When I first noticed this, I logged in via ssh and saw
> these files were owned by the creator but had  perms.  I did a "chmod
> 0644" and our automated process was then able to continue.  This happens
> sporadically on some of our machines running cygwin.  A work around for
> this is to "chmod 0644 " for every file before we do any further
> processing of the file (move, copy, open, etc).
>
> So there are two issues, not sure if they are directly related.  One, the
> ACL's are getting changed to a point where an administrator can't regain
> ownership through normal methods.  And two, when files are written,
> sometimes they get  perms.
>
> We have reformatted these machines and done fresh installs and yet the
> corruption happens all over again on every machine using cygwin & ssh.
>
> If there were a way to not use ntsec and use inherited permissions via
> nontsec, that would be stellar.
>
> Thanks again,
> John
>
> On Tue, 8 Jul 2003, andrew brian clegg wrote:
>
> >
> >
> >
> > On Tue, 8 Jul 2003, John wrote:
> >
> > > CYGWIN="binmode ntsec tty".
> > >
> > > When making directories via ssh:
> > > ssh  "mkdir /cygdrive/d/temp/tes

Re: Performance problem

2003-07-08 Thread Keen Wayne A Contr AFRL/MNGG
General observation:  There are quite a few more optimizations that can have
*some* impact on performance.  Options for processor specific code and
increased math speed.

Note also -O2 is not maximum optimization, -O3 is:

-O3 Optimize yet more.  -O3 turns on all optimizations specified by -O2
   and also turns on the -finline-functions and -frename-registers
   options.

Wayne Keen

--
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: Cannot open bayes_path error

2003-07-08 Thread Benjamin Tomhave
Well, hopefully someone will remember and reply off-list, since your
original message was found via Google and not through list membership.  :)

> -Original Message-
> From: Ajay Simha [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 08, 2003 1:42 PM
> To: Benjamin Tomhave
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: Cannot open bayes_path error
>
>
> On Tue Jul 08 13:15:19 2003, Benjamin Tomhave wrote:
> > Hi Ajay,
> >
> > You had posted a message to the cywin mailing list about
> getting an error
> > from SpamAssassin along the lines of "Cannot open bayes_path  R/W:
> > Permission Denied"
> (http://www.cygwin.com/ml/cygwin/2003-03/msg01427.html).
> > Did you ever find a solution or receive an answer?  I am seeing
> a similar
> > message on my servers ("File Exists" instead of "Permission
> Denied") and am
> > wondering whether or not I should be concerned.
>
> I think you should be conserned about this.
>
> The correct way to fix this problem was to blow away the
> directory .spamassassin
> from my home directory and recreate it using the install script.
>
> sorry I could not find the exact command to recreate the
> .spamassassin dir.
>
> May be someone on the list remembers.
>
> -ajay
> >
> > Thank you,
> >
> > -ben
> >
> > ---
> > Benjamin Tomhave, CISSP
> > Senior Systems Engineer
> > [EMAIL PROTECTED]
> > Sofast Communications  www.sofast.net
> >
>
>
> "From listening comes wisdom and from speaking repentance."
>


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



RE: emacs locksup win98se

2003-07-08 Thread Hannu E K Nevalainen \(garbage mail\)
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf
> Of Joe Buehler

> Graham Lamont wrote:
>
> > How do I do this ?
> > I tried putting:
> > set CYGWIN=tty notitle glob

 export CYWIN=...
 ^^
 Necessary in bash! "set" is ok for DOS .BAT files.

> It goes in the Windows environment variables for the system or for
> your user, depending on who uses the machine.  If I recall correctly,
> you can right click on "My Computer" and get to the environment
> variable settings via "Properties".

 That is NT++ AFAIK. W98 has only one way; edit c:\cygwin\cygwin.bat with an
MS-DOS style end_of_file capable editor of your preference (e.g. notepad).

> You my need to reboot after you set it.

You'll need to at least restart all cygwin tasks.


Graham, you have not stated which version of cygwin you are using - this
info might be relevant; to adjust the answers accordingly.

minimal vygwin version check:
$ uname -a
CYGWIN_NT-5.0 P450 1.3.22(0.78/3/2) 2003-03-18 09:20 i686 unknown unknown
Cygwin

Otherwise this link is "good help" - to make sure you tell us enough:
>Problem reports:   http://cygwin.com/problems.html

/Hannu E K Nevalainen, B.Sc. EE - Micro Computer Systems, 59~14'N, 17~12'E
 ~ <=> degree

--

--END OF MESSAGE--


--
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: error running cygcheck 1.32

2003-07-08 Thread Hannu E K Nevalainen \(garbage mail\)
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf
> Of Kevin Van Workum

> I have cygcheck version 1.32. If I run cygcheck -s, a window titled
> "Program Error" pops up. The window says "cygcheck.exe has generated
> errors and will be closed by Windows. You will need to restart the
> program. An error log is being created." cygcheck stops printing
> information after the PATH is printed. The output is below.
> 
> What causes this problem?
> How can I fix it?
> Where is this error log created?
> 

This is my machine:
$ cygcheck -s  

Cygwin Win95/NT Configuration Diagnostics
Current System Time: Tue Jul 08 17:18:02 2003

Windows 2000 Advanced Server Ver 5.0 Build 2195 Service Pack 3


> <>
> 
> Cygwin Win95/NT Configuration Diagnostics
> Current System Time: Tue Jul 08 09:51:11 2003
> 
> Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 3
> 
> Path:   c:\cygwin\usr\X11R6\bin
> c:\cygwin\usr\local\bin
> c:\cygwin\opt\kde2\bin
> c:\cygwin\opt\kde2\lib
> c:\cygwin\usr\local\lib\qt2\bin
> c:\cygwin\usr\local\bin
> c:\cygwin\bin
> c:\cygwin\bin
> c:\WINNT\system32
> c:\WINNT
> c:\WINNT\System32\Wbem
> c:\Program Files\Common Files\Adaptec Shared\System
> c:\matlab6p5\bin\win32
> c:\cygwin\bin
> c:\cygwin\usr\X11R6\bin
> c:\cygwin\home\vanw\bin
> .
> 
> <>

Next thing that should appear:
>> C:\cygwin\bin\id.exe output (nontsec)
>> UID: 500(Hannu)  GID: 513(user)
>> 544(Administrators)  513(user)
>> 545(Users)

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

/Hannu E K Nevalainen, B.Sc. EE - Micro Computer Systems, 59~14'N, 17~12'E
 ~ <=> degree 

-- 

--END OF MESSAGE-- 

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



#include_next

2003-07-08 Thread Martin Gainty
Could someone please tell me what #include_next is ??
Where is the original definition?

Thanks,

M

--
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: Performance problem

2003-07-08 Thread Andre Bleau
If I am interpreting the output below correctly, you are developing an 
OpenGL program under X11; that's the main reason it is so slow.

OpenGL under X11 renders everything in software, without any hardware 
acceleration, so it's rendering is orders of magnitude slower. It is true 
that Cygwin's I/O and memory management are somewhat slower than under 
Linux, but that's peanuts compared to the OpenGL penalty.

If you want a fast program, you will have to use Window's native OpenGL 
implementation, which renders through hardware accelerators. That's what 
the OpenGL package for Cygwin provides.

Unfortunately, to use Window's native OpenGL implementation, you will have 
to rewrite completely such parts of your program as window management and 
user interface.

Last point (before you ask): the OpenGL implementation under X11 cannot be 
easily modified to use hardware acceleration, and I doubt it can be 
modified at all to do so. To know why, please search the archives for this 
list.

Vladimir Baltchev  wrote:
Hi there,
We are about to port Unix - Irix and Linux applications to Windows using 
Cygwin. However the Cygwin version is very slow compared to Linux, even I 
compiled with the optimize option -O2. It is a Windows 2000, the program 
is a segmentation editor using Qt, OpenGl and some image processing.
What is the reason? Is it OpenGL on cygwin, or both?
Here is the library dependency list:
segeditorMax.exe
C:\cygwin\usr\X11R6\bin\libGL.dll
C:\cygwin\usr\X11R6\bin\libX11.dll
C:\cygwin\bin\cygwin1.dll
C:\winnt\System32\KERNEL32.dll
C:\winnt\System32\NTDLL.DLL
C:\cygwin\usr\X11R6\bin\libXext.dll
C:\cygwin\usr\X11R6\bin\libGLU.dll
c:\qt-cygwin\qt-3\bin\cygqt-mt-3.dll
C:\cygwin\usr\X11R6\bin\libICE.dll
C:\cygwin\usr\X11R6\bin\libSM.dll
C:\cygwin\usr\X11R6\bin\libXrender.dll
C:\cygwin\bin\cygpng12.dll
C:\cygwin\bin\cygz.dll
C:\winnt\System32\ADVAPI32.DLL
C:\winnt\System32\RPCRT4.DLL
c:\Vlad\build\Dev\lib\libOip.dll
C:\winnt\System32\GDI32.dll
C:\winnt\System32\USER32.DLL


André Bleau, Cygwin's OpenGL package maintainer.

email: bleau at igb dot umontreal dot ca
(Fight SPAM: encode your email-address)
Please address all questions and problem reports about Cygwin's OpenGL 
package to [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/


  1   2   >