Did someone mess with setup.ini on sourceware.org?

2004-07-15 Thread Christopher Faylor
It looks like someone wiped out setup.ini and it was completely
regenerated by upset.  That doesn't work.

There is still state stored in setup.ini.  It is not completely
generated from the release directory.

Please DO NOT mess with setup.ini.  There is absolutely no reason
for anyone to touch this file.

cgf


Tclsh: why exec replaces { with \{ ?

2004-07-15 Thread Sektor van Skijlen
Or just how to make it getting rid of it?
It makes unable to, for example, run an awk program from inside Tcl script.

Try this:

exec -- echo This is {in braces}

On ActiveTcl this does not happen. I also saw exec replacing / with \, but now I am 
not sure how to reproduce it.

Regards,
Sektor


Kontrowersyjna, obsypana nagrodami Bursztynowa luneta 
Philipa Pullmana ju w Polsce! Dla mionikw Harry'ego Pottera 
i Wadcy Piercieni.
http://klik.wp.pl/?adr=http%3A%2F%2Fksiazki.wp.pl%2Fkatalog%2Fksiazki%2Fksiazka.html%3Fkw%3D76277sid=212




[ITP] libIDL-0.8.3-1

2004-07-15 Thread Yaakov Selkowitz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I would like to contribute libIDL to the Cygwin distribution.  This is a
~ prereq for ORBit2, one of the Gnome2 backend libraries.
http://cygwin-ports.sourceforge.net/install/release/Gnome2/libIDL/libIDL-0.8.3-1-src.tar.bz2
http://cygwin-ports.sourceforge.net/install/release/Gnome2/libIDL/libIDL-0.8.3-1.tar.bz2
http://cygwin-ports.sourceforge.net/install/release/Gnome2/libIDL/setup.hint
This can also be installed with setup.exe by adding to your server list:
http://cygwin-ports.sourceforge.net/install/
*** NOTE: I just uploaded new builds, with static libs disabled; please
make sure to get the current version if you downloaded before.
setup.hint:
category: Libs Devel
requires: cygwin glib2-runtime libiconv2 libintl2
sdesc: CORBA Interface Definition Language file library
ldesc: libIDL is a library licensed under the GNU LGPL for creating
trees of CORBA Interface Definition Language (IDL) files, which is a
specification for defining portable interfaces.  libIDL was initially
written for ORBit (the ORB from the GNOME project, and the primary
means of libIDL distribution).  However, the functionality was
designed to be as reusable and portable as possible.
Yaakov
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFA9zXmpiWmPGlmQSMRAghQAKDMTSOFCab5ldb9ddw/6w73X6Md9wCghRnv
HbcxjKw0ZZGRU3x+E0Klw9s=
=NwNg
-END PGP SIGNATURE-


[ITP] ORBit2(-devel)-2.10.3-1

2004-07-15 Thread Yaakov Selkowitz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I would like to contribute ORBit2 to the Cygwin distribution.  This is
one of the Gnome2 backend libraries.
http://cygwin-ports.sourceforge.net/install/release/Gnome2/ORBit2/ORBit2-2.10.3-1-src.tar.bz2
http://cygwin-ports.sourceforge.net/install/release/Gnome2/ORBit2/ORBit2-2.10.3-1.tar.bz2
http://cygwin-ports.sourceforge.net/install/release/Gnome2/ORBit2/setup.hint
http://cygwin-ports.sourceforge.net/install/release/Gnome2/ORBit2/ORBit2-devel/ORBit2-devel-2.10.3-1.tar.bz2
http://cygwin-ports.sourceforge.net/install/release/Gnome2/ORBit2/ORBit2-devel/setup.hint
This can also be installed with setup.exe by adding to your server list:
http://cygwin-ports.sourceforge.net/install/
*** NOTE: I just uploaded new builds, with static libs disabled; please
make sure to get the current version if you downloaded before.
setup.hint:
category: Libs
requires: cygwin glib2-runtime libIDL libiconv2 libintl2 libpopt0
sdesc: CORBA 2.4 Object Request Broker library (executables, runtime
libraries, and docs)
ldesc: ORBit2 is a CORBA 2.4-compliant Object Request Broker (ORB)
featuring mature C and Perl bindings.  It supports POA, DII, DSI,
TypeCode, Any, IR and IIOP.  Optional features including INS and
threading are available. ORBit2 is engineered for the GNU Object Model
Environment (GNOME) with a focus on performance, low resource usage,
and security.
ORBit2-devel/setup.hint:
category: Libs Devel
requires: cygwin glib2-devel libIDL libiconv gettext popt ORBit2
external-source: ORBit2
sdesc: CORBA 2.4 Object Request Broker library (development libraries
and headers)
ldesc: ORBit2 is a CORBA 2.4-compliant Object Request Broker (ORB)
featuring mature C and Perl bindings.  It supports POA, DII, DSI,
TypeCode, Any, IR and IIOP.  Optional features including INS and
threading are available. ORBit2 is engineered for the GNU Object Model
Environment (GNOME) with a focus on performance, low resource usage,
and security.
Yaakov
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFA9zb6piWmPGlmQSMRAplRAKC+oOw0WJxhKNfaW11ouwWi27iWlACg1kAR
b7aUJ4ed903NNw/5htbYcjU=
=hyHB
-END PGP SIGNATURE-


Re: Tclsh: why exec replaces { with \{ ?

2004-07-15 Thread Christopher Faylor
On Thu, Jul 15, 2004 at 11:54:06PM +0200, Sektor van Skijlen wrote:
Or just how to make it getting rid of it?
It makes unable to, for example, run an awk program from inside Tcl script.

Try this:

exec -- echo This is {in braces}

On ActiveTcl this does not happen.  I also saw exec replacing / with \,
but now I am not sure how to reproduce it.

This is not a mailing list for user questions.  Use the main cygwin
list for that.

You have been unsubscribed from this list.


Typo in generic-build-script

2004-07-15 Thread Harold L Hunt II
There is the following in the gbs:
if [ -z $MY_CFLAGS ]; then
  MY_CFLAGS=-O2
fi
if [ -z $MY_CFLAGS ]; then
  MY_LDFLAGS=
fi
It appears that the second if should be testing '$MY_LDFLAGS', not 
'$MY_CFLAGS'.

Harold


Re: X startup hangs

2004-07-15 Thread electa
 ZoneAlarm is known to change the behaviour of Windows
 TCP/IP stack and this seems to cause troubles with cygwin since cygwin
must provide unix
 like semantics and has problems if something does not work it was
expected.


But I tried shutting down Zonealarm-- X still hangs. Do you think it ss
really a ZoneAlarm problem?

 So it is not a problem with insufficient rights to access the network (in
fact
 xkbcomp does not need any network access) but a problem with
different/unexpected
 behaviour of windows subsystems. I doubt this can be solved without
digging
 into the startup code of the cygwin library where it stopped


Can you help me solving just the xkb problem (which is not related to
network)?
I appreciate very much to work with my keyboard.
Now i'm using 'startx -- -kb -clipboard'
without -multiwindow the X starts hanged. After killing cat.exe, X is ready
and I can use it.
my little goal is to remove that -kb to regain my keyboard!





RE: startx causing XP (Media Center Edition) blue screen?

2004-07-15 Thread Listopad, Steve
Alexander  Daniel,

This is a response to both of your suggestions and questions (about the
engine being used, and video card information).

NVIDIA GeForce FX Go5600
Driver Provider:  NVIDIA
Driver Date:  2/3/2004
Version:  5.4.0.1
Note:  This version provided via Windows Update via IE, though it says the
driver was
provided by NVIDIA.

Test Script:
  - start cygwin shell
  - startx
  - ssh -X -l user a.linux.box
  - startkde


Result of test with above parameters:  blue screen during KDE splash screen.

Result of above test with above parameters, using various engines:
  - startx -- -engine 1
  - startx -- -engine 2
  - startx -- -engine 4
  - startx -- -engine 8

  All blue screens, during various phases of the KDE splash screen.

Next, I loaded the drivers from nvidia.com; interestingly, the version
provided is:
  
  6/24/2003
  4.4.8.2

  Results:  The same.  blue screen

Next, I tried drivers at the hp site (it's a zd7000 notebook).

  11/18/2003
  4.5.1.1

  Results:  The same.  blue screen

  12/10/2003
  4.7.1.2

  Results:  The same.  blue screen


Next, I took a guess that my screen resolution might be an issue, at
1440x900. So, I tried
1024x768.  Same results.  Blue Screen.


So, no luck yet.

Any suggestions for further debugging and/or logging?  If there's a readme
for that, could you point me in the right direction?

Other ideas:
  - Daniel (I think) suggested checking network card drivers; haven't done
that yet.
  - another post suggests possible ZoneAlarm issues.  I am running that, but
haven't tested turning it off.
  - others?

Stumped!

Steve


Re: GTK missing cygX11-6.dll

2004-07-15 Thread Gerrit P. Haase
LDR schrieb:

 Gerrit P. Haase wrote:

 I appreciate the efforts of all the Cygwin developers. Thank you, all,again.

 However, some developers might want to try paying more attention to the
 documented feedback! --

http://nyckelpiga.de/donate.html

...

Ja, ja, I was in a hurry...

But you figured it out;)
  

 and you out ... ;-|

http://nyckelpiga.de/donate.html


Gerrit
-- 
=^..^=



Re: X startup hangs

2004-07-15 Thread Alexander Gottwald
On Thu, 15 Jul 2004, electa wrote:

  ZoneAlarm is known to change the behaviour of Windows
  TCP/IP stack and this seems to cause troubles with cygwin since cygwin
 must provide unix
  like semantics and has problems if something does not work it was
 expected.
 
 
 But I tried shutting down Zonealarm-- X still hangs. Do you think it ss
 really a ZoneAlarm problem?

ZoneAlarm replaces/hooks some of the libraries providing the TCP/IP stack. 
Disabling ZoneAlarm still leaves those changes active but ZoneAlarm does not
drop packets anymore. 

  So it is not a problem with insufficient rights to access the network (in
 fact
  xkbcomp does not need any network access) but a problem with
 different/unexpected
  behaviour of windows subsystems. I doubt this can be solved without
 digging
  into the startup code of the cygwin library where it stopped
 
 
 Can you help me solving just the xkb problem (which is not related to
 network)?

It is te problem. Normally xkbcomp expects input on stdin. It seems that 
ZoneAlarm somehow breaks pipes (eg ls | wc) in some circumstances. I think
it's the same with cat.exe. It just waits forever the get or receive data.  

 I appreciate very much to work with my keyboard.
 Now i'm using 'startx -- -kb -clipboard'
 without -multiwindow the X starts hanged. After killing cat.exe, X is ready
 and I can use it.
 my little goal is to remove that -kb to regain my keyboard!

Can you send me another strace of the above command?

strace -o xinit.strace2 startx -- -kb -clipboard

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


Jhybl Time To Ref1ll Your Val1um Prescription.

2004-07-15 Thread kyle kitchen
albert-i  conrails  heli-muster  


Get The Most Popular Meedications Now!

B`uy [EMAIL PROTECTED]|UM, [EMAIL PROTECTED], Phe.ntermine, S0_ma O`n1ine For Less

Shop the best, OverN~iteDelivery!

T B http://gipdib.la.sewerage5665pills.us/f74/


If Patti Wilson can do so much with so little, what can you do to
outperform yourself in a state of total wellness?
It's hard for many of us to believe this fact because we know how imperfect
we are, and we believe we have to be perfect before God will love us. The
truth is that God's love makes us perfect, even with our imperfections. By
knowing this truth intellectually and believing it spiritually, we not only
love ourselves more; we love others more as well.
kyaraban6hyousi03kinkouta,nuguito bandai. 



RE: startx causing XP (Media Center Edition) blue screen?

2004-07-15 Thread Alexander Gottwald
On Thu, 15 Jul 2004, Listopad, Steve wrote:

 Alexander  Daniel,
 
 This is a response to both of your suggestions and questions (about the
 engine being used, and video card information).
 
 NVIDIA GeForce FX Go5600
 Driver Provider:  NVIDIA
 Driver Date:  2/3/2004
 Version:  5.4.0.1
 Note:  This version provided via Windows Update via IE, though it says the
 driver was
 provided by NVIDIA.
 
 Test Script:
   - start cygwin shell
   - startx
   - ssh -X -l user a.linux.box
   - startkde

Does the notebook have a pcmcia network card? Maybe you can try XWin without 
having the network drivers active. some wlan drivers (esp rtl chipset) are
known to be very unstable.

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


Re: X startup hangs

2004-07-15 Thread electa
 Can you send me another strace of the above command?

 strace -o xinit.strace2 startx -- -kb -clipboard

but startx is not a program...
i will send you
xinit -- /usr/X11R6/bin/Xwin.exe -kb -clipboard
ok?





Re: X startup hangs

2004-07-15 Thread Alexander Gottwald
On Thu, 15 Jul 2004, electa wrote:

  Can you send me another strace of the above command?
 
  strace -o xinit.strace2 startx -- -kb -clipboard
 
 but startx is not a program...
 i will send you
 xinit -- /usr/X11R6/bin/Xwin.exe -kb -clipboard
 ok?

yes. that's what i meant.

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


more info then the newspaper

2004-07-15 Thread Randell
Already one politician has done everything within his power to silence these 
'explosive and dangerous' books. 

Discover the secrets your government doesn't want you to know. 

This is your guide to some of the most closely guarded insider techniques, used by 
major crime syndicates and politicians alike - information you won't find anywhere on 
the web. 

Written by industry insiders, these books packs years of hard earned information into 
one incredible volume.

Goto http://www.dlbooks4you.com


No more please http://www.dlbooks4you.net/off.htm



Re: X startup hangs

2004-07-15 Thread Alexander Gottwald
On Thu, 15 Jul 2004, electa wrote:

  Can you send me another strace of the above command?
 
  strace -o xinit.strace2 startx -- -kb -clipboard
 
 but startx is not a program...
 i will send you
 xinit -- /usr/X11R6/bin/Xwin.exe -kb -clipboard
 ok?

I've taken a look but can not find the start of cat.exe. Maybe this is 
from profile or login script. Anyway I think you should be able to start 

/usr/X11R6/bin/Xwin.exe -kb -clipboard

and then start xterm, or twm or anything else manually

export DISPLAY=:0.0
xterm 

or 

export DISPLAY=:0.0
twm

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


Re: X startup hangs

2004-07-15 Thread electa
Just a reminiscence... To be present in archive ;-)

all this problems starts 1 week ago when I upgraded from Zonalarm 4 to
ZoneAlarm 5!!!
With ZA4 Cygwin'sX works. with ZA5 no.







Re: app crashing on paste

2004-07-15 Thread Jack Tanner
Jack Tanner wrote:
Quanta (an HTML editor) starts, and I start editing some file. A few 
keystrokes later (sometimes Ctrl+V, sometimes TAB) quanta stops 
accepting all keyboard and mouse input. Other X windows are fine. Then I 
kill the quanta process, and I get
FWIW, the problem goes away thanks to an upgrade to Quanta 3.2.3. To get 
that for Fedora Core 2, you probably want to use the 
kde-redhat.sourceforge.net packages of KDE, Quanta, and Openoffice.org.




Re: X startup hangs

2004-07-15 Thread electa
 I've taken a look but can not find the start of cat.exe. Maybe this is
 from profile or login script.

nope.
I checked
.bash_profile
/etc/profile
/etc/profile.d/*.sh
startx

nobody invoke cat...





Re: X startup hangs

2004-07-15 Thread Alexander Gottwald
On Thu, 15 Jul 2004, electa wrote:

  I've taken a look but can not find the start of cat.exe. Maybe this is
  from profile or login script.
 
 nope.
 I checked
 .bash_profile
 /etc/profile
 /etc/profile.d/*.sh
 startx
 
 nobody invoke cat...

Maybe not directly but from another program. who would expect xrdb to call 
/bin/cpp?

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


Re: X startup hangs

2004-07-15 Thread Alexander Gottwald
On Thu, 15 Jul 2004, electa wrote:

 Take a look at next strace:
 strace -o xinit.strace3 xinit -- /usr/X11R6/bin/XWin -clipboard

same as in the first trace. Right after startup of sh -c xkbcomp ...
it stops while waiting for some winsock operation to complete.
 
 Can you find why X hangs when I omit '-kb' in cmd-line?

with -kb x start xkbcomp to generate the keymap. xkbcomp expects input
 on stdin but waits forever since ZoneAlarm 5 somehow interferes with 
pipes in cygwin.

I'll send this to [EMAIL PROTECTED] too since it's low level cygwin 

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


Re: X startup hangs

2004-07-15 Thread electa
newer test:
startx -- -kb -clipboard = starts cat and I must kill him to go on
xinit -- -kb -clipboard = X startup ok!





Re: X startup hangs

2004-07-15 Thread electa
 newer test:
 startx -- -kb -clipboard = starts cat and I must kill him to go on
 xinit -- -kb -clipboard = X startup ok!

and so this is why in my straces there is no cat running: i straced xinit,
because startx is not a program!





Re: X startup hangs

2004-07-15 Thread Igor Pechtchanski
On Thu, 15 Jul 2004, electa wrote:

  newer test:
  startx -- -kb -clipboard = starts cat and I must kill him to go on
  xinit -- -kb -clipboard = X startup ok!
 
 and so this is why in my straces there is no cat running: i straced xinit,
 because startx is not a program!

FYI: you can use 'strace sh -c startx -- -kb -clipboard' to strace
startx (or any other shell script).
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


Re: X startup hangs

2004-07-15 Thread Alexander Gottwald
On Thu, 15 Jul 2004, electa wrote:

  newer test:
  startx -- -kb -clipboard = starts cat and I must kill him to go on
  xinit -- -kb -clipboard = X startup ok!
 
 and so this is why in my straces there is no cat running: i straced xinit,
 because startx is not a program!

bash -x /usr/X11R6/bin/startx -- -kb -clipboard 

lists you everything which is executed by startx

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


Re: X startup hangs

2004-07-15 Thread electa
 startx -- -kb -clipboard = starts cat and I must kill him to go on
 xinit -- -kb -clipboard = X startup ok!


startx stops after
winClipboardProc - Hello
and before
DetectUnicodeSupport - Windows NT/2000/XP

looking at screen log, the only difference between the two is the cmd line:
startx - /usr/X11R6/bin/X :0 -kb -clipboard
xinit - X :0 -kb -clipboard








Can not open the file cygx11-6.dll, help.

2004-07-15 Thread sen zhou
Hi,

I am trying to install the cygwin on my NEC Versa E120 laptop, which has a
Windows XP Home Edition (Chinese Version) operation system. The system
popped up an error message of Can not open the file cygx11-6.dll at the
the process of around 99% installation. I skipped this error and continued the
installation. And it turns out that I can not bring the remote terminal to local
host by xhost + remote host and xterm -display local host:0 commands.
Except that, the cygwin seems work properly.

Thanks for your help and hope to hear from you soon.

Best Regards.
Sincerely,
-
Sen Zhou
330L Higgins, Department of Physics
Boston College, MA 02467
Telephone: 617-552-3599
Homepage: www2.bc.edu/~zhouse
-


Arrigo Benedetti - Cygwin-X hangs all at a sudden

2004-07-15 Thread Todd.Ryder
I have the EXACT same problem with cygwin/X (see URL below, obtained via google search 
for cygwin X11R6 server hangs).
Except I am running Windows 2000 Professional not XP.  This is my employer's machine, 
so I am assuming a recent Microsoft critical update patch or something has now 
broken the cygwin X server.

Is there any new word/advice regarding this issue.

Also, I see that xfree86 seems to have been removed from setup.exe?  Can you explain 
the relationship, if any, between xfree86 and X11?  As I said, it seems now that only 
X11 is available under setup.exe and all the XFree86 packages I (think) I once had 
installed show up under ZZZRemovedPackages under setup.exe.

Thanks.
Sincerely
Todd Ryder
[EMAIL PROTECTED]
 
 http://sources.redhat.com/ml/cygwin-xfree/2004-07/msg00037.html
 Arrigo Benedetti - Cygwin-X hangs all at a sudden.url 


Arrigo Benedetti - Cygwin-X hangs all at a sudden.url
Description: Binary data


Re: Can not open the file cygx11-6.dll, help.

2004-07-15 Thread Alexander Gottwald
On Thu, 15 Jul 2004, sen zhou wrote:

 Hi,
 
 I am trying to install the cygwin on my NEC Versa E120 laptop, which has a
 Windows XP Home Edition (Chinese Version) operation system. The system
 popped up an error message of Can not open the file cygx11-6.dll at the
 the process of around 99% installation. I skipped this error and continued the
 installation. And it turns out that I can not bring the remote terminal to local
 host by xhost + remote host and xterm -display local host:0 commands.
 Except that, the cygwin seems work properly.

please check http://cygwin.com/ml/cygwin-xfree/2004-07/msg00090.html

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


Re: Arrigo Benedetti - Cygwin-X hangs all at a sudden

2004-07-15 Thread Alexander Gottwald
[EMAIL PROTECTED] wrote:

 I have the EXACT same problem with cygwin/X (see URL below, obtained via
 google search for cygwin X11R6 server hangs).
 Except I am running Windows 2000 Professional not XP.  This is my employer's
 machine, so I am assuming a recent Microsoft critical update patch or
 something has now broken the cygwin X server.

 Is there any new word/advice regarding this issue.

Unfortunatly not. I've not received more information about the windows
update. Maybe you can provide more information.

 Also, I see that xfree86 seems to have been removed from setup.exe?  Can
 you explain the relationship, if any, between xfree86 and X11?  As I said,
 it seems now that only X11 is available under setup.exe and all the XFree86
 packages I (think) I once had installed show up under ZZZRemovedPackages
 under setup.exe.

We changed the code base from xfree86 to xorg because it was easier for us
to incorporate changes into the xorg code than into the xfree86 codebase.
This was prativly not a big change since our first xorg release was very
close to the xfree 4.4 release. The old packages were removed and are now
only available as empty packages in ZZZRemoved to provide a clean update.

bye
ago
NP: Skinny Puppy - I'mmortal
-- 
 [EMAIL PROTECTED]
 http://www.gotti.org   ICQ: 126018723


gtk tools

2004-07-15 Thread Bobby McNulty Junior
I just reinstalled these with setup.
They installed ok.
I have no idea what they are, but will fire up X11 to see what they do.
Bobby





RE: Arrigo Benedetti - Cygwin-X hangs all at a sudden

2004-07-15 Thread Todd.Ryder
As a followup, I have found that, after some reinstallation, I can run startxwin.bat 
and pop an xterm and also serve remote connections (which is why I wanted cygwin/X in 
the first place).  So my original problem appears to be with startx and probably 
relates to my/default .xinitrc file or something.  startx always worked before... but 
now I have a workaround.

Sincerely,
[EMAIL PROTECTED]


-Original Message-
From: Ryder, Todd 
Sent: Thursday, July 15, 2004 12:40 PM
To: '[EMAIL PROTECTED]'
Subject: Arrigo Benedetti - Cygwin-X hangs all at a sudden


I have the EXACT same problem with cygwin/X (see URL below, obtained via google search 
for cygwin X11R6 server hangs).
Except I am running Windows 2000 Professional not XP.  This is my employer's machine, 
so I am assuming a recent Microsoft critical update patch or something has now 
broken the cygwin X server.

Is there any new word/advice regarding this issue.

Also, I see that xfree86 seems to have been removed from setup.exe?  Can you explain 
the relationship, if any, between xfree86 and X11?  As I said, it seems now that only 
X11 is available under setup.exe and all the XFree86 packages I (think) I once had 
installed show up under ZZZRemovedPackages under setup.exe.

Thanks.
Sincerely
Todd Ryder
[EMAIL PROTECTED]
 
 http://sources.redhat.com/ml/cygwin-xfree/2004-07/msg00037.html


X starting difficulties

2004-07-15 Thread luke . kendall
I just sat down with a colleague here who has never previously been able
to run X on his XP laptop.  I got it working, but *only* by doing this:

/usr/X11R6/bin/X :0 -multiwindow  

- nothing else that I could think of could start X.

(The laptops here typically have ZoneAlarm installed, but I don't think
it's implicated this time since I was able to get X to work, as above.)

His initial problem was the Cannot find font: fixed error.  Once we
followed the faq workaround for that (re-install the fonts), we began
to make some progress.

I tried several ways to start X, which all failed:

From Cygwin bash shell:

startx

-- 
...
XWin was started with the following command line:

X :0 -multiwindow -clipboard
...
winClipboardProc - DISPLAY=127.0.0.1:0.0
winInitMultiWindowWM - XOpenDisplay () returned and successfully opened the 
display.
winClipboardProc - XOpenDisplay () returned and successfully opened the display.
winClipboardProc - Call to select () failed: -1.  Bailing.
winClipboardProc - XDestroyWindow succeeded.

winClipboardIOErrorHandler!

I got the same problem using a local .bat script that does this:

rem The D: gets replaced by the real Cygwin drive during installation:
D:
chdir \cygwin\bin
bash --login -c PATH=$PATH:/usr/X11R6/bin; startx -- -multiwindow

Thinking it was a problem with the -clipboard option, I tried removing
it in the proper way, by creating a file ~/.xserverrc containing:

userserverrc=-multiwindow

That lead to worse problems (quite worrying, I think) -

...
XWin was started with the following command line:

/usr/X11R6/bin/X :0 -multiwindow
...
winMultiWindowXMsgProc - pthread_mutex_unlock () returned.
winMultiWindowXMsgProc - DISPLAY=127.0.0.1:0.0
winInitMultiWindowWM - pthread_mutex_unlock () returned.
winInitMultiWindowWM - DISPLAY=127.0.0.1:0.0
winProcEstablishConnection - Hello
winProcEstablishConnection - Clipboard is not enabled, returning.
winMultiWindowXMsgProc - XOpenDisplay () returned and successfully opened the 
display.
winInitMultiWindowWM - XOpenDisplay () returned and successfully opened the 
display.
winDeinitMultiWindowWM - Noting shutdown in progress

winMultiWindowWMIOErrorHandler!

winInitMultiWindowWM - Caught IO Error.  Exiting.
winDeinitMultiWindowWM - Noting shutdown in progress

In contrast, here are pieces of the XWin.log when started via
/usr/X11R6/bin/X :0 -multiwindow  

XWin was started with the following command line:

/usr/X11R6/bin/X :0 -multiwindow
...
winMultiWindowXMsgProc - DISPLAY=127.0.0.1:0.0
winInitMultiWindowWM - pthread_mutex_unlock () returned.
winInitMultiWindowWM - DISPLAY=127.0.0.1:0.0
winProcEstablishConnection - Hello
winProcEstablishConnection - Clipboard is not enabled, returning.
winMultiWindowXMsgProc - XOpenDisplay () returned and successfully opened the 
display.
winInitMultiWindowWM - XOpenDisplay () returned and successfully opened the 
display.

Here's a diff output of the log from the successful way () and an
unsuccessful attempt that had clipboard turned off ():

53a54,59
 winDeinitMultiWindowWM - Noting shutdown in progress
 
 winMultiWindowWMIOErrorHandler!
 
 winInitMultiWindowWM - Caught IO Error.  Exiting.
 winDeinitMultiWindowWM - Noting shutdown in progress

Here's a diff output of the log from the successful way () and an
unsuccessful attempt that had clipboard turned on ():


9c9
 /usr/X11R6/bin/X :0 -multiwindow 
---
 X :0 -multiwindow -clipboard 
39c39,40
 winMultiWindowXMsgProc - Calling pthread_mutex(--) winConfigKeyboard - Layout: 
0409 (0409) 
---
 (--) Setting autorepeat to delay=500, rate=31
 (--) winConfigKeyboard - Layout: 0409 (0409) 
51c52,53
 winProcEstablishConnection - Clipboard is not enabled, returning.
---
 winInitClipboard ()
 winProcEstablishConnection - winInitClipboard returned.
52a55,57
 winClipboardProc - Hello
 DetectUnicodeSupport - Windows NT/2000/XP
 winClipboardProc - DISPLAY=127.0.0.1:0.0
53a59,64
 winClipboardProc - XOpenDisplay () returned and successfully opened the display.
 winClipboardProc - Call to select () failed: -1.  Bailing.
 winClipboardProc - XDestroyWindow succeeded.
 
 winClipboardIOErrorHandler!
 

Also, we couldn't start any X applications from the Cygwin menu items
via the Windows Start bar; apparently /usr/X11R6/bin isn't in the path,
so none of the commands were found.

luke




Recent X installation oddity

2004-07-15 Thread luke . kendall
In the last couple of days, we've done several cygwin fresh installs
and updates.  In every case we get the X problem Cannot find font:
fixed, afterwards.

In every case, the directory C:/cygwin/usr/X11R6/lib/X11/fonts exists,
it contains the directory misc, that directory contains hundreds of
files, yet we get the error message.

And, as per the FAQ, we then have to umount /usr/X11R6/lib/X11/fonts,
re-run setup, select all the X fonts, and choose reinstall.  This is
both on absolutely fresh machines (Windows XP just installed), and on
an update to an older Cygwin system. (Which may have had the same
problem before running setup again, admittedly.)

Any idea what's wrong?  It used to be that X normally worked after an
install.  Now it seems to fail with this problem each time.

I'm planning to automate (as far as I can), the FAQ fixup, in our local
post-install script.

(Unfortunately, I don't think I can drive setup.exe from the command
line to reinstall the fonts directly, can I?  Are there files I could
remove from the install afterwards, so that a second run of setup could
be done that would find that the X fonts were gone and proceed to
install them?)

Also, I was wondering why /usr/X11R6/lib/X11/fonts is mounted anyway? 
Since / is mounted, you can reach it using that same path.  If it was
so that you could remount it elsewhere if you wanted to, because you
didn't have the space to hold 40MB (heh: tiny, these days!), then you
could do the mount then ...

Just wondering.

luke



Re: Recent X installation oddity

2004-07-15 Thread luke . kendall
On 16 Jul, To: [EMAIL PROTECTED] wrote:
  In the last couple of days, we've done several cygwin fresh installs 
  and updates.  In every case we get the X problem Cannot find font: 
  fixed, afterwards. 

Two more installs today, with the same problem.

luke



X failures if two users

2004-07-15 Thread luke . kendall
If two people use the same machine, and the first starts X, the second
person can't start X unless they have administrator rights.

Cygwin sets /tmp to have mode drwxrwxrwt which means ordinary users
can't remove /tmp/XWin.log if it's owned by someone else.  So
subsequent attempts to start X fail because it can't write the log file.

My suggestion would be for X to create the file called
/tmp/XWin.log.$USER

luke

PS:

Note that unlike Unix, it is possible for a user to remove a file that
some other user created in a directory with the above permissions,
provided they have administrator privileges on a machine.




Re: Recent X installation oddity

2004-07-15 Thread luke . kendall
On 16 Jul, To: [EMAIL PROTECTED] wrote:
  In the last couple of days, we've done several cygwin fresh installs 
  and updates.  In every case we get the X problem Cannot find font: 
  fixed, afterwards. 

If it's of any interest, we have mirrored Cygwin from kernels.org
(and update each night via rsync).

luke



src/winsup/mingw ChangeLog Makefile.in mingwex ...

2004-07-15 Thread corinna
CVSROOT:/cvs/src
Module name:src
Changes by: [EMAIL PROTECTED]   2004-07-15 10:40:37

Modified files:
winsup/mingw   : ChangeLog Makefile.in 
winsup/mingw/mingwex: Makefile.in 
winsup/mingw/profile: Makefile.in 

Log message:
* Makefile.in (INCLUDES): Temporarily revert previous change.
* mingwex/Makefile,in (INCLUDES): Ditto.
* profile/Makefile,in (INCLUDES): Ditto.
* mingwex/Makefile,in: Drop carg.o dependency.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/mingw/ChangeLog.diff?cvsroot=srcr1=1.206r2=1.207
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/mingw/Makefile.in.diff?cvsroot=srcr1=1.50r2=1.51
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/mingw/mingwex/Makefile.in.diff?cvsroot=srcr1=1.16r2=1.17
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/mingw/profile/Makefile.in.diff?cvsroot=srcr1=1.11r2=1.12



src/winsup/mingw ChangeLog

2004-07-15 Thread dannysmith
CVSROOT:/cvs/src
Module name:src
Changes by: [EMAIL PROTECTED]   2004-07-15 11:56:02

Modified files:
winsup/mingw   : ChangeLog 

Log message:
Whitespace change to ChangeLog

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/mingw/ChangeLog.diff?cvsroot=srcr1=1.209r2=1.210



src/winsup/cygwin ChangeLog fhandler.h fhandle ...

2004-07-15 Thread corinna
CVSROOT:/cvs/src
Module name:src
Changes by: [EMAIL PROTECTED]   2004-07-15 14:56:05

Modified files:
winsup/cygwin  : ChangeLog fhandler.h fhandler_floppy.cc 
 fhandler_raw.cc 

Log message:
* fhandler.h (class fhandler_dev_raw): Remove is_writing flag.
Remove declaration of writebuf.
(class fhandler_dev_floppy): Remove declaration of close.
* fhandler_floppy.cc (fhandler_dev_floppy::close): Delete.
(fhandler_dev_floppy::lseek): Remove calls to writebuf.  Set
eom_detected to false after successful seek.
* fhandler_raw.cc (fhandler_dev_raw::writebuf): Delete.
(fhandler_dev_raw::raw_read): Remove calls to writebuf.
(fhandler_dev_raw::raw_write): Always invalidate buffer.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=srcr1=1.2515r2=1.2516
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler.h.diff?cvsroot=srcr1=1.209r2=1.210
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler_floppy.cc.diff?cvsroot=srcr1=1.31r2=1.32
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler_raw.cc.diff?cvsroot=srcr1=1.50r2=1.51



src/winsup/mingw ChangeLog include/complex.h

2004-07-15 Thread dannysmith
CVSROOT:/cvs/src
Module name:src
Changes by: [EMAIL PROTECTED]   2004-07-15 20:20:22

Modified files:
winsup/mingw   : ChangeLog 
winsup/mingw/include: complex.h 

Log message:
2004-07-15  dgun  [EMAIL PROTECTED]

* include/complex.h (conj): Correct typo in prototype.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/mingw/ChangeLog.diff?cvsroot=srcr1=1.210r2=1.211
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/mingw/include/complex.h.diff?cvsroot=srcr1=1.1r2=1.2



[RFC] Reference counting on Audio objects for /dev/dsp

2004-07-15 Thread Igor Pechtchanski
Gerd,

I'd really like your comments on this patch.  As I reported before, it
didn't quite work for me, but with the recent problems in testing another
(presumably working) patch, I suspect my test procedure isn't quite
correct anyway.  The patch basically adds a (very problem-specific)
reference count to the Audio object(s), and doesn't delete the shared ones
until all pointers are gone.  It doesn't seem to fix the bash redirection
problem, but does allow the dsp_dup_close testcase to run (again, I'd
like your opinion on whether it runs correctly).

The ChangeLog below is just for the record -- as I said, I don't expect
this to be checked in yet.
Igor
==
ChangeLog:
2004-07-06  Igor Pechtchanski  [EMAIL PROTECTED]

* fhandler_dsp.cc (fhandler_dev_dsp::Audio::reference_count_):
New instance variable.
(fhandler_dev_dsp::Audio::inc): New function.  Increment the
reference_count_.
(fhandler_dev_dsp::Audio::dec): New function.  Decrement the
reference_count_ and delete if zero.
(fhandler_dev_dsp::close): Replace delete with a call to dec().
(fhandler_dev_dsp::dup): Copy audio_in_ and audio_out_ and call
inc() on each.

-- 
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 NaughtonIndex: fhandler_dsp.cc
===
RCS file: /cvs/src/src/winsup/cygwin/fhandler_dsp.cc,v
retrieving revision 1.37
diff -u -p -r1.37 fhandler_dsp.cc
--- fhandler_dsp.cc 28 May 2004 19:50:05 -  1.37
+++ fhandler_dsp.cc 15 Jul 2004 13:40:36 -
@@ -80,7 +80,13 @@ class fhandler_dev_dsp::Audio
 (unsigned char *buffer, int size_bytes);
   inline void lock () { EnterCriticalSection (lock_); }
   inline void unlock () { LeaveCriticalSection (lock_); }
+
+//  inline void inc (void) { reference_count_++; }
+//  inline void dec (void) { if (--reference_count_ == 0) delete this; }
+  void inc (void);
+  void dec (void);
  private:
+  DWORD reference_count_; /* HACK A quick-and-dirty reference count */
   DWORD owner_; /* Process ID when wave operation started, else 0 */
   CRITICAL_SECTION lock_;
 };
@@ -231,6 +237,20 @@ fhandler_dev_dsp::Audio::Audio ()
   InitializeCriticalSection (lock_);
   convert_ = fhandler_dev_dsp::Audio::convert_none;
   owner_ = 0L;
+  reference_count_ = 1; // Going to assign right after allocation
+}
+
+void fhandler_dev_dsp::Audio::inc (void) {
+  reference_count_++;
+  debug_printf(%08p; ref_count=%ld\n, this, reference_count_);
+}
+
+void fhandler_dev_dsp::Audio::dec (void) {
+  debug_printf(%08p; ref_count=%ld\n, this, reference_count_-1);
+  if (--reference_count_ == 0) {
+debug_printf(-- deleting\n);
+delete this;
+  }
 }
 
 fhandler_dev_dsp::Audio::~Audio ()
@@ -1202,7 +1222,7 @@ fhandler_dev_dsp::close (void)
(int)audio_in_, (int)audio_out_);
   if (audio_in_)
 {
-  delete audio_in_;
+  audio_in_-dec ();
   audio_in_ = NULL;
 }
   if (audio_out_)
@@ -1212,7 +1232,7 @@ fhandler_dev_dsp::close (void)
 // do not wait for all pending audio to be played
 audio_out_-stop (true);
}
-  delete audio_out_;
+  audio_out_ - dec ();
   audio_out_ = NULL;
 }
   if (open_count  0)
@@ -1231,6 +1251,9 @@ fhandler_dev_dsp::dup (fhandler_base * c
   fhc-audiobits_ = audiobits_;
   fhc-audiofreq_ = audiofreq_;
   fhc-audioformat_ = audioformat_;
+
+  fhc-audio_in_ = audio_in_; if (audio_in_) audio_in_-inc ();
+  fhc-audio_out_ = audio_out_; if (audio_out_) audio_out_-inc ();
   return 0;
 }
 


Re: [RFC] Reference counting on Audio objects for /dev/dsp

2004-07-15 Thread Christopher Faylor
On Thu, Jul 15, 2004 at 04:28:56PM -0400, Igor Pechtchanski wrote:
On Thu, 15 Jul 2004, Christopher Faylor wrote:

 On Thu, Jul 15, 2004 at 02:57:17PM -0400, Igor Pechtchanski wrote:
  2) The other problem is that I find it sort of odd to see the dec()
  method performing a deletion.  Couldn't this be handled where, IMO,
  it should logically be handled, in the close function, e.g.,
 
if (!audio_out_-dec ())
  delete audio_out_;
  ?
 
 Umm, that's actually a rather standard construct in reference counting
 (called object suicide -- you should get some references if you Google
 for object suicide reference counting).

 Yes, I thought that would be your answer, however, I don't like the idea
 of having a method called inc which just increments a count and a method
 called dec which decrements a count and, oh, hey, it might delete the
 object, too.

 It seems more straightforward to delete audio_out_ in the place where
 you'd expect it to be deleted rather than having a dec call which,
 if you check, you'll notice that it deletes the buffer.

 Or, as a compromise, don't call it 'dec'.  Call it something which
 illustrates what it is doing.

Right.  I think the compromise is good -- I was thinking of maybe using
registerReference() and releaseReference() (or deregister?).  We could
shorten them by removing Reference from the names, too.  In any case,
I'd wait for Gerd's input before deciding on the specific code to go in.

That sounds good to me.

Now we just need Gerd's ok.

cgf


Re: UNC Pathname Handling within Applications

2004-07-15 Thread Thorsten Haude
Hi,

* Christopher Faylor wrote (2004-07-15 07:18):
I don't know why knowing that someone says it's official helps much.

It doesn't I just wanted to make sure whether there are any other
issues that might come up later.

Thank you for your help.


Thorsten
-- 
Guns don't protect freedom, people protect freedom.


pgpQiBgykLpAk.pgp
Description: PGP signature


Re: /usr/share/doc/Cygwin (Was Re: sending email from Cygwin)

2004-07-15 Thread Corinna Vinschen
On Jul 15 10:01, you wrote:
 On 14 Jul, Igor Pechtchanski wrote:
   Yep, that would be a very good idea.  In particular, it should point out 
   that the information in the READMEs in /usr/share/doc/Cygwin takes 
   precedence over that in the package READMEs and manpages. 

   Maybe even an FAQ entry like I've followed directions in the README / man 
   page / info file to the letter, and still can't get the package to work - 
   what gives? (put in this form, it *is* rather frequently asked). :-) 
 
 Can I also suggest that the FAQ's section called Where can I get more
 information? / Where's the documentation? would be an excellent place
 to mention that all the per-package readme files are collected together
 in /usr/share/doc/Cygwin?  That would be where I'd look first to try to
 discover the info.

Sounds good to me.  Joshua, would you mind to pump up the FAQ with an
entry like this?

Corinna

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

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



Re: sending email from Cygwin

2004-07-15 Thread luke . kendall
On 14 Jul, Pierre A. Humblet wrote:
  At 12:02 PM 7/15/2004 +1000, [EMAIL PROTECTED] wrote:
  On 14 Jul, Pierre A. Humblet wrote:
Thanks for the feedback. 
 
The problem is that the exim startup code thinks that you are a
  privileged 
user (see privileged 1 above). It does that by checking that you have
  the 
Create Token privilege (you have not answered my question about having 
given yourself unusual privileges).  
However you are not in the admins group (544), so you can't setuid after 
all. 
  
  So that the main user of the machine is able to install software, they
  are given admin privileges.  So, I have admin privileges.  I can find
  out more details about what that precisely means by asking our Windows
  sysadmin people, if it would help?
  
  You don't seem to have the admin privilege, at least not in the usual sense
  of being in the Administrators group. You are not even a PowerUser.

Strange.  I am, you know.  If I call up User Accounts, I see myself listed
in the group Administrators, and I certainly have the ability to install
and unistall software.

  $ id 
  uid=11021(luke) gid=10513(Domain Users) groups=12919(adaytum),10513(Domain
  Users),13876(MS_VisualStudio),15155(RitaTS),13761(ZoneAlarm)
  
  Actually another explanation is that your /etc/group file is incomplete.
  You don't seem to be in any local group... 
  Are the lines produced by mkgroup -l in /etc/group?
  If not, do mkgroup -l  /etc/group and try exim -c again.
  Check also that uid 18 (system) is in /etc/passwd.
  Else do mkpasswd -l  /etc/passwd

You're right about the mkgroup -l:

: /home/luke ; grep -i admin /etc/group
Domain Admins:S-1-5-21-5706737-76180391-208020174-512:10512:
Enterprise Admins:S-1-5-21-5706737-76180391-208020174-519:10519:
Schema Admins:S-1-5-21-5706737-76180391-208020174-518:10518:
sysadmin:S-1-5-21-5706737-76180391-208020174-3984:13984:
: /home/luke ; mkgroup -l 
root:S-1-5-32-544:0:
SYSTEM:S-1-5-18:18:
None:S-1-5-21-1694720459-1161744426-439199626-513:513:
Administrators:S-1-5-32-544:544:
Backup Operators:S-1-5-32-551:551:
Guests:S-1-5-32-546:546:
Network Configuration Operators:S-1-5-32-556:556:
Power Users:S-1-5-32-547:547:
Remote Desktop Users:S-1-5-32-555:555:
Replicator:S-1-5-32-552:552:
Users:S-1-5-32-545:545:
Debugger Users:S-1-5-21-1694720459-1161744426-439199626-1003:1003:
HelpServicesGroup:S-1-5-21-1694720459-1161744426-439199626-1001:1001:
: /home/luke ; mkgroup -l  /etc/group
: /home/luke ; grep -i system /etc/passwd
SYSTEM:*:18:544:,S-1-5-18::


  By the way, exim-config should give you warnings if those files are
  incomplete. Did you ever run it?

No.  I never saw any mention of it in the man page, nor during setup,
nor when I ran exim manually, sorry.

  The question I was asking is whether you have the Create Token privilege.
  You can check that from the Users control panel, or with the
  editrights cygwin tool. I am on WinME, so I can't give you
  step by step instructions on how to do that. 

If I look at Control Panel - User Accounts - Advanced - Advanced User
Management - Local Users and Groups, I don't appear in the list of Users
there.  Odd?

I'm unsure if I'm looking in the right place.

Does this help? :

: /home/luke ; editrights -u luke -l -v
editrights version 1.01: a cygwin application to edit user rights
 on a Windows NT system.
Copyright Chris Rodgers editrights-at-bulk.rodgers.org.uk, Sep, 2003.
All rights reserved. See LICENCE for further details.

Listing rights for luke:

Done!

  If your Windows sysadmin people give you that privilege, I think they
  should reconsider their policies. 

There are excellent reasons for allowing all our users for having these
permissions - I can explain in more detail later, if you are
unconvinced.  (We are an unusual company.)

luke



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



Re: sending email from Cygwin

2004-07-15 Thread luke . kendall
On 15 Jul, To: Pierre A. Humblet wrote:
  : /home/luke ; mkgroup -l  /etc/group 

Incidentally, after doing that I see:

: /home/luke ; exim -oi luke  /tmp/smff3624
2004-07-15 17:56:06 Exim configuration file /etc/exim.conf has the wrong owner, group, 
or mode
: /home/luke ; ls -l /etc/exim.conf
-rwx--+   1 luke Domain U22025 Aug 29  2002 /etc/exim.conf

But probably I'd need to run exim-config to have a serious chance of
success?

luke


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



Re: sending email from Cygwin

2004-07-15 Thread Corinna Vinschen
On Jul 15 01:39, Robert R Schneck wrote:
 Pierre A. Humblet wrote:
 Luke Kendall wrote:
  or that it creates a symlink to sendmail. 
 
  exim doesn't. That symlink is created by the cygwin specific exim-config
  script under explicit user control. That avoids possible conflicts with
  postinstall scripts.
 
 Hmmm.  So perhaps the appropriate new behavior for ssmtp is to do the 
 same thing, asking the user whether to create such a link in the 
 ssmtp-config.  I think so.  Anyone else advise otherwise?

That's a good point.  Yes, I guess ssmtp-config should do that, the same
way as the exim-config script (perhaps you can just use Pierre's code.
Would that be ok, Pierre?).

I've prepared a cron package for upload with a postinstall script which
doesn't create the /usr/bin/sendmail symlink anymore.  I'll upload it
as soon as Robert has prepared a new ssmtp package for upload.  I've
also added a few words to /usr/share/doc/Cygwin/cron.README about the
dependency to /usr/bin/sendmail :-)

 Incidentally is it appropriate to include Cygwin-port-specific 
 information in a man page?

Well, from a user perspective it might be cool, but IMHO the original
man page shouldn't be changed, unless it's a change which should be
send upstream anyway.  We have the Cygwin specific documentation in
/usr/share/doc/Cygwin (resp. /usr/doc/Cygwin in earlier releases) for
a long time now.  It should be not too hard to ask users to look there
for Cygwin specific docs.


Corinna

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

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



Re: sending email from Cygwin

2004-07-15 Thread Corinna Vinschen
On Jul 15 17:57, [EMAIL PROTECTED] wrote:
 On 15 Jul, To: Pierre A. Humblet wrote:
   : /home/luke ; mkgroup -l  /etc/group 
 
 Incidentally, after doing that I see:
 
 : /home/luke ; exim -oi luke  /tmp/smff3624
 2004-07-15 17:56:06 Exim configuration file /etc/exim.conf has the wrong owner, 
 group, or mode
 : /home/luke ; ls -l /etc/exim.conf
 -rwx--+   1 luke Domain U22025 Aug 29  2002 /etc/exim.conf
 
 But probably I'd need to run exim-config to have a serious chance of
 success?

Sounds like a good plan.  Really, the Cygwin specific docs in 
/usr/share/doc/Cygwin are no secret ;-)

Corinna

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

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



RE: sending email from Cygwin

2004-07-15 Thread Jörg Schaible
Robert R Schneck wrote on Thursday, July 15, 2004 3:39 AM:

 Pierre A. Humblet wrote:
 Luke Kendall wrote:
 or that it creates a symlink to sendmail.
 
 exim doesn't. That symlink is created by the cygwin specific
 exim-config script under explicit user control. That avoids possible
 conflicts with postinstall scripts.
 
 Hmmm.  So perhaps the appropriate new behavior for ssmtp is to do the
 same thing, asking the user whether to create such a link in the
 ssmtp-config.  I think so.  Anyone else advise otherwise?

This is how other distos begin to deal with this problem (Gentoo already switched too):
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mail-changingmta.html#AEN30548

-- Jörg

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



gcc-mingw

2004-07-15 Thread bertrand marquis
hello
   on the latest release it seems that there is a problem with gcc-mingw
   in fact the src package and the package contains nothing
c616cffee0f344c37fd4e045a7a87054  gcc-mingw-20030911-4-src.tar.bz2
c616cffee0f344c37fd4e045a7a87054  gcc-mingw-20030911-4.tar.bz2
i'm using the ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/sources.redhat.com/cygwin/ 
mirror
and this two packages are empty but the 20030911-3 packages are ok
thanks

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


Computer Organization mdrcgya

2004-07-15 Thread jay.h.ambrose
enswathes
Heyya!
Don't just sit there, make a change.
You can now obtain a degree based on life story.
no compulsatory tests to take.
sonorousness
call us
{734}423-0180 
Respectfully, 
Sharman Turro
sonsorol

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


Entrepreneurship acdhwkh

2004-07-15 Thread jay62
besmears
Top of the morning to ya!
How would you like to make more revenue?
Purchase an instant unive,rsity de.gree = amassed salary
Absolutely no appropriate quizes to take.
zymophyte
call us
1{734} 423-0180 
Bye for now, 
Abadi Abadi
monteith

--
Unsubscribe info:  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: mmapped memory lost after fork

2004-07-15 Thread Corinna Vinschen
On Jul 14 12:47, Tenedor Roquefort wrote:
 I'm using Cygwin 1.5.10-3 and have found what seems to
 be a fork/mmap bug. I have two examples where a forked
 child cannot access memory that was mmapped by the
 parent. The problem seems to arise when the parent
 munmaps some pages (different from the ones the child
 will try to access) before forking.
 
 In the example below, the parent mmaps 2 pages,
 munmaps the first page, writes to the second page and
 forks. Then both parent and child try to access the
 second page, the parent succeeds but the child dies
 trying. The examples work on Linux without the child
 dying. Has this problem been documented before and is
 there a known fix?
 
 Thanks.

Thanks for the test case!  It was very helpful.  It turned out to be
an off-by-one error in the child routine which generates the same
memory protection layout as in the parent process.

I've applied a fix and created a new developer snapshot.  Please give
it a try, see http://cygwin.com/snapshots/


Corinna

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

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



Re: gcc-mingw

2004-07-15 Thread Corinna Vinschen
On Jul 15 11:16, bertrand marquis wrote:
 hello
 
on the latest release it seems that there is a problem with gcc-mingw
in fact the src package and the package contains nothing
 
 c616cffee0f344c37fd4e045a7a87054  gcc-mingw-20030911-4-src.tar.bz2
 c616cffee0f344c37fd4e045a7a87054  gcc-mingw-20030911-4.tar.bz2
 
 i'm using the 
 ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/sources.redhat.com/cygwin/ 
 mirror
 
 and this two packages are empty but the 20030911-3 packages are ok

That's ok.  The package content has been overridden by the gcc-mingw-core
package.


Corinna

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

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



Re: sending email from Cygwin

2004-07-15 Thread Pierre A. Humblet
At 05:57 PM 7/15/2004 +1000, [EMAIL PROTECTED] wrote:
On 15 Jul, To: Pierre A. Humblet wrote:
  : /home/luke ; mkgroup -l  /etc/group 

Incidentally, after doing that I see:

: /home/luke ; exim -oi luke  /tmp/smff3624
2004-07-15 17:56:06 Exim configuration file /etc/exim.conf has the wrong
owner, group, or mode
: /home/luke ; ls -l /etc/exim.conf
-rwx--+   1 luke Domain U22025 Aug 29  2002 /etc/exim.conf

That should have been set correctly by the postinstall script. The incomplete
/etc/group prevented success.
 
But probably I'd need to run exim-config to have a serious chance of
success?

It's only required if you operate a mail server, but in this case it will
set the permissions correctly.

The reason why you don't see the rights (previous e-mail in thread) is most
likely that you get them indirectly through membership in a group.
If you are curious about that, the User control panel is your best bet. 

Pierre

--
Unsubscribe info:  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: fopen()/fclose() turns off compression

2004-07-15 Thread Jeff
On Wed, 14 Jul 2004 20:51:29 +0200, Corinna Vinschen
[EMAIL PROTECTED] wrote:

On Jul 14 10:18, Jeff wrote:
 I wrote about this issue before, but now I have something specific to
 report. I'm running the latest Cygwin on WinXP Pro SP1, and have my HDD
 formatted NTFS. I also have it set to compress all new and modified
 files (compression set for the HDD, inheritable to all directories and
 files). fopen (file_name, w)/fclose() on an already-existing file
 overwrites it as expected, but the new file will have the NTFS
 compression attribute turned off. fopen()/fclose() on a new (not yet
 existing file) results in a compresed file. Earlier Cygwin versions did
 not do this, and all files created or modified by Cygwin apps correctly
 inherited all NTFS file attributes.

Please try the cygwin DLL from the latest developers snapshot, see
http://cygwin.com/snapshots/ 
Does the same still happen with that Cygwin DLL?

No, it seems to have been corrected. Thanks,

Jeff

--
Unsubscribe info:  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: sending email from Cygwin

2004-07-15 Thread Pierre A. Humblet
At 10:18 AM 7/15/2004 +0200, Corinna Vinschen wrote:
On Jul 15 01:39, Robert R Schneck wrote:
 Pierre A. Humblet wrote:
 Luke Kendall wrote:
  or that it creates a symlink to sendmail. 
 
  exim doesn't. That symlink is created by the cygwin specific exim-config
  script under explicit user control. That avoids possible conflicts with
  postinstall scripts.
 
 Hmmm.  So perhaps the appropriate new behavior for ssmtp is to do the 
 same thing, asking the user whether to create such a link in the 
 ssmtp-config.  I think so.  Anyone else advise otherwise?

That's a good point.  Yes, I guess ssmtp-config should do that, the same
way as the exim-config script (perhaps you can just use Pierre's code.
Would that be ok, Pierre?).

Sure. Let me know if you improve it.

Pierre


--
Unsubscribe info:  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: maintaner of gcc

2004-07-15 Thread Gerrit P. Haase
Robert wrote:

 Who's maintaining GCC for Cygwin?
 Ours is getting old. Gcc 3.4.1 came out a couple of weeks ago.

What is wrong with 3.3.x release series?  Are there any serious bugs?
Are there issues (for you)?  Why do you need 3.4.x?  Gfortran isn't
included, precompiled headers do not work on Windows/Cygwin, important
bugfixes are backported to 3.3.x.


 I could go ahead and compile it, but I don't know where the patches are to
 make it use -mno-cygwin.

All the stuff is in the CVS repository.  Check the sources (or the
patchfile included with the Cygwin release of GCC).

 Mingw is using Gcc 3.4.0 as a candidate. I seen our version of 3.4.0, as

In the 3.4.0  release there was a serious bug in C++ and some Java build
issues.  I have not tried to build 3.4.1 yet, sorry.

I have 3.3.3 / 3.3.4 ready for release, but there is some private
business on my plate and I'm currently short of spare time therefore.

I think I can finish the gcc-3.3.4 release this month.  Then I'll take a
look into building 3.4.x in August.


Gerrit
-- 
=^..^= http://nyckelpiga.de/donate.html


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



Problem: Perl with connections using LWP Module

2004-07-15 Thread Dirk Fokken, Cross Development
In an attempt to run a perl based web-application on Windows using Cygwin with Apache, 
I experience difficulties requesting content using the LWP module.

The overall installation of Cygwin and the additional modules seems to be fine, since 
the call of the specific cgi-script from the command line works. 

Calling the cgi-script from within the browser I receive the following message:

Can't connect to www.crossdesktop.de:80 (Bad protocol 'tcp')

In my opinion, the difference between a call from the command line and a call by the 
browser may be the uid:gid being set differently. Therefore, I suppose a rights 
problem to appear here. 

In order to make sure user and group are set equally, in apache's httpd.conf I set 
user and group to the user and group I am in interactive mode. Unfortunately, the 
problem remains.

As principally, the whole system environment seems to be setup working, I come to ask 
this question in the round.

Can someone help? Does someone have a similar experience?

Many thanks,

Dirk




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



Re: Problem: Perl with connections using LWP Module

2004-07-15 Thread Igor Pechtchanski
http://cygwin.com/acronyms/#PCYMTWLL.  Thanks.

On Thu, 15 Jul 2004, Dirk Fokken, Cross Development wrote:

 In an attempt to run a perl based web-application on Windows using
 Cygwin with Apache, I experience difficulties requesting content using
 the LWP module.

 The overall installation of Cygwin and the additional modules seems to
 be fine, since the call of the specific cgi-script from the command line
 works.

 Calling the cgi-script from within the browser I receive the following
 message:

 Can't connect to www.crossdesktop.de:80 (Bad protocol 'tcp')

 In my opinion, the difference between a call from the command line and a
 call by the browser may be the uid:gid being set differently. Therefore,
 I suppose a rights problem to appear here.

 In order to make sure user and group are set equally, in apache's
 httpd.conf I set user and group to the user and group I am in
 interactive mode. Unfortunately, the problem remains.

 As principally, the whole system environment seems to be setup working,
 I come to ask this question in the round.

 Can someone help? Does someone have a similar experience?

 Many thanks,
 Dirk

Please start here:

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

In particular, please pay extra attention to the part that requests you to
*attach* (as a text attachment) your cygcheck -svr output.

If I had to guess, it looks like your /etc/protocols file is not visible
to apache.  I may be totally off, of course.
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: maintaner of gcc

2004-07-15 Thread Tim Prince
At 06:24 AM 7/15/2004, Gerrit P. Haase wrote:
Robert wrote:
 Who's maintaining GCC for Cygwin?
 Ours is getting old. Gcc 3.4.1 came out a couple of weeks ago.
What is wrong with 3.3.x release series?  Are there any serious bugs?
Are there issues (for you)?  Why do you need 3.4.x?  Gfortran isn't
included, precompiled headers do not work on Windows/Cygwin, important
bugfixes are backported to 3.3.x.
 I could go ahead and compile it, but I don't know where the patches are to
 make it use -mno-cygwin.
All the stuff is in the CVS repository.  Check the sources (or the
patchfile included with the Cygwin release of GCC).
 Mingw is using Gcc 3.4.0 as a candidate. I seen our version of 3.4.0, as
In the 3.4.0  release there was a serious bug in C++ and some Java build
issues.  I have not tried to build 3.4.1 yet, sorry.
AFAICT everyone who has tried has been successful in building and testing 
the standard gcc-3.4.1 and 3.4.2 on cygwin, but shows well over 100 
testsuite failures due to non-support of pch. At least 3 different people 
have posted the results on gcc-testsuite.  I don't count problems such as 
my failure to build it in 32-bit mode on x64.  C++ in my own current 
project doesn't build with 3.3.4, but is good with 3.4.x.  I agree that my 
project is not important nor trendy enough to backport fixes to 
3.3.x.  According to testsuite, Java is slightly better in 3.4.x.  I don't 
know that anyone has tackled the cygwin patches; inclusion of pch will no 
doubt make it much more time consuming.   I haven't seen anyone post 
testsuite results for that mingw 3.4.0 version, so your evidence that mingw 
is ahead of cygwin is lacking.

Tim Prince 

--
Unsubscribe info:  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: X startup hangs

2004-07-15 Thread Alexander Gottwald
On Thu, 15 Jul 2004, electa wrote:

 Take a look at next strace:
 strace -o xinit.strace3 xinit -- /usr/X11R6/bin/XWin -clipboard

same as in the first trace. Right after startup of sh -c xkbcomp ...
it stops while waiting for some winsock operation to complete.
 
 Can you find why X hangs when I omit '-kb' in cmd-line?

with -kb x start xkbcomp to generate the keymap. xkbcomp expects input
 on stdin but waits forever since ZoneAlarm 5 somehow interferes with 
pipes in cygwin.

I'll send this to [EMAIL PROTECTED] too since it's low level cygwin 

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

--
Unsubscribe info:  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: HOWTO build debug version of the cygwin dll with no optimisation?

2004-07-15 Thread Dave Korn
 -Original Message-
 From: cygwin-owner On Behalf Of Christopher Faylor
 Sent: 15 July 2004 02:00

  CFLAGS_FOR_BUILD=CFLAGS_FOR_TARGET=-O2 -g -O0  
 LDFLAGS=
  ^
  That's it :-)
 
 Try `make CFLAGS=-g CFLAGS_FOR_TARGET=-g'.  That will 
 compile everything
 w/o optimization
 
 Or, once you've gotten supporting libraries built, just build in the
 winsup/cygwin directory with CFLAGS=-g.  It's a lot faster to 
 just build
 cygwin from the cygwin subdirectory.

  Good point.  I tend to do make all-bfd all-target-winsup at the
top-level, but that of course still drags in all the cygserver and utils
stuff that I don't need.

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


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



Re: HOWTO build debug version of the cygwin dll with no optimisation?

2004-07-15 Thread Christopher Faylor
On Thu, Jul 15, 2004 at 03:32:14PM +0100, Dave Korn wrote:
 -Original Message-
 From: cygwin-owner On Behalf Of Christopher Faylor
 Sent: 15 July 2004 02:00

  CFLAGS_FOR_BUILD=   CFLAGS_FOR_TARGET=-O2 -g -O0  
 LDFLAGS=
  ^
  That's it :-)
 
 Try `make CFLAGS=-g CFLAGS_FOR_TARGET=-g'.  That will 
 compile everything
 w/o optimization
 
Or, once you've gotten supporting libraries built, just build in the
winsup/cygwin directory with CFLAGS=-g.  It's a lot faster to just
build cygwin from the cygwin subdirectory.

Good point.  I tend to do make all-bfd all-target-winsup at the
top-level, but that of course still drags in all the cygserver and
utils stuff that I don't need.

Wow.  The first response to my observation was a good point?

That is surprising.  I fully expected to get a Oh, I tried that once
and it didn't work for me from somebody.

Anyway, FWIW, the only time I build cygwin from the top level is when
I'm generating snapshots.  Otherwise, I live in the cygwin (and occasionally
the newlib) directory.

cgf

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



RE: HOWTO build debug version of the cygwin dll with no optimisation?

2004-07-15 Thread Dave Korn
 -Original Message-
 From: cygwin-owner On Behalf Of Christopher Faylor
 Sent: 15 July 2004 15:38

 On Thu, Jul 15, 2004 at 03:32:14PM +0100, Dave Korn wrote:
  -Original Message-
  From: cygwin-owner On Behalf Of Christopher Faylor
  Sent: 15 July 2004 02:00
 
   CFLAGS_FOR_BUILD= CFLAGS_FOR_TARGET=-O2 -g -O0  
  LDFLAGS=
   ^
   That's it :-)
  
  Try `make CFLAGS=-g CFLAGS_FOR_TARGET=-g'.  That will 
  compile everything
  w/o optimization
  
 Or, once you've gotten supporting libraries built, just build in the
 winsup/cygwin directory with CFLAGS=-g.  It's a lot faster to just
 build cygwin from the cygwin subdirectory.
 
 Good point.  I tend to do make all-bfd all-target-winsup at the
 top-level, but that of course still drags in all the cygserver and
 utils stuff that I don't need.
 
 Wow.  The first response to my observation was a good point?

  I call 'em like I see 'em!

 That is surprising.  I fully expected to get a Oh, I tried that once
 and it didn't work for me from somebody.

  Well, I haven't actually tried it myself.  Is setting just CFLAGS enough
when you're in the lower-level directory?  I might have thought you had to
override the CXX and LD flags as well.  But I'd want to try it before
committing myself to an opinion... :)

 Anyway, FWIW, the only time I build cygwin from the top level is when
 I'm generating snapshots.  Otherwise, I live in the cygwin 
 (and occasionally the newlib) directory.

  Matter of fact, I knew it already, or rather had all the clues I
needed I used to (a few years back) very regularly be in the habit of
cd'ing into the gcc subdir and doing make all there for gcc builds; when
all you want is a cross-compiler, you might as well save the time of
building cross- and host- libiberty et al.  Then I got a faster computer,
and fell out of the habit!  But, yeh, this is a general principle with all
the software that shares top-level autoconf; once you've configured it you
can just cd into the relevant lower-level dir and do a make all, to just
get the particular thing you want built.

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


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



Setup installing xerces libraries for no apparent reason

2004-07-15 Thread Buchbinder, Barry (NIH/NIAID)
When checking for upgrades from ftp://mirrors.rcn.net/pub/sourceware/cygwin
(View: partial), I noted that setup ver. 2.427 wanted to install
libxerces-c21, libxerces-c22, and libxerces-c23.  I hadn't had these before
and wanted to see what was now requiring them, so I looked in setup.ini.
The best I could tell, the only thing that requires them is xerces; I do not
have xerces and nothing requires xerces.  (In vim, /requires.*xerces goes
only to xerces-c.  I also checked setup.ini on
ftp://mirrors.kernel.org/sources.redhat.com/cygwin/ and it was identical.

I have, in the recent past, played with using setup to install packages from
http://cygwin-ports.sourceforge.net/install.  I don't think I have anything
from there installed, and setup.ini from there does not seem to include
anything that requires xerces or its libraries.

Although I can live with this annoyance (assuming that my chosen packages do
not really require the xerces libraries), I'm reporting this in case this
indicates a bug in setup.  If the problem is really how I'm reading
setup.ini or understand how setup works, I'd appreciate any education in
what I've missed.

And thanks to the setup crew for all their work.

- Barry

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



[BUG] mprotect() on Windows NT 5+

2004-07-15 Thread Xavier Joubert
Hello dear Cygwin developpers !


This is my first post here, so I would like to begin by sending you a big thank 
for Cygwin ! This is a great tool to port programs to Windows.


I think I found a bug in mprotect() implementation. This call is unable to set 
some protections (PROT_READ|PROT_WRITE for example) on a given memory area, 
while it can set some others (PROT_NONE or PROT_READ for example) on the same 
memory area. From my tests, it seems to happen only on WNT5+ (ie. Windows 2000 
and Windows XP - detailed results below).

I upgraded my whole Cygwin setup to confirm the problem is still alive. I also 
searched the web, FAQ, and ML archive without success before posting here.

I wrote a simple testcase to allow you to reproduce the bug. You'll find the 
source code as an attachement to this mail (to compile with gcc -o 
testcase.exe testcase.c and to run with ./testcase.exe). This testcase 
allocate a block of memory with mmap(), fill it with memset(), plays with its 
protection with mprotect() and fill it again with memset().

I ran this test on various Windows flavour available around. Here are the 
results :

Windows OSLang   Result
- -- 
W98   French OK
WNT4 SP6 (Workstation)French OK
WNT4 SP6 (Server) French OK
W2K SP4 (Professional)French mprotect() (3) failed : Invalid argument
W2K SP4 (Advanced server) French mprotect() (3) failed : Invalid argument
WXP SP1 (Professional)French mprotect() (3) failed : Invalid argument

Of course I'm ready to dig more if needed. But I really need some help since 
I'm not familiar with Cygwin source code, nor with Windows developpement.


For the curious, I discovered this bug while trying to support ARAnyM's m68k 
JIT compiler on Cygwin. ARAnyM (http://aranym.atari.org) is a free (GPLed) 
virtual Atari-compatible system.


Best Regards, and thanks in advance for any help,


Xavier#include stdio.h
#include string.h
#include sys/mman.h
#include unistd.h
#include errno.h

int main(void)
{
void *addr;
size_t size, page_size;

page_size = getpagesize();
printf(Page size : %i\n, (int)page_size);
size = 6 * (int)page_size;

addr = mmap((caddr_t)0,
size,
(PROT_READ | PROT_WRITE),
(MAP_PRIVATE | MAP_ANONYMOUS),
0,
0);
if (addr == MAP_FAILED)
{
printf(mmap() failed !\n);
return 1;
}
printf(Address   : %X\n, (int)addr);

if (memset(addr, 0, size) != addr)
{
printf(memset() failed !\n);
return 2;
}

if (mprotect((caddr_t)addr, size, (PROT_NONE)) != 0)
{
printf(mprotect() (1) failed : %s\n, strerror(errno));
return 3;
}

if (mprotect((caddr_t)addr, size, (PROT_READ)) != 0)
{
printf(mprotect() (2) failed : %s\n, strerror(errno));
return 3;
}

if (mprotect((caddr_t)addr, size, (PROT_READ | PROT_WRITE)) != 0)
{
printf(mprotect() (3) failed : %s\n, strerror(errno));
return 3;
}

if (memset(addr, 1, size) != addr)
{
printf(memset() failed !\n);
return 4;
}

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

Can not open the file cygx11-6.dll, help.

2004-07-15 Thread sen zhou
Dear Sir/Madam,

I am trying to install the cygwin on my NEC Versa E120 laptop, which has a
Windows XP Home Edition (Chinese Version) operation system. The system
popped up an error message of Can not open the file cygx11-6.dll at the
the process of around 99% installation. I skipped this error and continued the
installation. And it turns out that I can not bring the remote terminal to local
host by xhost + remote host and xterm -display local host:0 commands.
Except that, the cygwin seems work properly.

Thanks for your help and hope to hear from you soon.

Best Regards.
Sincerely,

-
Sen Zhou
330L Higgins, Department of Physics
Boston College, MA 02467
Telephone: 617-552-3599
Homepage: www2.bc.edu/~zhouse
-

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



Installed fine and yet having issues...

2004-07-15 Thread David J Jones

Hello,
  I am knew to the list and after spending 3 days of looking over docs, faqs
and web pages I have resigned myself to asking now.  I am using Windows XP
Pro with the latest install of Cygwin.
Everything seemed to install fine with no errors however when I start up the
bash shell, I cannot even use the simplest of commands.  I have attempted to
go by the advice others have give to what I think were related questions but
nothing seems to work.  I am not striving to run X11, I mainly just wish to
use gcc and related things like make and configure.  I am kind of new to
cygwin, so any help would be greatly appreciated.

Thank you in advance,




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



Re: [BUG] mprotect() on Windows NT 5+

2004-07-15 Thread Corinna Vinschen
On Jul 15 18:19, Xavier Joubert wrote:
 Hello dear Cygwin developpers !
 
 
 This is my first post here, so I would like to begin by sending you a big thank 
 for Cygwin ! This is a great tool to port programs to Windows.

Thanks :-)

 I think I found a bug in mprotect() implementation. This call is unable to set 
 some protections (PROT_READ|PROT_WRITE for example) on a given memory area, 
 while it can set some others (PROT_NONE or PROT_READ for example) on the same 
 memory area. From my tests, it seems to happen only on WNT5+ (ie. Windows 2000 
 and Windows XP - detailed results below).

Thanks for the helpful testcase.

The cause is a limitation in newer Windows NT versions, which make sense. 
Well, sort of.  The protection modes PAGE_READWRITE and PAGE_WRITECOPY are
mutually exlusive, which is enforced in calls to VirtualProtect since W2K.

Since your example uses MAP_PRIVATE, which Cygwin maps to PAGE_WRITECOPY,
trying to protect with MAP_WRITE, which internally maps to PAGE_READWRTE,
fails on W2K and later.  I've checked in a fix, so that mprotect tests for
the original protection mode of the first page in the area, and uses
READWRITE or WRITECOPY, whichever matches the original protection.


Corinna

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

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



RE: Installed fine and yet having issues...

2004-07-15 Thread Dave Korn
 -Original Message-
 From: cygwin-owner On Behalf Of David J Jones
 Sent: 15 July 2004 17:55

 Hello,
   I am knew to the list and after spending 3 days of looking 
 over docs, faqs
 and web pages I have resigned myself to asking now.  I am 
 using Windows XP
 Pro with the latest install of Cygwin.
 Everything seemed to install fine with no errors however when 
 I start up the
 bash shell, I cannot even use the simplest of commands.  

  At this point in your post, it would have been a good idea to explain
*why* you can't even use the simplest of commands.  Is your keyboard broken?
Do your fingers perhaps not work?  Does bash not accept input?  Do you get
an error message?  Does your computer halt and catch fire, or reboot?
Nobody's going to know what the answer to your problem is if you don't
actually tell us anything about what the problem itself is!

 I 
 have attempted to
 go by the advice others have give to what I think were 
 nothing seems to work. 

  Oh look!  No details about what that advice was, or in what way it didn't
work.

 I am not striving to run X11, I 
 mainly just wish to
 use gcc and related things like make and configure.  

  Reading between the lines, I can just make out the first hint of a clue as
to what the problem might actually be.  Did you actually tell setup to
install gcc and the various other development tools?  They're not included
by default.

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


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



RE: C99 complex numbers in cygwin?

2004-07-15 Thread dgun
From: Billinghurst, David (CALCRTS)
 gcc uses the complex math functions from the system libraries,
 (excluding builtins).  They aren't in newlib, so cygwin doesn't have them.
 
 I, too, would like them as they are required by gfortran, which will be 
 (is) the fortran compiler in gcc-3.5.  

UPDATE: This just in...

http://gcc.gnu.org/onlinedocs/gcc-3.4.1/gcc/Other-Builtins.html#Other%20Builtins

The ISO C99 functions ... cabsf, cabsl, cabs, cacosf, cacoshf, cacoshl,
cacosh, cacosl, cacos, cargf, cargl, carg, casinf, casinhf, casinhl,
casinh, casinl, casin, catanf, catanhf, catanhl, catanh, catanl, catan,
cbrtf, cbrtl, cbrt, ccosf, ccoshf, ccoshl, ccosh, ccosl, ccos, cexpf,
cexpl, cexp, cimagf, cimagl, cimag, conjf, conjl, conj,..., cpowf,
cpowl, cpow, cprojf, cprojl, cproj, crealf, creall, creal, csinf, csinhf,
csinhl, csinh, csinl, csin, csqrtf, csqrtl, csqrt, ctanf, ctanhf, ctanhl,
ctanh, ctanl, ctan ... are handled as built-in functions except in strict
ISO C90 mode (-ansi or -std=c89).

Sounds like I just need to wait for gcc 3.4.  Is there a build of it
available for cygwin yet?

--
Daniel

-- 
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm


--
Unsubscribe info:  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: HOWTO build debug version of the cygwin dll with no optimisation?

2004-07-15 Thread Christopher Faylor
On Thu, Jul 15, 2004 at 04:14:05PM +0100, Dave Korn wrote:
 -Original Message-
 From: cygwin-owner On Behalf Of Christopher Faylor
 Sent: 15 July 2004 15:38

 On Thu, Jul 15, 2004 at 03:32:14PM +0100, Dave Korn wrote:
  -Original Message-
  From: cygwin-owner On Behalf Of Christopher Faylor
  Sent: 15 July 2004 02:00
 
   CFLAGS_FOR_BUILD=CFLAGS_FOR_TARGET=-O2 -g -O0  
  LDFLAGS=
   ^
   That's it :-)
  
  Try `make CFLAGS=-g CFLAGS_FOR_TARGET=-g'.  That will 
  compile everything
  w/o optimization
  
 Or, once you've gotten supporting libraries built, just build in the
 winsup/cygwin directory with CFLAGS=-g.  It's a lot faster to just
 build cygwin from the cygwin subdirectory.
 
 Good point.  I tend to do make all-bfd all-target-winsup at the
 top-level, but that of course still drags in all the cygserver and
 utils stuff that I don't need.
 
 Wow.  The first response to my observation was a good point?

  I call 'em like I see 'em!

 That is surprising.  I fully expected to get a Oh, I tried that once
 and it didn't work for me from somebody.

  Well, I haven't actually tried it myself.  Is setting just CFLAGS enough
when you're in the lower-level directory?

Hmm.  It should be.  I do my configury in the winsup directory, though, so
I don't get all of the CC overrides from the top level.  I think setting
CFLAGS should still be enough, though.

 Anyway, FWIW, the only time I build cygwin from the top level is when
 I'm generating snapshots.  Otherwise, I live in the cygwin 
 (and occasionally the newlib) directory.

Matter of fact, I knew it already, or rather had all the clues I
needed  I used to (a few years back) very regularly be in the habit
of cd'ing into the gcc subdir and doing make all there for gcc
builds; when all you want is a cross-compiler, you might as well save
the time of building cross- and host- libiberty et al.  Then I got a
faster computer, and fell out of the habit! But, yeh, this is a general
principle with all the software that shares top-level autoconf; once
you've configured it you can just cd into the relevant lower-level dir
and do a make all, to just get the particular thing you want built.

Yep.  I try to do the same thing with gcc when I am working on gcc and
gas when I'm working on gas, etc.  You run the risk of not correctly
rebuilding sibling libraries and such after a CVS update though, of
course.

--
Unsubscribe info:  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: Setup installing xerces libraries for no apparent reason

2004-07-15 Thread Christopher Faylor
On Thu, Jul 15, 2004 at 11:57:04AM -0400, Buchbinder, Barry (NIH/NIAID) wrote:
When checking for upgrades from ftp://mirrors.rcn.net/pub/sourceware/cygwin
(View: partial), I noted that setup ver. 2.427 wanted to install
libxerces-c21, libxerces-c22, and libxerces-c23.  I hadn't had these before
and wanted to see what was now requiring them, so I looked in setup.ini.
The best I could tell, the only thing that requires them is xerces; I do not
have xerces and nothing requires xerces.  (In vim, /requires.*xerces goes
only to xerces-c.  I also checked setup.ini on
ftp://mirrors.kernel.org/sources.redhat.com/cygwin/ and it was identical.

http://cygwin.com/ml/cygwin-apps/2004-07/msg00097.html

--
Unsubscribe info:  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: /usr/share/doc/Cygwin (Was Re: sending email from Cygwin)

2004-07-15 Thread Joshua Daniel Franklin
On Thu, 15 Jul 2004 09:47:39 +0200, Corinna Vinschen wrote:
  Can I also suggest that the FAQ's section called Where can I get more
  information? / Where's the documentation? would be an excellent place
  to mention that all the per-package readme files are collected together
  in /usr/share/doc/Cygwin?  That would be where I'd look first to try to
  discover the info.
 
 Sounds good to me.  Joshua, would you mind to pump up the FAQ with an
 entry like this?

Yep, that needs updating. I'll get on it.

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



Re: maintaner of gcc

2004-07-15 Thread Sam Steingold
 * Gerrit P. Haase [EMAIL PROTECTED] [2004-07-15 15:24:45 +0200]:

 What is wrong with 3.3.x release series?  Are there any serious bugs?
 Are there issues (for you)?  Why do you need 3.4.x?

g++ 3.3 cannot compile CLISP.
it is alleged that g++ 3.4 can.

(either version of gcc can compile CLISP, but g++ compile is necessary
for some extra bug detection).

-- 
Sam Steingold (http://www.podval.org/~sds) running w2k
http://www.camera.org http://www.iris.org.il http://www.memri.org/
http://www.mideasttruth.com/ http://www.honestreporting.com
If you think big enough, you'll never have to do it.

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



mmap bug on Windows 9x

2004-07-15 Thread Anton Ertl
On Windows 9x/ME different calls to mmap sometimes produce the same
address (without that memory being unmapped in the meantime, at least
not by application code).  Here's a trace of the application calls to
mmap (on WME):

try mmap($0, $400038, ..., MAP_ANON, ...); success, address=$8395
try mmap($8395, $2cfd0, ..., MAP_FIXED|MAP_FILE, imagefile, 0); failed: Not enough 
core
try mmap($83d52000, $400038, ..., MAP_ANON, ...); success, address=$8395
try mmap($83d52000, $4000, ..., MAP_ANON, ...); success, address=$83d51000
try mmap($83d56000, $4000, ..., MAP_ANON, ...); success, address=$83d55000
try mmap($83d5a000, $3c00, ..., MAP_ANON, ...); success, address=$83d59000
try mmap($83d5e000, $3a00, ..., MAP_ANON, ...); success, address=$83466000
try mmap($8346b000, $4, ..., MAP_ANON, ...); success, address=$83d6
try mmap($83da1000, $4, ..., MAP_ANON, ...); success, address=$83d6

Note that the last two calls produce the same address.  This happens
with cygwin1.dll versions 1.5.5-1 and 1.5.10-3 (and probably also with
1.3.22-1).

On Windows 2000 (with cygwin1.dll 1.3.22) the same application
produces the following trace:

try mmap($0, $400038, ..., MAP_ANON, ...); success, address=$65
try mmap($65, $2cfd0, ..., MAP_FIXED|MAP_FILE, imagefile, 0); failed: Value too 
large for defined data type
try mmap($a52000, $400038, ..., MAP_ANON, ...); success, address=$a6
try mmap($e62000, $4000, ..., MAP_ANON, ...); success, address=$a51000
try mmap($a56000, $4000, ..., MAP_ANON, ...); success, address=$a55000
try mmap($a5a000, $3c00, ..., MAP_ANON, ...); success, address=$a59000
try mmap($a5e000, $3a00, ..., MAP_ANON, ...); success, address=$e61000
try mmap($e66000, $4, ..., MAP_ANON, ...); success, address=$e7
try mmap($eb1000, $4, ..., MAP_ANON, ...); success, address=$eb

and everything works fine.

In this posting I just want to check if the bug is already known.  If
not, I will condense the application to something that exhibits the
bug.  Or, if you feel adventurous, you can deal with the full
application:
http://www.complang.tuwien.ac.at/forth/gforth/gforth-0.6.2.tar.gz
(also available from GNU mirrors); you get the trace output above if
you build gforth with gcc-3.3 and call it with --debug.

Thanks for your work on Cygwin.

- anton

--
Unsubscribe info:  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: maintaner of gcc

2004-07-15 Thread Bobby McNulty Junior
And, -mno-cygwin does not work with Timidity, so I thought perhaps Gcc 3.4.1
might be better.
There have been tons of fixes to the 3.4 series.
I'll try and get back on the gcc maintainers list and work with gcc 3.5 to
improve it even further for Cygwin and Windows.
Gcc 3.3.1 will compile Timidity 2.13.0 and CVS, but I get problems with the
mingw portion. Visual Studio complains, so I can't use it to make a GUI
version of Timidity.
GCC 3.4 is on my system, all I have to do is compile. But only with cygwin
stuff.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Sam Steingold
Sent: Thursday, July 15, 2004 2:56 PM
To: [EMAIL PROTECTED]; Gerrit P. Haase
Subject: Re: maintaner of gcc

 * Gerrit P. Haase [EMAIL PROTECTED] [2004-07-15 15:24:45 +0200]:

 What is wrong with 3.3.x release series?  Are there any serious bugs?
 Are there issues (for you)?  Why do you need 3.4.x?

g++ 3.3 cannot compile CLISP.
it is alleged that g++ 3.4 can.

(either version of gcc can compile CLISP, but g++ compile is necessary
for some extra bug detection).

--
Sam Steingold (http://www.podval.org/~sds) running w2k
http://www.camera.org http://www.iris.org.il http://www.memri.org/
http://www.mideasttruth.com/ http://www.honestreporting.com
If you think big enough, you'll never have to do it.

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





--
Unsubscribe info:  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: C99 complex numbers in cygwin?

2004-07-15 Thread Larry Hall
At 01:52 PM 7/15/2004, you wrote:
From: Billinghurst, David (CALCRTS)
 gcc uses the complex math functions from the system libraries,
 (excluding builtins).  They aren't in newlib, so cygwin doesn't have them.
 
 I, too, would like them as they are required by gfortran, which will be 
 (is) the fortran compiler in gcc-3.5.  

UPDATE: This just in...

http://gcc.gnu.org/onlinedocs/gcc-3.4.1/gcc/Other-Builtins.html#Other%20Builtins

The ISO C99 functions ... cabsf, cabsl, cabs, cacosf, cacoshf, cacoshl,
cacosh, cacosl, cacos, cargf, cargl, carg, casinf, casinhf, casinhl,
casinh, casinl, casin, catanf, catanhf, catanhl, catanh, catanl, catan,
cbrtf, cbrtl, cbrt, ccosf, ccoshf, ccoshl, ccosh, ccosl, ccos, cexpf,
cexpl, cexp, cimagf, cimagl, cimag, conjf, conjl, conj,..., cpowf,
cpowl, cpow, cprojf, cprojl, cproj, crealf, creall, creal, csinf, csinhf,
csinhl, csinh, csinl, csin, csqrtf, csqrtl, csqrt, ctanf, ctanhf, ctanhl,
ctanh, ctanl, ctan ... are handled as built-in functions except in strict
ISO C90 mode (-ansi or -std=c89).

Sounds like I just need to wait for gcc 3.4.  Is there a build of it
available for cygwin yet?


No.  Gerrit said maybe sometime in August.


--
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: C99 complex numbers in cygwin?

2004-07-15 Thread Christopher Faylor
On Thu, Jul 15, 2004 at 04:13:16PM -0400, Larry Hall wrote:
At 01:52 PM 7/15/2004, you wrote:
From: Billinghurst, David (CALCRTS)
 gcc uses the complex math functions from the system libraries,
 (excluding builtins).  They aren't in newlib, so cygwin doesn't have them.
 
 I, too, would like them as they are required by gfortran, which will be 
 (is) the fortran compiler in gcc-3.5.  

UPDATE: This just in...

http://gcc.gnu.org/onlinedocs/gcc-3.4.1/gcc/Other-Builtins.html#Other%20Builtins

The ISO C99 functions ... cabsf, cabsl, cabs, cacosf, cacoshf, cacoshl,
cacosh, cacosl, cacos, cargf, cargl, carg, casinf, casinhf, casinhl,
casinh, casinl, casin, catanf, catanhf, catanhl, catanh, catanl, catan,
cbrtf, cbrtl, cbrt, ccosf, ccoshf, ccoshl, ccosh, ccosl, ccos, cexpf,
cexpl, cexp, cimagf, cimagl, cimag, conjf, conjl, conj,..., cpowf,
cpowl, cpow, cprojf, cprojl, cproj, crealf, creall, creal, csinf, csinhf,
csinhl, csinh, csinl, csin, csqrtf, csqrtl, csqrt, ctanf, ctanhf, ctanhl,
ctanh, ctanl, ctan ... are handled as built-in functions except in strict
ISO C90 mode (-ansi or -std=c89).

Sounds like I just need to wait for gcc 3.4.  Is there a build of it
available for cygwin yet?

No.  Gerrit said maybe sometime in August.

Can we get August moved up to next week, maybe?  Back in B20 days, we'd
August the complex numbers all of the time so that they would be
available ASAP.

--
Unsubscribe info:  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: [BUG] mprotect() on Windows NT 5+

2004-07-15 Thread Xavier Joubert
Hello Corinna,


Selon Corinna Vinschen [EMAIL PROTECTED]:
 The cause is a limitation in newer Windows NT versions, which make sense.
 Well, sort of.  The protection modes PAGE_READWRITE and PAGE_WRITECOPY are
 mutually exlusive, which is enforced in calls to VirtualProtect since W2K.

 Since your example uses MAP_PRIVATE, which Cygwin maps to PAGE_WRITECOPY,
 trying to protect with MAP_WRITE, which internally maps to PAGE_READWRTE,
 fails on W2K and later.  I've checked in a fix, so that mprotect tests for
 the original protection mode of the first page in the area, and uses
 READWRITE or WRITECOPY, whichever matches the original protection.

Whow! That's amazing! I didn't expect to get a reply today. Even less a fix
commited to CVS. If all bugs last only 51 minutes in Cygwin, this software will
quickly become perfect!

Thanks _a lot_ Corinna !

I'll try Cygwin snapshot tomorrow and let you know how it goes with the real
stuff.


Xavier

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



gcc 3.3.1-3 runtime error: static data storage size

2004-07-15 Thread Pietro Brandani
I have the following example to propose:
/** aa.c **/
#define NXY 5000
#define NXY 7000
int xy[NXY][NXY];
main(){
printf(ok\n);
}
This will work when NXY=5000, but will generate a SIGSEV exception before 
reaching the first statement when NXY=7000.

The array in the faulty case is 187MB. The gcc documentation gives 2GB as 
the limit for having to switch to dynamic allocation. Any fixes? or 
relevant compiler options possibly available?

Thanks.
Pietro Brandani
Cygwin Configuration Diagnostics
Current System Time: Thu Jul 15 13:58:04 2004

Windows XP Home Edition Ver 5.1 Build 2600 Service Pack 1

Path:   .\
c:\Documents and Settings\cbstadmin\Desktop\das\_bin
C:\Cygnus_win\usr\local\bin
C:\Cygnus_win\bin
C:\Cygnus_win\bin
C:\Cygnus_win\usr\X11R6\bin
c:\WINDOWS\system32
c:\WINDOWS
c:\WINDOWS\System32\Wbem
c:\Program Files\ATI Technologies\ATI Control Panel
c:\Program Files\Common Files\Adaptec Shared\System
c:\matlab6p5\bin\win32
c:\Netapps
c:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT
c:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin
c:\Program Files\Microsoft Visual Studio\Common\Tools
c:\Program Files\Microsoft Visual Studio\VC98\bin
c:\program files\devstudio\sharedide\bin\ide
c:\program files\devstudio\sharedide\bin
c:\program files\devstudio\vc\bin
c:\program files\ssh communications security\ssh secure shell
c:\Netapps

Output from C:\Cygnus_win\bin\id.exe (nontsec)
UID: 1007(cbstadmin) GID: 513(None)
513(None)

Output from C:\Cygnus_win\bin\id.exe (ntsec)
UID: 1007(cbstadmin) GID: 513(None)
0(root)  513(None)
544(Administrators)  545(Users)

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

HOME = `C:\Cygnus_win\home\cbstadmin'
MAKE_MODE = `unix'
PWD = `/home/cbstadmin'
USER = `cbstadmin'

ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\cbstadmin\Application Data'
CLIENTNAME = `Console'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `WELLS'
COMSPEC = `C:\WINDOWS\system32\cmd.exe'
CVS_RSH = `/bin/ssh'
DISPLAY = `wells:0.0'
HOMEDRIVE = `C:'
HOMEPATH = `\Documents and Settings\cbstadmin'
HOSTNAME = `wells'
INCLUDE = `C:\Program Files\Microsoft Visual Studio\VC98\atl\include;C:\Program 
Files\Microsoft Visual Studio\VC98\mfc\include;C:\Program Files\Microsoft Visual 
Studio\VC98\include;c:\program files\devstudio\vc\include;c:\program 
files\devstudio\vc\atl\include;c:\program files\devstudio\vc\mfc\include;%include%'
INFOPATH = 
`/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:'
LIB = `C:\Program Files\Microsoft Visual Studio\VC98\mfc\lib;C:\Program 
Files\Microsoft Visual Studio\VC98\lib;c:\program files\devstudio\vc\lib;c:\program 
files\devstudio\vc\mfc\lib;%lib%'
LOGONSERVER = `\\WELLS'
MANPATH = 
`/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man::/usr/ssl/man'
MSDEVDIR = `C:\Program Files\Microsoft Visual Studio\Common\MSDev98;C:\Program 
Files\DevStudio\SharedIDE'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/usr/bin'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PKG_CONFIG_PATH = `/usr/X11R6/lib/pkgconfig'
PRINTER = `Printer2'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 9 Stepping 5, GenuineIntel'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0905'
PROGRAMFILES = `C:\Program Files'
PROMPT = `$P$G'
PS1 = `\[\033]0;\w\007
[EMAIL PROTECTED] \[\033[33m\w\033[0m\]
$ '
SESSIONNAME = `Console'
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINDOWS'
TEMP = `C:\DOCUME~1\CBSTAD~1\LOCALS~1\Temp'
TERM = `cygwin'
TMP = `C:\DOCUME~1\CBSTAD~1\LOCALS~1\Temp'
USERDOMAIN = `WELLS'
USERNAME = `cbstadmin'
USERPROFILE = `C:\Documents and Settings\cbstadmin'
WINDIR = `C:\WINDOWS'
_ = `/usr/bin/cygcheck'
POSIXLY_CORRECT = `1'

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

Re: [BUG] mprotect() on Windows NT 5+

2004-07-15 Thread Christopher Faylor
On Thu, Jul 15, 2004 at 11:10:20PM +0200, Xavier Joubert wrote:
Hello Corinna,


Selon Corinna Vinschen [EMAIL PROTECTED]:
 The cause is a limitation in newer Windows NT versions, which make sense.
 Well, sort of.  The protection modes PAGE_READWRITE and PAGE_WRITECOPY are
 mutually exlusive, which is enforced in calls to VirtualProtect since W2K.

 Since your example uses MAP_PRIVATE, which Cygwin maps to PAGE_WRITECOPY,
 trying to protect with MAP_WRITE, which internally maps to PAGE_READWRTE,
 fails on W2K and later.  I've checked in a fix, so that mprotect tests for
 the original protection mode of the first page in the area, and uses
 READWRITE or WRITECOPY, whichever matches the original protection.

Whow! That's amazing! I didn't expect to get a reply today. Even less a fix
commited to CVS. If all bugs last only 51 minutes in Cygwin, this software will
quickly become perfect!

Unfortunately, some of us are slackers and are not as adroit as Corinna in
fixing bugs so perfection is still a long way off...

cgf

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



Re: UNC Pathname Handling within Applications

2004-07-15 Thread Shankar Unni
Thorsten Haude wrote:
- Is there any standard way to approach this problem? Has it come up
before in other applications?
I don't know why you are even trying to normalize the paths like this. 
Just hand the thing off to the OS. Usually, both the user and the OS 
know what it is they are trying to do.

For your program to try to mediate between them, and try to understand 
and correct the user's request is almost always inappropriate.

Don't even try to normalize \ to / or vice-versa. Windows APIs (the 
low-level ones) know perfectly well how to handle forward-slashes as 
directory separators..

- Do you know a resource which explains how Posix apps are expected to
handle paths like this?
It doesn't matter. Just pass the names, as is, to the underlying OS API.
POSIX specifically says that *two* leading slashes implementation 
defined behavior, and this is specifically to allow NetBIOS-like (and 
AFS-like) names in POSIX implementations.

--
Unsubscribe info:  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: maintaner of gcc

2004-07-15 Thread Gerrit P. Haase
Sam schrieb:

 * Gerrit P. Haase [EMAIL PROTECTED] [2004-07-15 15:24:45 +0200]:

 What is wrong with 3.3.x release series?  Are there any serious bugs?
 Are there issues (for you)?  Why do you need 3.4.x?

 g++ 3.3 cannot compile CLISP.
 it is alleged that g++ 3.4 can.

 (either version of gcc can compile CLISP, but g++ compile is necessary
 for some extra bug detection).


Which version exactly?  Is this also true for 3.3.4?  How do you build
the packages for the Cygwin release?

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: rsync very slow, but not a network issue

2004-07-15 Thread Alexis Gallagher
Reini (and Steven),
Okay, I get. This benchmark you introduced below compares rsync on two 
variables: copy speed locally vs over the network, and copy speed for 
copies onto indentical target files vs different target files. And your 
benchmark showed that rsync was faster for copies onto pre-existing 
target files -- just as rsync is supposed to be.

I just ran the same benchmark on my side and I get exactly the opposite 
results. For what it's worth, here's what I got. I started with two 
different binary files (based on different mp3's) each of size 434006.

%[local copy, target file is different ]
%time rsync test1.mp3 test2.mp3
real 0m6.422s
user 0m0.430s
sys  0m1.431s
%[local copy, target file is the same ]
%time rsync test1.mp3 test1-same.mp3
real 0m6.523s
user 0m0.300s
sys  0m1.261s
%cp test2.bak test2.mp3
%[network copy, a pure copy with scp for benchmark]
%time scp test2.mp3 $TEST:
260.6KB/s (calculated average)
real 0m16.257s
user 0m0.510s
sys  0m1.091s
%[network copy, target file is different ]
%time rsync test1.mp3 $TEST:test2.mp3
real 0m13.797s
user 0m1.421s
sys  0m1.250s
% (network copy, files are 100% the same)
% (repeated twice to guarantee target file is there)
%time rsync test2.mp3 $TEST:test2.bak
real 0m28.329s
user 0m1.390s
sys  0m4.766s
%rsync --version
rsync version 2.6.2 protocol version 28
ssh $TEST rsync --version
rsync version 2.6.2 protocol version 28
$ ssh -V
OpenSSH_3.8.1p1, OpenSSL 0.9.7d 17 Mar 2004
$ ssh $TEST ssh -V
OpenSSH_3.7.1p1, SSH protocols 1.5/2.0, Open SSL 0.9.7d 17 Mar 2004
(but ssh -v reports TEST's sshd server is responding with
OpenSSH_3.6.1p1+CAN-2003-0693, SSH protocols 1.5/2.0, Open SSL 0x0090702f )
$ uname -r
1.5.10(0.116/4/2)
As you can see, my network copy onto an identical waiting file is taking 
almost twice as long as a network copy onto a _different_ waiting file, 
and is also substantially slower than a pure copy. So I'm experiencing a 
net rsync slowdown rather than a speedup.

Is it the processor? Thorsten Kampe And Steven Hartland suggested the 
problem is in effect that my computer is too slow, and that I should 
turn off all checksumming. I seem to have more bandwidth to my TEST 
machine than you, so I suppose my processor might be the bottleneck for 
me but not for you, which would explain our different results. How fast 
was your machine?

Or Is it cygwin? I notice that the enormous slowdown for the network 
copy onto an identical target  is all appearing in the 'real' component 
of the time's timing report, and that there's a bit of extra time in 
'sys' but other than that there's nothing to account for it. I'm not 
sure how to interpret that. Would cygwin-specific delays appear in 
'sys'? In other words, does this mean the checksums are using up all the 
time, and confirm that my processors are too slow to benefit from rsync?

Best wishes,
Alexis
Reini Urban wrote:
So check if the net overhead in the cygwin version is broken?
Could be easily tested out with two local files:
head -c 210  /dev/random test1.mp3
head -c 210  /dev/random test2.mp3
cp test1.mp3 test1-same.mp3
cp test2.mp3 test2.bak
time rsync test1.mp3 test2.mp3
  real0m0.518s
  user0m0.201s
  sys 0m0.171s
time rsync test1.mp3 test1-same.mp3
  real0m0.524s
  user0m0.154s
  sys 0m0.263s
RSYNC_RSH=ssh
TEST=othermachine
cp test2.bak test2.mp3
time scp test2.mp3 $TEST:
  63.2KB/s
real0m36.619s
user0m0.170s
sys 0m0.233s
# 100% different
$ time rsync test1.mp3 $TEST:test2.mp3
Server is very old version of rsync, upgrade recommended.
real0m37.162s
user0m0.388s
sys 0m0.202s
# 100% same
$ time rsync test2.mp3 $TEST:test2.bak
Server is very old version of rsync, upgrade recommended.
real0m7.298s
user0m1.201s
sys 0m2.217s
6x faster than scp, with same data.
0.5s (1.4%) slower than scp, with complete random data.
$ rsync --version
rsync  version 2.6.2  protocol version 28
$ ssh $TEST rsync --version
rsync version 2.4.6  protocol version 24
$ ssh -V
OpenSSH_3.8.1p1, OpenSSL 0.9.7d 17 Mar 2004
$ ssh $TEST ssh -V
OpenSSH_3.7.1p2, SSH protocols 1.5/2.0, OpenSSL 0.9.6c 21 dec 2001
$ uname -r
1.5.10(0.116/4/2)
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/

I see the final result you
--
Unsubscribe info:  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: UNC Pathname Handling within Applications

2004-07-15 Thread Thorsten Haude
Hi,

* Shankar Unni wrote (2004-07-16 00:52):
Thorsten Haude wrote:
- Is there any standard way to approach this problem? Has it come up
before in other applications?

I don't know why you are even trying to normalize the paths like this. 
Just hand the thing off to the OS. Usually, both the user and the OS 
know what it is they are trying to do.

The path is also displayed at various places. The user might be
surprised to see surplus slashes.


Thorsten
-- 
Das Briefgeheimnis sowie das Post- und Fernmeldegeheimnis sind unverletzlich.
- Grundgesetz, Artikel 10, Abs. 1 


pgpDGBboFVTuL.pgp
Description: PGP signature


rxvt/bash tab problem

2004-07-15 Thread luke . kendall
If at a fresh bash prompt in an rxvt window (non-X) you type a TAB,
nothing happens, and no input from the keyboard appears thereafter,
until you use CTRL-C to interrupt whatever has blocked.

If you then type, input is working again.

But if you hit TAB twice in quick succession, you'll find that no input
appears (again), and that while you can use CTRL-C to get a fresh
prompt, input no longer works in the rxvt window.  You have to kill the
window - it has become useless.

Windows XP SP1; cygwin 1.5.10.

luke


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



Re: rxvt/bash tab problem

2004-07-15 Thread luke . kendall
On 16 Jul, To: [EMAIL PROTECTED] wrote:
  But if you hit TAB twice in quick succession, you'll find that no input 
  appears (again), and that while you can use CTRL-C to get a fresh 
  prompt, input no longer works in the rxvt window.  You have to kill the 
  window - it has become useless. 

This is untrue.  I just discovered that if you wait long enough, the
input is echoed and the rxvt becomes normal again.

If you type another CTRL-C, you get a fresh prompt, but still no input
echoed.

If you hit CTRL-C *again*, then everything you typed gets passed
through to the shell and acted upon!

(I.e. the input hasn't been flushed by the CTRL-C, and there is some
process/thread that ignores the interrupt and refuses to echo the input
as it occurs.)

luke


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



Re: sending email from Cygwin

2004-07-15 Thread luke . kendall
On 15 Jul, Pierre A. Humblet wrote:
  : /home/luke ; exim -oi luke  /tmp/smff3624 
  2004-07-15 17:56:06 Exim configuration file /etc/exim.conf has the wrong 
  owner, group, or mode 
  : /home/luke ; ls -l /etc/exim.conf 
  -rwx--+   1 luke Domain U22025 Aug 29  2002 /etc/exim.conf 
   
  That should have been set correctly by the postinstall script. The incomplete 
  /etc/group prevented success. 

So mkgroup -l needed to be added to /etc/group.  But setup doesn't do
this - which may be fair enough?   But the consequence is that after
exim is installed, it won't work: there's more work to do.  That may
be fair enough.

The missing piece of information for me was that exim-config needs to be
run before you can use exim.  (Perhaps exim-config even checks for the
mkpasswd -l step to have been done?)

Anyway, I think that's basically fair enough.  It would be nice if exim
*itself* reported that running exim-config might be a good idea.  (Is
exim-config used on other platforms besides cygwin?)
 
  But probably I'd need to run exim-config to have a serious chance of 
  success? 
   
  It's only required if you operate a mail server, but in this case it will 
  set the permissions correctly. 
   
  The reason why you don't see the rights (previous e-mail in thread) is most 
  likely that you get them indirectly through membership in a group.

That's true.

  If you are curious about that, the User control panel is your best bet.  

Yep, if you look at that you can see which group (Administrators, Power
Users, or Restricted Users) you're in.  editrights won't tell you
that, as far as I can see.

Thanks for all the info and help,

luke


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



Re: rsync very slow, but not a network issue

2004-07-15 Thread Steven Hartland
- Original Message - 
From: Alexis Gallagher 

I've repeated your tests with a P4 2.4Ghz windows XP using SFU
and a PIII 800Mhz running FreeBSD 5.1


 %[local copy, target file is different ]
 %time rsync test1.mp3 test2.mp3
 
 real 0m6.422s
 user 0m0.430s
 sys  0m1.431s

P4: time rsync test1.mp3 test2.mp3
real0m1.906s
user0m0.344s
sys 0m0.343s
P3:time rsync test1.mp3 test2.mp3
real0.380u 
user   0.233s 
sys0:00.81

 %[local copy, target file is the same ]
 %time rsync test1.mp3 test1-same.mp3
 
 real 0m6.523s
 user 0m0.300s
 sys  0m1.261s

P4(SFU): time rsync test1.mp3 test2.mp3
real0m0.906s
user0m0.500s
sys 0m0.157s

P4(cygwin): time rsync test1.mp3 test2.mp3
real0m26.005s
user0m1.060s
sys 0m3.732s

P3:time rsync test1.mp3 test2.mp3
real0.326u 
user   0.264s
user   0:00.72

 %cp test2.bak test2.mp3
 %[network copy, a pure copy with scp for benchmark]
 %time scp test2.mp3 $TEST:
 
 260.6KB/s (calculated average)
 real 0m16.257s
 user 0m0.510s
 sys  0m1.091s

P4(SFU)-P3:
4.5MB/s
real0m3.188s
user0m1.312s
sys 0m0.438s
P4(cygwin)-P3:
2.6MB/s
real0m4.433s
user0m0.639s
sys 0m0.561s

P3-P4
5.3MB/s:
real   1.356u 
user   0.439s 
sys0:05.38

[network copy, ftp]
P3 - P4
10.85 MB/s
P4(windows)-P3
10.85 MB/s
P4(cygwin)-P3
9.43 MB/s

 %[network copy, target file is different ]
 %time rsync test1.mp3 $TEST:test2.mp3
 
 real 0m13.797s
 user 0m1.421s
 sys  0m1.250s

P3-P4
real 3.652u
user 0.411s
sys  0:05.39
P4(SFU)-P3
real0m4.516s
user0m1.968s
sys 0m1.093s
P4(cygwin)-P3
real0m7.722s
user0m1.357s
sys 0m1.030s

 
 % (network copy, files are 100% the same)
 % (repeated twice to guarantee target file is there)
 %time rsync test2.mp3 $TEST:test2.bak
 
 real 0m28.329s
 user 0m1.390s
 sys  0m4.766s
 

P4: rsync --version
rsync  version 2.6.0  protocol version 27
OpenSSH_3.7.1p2, SSH protocols 1.5/2.0, OpenSSL 0.9.7c 30 Sep 2003
P3: rsync --version
rsync  version 2.6.0  protocol version 27
OpenSSH_3.6.1p1 FreeBSD-20030423, SSH protocols 1.5/2.0, OpenSSL 0x0090701f

 %rsync --version
 rsync version 2.6.2 protocol version 28
 ssh $TEST rsync --version
 rsync version 2.6.2 protocol version 28
 $ ssh -V
 OpenSSH_3.8.1p1, OpenSSL 0.9.7d 17 Mar 2004
 $ ssh $TEST ssh -V
 OpenSSH_3.7.1p1, SSH protocols 1.5/2.0, Open SSL 0.9.7d 17 Mar 2004
 (but ssh -v reports TEST's sshd server is responding with
 OpenSSH_3.6.1p1+CAN-2003-0693, SSH protocols 1.5/2.0, Open SSL 0x0090702f )
 $ uname -r
 1.5.10(0.116/4/2)

Result is although the copy is cpu limited in ssh and cygwin ssh is slower
than SFU ssh it doesn't explain the same file test results:
SFU: real0m0.906s
Cygwin: real0m26.005s

Strange behaviour noticed. It appears that for each block tested cygwin
is opening a new connection instead of using the current one this could
well be where the performance is being lost as this doesn't happen
under SFU.

Steve



This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or 
entity to whom it is addressed. In the event of misdirection, the recipient is 
prohibited from using, copying, printing or otherwise disseminating it or any 
information contained in it. 

In the event of misdirection, illegible or incomplete transmission please telephone 
(023) 8024 3137
or return the E.mail 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/



How do *you* write portable shell scripts?

2004-07-15 Thread luke . kendall
Thinking about this:

 It would be nice if exim *itself* reported that running exim-config
 might be a good idea.  (Is exim-config used on other platforms besides
 cygwin?)

 made me wonder what other people on this list do, to write portable
shell scripts?

In a shell script, is there an accepted way to detect you're running
Windows, so you can make necessary adjustments?

One day, I'd like all the hundreds of scripts that we've written locally
and which are still in use, to work as-is under Cygwin.
Attached is the klunky script I use to help with that.  (These days, it
seems I don't need DEVNULL and DEVTTY, so I confess I've stopped using
them ...)

luke
#!/bin/sh
#
# Set some variables to make DOS-portable shell scripts possible.
# This script must be sourced by a Bourne-like shell to be effective:
#
#   . portshell
#
# Afterwards, you can use these environment variables:
#
#   UNIX_OR_WIN:windows or unix.
#   UWIN, ISCYGWIN: Only one of these can be true (else, false).
#   UNIXY:  true if it's quite unix-like (else, false).
#   DEVNULL,DEVTTY: Use these instead of /dev/tty etc., for portability.
#   EGREP_SILENT:   The option to use to make egrep silent.
#   TMP:What to use for /tmp.
#
# Author: Luke Kendall
#
# Copyright (C) Luke Kendall, 2001.  Use however you like.
#
PORTSHELL_VARS=DATE_FMT DEVTTY DEVNULL EGREP_SILENT ISCYGWIN \
UNIX_OR_WIN UNIXY UWIN TMP
if [ x$PORTSHELL != xstuff ]
then
UNIXY=true  # Well, you're running this shell script, aren't you?
UWIN=false
ISCYGWIN=false

# This used to be -f and -s for U/Win, but not needed in v 2.9 and later.
#
DATE_FMT=+
EGREP_SILENT=q

_uname=`uname`
case $_uname in
UWIN*)
UWIN=true
DATE_FMT=-f   # For old U/Win back compatibility.
EGREP_SILENT=s
;;
CYGWIN*)
ISCYGWIN=true
UNIXY=true
;;
*)
# If you discover new shells that can't handle dev tty etc. as
# below, then tailor it here.
;;
esac
if $UNIXY
then
DEVTTY=/dev/tty
DEVNULL=/dev/null
TMP=${TMP:-/tmp}
if [ -s c:/boot.ini ]
then
UNIX_OR_WIN=windows
else
UNIX_OR_WIN=unix
fi
else
DEVTTY=con
DEVNULL=nul
TMP=${TMP:-$TEMP}
UNIX_OR_WIN=windows
if [ x$TMP = x ]
then
if [ -d c:/tmp ]
then
TMP=c:/tmp
elif [ -d c:/temp ]
then
TMP=c:/temp
else
echo Couldn't work out what to set TMP to 2
fi
fi
fi

export $PORTSHELL_VARS
unset _uname
PORTSHELL=stuff export PORTSHELL
fi
if [ x$1 = x-v ]
then
shift
for v in $PORTSHELL_VARS
do
echo $v=`eval echo '$'$v`
done
fi
unset PORTSHELL_VARS
if [ $# != 0 ]
then
echo usage: . portshell [-v] 2
fi

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

ssmtp man page (Was: Re: sending email from Cygwin)

2004-07-15 Thread luke . kendall
On 15 Jul, Corinna Vinschen wrote:
   Incidentally is it appropriate to include Cygwin-port-specific  
   information in a man page? 
   
  Well, from a user perspective it might be cool, but IMHO the original 
  man page shouldn't be changed, unless it's a change which should be 
  send upstream anyway.  We have the Cygwin specific documentation in 
  /usr/share/doc/Cygwin (resp. /usr/doc/Cygwin in earlier releases) for 
  a long time now.  It should be not too hard to ask users to look there 
  for Cygwin specific docs. 
   
   
  Corinna 

Can you think of a way of incorporating the material in the man page
that would be palatable upstream?  How do you think people would feel
about a section PORTABILITY or NOTES or even WINDOWS or CYGWIN?

The above question is relevant to a patch for the ssmtp man page.  If
ssmtp uses ssmtp-config on most platforms it works on, then I can just
write a patch that includes both fixes.

If not, I can just fix one thing: the mention of /usr/lib/sendmail
instead of /usr/sbin/sendmail.  (I'm told that the latter is the
standard location to find sendmail, these days).

This is a usability issue.  It's hard enough to teach people to type:

man command-name

teaching them to type:

more /usr/share/doc/Cygwin/ssmtp-0.x.y/README.ssmtp-0.x.y

is even less likely.  (With the consequence that users pester developers
with questions, developers get irritated, users get annoyed, and the
developers efforts don't get used.)

luke


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



Re: rxvt/bash tab problem

2004-07-15 Thread Robert R Schneck
[EMAIL PROTECTED] wrote:
 If at a fresh bash prompt in an rxvt window (non-X) you type a TAB,
 nothing happens, and no input from the keyboard appears thereafter,
 until you use CTRL-C to interrupt whatever has blocked.

Putting 
shopt -s no_empty_cmd_completion
in your .bash_profile is a good way to avoid this.

I don't know what's up with your other comment about weird interaction 
between multiple presses of TAB and CTRL-C, but I would tend to guess 
it's not a Cygwin issue.

Robert


--
Unsubscribe info:  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: UNC Pathname Handling within Applications

2004-07-15 Thread Larry Hall
At 07:30 PM 7/15/2004, you wrote:
Hi,

* Shankar Unni wrote (2004-07-16 00:52):
Thorsten Haude wrote:
- Is there any standard way to approach this problem? Has it come up
before in other applications?

I don't know why you are even trying to normalize the paths like this. 
Just hand the thing off to the OS. Usually, both the user and the OS 
know what it is they are trying to do.

The path is also displayed at various places. The user might be
surprised to see surplus slashes.



Better that they be surprised and have things work than be surprised and
complain when things don't work.  Don't shield them from the reality of the
real world.  It's a learning experience and depriving them of that won't
help anyone.

That ends the philosophy lesson for today.  Please go back to your homes
now and meditate on this. ;-)


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



ENQUIRY!

2004-07-15 Thread Mr Larry Hanks
We are conducting a standard process investigation on behalf of 
Habib Bank Plc . This investigation involves a client who shares 
the same surname with you and also the circumstances surrounding 
investments made by this client at  Habib Bank Republic , the Private 
Banking arm of Habib Bank Plc. 

The Habib Bank Plc Banking client died interstate and 
nominated no successor in title over the investments made with the bank. 
The 
essence of this communication with you is to request you provide us 
information/comments on any or all of the four issues: 

1)Are you aware of any relative/relation who shares your same name 
whose last known contact address was London, UK? 
2)Are you aware of any investment of considerable value made by such a 
person at the Private Banking Division of  Habib Bank Plc? 
3)Born on the 29th October 1930 
4)Can you establish beyond reasonable doubt your eligibility to assume 
status of successor in title to the deceased? 

It is pertinent that you inform us ASAP whether or not you are familiar 
with this personality that we may put an end to this communication with 
you and our inquiries surrounding this personality. 
You must appreciate that we are constrained from providing you with 
more detailed information at this point. 
Please respond to this mail as soon as possible to afford us the 
opportunity to close this investigation. 
Thank you for accommodating our enquiry.

Mr Larry Hanks..

PRIVATE  CONFIDENTIAL* This e-mail and any attached files 
are 
confidential and may be legally privileged. If you are not the 
addressee, any disclosure,reproduction, copying, distribution, or other 
disseminationor use of this communication is strictly prohibited. If you have 
received this transmission in error please notify the sender 
immediately and then delete this e-mail. E-mail transmission cannot be 
guaranteed 
to be secure or error free as information can be intercepted, 
corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses. The sender therefore 
does not accept any errors or omissions in
the contents of this message, which arise as a result of e-mail 
transmission.

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



X starting difficulties

2004-07-15 Thread luke . kendall
I just sat down with a colleague here who has never previously been able
to run X on his XP laptop.  I got it working, but *only* by doing this:

/usr/X11R6/bin/X :0 -multiwindow  

- nothing else that I could think of could start X.

(The laptops here typically have ZoneAlarm installed, but I don't think
it's implicated this time since I was able to get X to work, as above.)

His initial problem was the Cannot find font: fixed error.  Once we
followed the faq workaround for that (re-install the fonts), we began
to make some progress.

I tried several ways to start X, which all failed:

From Cygwin bash shell:

startx

-- 
...
XWin was started with the following command line:

X :0 -multiwindow -clipboard
...
winClipboardProc - DISPLAY=127.0.0.1:0.0
winInitMultiWindowWM - XOpenDisplay () returned and successfully opened the 
display.
winClipboardProc - XOpenDisplay () returned and successfully opened the display.
winClipboardProc - Call to select () failed: -1.  Bailing.
winClipboardProc - XDestroyWindow succeeded.

winClipboardIOErrorHandler!

I got the same problem using a local .bat script that does this:

rem The D: gets replaced by the real Cygwin drive during installation:
D:
chdir \cygwin\bin
bash --login -c PATH=$PATH:/usr/X11R6/bin; startx -- -multiwindow

Thinking it was a problem with the -clipboard option, I tried removing
it in the proper way, by creating a file ~/.xserverrc containing:

userserverrc=-multiwindow

That lead to worse problems (quite worrying, I think) -

...
XWin was started with the following command line:

/usr/X11R6/bin/X :0 -multiwindow
...
winMultiWindowXMsgProc - pthread_mutex_unlock () returned.
winMultiWindowXMsgProc - DISPLAY=127.0.0.1:0.0
winInitMultiWindowWM - pthread_mutex_unlock () returned.
winInitMultiWindowWM - DISPLAY=127.0.0.1:0.0
winProcEstablishConnection - Hello
winProcEstablishConnection - Clipboard is not enabled, returning.
winMultiWindowXMsgProc - XOpenDisplay () returned and successfully opened the 
display.
winInitMultiWindowWM - XOpenDisplay () returned and successfully opened the 
display.
winDeinitMultiWindowWM - Noting shutdown in progress

winMultiWindowWMIOErrorHandler!

winInitMultiWindowWM - Caught IO Error.  Exiting.
winDeinitMultiWindowWM - Noting shutdown in progress

In contrast, here are pieces of the XWin.log when started via
/usr/X11R6/bin/X :0 -multiwindow  

XWin was started with the following command line:

/usr/X11R6/bin/X :0 -multiwindow
...
winMultiWindowXMsgProc - DISPLAY=127.0.0.1:0.0
winInitMultiWindowWM - pthread_mutex_unlock () returned.
winInitMultiWindowWM - DISPLAY=127.0.0.1:0.0
winProcEstablishConnection - Hello
winProcEstablishConnection - Clipboard is not enabled, returning.
winMultiWindowXMsgProc - XOpenDisplay () returned and successfully opened the 
display.
winInitMultiWindowWM - XOpenDisplay () returned and successfully opened the 
display.

Here's a diff output of the log from the successful way () and an
unsuccessful attempt that had clipboard turned off ():

53a54,59
 winDeinitMultiWindowWM - Noting shutdown in progress
 
 winMultiWindowWMIOErrorHandler!
 
 winInitMultiWindowWM - Caught IO Error.  Exiting.
 winDeinitMultiWindowWM - Noting shutdown in progress

Here's a diff output of the log from the successful way () and an
unsuccessful attempt that had clipboard turned on ():


9c9
 /usr/X11R6/bin/X :0 -multiwindow 
---
 X :0 -multiwindow -clipboard 
39c39,40
 winMultiWindowXMsgProc - Calling pthread_mutex(--) winConfigKeyboard - Layout: 
0409 (0409) 
---
 (--) Setting autorepeat to delay=500, rate=31
 (--) winConfigKeyboard - Layout: 0409 (0409) 
51c52,53
 winProcEstablishConnection - Clipboard is not enabled, returning.
---
 winInitClipboard ()
 winProcEstablishConnection - winInitClipboard returned.
52a55,57
 winClipboardProc - Hello
 DetectUnicodeSupport - Windows NT/2000/XP
 winClipboardProc - DISPLAY=127.0.0.1:0.0
53a59,64
 winClipboardProc - XOpenDisplay () returned and successfully opened the display.
 winClipboardProc - Call to select () failed: -1.  Bailing.
 winClipboardProc - XDestroyWindow succeeded.
 
 winClipboardIOErrorHandler!
 

Also, we couldn't start any X applications from the Cygwin menu items
via the Windows Start bar; apparently /usr/X11R6/bin isn't in the path,
so none of the commands were found.

luke


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



Re: X starting difficulties

2004-07-15 Thread luke . kendall
On 16 Jul, To: [EMAIL PROTECTED] wrote:
  I just sat down with a colleague here who has never previously been able 
  to run X on his XP laptop.  I got it working, but *only* by doing this: 

Apologies.  I sent that to the wrong list.  I have re-sent it to
[EMAIL PROTECTED]

slinks off in shame

luke


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



COM Port Question

2004-07-15 Thread Tester Field
Hi,
 
I have installed Cygwin on a Dell PC with windows
2000, and I am trying to sent AT command to an
external modem attached on COM1.
 
My questions are:
 
1) What do I need to do for cygwin to recognize COM1?
2) Is there a utility provided for the purposes.
 
My ultimate goal is to send SMS message using Kannel
and a GSM modem. I understand this is not the right
place of Kannel questions, however I will like to ask
for help on Cygwin recognizing COM1 port.
 
I appreciate any assistance that you might provide.
Also, I have searched google without success. If any
document that provides assistance, please provide me a
link. Again, I appreciate any assistance you might
provide.
 
Regards,
Mona


-
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://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/



  1   2   >