Re: please upload: CLISP 2.33 stable

2004-03-21 Thread Corinna Vinschen
On Mar 18 18:30, Sam Steingold wrote:
 please upload the new stable release 2.33 of GNU CLISP
 http://www.podval.org/~sds/data/setup.hint
 http://www.podval.org/~sds/data/clisp-2.33-1-src.tar.bz2
 http://www.podval.org/~sds/data/clisp-2.33-1.tar.bz2

Uploaded.  I removed the version 2.31-2 and 2.32-1.

Corinna

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


Suggestion to alteration of DDD

2004-03-21 Thread Chris Jefferson
Hello

While DDD can be a frontend for a number of debuggers, it is I think 
most often used as a front end for gdb (and if I simply type ddd from 
the command line without gdb being installed, I am told gdb could not 
be started , exit/help. Therefore I suggest that gdb is added as a 
dependancy of ddd.

Chris



Re: Changes to multiwindow mode and always-on-top (ping Takuma)

2004-03-21 Thread Takuma Murakami
Harold,

  At 07:56 PM 3/20/2004 +0900, Takuma Murakami wrote:
  
  You give me a good insight to improve Z order handling.
  I believe we can approach to better solutions.  The attached
  is my latest code which should fix all problems on restacking
  and a-o-t windows without using fAlwaysOnTop flag.  Could you
  try and review this?
  
  
  It works great from my testing today!  On Monday I'll bring it to
  work for a harder test, I normally have 10 or so emacs and xterms
  running with an occasional EDA tool.  (It seems that cygwin's
  emacs-x11 has some problems, not due to these changes, so I can't
  get too many started locally to test...)
 
 I haven't gotten a chance to test Takuma's new patch yet, so I was 
 wondering if you have checked what happens when you open two xterms, 
 place a Cygwin bash shell inbetween them in the Z order partially 
 overlapping with both of them, then minimize one xterm and then the 
 Cygwin bash shell... you'll have to play with the ordering a little bit,
 but see if you can get it to have one xterm showing the contents of the 
 other xterm where they were previously overlapping.  That was a bug that
 we have had before and Takuma's changes from last week re-introduced 
 that bug.  I'm not sure if his new patch was an attempt to fix that or 
 not... but this is something that somebody will need to fix and I'd 
 appreciate it if you had some insight if this is not already fixed.

I revived winReorderWindowsMultiWindow() to fix the bug, which
I call restacking bug.  And it is called much less frequently
than before (from winBlockHandler()).  I believe Earle will
confirm this by his hard tests.

Takuma Murakami



Re: windowed mode seemingly unavailable

2004-03-21 Thread Takuma Murakami
Brian,

The default mode from startx is now -multiwindow that you got.
Although its performance has been improved, you can edit
/usr/X11R6/bin/startx to modify defaultserverargs.  Or you can
override default args on invocation, for example 'startx -- :0'
(-- indicates that following arguments should be given to the
X server).

Takuma Murakami



Re: Hydravision problem?

2004-03-21 Thread Takuma Murakami
Peter,

I'm afraid if you are using older versions of Cygwin/X.  Please
confirm its version by 'cygcheck -c XFree86-xserv' and upgrade
if it is older than 4.3.0-59.

Takuma Murakami


 Here is what I have used:
 REM Startup the X Server with the integrated Windows-based window manager.
 start XWin -multiwindow -multiplemonitors -clipboard
 
 REM Startup an xterm, using bash as the shell.
 run xterm -sl 1000 -sb -rightbar -ms red -fg yellow -bg black -e /usr/bin/bash
 
 I have also tried it with the -screen 0 -screen 1 options, and with just the screen
 options.
 
 -multiplemonitors seems to work best but I still have problems.
 The xterm window is partially blanked out with white. When I drag
 the window it flashes on both screens completely whiting out the xterm
 window. When I drop it, the xterm is just where it should be but
 the xterm window is still at least partially blanked out with white.
 
 Any ideas?



XWin doesn't close by itself

2004-03-21 Thread Volker Lenhardt
Hello,

I'm new to Cygwin. I need it in my home lan to manage scanning from a
Windows XP notebook to a Linux print and scan server. I need to start
the server's xsane on the notebook via ssh with one mouse click.

It works. I use a copy of the startxwin.bat adding -e ssh ... xsane to
the line run xterm  No other differences.

The dos window opens for a second, closes, then the xterm opens, at last
xsane. When I close xsane, the xterm closes, too, and all seems to be
done. As I wish it to be.

But the X server stays running, its logo lingers in the systray. I have
to shut it by a series of 3 clicks. No alt-f4. If I don't do so, I get another
X server the next time I start my xsane batch.

There's some cleaning up mechanism at the start of startxwin.bat, but it
doesn't seem to be helpful. How can I check for a running X server, so
my batch doesn't start a new one? Or how can I close the X server at the
close of the batch?

I haven't found any faq or documentation item to answer my question.
Please be forgiving if I haven't looked for the terms proper.

Greetings
Volker

-- 
Volker Lenhardt
E-Mail: [EMAIL PROTECTED]




are Shoccking contennt stop Extremaal excussive fresh

2004-03-21 Thread Angeline Schmitz
JJust virggin and glad Innocentt anggels from legal Yoour dreaam
Extrremal exccusive capo Acction sppecial for you point
Neever seeen and Beforee shoocking contentt model
http://selfusers.info/my/view.cgi?s=psfm=hLdNbW-MeSff.hLdNbW,hVX
open see




Re: XWin doesn't close by itself

2004-03-21 Thread Alexander Gottwald
Volker Lenhardt wrote:

 But the X server stays running, its logo lingers in the systray. I have
 to shut it by a series of 3 clicks. No alt-f4. If I don't do so, I get another
 X server the next time I start my xsane batch.

if you don't use mulitwindowmode or the clipboard you can add the option -once
to the commandline. the xserver will exit after the last client quit.

 There's some cleaning up mechanism at the start of startxwin.bat, but it
 doesn't seem to be helpful. How can I check for a running X server, so
 my batch doesn't start a new one? Or how can I close the X server at the
 close of the batch?

I another xserver is already running then the newly started xserver will
notice it and not start up.

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


Re: how to use dll created by cygwin in MS Visual C++?

2004-03-21 Thread Alexander Gottwald
wxWindows_study wrote:

 But I failed to use the test_dll.dll in MS Visual C++?

This question is not specific to the cygwin xserver and should go to the
[EMAIL PROTECTED] mailinglist. But I think this question is asked quite
often so I'd advice you to look into the FAQ and the other documentation
on http://www.cygwin.com.

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


Re: XWin doesn't close by itself

2004-03-21 Thread Volker Lenhardt
Am Sonntag, 21. März 2004 14:01 schrieb Alexander Gottwald:
 Volker Lenhardt wrote:
  But the X server stays running, its logo lingers in the systray. I have
  to shut it by a series of 3 clicks. No alt-f4. If I don't do so, I get
  another X server the next time I start my xsane batch.

 if you don't use mulitwindowmode or the clipboard you can add the option
 -once to the commandline. the xserver will exit after the last client quit.


I tried, but xsane is easier to be used in multiwindow mode. And the X
server nonetheless has to be shut down explicitly after exiting xsane.

  There's some cleaning up mechanism at the start of startxwin.bat, but it
  doesn't seem to be helpful. How can I check for a running X server, so
  my batch doesn't start a new one? Or how can I close the X server at the
  close of the batch?

 I another xserver is already running then the newly started xserver will
 notice it and not start up.


I'd be happy, if it did so. So I try and skip all of the cleaning up and
start XWin only if there doesn't exist a .../tmp/X0. It works so far.
Can I get into trouble some time if I don't clean up?

Regards
Volker

-- 
Volker Lenhardt
E-Mail: [EMAIL PROTECTED]




Cygwin Tk for X?

2004-03-21 Thread Jeffrey C Honig
I'm curious why the only Tk for Cygwin opens Windows windows, why isn't
there one that opens X11 windows?  I'd like to be able to use send
between apps running other hosts.

Is it just because no-one has taken the time to build it?

Thanks.

Jeff

-- 
Jeffrey C. Honig [EMAIL PROTECTED]
http://www.honig.net/jch
GnuPG ID:14E29E13 http://www.honig.net/jch/key.shtml


Re: how to use dll created by cygwin in MS Visual C++?

2004-03-21 Thread Harold L Hunt II
This has nothing to do with running the X Window System on Cygwin.

Try another mailing list.

Harold

wxWindows_study wrote:

 I follow cygwin's user guide,create a dll as following:
 
 //
 // this the dll file :@test_dll.c
 //created by songyewen 2004/03/21
 //
 
 #include stdio.h
 
 int show_hello()
 {
 printf(this is the testing string from cygwin apps's dll file\n);
 return 0;
 }
 
 //--
 gcc -c test_dll.c
 gcc -shared -o test_dll.dll test_dll.o
 
 so I get the test_dll.dll
 
 //--
 
 //
 //this file is a demo for testing dll in cygwin apps
 [EMAIL PROTECTED]
 //created by songyewen 2004/03/21
 //
 #include stdio.h
 int main()
 {
 show_hello();
 }
 
 
 //-
 gcc -o test_main.c test_main.exe -L./ -ltest_dll
 so I get test_main.exe and can run test_main.exe successfully!
 
 
 But I failed to use the test_dll.dll in MS Visual C++?
 
 Who can help me?
 
 thanks in advance!!


Re: windowed mode seemingly unavailable

2004-03-21 Thread Brian Deckard
Takuma, thanks for your quick response.  My apologies in advance to all 
(because I don't think this will end up in the proper thread), but I have 
still not received a copy of either Takuma's e-mail or mine in my inbox.

I did read the response on the website though and am now very close to a 
solution.  Using 'startx -- :0', I can open the xserver window with an xterm 
started.  However, the xterm does not have any toolbars allowing it to be 
resized or repositioned.  Compounding the problem is the fact that whenever 
I launch a remote app like say xclock, it opens on top of the xterm (and 
since there are no toolbars, I cannot move or close it either).

I have tried looking through the xwin arguments mentioned here:
http://xfree86.cygwin.com/docs/ug/configure-cygwin-xfree-options.html
but do not seem to see anything related (I have tried -scrollbars and 
-nodecoration).  Just as a workaround, I also tried to see if installing the 
other slightly older package of xfree86 using the setup utility would bring 
me back to the old green toolbar with white background arrangement that was 
working for me before, but no success.

Brian,

The default mode from startx is now -multiwindow that you got.
Although its performance has been improved, you can edit
/usr/X11R6/bin/startx to modify defaultserverargs.  Or you can
override default args on invocation, for example 'startx -- :0'
(-- indicates that following arguments should be given to the
X server).
Takuma Murakami

_
Is your PC infected? Get a FREE online computer virus scan from McAfee® 
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



Re: Cygwin Tk for X?

2004-03-21 Thread Harold L Hunt II
Jeffrey C Honig wrote:

I'm curious why the only Tk for Cygwin opens Windows windows, why isn't
there one that opens X11 windows?  I'd like to be able to use send
between apps running other hosts.
Because, I believe I have this correct, Cygnus developed a Win32 native 
port of graphical interface in Tk for use with their debugging tool 
(Insight, IIRC).  This version of Tk has been distributed with Cygwin 
for as long as I can remember and possibly forever.

Is it just because no-one has taken the time to build it?
Yes, that is sort of it.  In other words, people are open to the idea of 
adding an X11 version of Tk, but it needs to be done in a way that 
allows both the X11 and Win32 versions to be installed at the same time. 
 This sort of splitting, renaming, and script foo will take about 60 
hours.  So, it isn't just that people are lazy, it is that it will take 
a significant amount of time to complete all of the tasks, test it, and 
fix errors in the packaging scheme.  I've thought about doing this at 
times, but I haven't got time for it at the moment.

Harold


Logfile symlink vulnerability

2004-03-21 Thread Eran Tromer
Hi,

If /tmp/XWin.log is a symlink, XWin will merrily follow it and write to
whatever it's pointing to (see LogInit() in os/log.c). This allows
standard symlink-following attacks.

Example: Alice runs ln -s /home/Bob/phd-thesis.tex /tmp/XWin.log under
her account. Later Bob runs XWin under his account; XWin fails for some
reasons and writes to /tmp/XWin.log; Bob life's work gets overwritten.

(Of course, that's interesting only if ntsec is used.)

Some possible fixes:
* Place the logfile somewhere in the user's home directory.
* Refuse to follow symlinks, or to write to existing files. Most users,
failing to clean up logs, will not get new logs after the first failure.
* Give the logfile a unique filename, a la the uniq utility.

  Eran



Re: Logfile symlink vulnerability

2004-03-21 Thread Harold L Hunt II
Eran Tromer wrote:

Hi,

If /tmp/XWin.log is a symlink, XWin will merrily follow it and write to
whatever it's pointing to (see LogInit() in os/log.c). This allows
standard symlink-following attacks.
Example: Alice runs ln -s /home/Bob/phd-thesis.tex /tmp/XWin.log under
her account. Later Bob runs XWin under his account; XWin fails for some
reasons and writes to /tmp/XWin.log; Bob life's work gets overwritten.
In theory, but have you actually tried it and confirmed that it works 
with two different users that did not already both have permissions to 
overwrite the file in question?

Harold


Re: Logfile symlink vulnerability

2004-03-21 Thread Eran Tromer
Harold L Hunt II wrote:
 Eran Tromer wrote:
 If /tmp/XWin.log is a symlink, XWin will merrily follow it and write
 to whatever it's pointing to (see LogInit() in os/log.c). This allows
 standard symlink-following attacks.

 In theory, but have you actually tried it and confirmed that it works
 with two different users that did not already both have permissions to
 overwrite the file in question?

Yes, I did verify it.

  Eran



Re: Logfile symlink vulnerability

2004-03-21 Thread Harold L Hunt II
Eran Tromer wrote:
Harold L Hunt II wrote:

Eran Tromer wrote:

If /tmp/XWin.log is a symlink, XWin will merrily follow it and write
to whatever it's pointing to (see LogInit() in os/log.c). This allows
standard symlink-following attacks.
In theory, but have you actually tried it and confirmed that it works
with two different users that did not already both have permissions to
overwrite the file in question?


Yes, I did verify it.
With two distinct users, not in the same group, and with neither an 
administrator?

I just don't see how you could overwrite a file at all if you don't have 
premission on the underlying filesystem... what OS was this with?  Were 
you using NTFS or FAT32?  FAT32 could explain things... in which a user 
could overwrite a file anyway since FAT32 doesn't provide security, so 
protecting for this in XWin.exe would be pointless.

Please provide more details of your test.

Harold


Re: Logfile symlink vulnerability

2004-03-21 Thread Eran Tromer
Harold L Hunt II wrote:

 With two distinct users, not in the same group, and with neither an
 administrator?
 What OS was this with? Were you using NTFS or FAT32?
 Please provide more details of your test.

Windows XP, NTFS drive. Two different users; the attacker is a
restricted user, the victim is an administrator. The attacker runs
ln -s /home/victim/foo /tmp/XWin.log and then the victim runs XWin
badarg and beholds his ~/foo being overwritten.

 I just don't see how you could overwrite a file at all if you don't
 have premission on the underlying filesystem...

All the attacker user does is create /tmp/XWin.log as a symbolic link.
It's the victim which performs the actual damage, by following the
symbolic link to one of its *own* files and overwriting it. The only
permissions involved are /tmp being world-writable (it doesn't even
matter that /tmp had the sticky bit, if /tmp/XWin.log didn't exist
beforehand).

It's really a classical Unix security pitfall that occurs whenever you
write to files in world-writable directories. It has to be dealt with at
the application level, either by being careful about existing files or
by using atomically generated unique filenames.

  Eran



Re: windowed mode seemingly unavailable

2004-03-21 Thread Igor Pechtchanski
Brian,

On Sun, 21 Mar 2004, Brian Deckard wrote:

 Takuma, thanks for your quick response.  My apologies in advance to all
 (because I don't think this will end up in the proper thread), but I have
 still not received a copy of either Takuma's e-mail or mine in my inbox.

FYI, you can use the Raw text link in the archives to get the
mbox-formatted message to reply to -- Google for cygwin getting
references.

 I did read the response on the website though and am now very close to a
 solution.  Using 'startx -- :0', I can open the xserver window with an xterm
 started.  However, the xterm does not have any toolbars allowing it to be
 resized or repositioned.  Compounding the problem is the fact that whenever
 I launch a remote app like say xclock, it opens on top of the xterm (and
 since there are no toolbars, I cannot move or close it either).

You need to run a window manager (e.g., twm).  The multiwindow mode comes
with a built-in window manager (i.e., the Windows one), but for all other
modes you need to explicitly run one.

 I have tried looking through the xwin arguments mentioned here:
 http://xfree86.cygwin.com/docs/ug/configure-cygwin-xfree-options.html

 but do not seem to see anything related (I have tried -scrollbars and
 -nodecoration).  Just as a workaround, I also tried to see if installing the
 other slightly older package of xfree86 using the setup utility would bring
 me back to the old green toolbar with white background arrangement that was
 working for me before, but no success.

Just try running twm  from the xterm before you start other clients...
You can also add it to your xinitrc.
Igor

 ---
 Brian,

 The default mode from startx is now -multiwindow that you got.
 Although its performance has been improved, you can edit
 /usr/X11R6/bin/startx to modify defaultserverargs.  Or you can
 override default args on invocation, for example 'startx -- :0'
 (-- indicates that following arguments should be given to the
 X server).

 Takuma Murakami

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


Okay, how about an AMD Athlon XP 1600+ to 2100+ with Palomino core?

2004-03-21 Thread Harold L Hunt II
Hmm... no one seems to have the old Athlon 1.33 or 1.4's lying around. 
Oddly enough, they are selling for more on eBay than used Athlon XP chips.

Which brings me to my next point: I just discovered that I could 
actually use any of the AMD Athlon XP 1600+ to 2100+ chips that use the 
Palomino core with my current Iwill KA266 motherboard (though specs 
claim it only works with standard Athlon's up to 1.4 GHz).  Note that 
the Thoroughbred cores are also available in speeds matching those of 
the Palomino from 1600+ to 2100+, but the Thoroughbred cores will not 
POST with this motherboard.

I checked eBay and pricewatch and found the  1600+ Palomino's are 
selling used (eBay) for $15 and new (pricewatch) for $34 while the 2100+ 
Palomino are selling used for $40 and new for $50.

I am asking if anyone has one of these Palomino core chips that they 
have retired to their parts graveyard.  If so, please allow me to take 
it off of your hands if you do not intend to sell it.  This faster chip 
should help cut my build time another 30% or so, which will allow me to 
get more actual work done on Cygwin/X instead of waiting for compiles to 
finish.  Be aware that this is the only wife-approved processor upgrade 
that I can get at the moment, especially after the case and RAM that I 
bought.  :)

Thanks in advance,

Harold

P.S. I will post publicly if someone arranges to send me a chip off 
list, so you can know that I have not been offered a chip until you see 
a followup in the mailing list.


PATH in startxwin.sh

2004-03-21 Thread Fabio Somenzi
Recent versions of startxwin.sh contain the following line:

export PATH=/usr/X11R6/bin:$PATH

I have changed it to

export PATH=/usr/X11R6/bin:$PATH

to avoid problems with PATHs containing spaces.  Maybe this is of
general interest.


Fabio

-- 
Fabio Somenzi  | Phone: 303-492-3466
University of Colorado | Fax:   303-492-2758
ECE Dept.  | Email: [EMAIL PROTECTED]
Boulder CO 80309-0425  | WWW:   http://vlsi.colorado.edu/~fabio


Re: XWin doesn't close by itself

2004-03-21 Thread Volker Lenhardt


Am 21 Mar 2004 um 17:46 hat Volker Lenhardt geschrieben:

 Am Sonntag, 21. März 2004 14:01 schrieb Alexander Gottwald:
  Volker Lenhardt wrote:
   There's some cleaning up mechanism at the start of startxwin.bat, but it
   doesn't seem to be helpful. How can I check for a running X server, so
   my batch doesn't start a new one? Or how can I close the X server at the
   close of the batch?
 
  I another xserver is already running then the newly started xserver will
  notice it and not start up.
 

 I'd be happy, if it did so. So I try and skip all of the cleaning up and
 start XWin only if there doesn't exist a .../tmp/X0. It works so far.
 Can I get into trouble some time if I don't clean up?


Okay, I found it out by myself. When I log out of Windows an open X server is not
properly closed as well. So there's an entry left in /tmp... that shams an open server
process. Now I check for it via ps and grep. It seems to be waterproof.

Thanks and greetings
Volker

--
Volker Lenhardt
Am Spinnweg 19, 45894 Gelsenkirchen
Tel.: 0209/30213  Fax: 0209/390437
E-Mail: [EMAIL PROTECTED]


src/winsup/cygwin ChangeLog cygheap.cc dtable. ...

2004-03-21 Thread cgf
CVSROOT:/cvs/src
Module name:src
Changes by: [EMAIL PROTECTED]   2004-03-21 17:41:40

Modified files:
winsup/cygwin  : ChangeLog cygheap.cc dtable.cc dtable.h 
 fhandler.h fhandler_fifo.cc pinfo.cc 

Log message:
* cygheap.cc (init_cheap): Add ability to specify minimal cygwin heap size when
debugging.
(_csbrk): Report error in allocation to stderr.
(ccalloc): Ditto.
* dtable.cc (dtable::find_fifo): Remove use of atoms.
* dtable.h (dtable::find_fifo): Ditto.
* fhandler.h (fhandler_fifo): Ditto.
* fhandler_fifo.cc (fhandler_fifo::fhandler_fifo): Ditto.
(fhandler_fifo::set_use): Ditto.
(fhandler_fifo::open_not_mine): Ditto.
(fhandler_fifo::open): Ditto.
* pinfo.cc (_pinfo::commune_recv): Ditto.
(_pinfo::commune_send): Ditto.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=srcr1=1.2365r2=1.2366
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/cygheap.cc.diff?cvsroot=srcr1=1.97r2=1.98
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/dtable.cc.diff?cvsroot=srcr1=1.137r2=1.138
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/dtable.h.diff?cvsroot=srcr1=1.29r2=1.30
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler.h.diff?cvsroot=srcr1=1.189r2=1.190
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler_fifo.cc.diff?cvsroot=srcr1=1.4r2=1.5
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/pinfo.cc.diff?cvsroot=srcr1=1.113r2=1.114



winsup/utils ChangeLog cygcheck.cc

2004-03-21 Thread cgf
CVSROOT:/cvs/uberbaum
Module name:winsup
Changes by: [EMAIL PROTECTED]   2004-03-21 17:58:14

Modified files:
utils  : ChangeLog cygcheck.cc 

Log message:
* cygcheck.cc (dump_sysinfo): Remove Win95/NT from output.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/utils/ChangeLog.diff?cvsroot=uberbaumr1=1.259r2=1.260
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/utils/cygcheck.cc.diff?cvsroot=uberbaumr1=1.42r2=1.43



src/winsup/cygwin ChangeLog cygheap.cc

2004-03-21 Thread cgf
CVSROOT:/cvs/src
Module name:src
Changes by: [EMAIL PROTECTED]   2004-03-21 21:51:27

Modified files:
winsup/cygwin  : ChangeLog cygheap.cc 

Log message:
* cygheap.cc (init_cheap): Conditionalize debugging code.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=srcr1=1.2366r2=1.2367
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/cygheap.cc.diff?cvsroot=srcr1=1.98r2=1.99



src/winsup/cygwin ChangeLog cygheap.cc

2004-03-21 Thread cgf
CVSROOT:/cvs/src
Module name:src
Changes by: [EMAIL PROTECTED]   2004-03-21 22:24:06

Modified files:
winsup/cygwin  : ChangeLog cygheap.cc 

Log message:
* cygheap.cc (init_cheap): Set initial_sz to something or suffer spurious
output.
(cygheap_fixup_in_child): Set alloc_sz to passed in size to ensure that
children will have the right size heap.
(_csbrk): Make output conditional on DEBUGGING.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=srcr1=1.2367r2=1.2368
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/cygheap.cc.diff?cvsroot=srcr1=1.99r2=1.100



Re: Yahoo!

2004-03-21 Thread cygwin-announce







Patch 20040321 for audio recording with /dev/dsp (indented)

2004-03-21 Thread Gerd Spalink
Below you can find the plain text ChangeLog entry and patch,
formatted as suggested by Corinna. I also updated some comments.
Hope it makes it into the repository this time...

There were no comments about the test program I sent. Do you want to
put it or something like it into the repository?

Gerd

===snip

2004-02-07  Gerd Spalink  [EMAIL PROTECTED]

* autoload.cc: Load eight more functions for waveIn support.

* fhandler.h (class fhandler_dev_dsp): Add class Audio,
class Audio_in and class Audio_out members and 
audio_in_, audio_out_ pointers so that future changes
are restricted to file fhandler_dsp.cc.

* fhandler_dsp.cc (fhandler_dev_dsp::Audio): Add this class
to treat things common to audio recording and playback.
Add more format conversions.
(fhandler_dev_dsp::Audio::queue): New queues for buffer management
to fix incomplete cleanup of buffers passed to the wave device.
(fhandler_dev_dsp::Audio_in): New, added class
to implement audio recording.
(fhandler_dev_dsp::Audio_out): Rework to use
functionality provided by fhandler_dev_dsp::Audio.
Allocate memory audio buffers late, just before write.
(fhandler_dev_dsp::Audio_out::start): Size of wave buffer
allocated here depends on audio rate/bits/channels.
(fhandler_dev_dsp::Audio_in::start): Ditto.
(fhandler_dev_dsp::setupwav): Replaced by following function.
(fhandler_dev_dsp::Audio_out::parsewav):
Does not setup wave device any more. Discard wave header properly.
(fhandler_dev_dsp::open): Add O_RDONLY and_RDWR as legal modes.
Protect against re-open. Activate fork_fixup.
(fhandler_dev_dsp::ioctl): Protect against actions when
audio is active.
SNDCTL_DSP_GETFMTS only returns formats supported by
mmsystem wave API, not all supported formats.
SNDCTL_DSP_GETBLKSIZE result now depends on current audio format.
(fhandler_dev_dsp::fixup_after_fork):
Call fork_fixup for the Audio classes to let them duplicate
the CRITICAL_SECTION.

===snip===

Index: autoload.cc
===
RCS file: /cvs/src/src/winsup/cygwin/autoload.cc,v
retrieving revision 1.77
diff -u -p -r1.77 autoload.cc
--- autoload.cc 9 Feb 2004 04:04:22 -   1.77
+++ autoload.cc 21 Mar 2004 21:37:16 -
@@ -530,6 +530,15 @@ LoadDLLfuncEx (timeGetTime, 0, winmm, 1)
 LoadDLLfuncEx (timeBeginPeriod, 4, winmm, 1)
 LoadDLLfuncEx (timeEndPeriod, 4, winmm, 1)
 
+LoadDLLfuncEx (waveInGetNumDevs, 0, winmm, 1)
+LoadDLLfuncEx (waveInOpen, 24, winmm, 1)
+LoadDLLfuncEx (waveInUnprepareHeader, 12, winmm, 1)
+LoadDLLfuncEx (waveInPrepareHeader, 12, winmm, 1)
+LoadDLLfuncEx (waveInAddBuffer, 12, winmm, 1)
+LoadDLLfuncEx (waveInStart, 4, winmm, 1)
+LoadDLLfuncEx (waveInReset, 4, winmm, 1)
+LoadDLLfuncEx (waveInClose, 4, winmm, 1)
+
 LoadDLLfuncEx (UuidCreate, 4, rpcrt4, 1)
 LoadDLLfuncEx (UuidCreateSequential, 4, rpcrt4, 1)
 }
Index: cygheap.cc
===
RCS file: /cvs/src/src/winsup/cygwin/cygheap.cc,v
retrieving revision 1.98
diff -u -p -r1.98 cygheap.cc
--- cygheap.cc  21 Mar 2004 17:41:40 -  1.98
+++ cygheap.cc  21 Mar 2004 21:37:16 -
@@ -52,7 +52,7 @@ static void
 init_cheap ()
 {
 #ifndef DEBUGGING
-  alloc_sz = CYGHEAPSIZE;
+  DWORD initial_sz = alloc_sz = CYGHEAPSIZE;
 #else
   char buf[80];
   DWORD initial_sz = 0;
Index: fhandler.h
===
RCS file: /cvs/src/src/winsup/cygwin/fhandler.h,v
retrieving revision 1.190
diff -u -p -r1.190 fhandler.h
--- fhandler.h  21 Mar 2004 17:41:40 -  1.190
+++ fhandler.h  21 Mar 2004 21:37:18 -
@@ -1105,14 +1105,20 @@ class fhandler_windows: public fhandler_
   bool is_slow () {return 1;}
 };
 
-class fhandler_dev_dsp : public fhandler_base
+class fhandler_dev_dsp: public fhandler_base
 {
+ public:
+  class Audio;
+  class Audio_out;
+  class Audio_in;
  private:
   int audioformat_;
   int audiofreq_;
   int audiobits_;
   int audiochannels_;
-  bool setupwav(const char *pData, int nBytes);
+  static int open_count; // per process
+  Audio_out *audio_out_;
+  Audio_in  *audio_in_;
  public:
   fhandler_dev_dsp ();
   ~fhandler_dev_dsp();
@@ -1125,6 +1131,7 @@ class fhandler_dev_dsp : public fhandler
   int close (void);
   int dup (fhandler_base *child);
   void dump (void);
+  void fixup_after_fork (HANDLE parent);
   void fixup_after_exec ();
 };
 
Index: fhandler_dsp.cc
===
RCS file: /cvs/src/src/winsup/cygwin/fhandler_dsp.cc,v
retrieving revision 1.30
diff -u -p -r1.30 fhandler_dsp.cc
--- fhandler_dsp.cc 9 Feb 2004 04:04:22 

Re: Minimal test case for Make crash bug

2004-03-21 Thread Dan Kegel
I just reproduced the crash on a second system, this time on
a WinME box, where my foo.c open-lots-of-fds program
made it up to 180 or so fds before crashing.
Before I updated from ftp.lug.udel.edu, I tried the
(six-month-old?) cygwin that was already on the WinME box;
it worked fine with foo.c.  Thus this seems to be
a problem introduced in the last few months.
- Dan
--
My technical stuff: http://kegel.com
My politics: see http://www.misleader.org for examples of why I'm for regime change
--
Unsubscribe info:  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: How do I install these in Cygwin from this web interface?

2004-03-21 Thread Brian Dessent
George Hester wrote:
 
 Well because I thought the page had something to do with Cygwin.  Sorry.

It does only in that it's the page of the Cygwin Apache maintainer. 
However currently only Apache is officially packaged for Cygwin.  An
updated mod_php (and others) has been announced real soon now but
Stipe seems a little busy.

Brian

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



Re: tin-1.6.2: 8-bit chars not displayed, gettext transliterates

2004-03-21 Thread Corinna Vinschen
On Mar 20 16:59, A. Alper ATICI wrote:
 As for displaying 8-bit chars in messages, I've tweaked one line in
 sources (see below) and rebuilt with --disable-locale, specifically:
 
 ./configure --prefix=/usr --mandir=/usr/share/man --enable-prototypes\
 --without-pgp --without-pgpk --with-screen=ncurses \
 --disable-locale --disable-mime-strict-charset
 
 I've managed to display 8-bit chars after that in messages, in headers
 also. The tweak below enables NLS without locale (which is Cygwin),
 but have not tested thoroughly to observe side-effects, if any.
 
 
 diff -Nur tin-1.6.2/src/main.c tin/src/main.c
 --- tin-1.6.2/src/main.c2003-08-10 16:27:36.0 +0300
 +++ tin/src/main.c  2004-03-20 09:56:54.004414400 +0200
 @@ -96,7 +96,7 @@
 cmd_line = TRUE;
 
 /* initialize locale support */
 -#if defined(HAVE_SETLOCALE)  !defined(NO_LOCALE)
 +#if defined(HAVE_SETLOCALE)
 if (setlocale(LC_ALL, )) {
  #  ifdef ENABLE_NLS
 bindtextdomain(PACKAGE, LOCALEDIR);
 

Cool, I've tweaked tin accordingly.  The above seems to be better
changed in include/tin.h:

--- tin.h.orig  2004-03-21 13:31:14.969448200 +0100
+++ tin.h   2004-03-21 13:31:32.747629500 +0100
@@ -63,8 +63,8 @@
 #  define INET6
 #endif /* HAVE_GETADDRINFO  HAVE_GAI_STRERROR  ENABLE_IPV6 */
 
-/* Locale support in Mac OS X doesn't work yet, so turn it off */
-#if defined (MAC_OS_X)
+/* Locale support in Mac OS X and in Cygwin doesn't work yet, so turn it off */
+#if defined (MAC_OS_X) || defined (__CYGWIN__)
 #  ifndef NO_LOCALE
 #  define NO_LOCALE 1
 #  endif /* !NO_LOCALE */

I've uploaded a new package containing that fix and build with
--disable-locale.

Thanks,
Corinna

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

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



Bash tries to connect to the internet

2004-03-21 Thread Joel
Hi, I just downloaded Cygwin yesterday, and Bash tries to connect to the
internet when I open it. ZoneAlarm stopped it though. I talked with the nice
people at Perlmonks, who say they have never had that happen. So I came
here. When I open Bash, I get a message from ZoneAlarm asking me if Bash can
connect to the internet at 199.166.219.2. Vim does the same thing, including
the IP address. I downloaded almost all of my packages from
www.get-software.com using the setup program before switching to the
University of Calgary mirror. Did I download hacked copies of the software?

Thanks

Joel

--
Unsubscribe info:  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 to use dll created by cygwin in MS Visual C++?

2004-03-21 Thread wxWindows_study
I follow cygwin's user guide,create a dll as following:

//
// this the dll file :@test_dll.c
//created by songyewen 2004/03/21
//

#include stdio.h

int show_hello()
{
printf(this is the testing string from cygwin apps's dll file\n);
return 0;
}

//--
gcc -c test_dll.c
gcc -shared -o test_dll.dll test_dll.o

so I get the test_dll.dll

//--

//
//this file is a demo for testing dll in cygwin apps
[EMAIL PROTECTED]
//created by songyewen 2004/03/21
//
#include stdio.h
int main()
{
show_hello();
}


//-
gcc -o test_main.c test_main.exe -L./ -ltest_dll
so I get test_main.exe and can run test_main.exe successfully!


But I failed to use the test_dll.dll in MS Visual C++?

Who can help me?

thanks in advance!!

Re: tin-1.6.2: 8-bit chars not displayed, gettext transliterates

2004-03-21 Thread A . Alper ATICI
On Sun, 21 Mar 2004 13:38:55 +0100, Corinna Vinschen
[EMAIL PROTECTED] wrote:

Cool, I've tweaked tin accordingly.  The above seems to be better
changed in include/tin.h:

--- tin.h.orig  2004-03-21 13:31:14.969448200 +0100
+++ tin.h   2004-03-21 13:31:32.747629500 +0100
@@ -63,8 +63,8 @@
 #  define INET6
 #endif /* HAVE_GETADDRINFO  HAVE_GAI_STRERROR  ENABLE_IPV6 */
 
-/* Locale support in Mac OS X doesn't work yet, so turn it off */
-#if defined (MAC_OS_X)
+/* Locale support in Mac OS X and in Cygwin doesn't work yet, so turn it off */
+#if defined (MAC_OS_X) || defined (__CYGWIN__)
 #  ifndef NO_LOCALE
 #  define NO_LOCALE 1
 #  endif /* !NO_LOCALE */

I've uploaded a new package containing that fix and build with
--disable-locale.


--disable-locale already does what you've patched tin.h for, 
see include/autoconf.h after running configure.

OTOH, setting --disable-locale has a side-effect: you lose NLS
alltogether, i.e. try the commandline I posted previously and you
won't get messsages in German anymore. My tweak addresses this issue,
i.e. you should find a way to execute bindtextdomain() and
textdomain() functions when NO_LOCALE is set.



--
Alper Atc
PGP key @ http://sks.dnsalias.net:11371/pks/lookup?op=indexsearch=0xB824F550


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



sigfe/pthread bug on Win95 [Was: Re: Also 20040306 snapshot crashes in Win95]

2004-03-21 Thread Pierre A. Humblet
There has been a report of a cygwin crash on Win95

http://www.cygwin.com/ml/cygwin/2004-03/msg00507.html

CYGWIN_95-4.0 erg 1.5.10(0.112/4/2) 2004-03-19 20:04 i586 unknown unknown
Cygwin

Gnuchess is a fairly simple program, so I looked into it.
It uses pthreads and creates a thread that reads the input.
This threads crashes almost immediately.

input.c:  pthread_create(input_thread, NULL, input_func, NULL);

void *input_func(void *arg __attribute__((unused)) )
{
  char prompt[MAXSTR] = ;

  while (!(flags  QUIT)) {
if (!(flags  XBOARD)) {
  sprintf(prompt,%s (%d) : , 
  RealSide ? Black : White, 
  (RealGameCnt+1)/2 + 1 );
}

 
gdb session after break at input_func
*
123   while (!(flags  QUIT)) {
(gdb) n
124 if (!(flags  XBOARD)) {
(gdb) n
125   sprintf(prompt,%s (%d) : ,
(gdb) stepi
0x00429950 in sprintf ()
(gdb) stepi
0x61091eda in _sigfe_sprintf ()
at ../../../../src/winsup/cygwin/cygserver.h:82
82ssize_t error_code () const { return _header.error_code; };
Current language:  auto; currently c++
(gdb) stepi
0x61091edf in _sigfe_sprintf ()
at ../../../../src/winsup/cygwin/cygserver.h:82
82ssize_t error_code () const { return _header.error_code; };
(gdb) stepi
0x61090890 in _sigfe () at ../../../../src/winsup/cygwin/cygserver.h:82
82ssize_t error_code () const { return _header.error_code; };

(gdb) stepi
0x61090891  82ssize_t error_code () const { return
_header.error_code; };
snip

0x610908ca  82ssize_t error_code () const { return
_header.error_code; };
(gdb) stepi
0x610908ce  82ssize_t error_code () const { return
_header.error_code; };
(gdb) stepi

Program received signal SIGSEGV, Segmentation fault.
0x610908ce in _sigfe () at ../../../../src/winsup/cygwin/cygserver.h:82
82ssize_t error_code () const { return _header.error_code; };

(gdb) disas 0x610908ca 0x610908de
Dump of assembler code from 0x610908ca to 0x610908de:
0x610908ca _sigfe+58: xchg   %edx,0xc(%esp,1)
0x610908ce _sigfe+62: mov%edx,(%eax)
0x610908d0 _sigfe+64: incl   0xfbf4(%ebx)
0x610908d6 _sigfe+70: decl   0xfbfc(%ebx)
0x610908dc _sigfe+76: pop%edx
0x610908dd _sigfe+77: pop%ebx
End of assembler dump.
(gdb) p $eax
$4 = 0

This is not something I know how to fix.
 
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: Trailing commandline arguments not allowed.

2004-03-21 Thread George Hester
Hi Igor.  Crap I messed up in my last post.  Please do not read it.  It will
only upset you.

I got the service to exist in the Services applet with:

$cygrunsrv -I Apache -p /usr/sbin/httpd.exe -t auto

but it does not behave as a normal service.  A normal service set to auto
will start with no user intervention at boot.  But that is not the case here.
I still have to fire up Cygwin into the bash shell from the desktop.  And since
I have to do that I see no real benefit in running the above Apache as
a service.  Should I start Cygwin as a Service also?

George Hester
__
Igor Pechtchanski wrote in message news:[EMAIL PROTECTED]
 On Sat, 20 Mar 2004, George Hester wrote:
 
  According to the documentation of starting the Apache web server as a
  service in cygwin the generic formula is:
 
  $ cygrunsrv -I service_name-p /usr/local/apache/bin/httpd.exe [-a arguments] \
  ^ this should be a space
[-e VAR=VALUE] [-t auto|manual] [-u user] [-w passwd]
 
  So I did this in the bash shell:
 
  $cygrunsrv -I Apache 1.3-p /usr/sbin/httpd.exe -t auto
   ^ you need a space here
 
  Same thing with:
  $cygrunsrv -I Apache 1.3-p /usr/sbin/httpd.exe-t auto
   ^ here^ and here
 
  The result was the error I posted in the subject.  What did I do wromg?
 
 See above (you need to put a space before each -* flag).
 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: Trailing commandline arguments not allowed.

2004-03-21 Thread Thorsten Kampe
* George Hester (2004-03-21 06:42 +0100)
 I tried $cygrunsvr -I Apache Oh forget it.  The problem was my servername.
 
 I cannot have $cygrunsrv -I Apache 1.3-p /usr/sbin/httpd.exe -t auto
 
 It has to be $cygrunsrv -I Apache -p /usr/sbin/httpd.exe -t auto

No.
 
 It was the space in Apache 1.3

You know this ancient saying: Spaces have to be quoted, unless
otherwise stoted...?

Thorsten


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



Re: Starting a Win32 app from inside Cygwin

2004-03-21 Thread Thorsten Kampe
* Chris Powell (2004-03-21 03:52 +0100)
 I currently use cygwin in WinXP to display X session from an AIX machine.
 This works very well.  The software on the AIX box can call a word processor
 (Uniplex) on the AIX box to edit text files.  What I'd like to do is instead
 of launching the AIX word processor inside of the X session is launch Word
 on the WinXP machine to edit the file out on an NFS.
 
 Another site is currently doing this, but they are all linux and OpenOffice.
 The script on the AIX box does a rsh back to the linux box and opens OO word
 processing with the text file on an NFS.
 
 It there anyway to do this back to a WinXP box?

MS Word is no X client to my knowledge - although answering the
question in your subject: Starting a Win32 app from inside Cygwin
is no problem at all - neither GUI nor command line (in most cases).

Thorsten


--
Unsubscribe info:  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: Beep or playing a sound [Attn: CGF]

2004-03-21 Thread Igor Pechtchanski
On Sun, 21 Mar 2004, Lev Bishop wrote:

 See:
 http://www.cygwin.com/ml/cygwin/2003-05/msg01615.html
 Lev

Lev,

How can I respond, but with a BIG

### ### ###   ##   ###  ### ### ###### ###   ###   ### ###  #
#  #  #  #   # ###   #   #  ##  #   #  ##   ##  #   #   #
   # ## #   # #  #   # # # #   # #  #   #   #
   # #   ####   #  # #    ## #  #   #   #
   # #   #   #   #  #   ##   #   ####   ##  #   #
  ###   ### ### ### ##  ##  ###  ##  ### ### ####

CGF, even though this is not Cygwin-specific, perhaps we could mention
this in the User's Guide?  As I mentioned in my previous e-mails, this
also affects rxvt.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

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

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



Re: Bash tries to connect to the internet

2004-03-21 Thread Thorsten Kampe
* Joel (2004-03-21 14:49 +0100)
 Hi, I just downloaded Cygwin yesterday, and Bash tries to connect to
 the internet when I open it. ZoneAlarm stopped it though.

Yes, /great/ piece of software... 

 I talked with the nice people at Perlmonks, who say they have never
 had that happen. So I came here. When I open Bash, I get a message
 from ZoneAlarm asking me if Bash can connect to the internet at
 199.166.219.2. Vim does the same thing, including the IP address. I
 downloaded almost all of my packages from www.get-software.com
 using the setup program before switching to the University of
 Calgary mirror. Did I download hacked copies of the software?

Did you try to find out what 216.75.188.50 is? It's a DNS server
(name server) - probably the one you use for all queries.

Thorsten


--
Unsubscribe info:  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 loading simple GUI example under Win XP Pro

2004-03-21 Thread Ron
I'm new to cygwin and wanted to test the hellogui.c example provided.  When I
build the executable with the command gcc -mwindows hellogui.c, I get the
warning cannot find entry symbol _WinMainCRTStartup; defaulting to 00401000.

It would seem that this is a simple problem to resolve, yet after spending more
time than I'd like to mention, I have been unable to get this to load properly.

I downloaded the 1.5.7-1 release on March 9th.

I'd appreciate some advice.



--
Unsubscribe info:  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: tin-1.6.2: 8-bit chars not displayed, gettext transliterates

2004-03-21 Thread Corinna Vinschen
On Mar 21 16:18, A. Alper ATICI wrote:
 --disable-locale already does what you've patched tin.h for, 
 see include/autoconf.h after running configure.
 
 OTOH, setting --disable-locale has a side-effect: you lose NLS
 alltogether, i.e. try the commandline I posted previously and you
 won't get messsages in German anymore. My tweak addresses this issue,
 i.e. you should find a way to execute bindtextdomain() and
 textdomain() functions when NO_LOCALE is set.

Yes, you're right.  I've uploaded a new tin with your patch.

Thanks,
Corinna

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

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



Re: Bash tries to connect to the internet

2004-03-21 Thread Joel
I don't know how to find out anything else about the address but I am told
it is a DNS server. According to this thread:
http://www.cygwin.com/ml/cygwin/2003-03/msg00127.html from last year, Cygwin
is trying to get my hostname, and I want it to stop. Any suggestions?

Thanks

Joel



- Original Message - 
From: Thorsten Kampe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 21, 2004 10:30 AM
Subject: Re: Bash tries to connect to the internet


 * Joel (2004-03-21 14:49 +0100)
  Hi, I just downloaded Cygwin yesterday, and Bash tries to connect to
  the internet when I open it. ZoneAlarm stopped it though.

 Yes, /great/ piece of software...

  I talked with the nice people at Perlmonks, who say they have never
  had that happen. So I came here. When I open Bash, I get a message
  from ZoneAlarm asking me if Bash can connect to the internet at
  199.166.219.2. Vim does the same thing, including the IP address. I
  downloaded almost all of my packages from www.get-software.com
  using the setup program before switching to the University of
  Calgary mirror. Did I download hacked copies of the software?

 Did you try to find out what 216.75.188.50 is? It's a DNS server
 (name server) - probably the one you use for all queries.

 Thorsten


 --
 Unsubscribe info:  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/



How many fds can *you* open?

2004-03-21 Thread Dan Kegel
I'm having trouble on both my recently-updated cygwin
machines.  They crash after opening 130 to 180 fds.
Here's a little program that just counts how many
fds it can open for /dev/null.  I suspect a few of
you will also have my problem.  Could you run this
and report back how many fds it reports, or whether it crashes?
Thanks,
Dan

#include stdio.h
#include fcntl.h

int main(int argc, char **argv)
{
int i;
for (i=0; open(/dev/null, O_RDONLY) != -1; i++)
;
printf(opened %d fds\n, i);
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/

Re: Beep or playing a sound [Attn: CGF]

2004-03-21 Thread Christopher Faylor
On Sun, Mar 21, 2004 at 10:29:19AM -0500, Igor Pechtchanski wrote:
On Sun, 21 Mar 2004, Lev Bishop wrote:

 See:
 http://www.cygwin.com/ml/cygwin/2003-05/msg01615.html
 Lev

Lev,

How can I respond, but with a BIG

### ### ###   ##   ###  ### ### ###### ###   ###   ### ###  #
#  #  #  #   # ###   #   #  ##  #   #  ##   ##  #   #   #
   # ## #   # #  #   # # # #   # #  #   #   #
   # #   ####   #  # #    ## #  #   #   #
   # #   #   #   #  #   ##   #   ####   ##  #   #
  ###   ### ### ### ##  ##  ###  ##  ### ### ####

CGF, even though this is not Cygwin-specific, perhaps we could mention
this in the User's Guide?  As I mentioned in my previous e-mails, this
also affects rxvt.

This is a rare, windows-specific problem.  It hardly qualifies as a FAQ.
It seems like a little judicious googling would be enough for anyone
to figure this out.

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: Bash tries to connect to the internet

2004-03-21 Thread Christopher Faylor
On Sun, Mar 21, 2004 at 10:57:17AM -0500, Joel wrote:
I don't know how to find out anything else about the address but I am told
it is a DNS server. According to this thread:
http://www.cygwin.com/ml/cygwin/2003-03/msg00127.html from last year, Cygwin
is trying to get my hostname, and I want it to stop. Any suggestions?

Uninstall cygwin?

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: sigfe/pthread bug on Win95 [Was: Re: Also 20040306 snapshot crashes in Win95]

2004-03-21 Thread Christopher Faylor
On Sun, Mar 21, 2004 at 09:36:39AM -0500, Pierre A. Humblet wrote:
There has been a report of a cygwin crash on Win95

http://www.cygwin.com/ml/cygwin/2004-03/msg00507.html

CYGWIN_95-4.0 erg 1.5.10(0.112/4/2) 2004-03-19 20:04 i586 unknown unknown
Cygwin

Gnuchess is a fairly simple program, so I looked into it.
It uses pthreads and creates a thread that reads the input.
This threads crashes almost immediately.

input.c:  pthread_create(input_thread, NULL, input_func, NULL);

void *input_func(void *arg __attribute__((unused)) )
{
  char prompt[MAXSTR] = ;

  while (!(flags  QUIT)) {
if (!(flags  XBOARD)) {
  sprintf(prompt,%s (%d) : , 
  RealSide ? Black : White, 
  (RealGameCnt+1)/2 + 1 );
}

 
gdb session after break at input_func
*
123   while (!(flags  QUIT)) {
(gdb) n
124 if (!(flags  XBOARD)) {
(gdb) n
125   sprintf(prompt,%s (%d) : ,
(gdb) stepi
0x00429950 in sprintf ()
(gdb) stepi
0x61091eda in _sigfe_sprintf ()
at ../../../../src/winsup/cygwin/cygserver.h:82
82ssize_t error_code () const { return _header.error_code; };
Current language:  auto; currently c++
(gdb) stepi
0x61091edf in _sigfe_sprintf ()
at ../../../../src/winsup/cygwin/cygserver.h:82
82ssize_t error_code () const { return _header.error_code; };
(gdb) stepi
0x61090890 in _sigfe () at ../../../../src/winsup/cygwin/cygserver.h:82
82ssize_t error_code () const { return _header.error_code; };

(gdb) stepi
0x61090891  82ssize_t error_code () const { return
_header.error_code; };
snip

0x610908ca  82ssize_t error_code () const { return
_header.error_code; };
(gdb) stepi
0x610908ce  82ssize_t error_code () const { return
_header.error_code; };
(gdb) stepi

Program received signal SIGSEGV, Segmentation fault.
0x610908ce in _sigfe () at ../../../../src/winsup/cygwin/cygserver.h:82
82ssize_t error_code () const { return _header.error_code; };

(gdb) disas 0x610908ca 0x610908de
Dump of assembler code from 0x610908ca to 0x610908de:
0x610908ca _sigfe+58: xchg   %edx,0xc(%esp,1)
0x610908ce _sigfe+62: mov%edx,(%eax)
0x610908d0 _sigfe+64: incl   0xfbf4(%ebx)
0x610908d6 _sigfe+70: decl   0xfbfc(%ebx)
0x610908dc _sigfe+76: pop%edx
0x610908dd _sigfe+77: pop%ebx
End of assembler dump.
(gdb) p $eax
$4 = 0

This is not something I know how to fix.

So, I guess it's broken for good, then.

Oh well.  I will put a notice on the main cygwin web page that it no
longer works on Windows 95.

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: How many fds can *you* open?

2004-03-21 Thread Christopher Faylor
On Sun, Mar 21, 2004 at 08:13:42AM -0800, Dan Kegel wrote:
I'm having trouble on both my recently-updated cygwin machines.  They
crash after opening 130 to 180 fds.  Here's a little program that just
counts how many fds it can open for /dev/null.  I suspect a few of you
will also have my problem.  Could you run this and report back how many
fds it reports, or whether it crashes?

No.  Please do not do this.

There is no reason to flood the list with data like this.  By your own
admission, you don't know enough to debug the problem and asking for
data with no one available to do anything with the data is just asking
for noise.

I'm terminating this subject.

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/



Can't login to proftpd unless shell is running.

2004-03-21 Thread Paul Fournier
I have this very strange problem.

I am runing proftpd in standalone mode as a service registered with
cugrunsrv.  The service starts and runs fine when I reboot the system.
However I have found that I cannot login to through ftp unless I am running
a shell in cygwin.  If the shell isn't runnning I get the following:

Status: Connecting to localhost ...
Status: Connected with localhost. Waiting for welcome message...
Response: 220 ProFTPD 1.2.9 Server (ProFTPD Default Installation)
[my_computer]Command: USER my_win_username
Response: 331 Password required for my_win_username.
Command: PASS ***
Response: 530 Login incorrect.
Error: Unable to connect!

Now if I run cygwin then I can log in appropriately with now problems.  I
would like to be able to use proftpd without having a user logged on to the
system at all.  Any help woud be greatly appreciated.

** I am using the default basic configuration file for proftpd


--
Unsubscribe info:  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: Minimal test case for Make crash bug

2004-03-21 Thread Christopher Faylor
On Sat, Mar 20, 2004 at 10:57:46PM -0800, Dan Kegel wrote:
Dan Kegel wrote:
int main(int argc, char **argv)
{
int i;
for (i=0; ; i++) {
int fd = open(foo.c, O_RDONLY);
printf(fd #%d is %d\n, i, fd);
}
}

This crashes for me at the 133rd fd unless I run it under gdb ...

OK, I built a debugging version of cygwin1.dll and dropped it on top of
the normal one, then ran my test program with
  export CYGWIN=error_start:C:\\cygwin\\bin\\gdb.exe
  ./foo
and hit 'c' and then 'bt' as suggested.  Looks like the debugger is a
bit happier with the debugging build.  I don't have time to look at it
tonight, but in case it makes any sense to you, here's the backtrace.

Can you provide the output from:

  info dll

  p alloc_sz
  p cygheap
  p cygheap_max

I assume that you're using cygwin 1.5.9 and that your mount table
is as you reported in your original message.  Could you also report
on the output of pwd?

Thanks,
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: Bash tries to connect to the internet

2004-03-21 Thread Joel
Why is it trying to access a DNS anyways? Is there any way to stop it from
doing this?

Thanks

Joel

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



/dev/dsp?

2004-03-21 Thread Lester Ingber
I've seen a few references to the use of /dev/dsp in the postings.  I have
all current files installed, but I do not see even a /dev/ directory?

Is there some file I should reinstall?

Thanks.

Lester


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



SetErrorMode

2004-03-21 Thread Benson Margulies
I'm trying to run some builds under cygwin with SetErrorMode set to
avoid Windows dialog boxes in the event of hard errors. I'm failing. I
get dialog boxes. Is cygwin doing anything to call SetErrorMode and undo
my efforts, or do I need to look elsewhere?

--
Unsubscribe info:  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: Trailing commandline arguments not allowed.

2004-03-21 Thread Igor Pechtchanski
George,

Please (re)read /usr/share/doc/Cygwin/apache-1.3.29-1.README, which is the
official documentation for apache on Cygwin.  Any other occurrences of
Cygwin in the Apache documentation should be considered incidental, and
are subsumed by that README.
Igor

On Sun, 21 Mar 2004, George Hester wrote:

 Hi Igor.  Crap I messed up in my last post.  Please do not read it.  It
 will only upset you.

 I got the service to exist in the Services applet with:

 $cygrunsrv -I Apache -p /usr/sbin/httpd.exe -t auto

 but it does not behave as a normal service.  A normal service set to
 auto will start with no user intervention at boot.  But that is not the
 case here. I still have to fire up Cygwin into the bash shell from the
 desktop.  And since I have to do that I see no real benefit in running
 the above Apache as a service.  Should I start Cygwin as a Service also?

 George Hester
 __
 Igor Pechtchanski wrote:
  On Sat, 20 Mar 2004, George Hester wrote:
 
   According to the documentation of starting the Apache web server as a
   service in cygwin the generic formula is:
  
   $ cygrunsrv -I service_name-p /usr/local/apache/bin/httpd.exe [-a arguments] \
   ^ this should be a space
 [-e VAR=VALUE] [-t auto|manual] [-u user] [-w passwd]
  
   So I did this in the bash shell:
  
   $cygrunsrv -I Apache 1.3-p /usr/sbin/httpd.exe -t auto
^ you need a space here
 
   Same thing with:
   $cygrunsrv -I Apache 1.3-p /usr/sbin/httpd.exe-t auto
^ here^ and here
 
   The result was the error I posted in the subject.  What did I do wromg?
 
  See above (you need to put a space before each -* flag).
  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: Bash tries to connect to the internet

2004-03-21 Thread Igor Pechtchanski
On Sun, 21 Mar 2004, Joel wrote:

 Why is it trying to access a DNS anyways? Is there any way to stop it
 from doing this?

 Thanks
 Joel

Joel,

Cygwin is trying to access DNS because it invokes a Windows function that
does that.  It is possible to prevent Windows from accessing DNS when
trying to find out the hostname of the machine, but it's beyond the scope
of this list, and you'll have to ask on a Windows forum for further help
with this.  I'd suspect it has something to do with the 'HOSTS' file, and,
FYI, Cygwin provides /etc/hosts as a symlink to that file, to make it
easier.
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: Beep or playing a sound [Attn: CGF]

2004-03-21 Thread Igor Pechtchanski
On Sun, 21 Mar 2004, Christopher Faylor wrote:

 On Sun, Mar 21, 2004 at 10:29:19AM -0500, Igor Pechtchanski wrote:
 On Sun, 21 Mar 2004, Lev Bishop wrote:
 
  See:
  http://www.cygwin.com/ml/cygwin/2003-05/msg01615.html
  Lev
 
 Lev,
 
 How can I respond, but with a BIG THANK YOU!
 
 CGF, even though this is not Cygwin-specific, perhaps we could mention
 this in the User's Guide?  As I mentioned in my previous e-mails, this
 also affects rxvt.

 This is a rare, windows-specific problem.  It hardly qualifies as a FAQ.
 It seems like a little judicious googling would be enough for anyone
 to figure this out.

 cgf

Fair enough.  Just for the archives, with the knowledge that Cygwin uses
MessageBeep() for its system beep, and that MessageBeep()  uses the
Default Beep setting, Googling for 'Default Beep disappeared' produces
a page with the above recipe.
Thanks for your patience,
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: Bash tries to connect to the internet

2004-03-21 Thread Joel

- Original Message - 
From: Igor Pechtchanski [EMAIL PROTECTED]
To: Joel [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, March 21, 2004 1:02 PM
Subject: Re: Bash tries to connect to the internet


 Cygwin is trying to access DNS because it invokes a Windows function that
does that.  It is possible to prevent Windows from accessing DNS when
trying to find out the hostname of the machine, but it's beyond the scope
of this list, and you'll have to ask on a Windows forum for further help
with this.  I'd suspect it has something to do with the 'HOSTS' file, and,
FYI, Cygwin provides /etc/hosts as a symlink to that file, to make it
easier.
Igor


Is there a way to stop it from invoking the windows command? Also, my
machine doesn't have a hostname. Is Cygwin trying to run like a server?

Thanks

Joel

--
Unsubscribe info:  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: Bash tries to connect to the internet -- Never mind

2004-03-21 Thread Joel
Don't bother replying, I just realized I don't need Cygwin, I'm afraid.

Thanks

Joel
- Original Message - 
From: Joel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 21, 2004 1:23 PM
Subject: Re: Bash tries to connect to the internet



 - Original Message - 
 From: Igor Pechtchanski [EMAIL PROTECTED]
 To: Joel [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Sunday, March 21, 2004 1:02 PM
 Subject: Re: Bash tries to connect to the internet


  Cygwin is trying to access DNS because it invokes a Windows function that
 does that.  It is possible to prevent Windows from accessing DNS when
 trying to find out the hostname of the machine, but it's beyond the scope
 of this list, and you'll have to ask on a Windows forum for further help
 with this.  I'd suspect it has something to do with the 'HOSTS' file, and,
 FYI, Cygwin provides /etc/hosts as a symlink to that file, to make it
 easier.
 Igor
 

 Is there a way to stop it from invoking the windows command? Also, my
 machine doesn't have a hostname. Is Cygwin trying to run like a server?

 Thanks

 Joel

 --
 Unsubscribe info:  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: /dev/dsp?

2004-03-21 Thread Brian Ford
On Sun, 21 Mar 2004, Lester Ingber wrote:

 I've seen a few references to the use of /dev/dsp in the postings.  I have
 all current files installed, but I do not see even a /dev/ directory?

 Is there some file I should reinstall?

http://cygwin.com/cygwin-ug-net/using-specialnames.html#AEN806

Search the archives for a script from Igor to create it if you really want
to.

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

--
Unsubscribe info:  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: Minimal test case for Make crash bug

2004-03-21 Thread Dan Kegel
cgf wrote:
OK, I built a debugging version of cygwin1.dll and dropped it on top of
the normal one, then ran my test program with
 export CYGWIN=error_start:C:\\cygwin\\bin\\gdb.exe
 ./foo
and hit 'c' and then 'bt' as suggested.  Looks like the debugger is a
bit happier with the debugging build.  I don't have time to look at it
tonight, but in case it makes any sense to you, here's the backtrace.
Can you provide the output from:

  info dll

  p alloc_sz
  p cygheap
  p cygheap_max
I assume that you're using cygwin 1.5.9 and that your mount table
is as you reported in your original message.  Could you also report
on the output of pwd?
Yes, it's a fresh update from ftp.lug.udel.edu, which has always been
a good mirror for me, and cygcheck confirms it's 1.5.9-1.  The cygwin
dll itself was freshly built from cygwin-shapshot-20040318-1, but
I got the same crash with the one installed by the setup utility from 
ftp.lug.udel.edu.

Here's the gdb stuff you asked for; I'll attach a fresh cygcheck.out
so you can see my mounts, which haven't changed.
Looks like cygheap is awful close to cygheap_max, hmm.  I don't
know what those are, but it sounds bad :-)
BTW what happens when you run my fds.c test program? How many fds do you 
get?
- Dan

(gdb) bt
#0  fhandler_base::fhandler_base() (this=0x0)
at 
../../../../cygwin-snapshot-20040318-1/winsup/cygwin/fhandler.cc:1275
#1  0x6102b354 in fhandler_dev_null::fhandler_dev_null() (this=0x0)
at 
../../../../cygwin-snapshot-20040318-1/winsup/cygwin/fhandler.cc:1290
#2  0x6101e284 in build_fh_pc(path_conv) ([EMAIL PROTECTED])
at ../../../../cygwin-snapshot-20040318-1/winsup/cygwin/fhandler.h:311
#3  0x6101ded8 in build_fh_name(char const*, void*, unsigned, 
suffix_info*) (
name=0x401050 /dev/null, h=0x0, opt=1, si=0x0)
at ../../../../cygwin-snapshot-20040318-1/winsup/cygwin/dtable.cc:351
#4  0x61095071 in open (unix_path=0x401050 /dev/null, flags=0)
at ../../../../cygwin-snapshot-20040318-1/winsup/cygwin/syscalls.cc:550
#5  0x610883cf in _sigfe ()
at ../../../../cygwin-snapshot-20040318-1/winsup/cygwin/cygserver.h:82
#6  0x0768 in ?? ()
#7  0x in ?? ()
#8  0x0022f070 in ?? ()
#9  0x6101cb0e in dll_list::init() (this=0x1)
at ../../../../cygwin-snapshot-20040318-1/winsup/cygwin/dll_init.cc:221
#10 0x61005ed4 in dll_crt0_1(char*) ()
at ../../../../cygwin-snapshot-20040318-1/winsup/cygwin/dcrt0.cc:888
#11 0x610060eb in _dll_crt0 ()
at ../../../../cygwin-snapshot-20040318-1/winsup/cygwin/dcrt0.cc:942
(gdb) info dll
DLL Name   Load Address
/cygdrive/c/WINDOWS/System32/ntdll.dll 77f51000
/cygdrive/c/WINDOWS/system32/kernel32.dll  77e61000
/usr/bin/cygwin1.dll   61001000
/cygdrive/c/WINDOWS/system32/advapi32.dll  77dd1000
/cygdrive/c/WINDOWS/system32/rpcrt4.dll78001000
(gdb) p alloc_sz
$3 = 0
(gdb) p cygheap
$4 = 1634598912
(gdb) p cygheap_max
$5 = 1634749700	
(gdb) pwd
Working directory /home/liz.

Cygwin Win95/NT Configuration Diagnostics
Current System Time: Sun Mar 21 10:58:32 2004

Windows XP Home Edition Ver 5.1 Build 2600 Service Pack 1

Path:   C:\cygwin\opt\gnome\bin
C:\cygwin\usr\local\bin
C:\cygwin\usr\X11R6\bin
C:\cygwin\usr\X11R6\bin
C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
c:\WINDOWS\system32
c:\WINDOWS
c:\WINDOWS\system32\WBEM
c:\Program Files\Pinnacle\Shared Files
.

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

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 1004(liz) GID: 513(None)
513(None)544(Administrators)  
545(Users)

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

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

ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\liz\Application Data'
CLIENTNAME = `Console'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `ZILF'
COMSPEC = `C:\WINDOWS\system32\cmd.exe'
DISPLAY = `:0.0'
HOMEDRIVE = `C:'
HOMEPATH = `\Documents and Settings\liz'
LOGONSERVER = `\\ZILF'
MANPATH = `:/usr/X11R6/man:/opt/gnome/man:/usr/local/man:/usr/X11R6/man:/usr/ssl/man'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/usr/bin'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 4 Stepping 4, AuthenticAMD'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0404'
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\liz\LOCALS~1\Temp'
TERM = `cygwin'
TMP = `c:\DOCUME~1\liz\LOCALS~1\Temp'
USERDOMAIN = `ZILF'
USERNAME = `liz'
USERPROFILE = `C:\Documents and Settings\liz'
WINDIR = `C:\WINDOWS'
_ = `/usr/bin/cygcheck'
POSIXLY_CORRECT = `1'


Window title by shortcut

2004-03-21 Thread Vidar
Hi!

I'm trying to find a method for making it so that if I launch a specific shortcut to 
cygwin
it will have a title of my choosing, and keep it (not change to the current path and 
such).
I've searched the archive but all I could find were some procedures including lots of 
escape
characters, which I think would make it diffcult to set the title for this shortcut 
only (I
also don't know how to input the escape chars =/ -- newbie here).

- Vidar

--
Unsubscribe info:  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: Window title by shortcut

2004-03-21 Thread Gregory Borota
Something like this should do it:

1. add in cygwin.bat (or a copy of it),  before bash command:
set __TYTLE__=%~1

2. in your .bash_profile add:
if [ $__TYTLE__ ]; then
  PS1=\[\033]0;\$__TYTLE__\007'
[EMAIL PROTECTED] \[\033[33m\w\033[0m\]
$ '
fi

3. Create o shortcut with something like this in the target box:
C:\cygwin\cygwin.bat  Your Title


If I understood you right, this should solve you problem.
Greg

On Sun, 21 Mar 2004, Vidar wrote:

 Hi!

 I'm trying to find a method for making it so that if I launch a specific shortcut to 
 cygwin
 it will have a title of my choosing, and keep it (not change to the current path and 
 such).
 I've searched the archive but all I could find were some procedures including lots 
 of escape
 characters, which I think would make it diffcult to set the title for this shortcut 
 only (I
 also don't know how to input the escape chars =/ -- newbie here).

 - Vidar

 --
 Unsubscribe info:  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: Minimal test case for Make crash bug

2004-03-21 Thread Hannu E K Nevalainen
 From: Dan Kegel

 Dan Kegel wrote:
  Got it.  I'm attaching a minimal test case.  glibc's makefile
  requires that Make be able to handle 140 levels of include recursion,
  but cygwin Make crashes after about 130 -- unless you're running
  under gdb or strace, in which case it works fine.

 Turns out the smallest test case is even smaller:

 #include stdio.h
 #include fcntl.h
 #include stdlib.h

 int main(int argc, char **argv)
 {
  int i;
  for (i=0; ; i++) {
  int fd = open(foo.c, O_RDONLY);
  printf(fd #%d is %d\n, i, fd);
  }
 }

 This crashes for me at the 133rd fd unless I run it under
 gdb, in which case it runs quite happily forever without
 crashing (though it runs out of fds fairly soon).
 And this is a WinXP system with an up-to-date cygwin and
 scads of memory, not some Win95 box with 16MB...

FWIW; using the previously posted fds.c, slightly modified:
 I can reproduce this with 1.5.9-1 (ususally 133 iterations and a core
dump).
Switching to 1.5.8-1 cygwin1.dll rasies the limit to some 3200 iterations
(no dump).

/Hannu E K Nevalainen, B.Sc. EE - 59+16.37'N, 17+12.60'E

** on a mailing list; please keep replies on that particular list **

-- printf(LocalTime: UTC+%02d\n,(DST)? 2:1); --
--END OF MESSAGE--


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



Re: Bash tries to connect to the internet

2004-03-21 Thread Martin Gainty
Thorsten:
This is as far as I got
 620 ms20 ms20 ms  jfk-core-01.inet.qwest.net [205.171.8.18]
 740 ms50 ms40 ms  chi-core-03.inet.qwest.net [205.171.8.162]
 840 ms40 ms40 ms  chp-brdr-01.inet.qwest.net [205.171.220.62]
 940 ms40 ms50 ms  bx1-chicagodt-pos1-2.in.bellnexxia.net
[206.108.
08.165]
1051 ms40 ms40 ms  HSE-Sherbrooke-ppp98902.qc.sympatico.ca
[64.230.
23.41]
1150 ms60 ms50 ms  core4-toronto63-pos6-3.in.bellnexxia.net
[206.10
103.129]
1250 ms50 ms50 ms  64.230.242.98
1350 ms60 ms50 ms  64.230.242.53
1450 ms60 ms60 ms  206.47.229.84
1550 ms50 ms50 ms  64.230.224.66
1661 ms50 ms50 ms  gi1-0.speede02.access.golden.net
[64.39.160.101]

17 *** Request timed out.

(currently Unreachable from the Democratic Republic)
can someone from western canada check it out?
~Martin~
- Original Message -
From: Thorsten Kampe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 21, 2004 10:30 AM
Subject: Re: Bash tries to connect to the internet


 * Joel (2004-03-21 14:49 +0100)
  Hi, I just downloaded Cygwin yesterday, and Bash tries to connect to
  the internet when I open it. ZoneAlarm stopped it though.

 Yes, /great/ piece of software...

  I talked with the nice people at Perlmonks, who say they have never
  had that happen. So I came here. When I open Bash, I get a message
  from ZoneAlarm asking me if Bash can connect to the internet at
  199.166.219.2. Vim does the same thing, including the IP address. I
  downloaded almost all of my packages from www.get-software.com
  using the setup program before switching to the University of
  Calgary mirror. Did I download hacked copies of the software?

 Did you try to find out what 216.75.188.50 is? It's a DNS server
 (name server) - probably the one you use for all queries.

 Thorsten


 --
 Unsubscribe info:  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: Minimal test case for Make crash bug

2004-03-21 Thread Dan Kegel
Hannu wrote:
FWIW; using the previously posted fds.c, slightly modified:
I can reproduce this with 1.5.9-1 (ususally 133 iterations and a core
dump).
Switching to 1.5.8-1 cygwin1.dll rasies the limit to some 3200 iterations
(no dump).
Excellent, thanks for the info.

I just downloaded 
ftp://ftp.lug.udel.edu/pub/cygwin/release/cygwin/cygwin-1.5.8-1.tar.bz2
and dropping its cygwin1.dll into my c:/cygwin/bin seems to solve the
problem; I can now open zillions of file descriptors.
(Thanks for the nudge; I'd never tried to figure out how to do that before.)

(I had earlier tried to back off to an earlier cygwin using the
installer gui, but that backs you all the way down to 1.5.5 or
something, and it didn't work well for me.)
So I guess 1.5.9-1 was a bit of a problem child.  Hopefully
next release will have that resolved.
- Dan
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Possible over allocation of memory resources by cygwin

2004-03-21 Thread Charles L. Werner
I have observed the following situation:

I have been running a C program that utilizes approximately 132 MB of RAM under both
Cygwin (1.5.9-1, Windows XP professional, 1 GB ram) and under Linux.  The same program 
with
identical data was run on both machines. One is a 3 GHz P4 the other a 3 GHz Xeon.
On both the Linux machine and Cygwin, top shows about 132 MB of space needed, however,
the  task manager shows an additional commit jumping from 196 to 483 MB when the 
program starts.
Not only that, but the program runs about 3 times slower. (1500 sec vs 500 sec(Linux)).
A larger program that nominally requires 450 MB, causes the commit charge to go up to 
over 2 GB!
followed by frantic swapping.
Several program seem to suffer similarly, and I have not seen anything like this 
before.
Any thoughts? Could this be related to the latest changes in cygwin?
Thanks,

Charles

--
Dr. Charles L. Werner
Gamma Remote Sensing AG
Thunstrasse 130
CH-3074 Muri b. Bern, Switzerland
Tel: +41 31 951 70 05
FAX: +41 31 951 70 08
http://www.gamma-rs.ch



cygcheck.output.gz
Description: application/gzip
--
Unsubscribe info:  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: Minimal test case for Make crash bug

2004-03-21 Thread Christopher Faylor
On Sun, Mar 21, 2004 at 11:04:29AM -0800, Dan Kegel wrote:
Here's the gdb stuff you asked for;
[snip]
(gdb) p alloc_sz
$3 = 0

Bingo.  That's the problem.  I've checked in a fix for this and have uploaded
a new snapshot.  Can you confirm that it fixes the problem?
--
Christopher Faylor
Cygwin Project Leader
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: /dev/dsp?

2004-03-21 Thread Igor Pechtchanski
On Sun, 21 Mar 2004, Lester Ingber wrote:

 I've seen a few references to the use of /dev/dsp in the postings.  I have
 all current files installed, but I do not see even a /dev/ directory?

 Is there some file I should reinstall?

 Thanks.
 Lester

Lester,

See http://cygwin.com/ml/cygwin-xfree/2004-01/msg00353.html.  The script
in that message will also create /dev/audio as a symlink to /dev/dsp.
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/



sshd on WinXP machine in Win2003 Domain -- can't log in

2004-03-21 Thread MIke Hanby
Hey y'all, (sorry if this double posts)

System:  Windows XP Pro with brand new install of cygwin running sshd.  This
system is a member
 of a Widnows 2003 Active Directory domain.

Problem:  I've gone through the config steps listed below and unable to
connect to my sshd server.
On the sshd server, from the cygwin prompt I enter the
following:
$ ssh -p 3020 localhost
[EMAIL PROTECTED]'s password:
Last login: Sat Mar 20 16:01:17 2004 from localhost
Fanfare!!!
You are successfully logged in to this server!!!
/bin/bash: Permission denied
Connection to localhost closed.

Permissions on /bin/bash were -rwxr-x---+, I tried adding +rx, still get the
same error
-rwxr-xr-x+   1 joeshmo  Users  527360 Oct 20 07:12 /bin/bash*

Here's what I did to configure sshd
1.  Installed Cygwin with packages that I downloaded today while logged in
as my
Active Directory user, joeshmo
2.  Created a new Active Directory user, addomain\sshdproc, and added the
following rights using the
Windows 2003 Server Local Security Policy
Create a token object
Log on as a service
Replcae a process level token
Adjust memory quotas for a process
3.  Added sshd as a service on the Windows XP Pro machine, it is set to
start as the user
 addomain\sshdproc
4.  Ran ssh-host-config and answered YES to all questions, including
privilege separation
5.  Ran the following on the Windows XP machine
 mkpasswd -l -d  /etc/passwd
 mkgroup -l -d  /etc/group
6. changed permissions on the following files
 touch /var/log/sshd.log
 chmod 644 /var/log/sshd.log
 chown sshdproc /var/empty /var/log/sshd.log /etc/ssh_*
7.  Start sshd
 cygrunsrv --start sshd

I then get the error above, /bin/bash: Permission denied
Any idea what file(s) it might be referring to?
Any ideas on what else I can do?

Thanks in advance,

Mike




--
Unsubscribe info:  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: Trailing commandline arguments not allowed.

2004-03-21 Thread George Hester
I don't have a folder by that name.  I have folder called apache-1.3.29-eapib and 
that's it.  The puny Readme in that said nothing about running Apache as a service.  
Thanks anyway.

George Hester
__
Igor Pechtchanski  wrote in message news:[EMAIL PROTECTED]
 George,
 
 Please (re)read /usr/share/doc/Cygwin/apache-1.3.29-1.README, which is the
 official documentation for apache on Cygwin.  Any other occurrences of
 Cygwin in the Apache documentation should be considered incidental, and
 are subsumed by that README.
 Igor
 
 On Sun, 21 Mar 2004, George Hester wrote:
 
  Hi Igor.  Crap I messed up in my last post.  Please do not read it.  It
  will only upset you.
 
  I got the service to exist in the Services applet with:
 
  $cygrunsrv -I Apache -p /usr/sbin/httpd.exe -t auto
 
  but it does not behave as a normal service.  A normal service set to
  auto will start with no user intervention at boot.  But that is not the
  case here. I still have to fire up Cygwin into the bash shell from the
  desktop.  And since I have to do that I see no real benefit in running
  the above Apache as a service.  Should I start Cygwin as a Service also?
 
  George Hester
  __
  Igor Pechtchanski wrote:
   On Sat, 20 Mar 2004, George Hester wrote:
  
According to the documentation of starting the Apache web server as a
service in cygwin the generic formula is:
   
$ cygrunsrv -I service_name-p /usr/local/apache/bin/httpd.exe [-a arguments] \
^ this should be a space
  [-e VAR=VALUE] [-t auto|manual] [-u user] [-w passwd]
   
So I did this in the bash shell:
   
$cygrunsrv -I Apache 1.3-p /usr/sbin/httpd.exe -t auto
 ^ you need a space here
  
Same thing with:
$cygrunsrv -I Apache 1.3-p /usr/sbin/httpd.exe-t auto
 ^ here^ and here
  
The result was the error I posted in the subject.  What did I do wromg?
  
   See above (you need to put a space before each -* flag).
   Igor
 
 -- 
 http://cs.nyu.edu/~pechtcha/
   |\  _,,,---,,_ [EMAIL PROTECTED]
 ZZZzz /,`.-'`'-.  ;-;;,_ [EMAIL PROTECTED]
  |,4-  ) )-,_. ,\ (  `'-' Igor Pechtchanski, Ph.D.
 '---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!
 
 I have since come to realize that being between your mentor and his route
 to the bathroom is a major career booster.  -- Patrick Naughton



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



[ANNOUNCEMENT] GNU CLISP 2.33 (2004-03-17)

2004-03-21 Thread Sam Steingold
Common Lisp is a high-level, general-purpose programming language.
GNU CLISP is a Common Lisp implementation by Bruno Haible of Karlsruhe
University and Michael Stoll of Munich University, both in Germany.
It mostly supports the Lisp described in the ANSI Common Lisp standard.
It runs on microcomputers (Windows NT/2000/XP, Windows 95/98/ME) as well
as on Unix workstations (Linux, SVR4, Sun4, DEC Alpha OSF, HP-UX, BeOS,
NeXTstep, SGI, AIX and others) and needs only 2 MB of RAM.
It is Free Software and may be distributed under the terms of GNU GPL,
while it is possible to distribute commercial applications compiled
with GNU CLISP.
The user interface comes in German, English, French, Spanish, Dutch
and Russian.
GNU CLISP includes an interpreter, a compiler, a debugger, CLOS,
a foreign language interface, sockets, i18n, fast bignums and more.
An X11 interface is available through CLX, Garnet, CLUE/CLIO.
GNU CLISP runs Maxima, ACL2 and many other Common Lisp packages.

More information at
  http://clisp.cons.org/,
  http://www.clisp.org/,
  http://www.gnu.org/software/clisp/ and
  http://clisp.sourceforge.net/.
Sources and selected binaries are available by anonymous ftp from
  ftp://ftp.gnu.org/pub/gnu/clisp/
and its mirrors.

2.33 (2004-03-17)
=

Important notes
---

* All .fas files generated by previous CLISP versions are invalid and
  must be recompiled.  Use CUSTOM:*LOAD-OBSOLETE-ACTION* to automate this.
  See http://clisp.cons.org/impnotes.html#loadfile for details.

User visible changes


* NO-APPLICABLE-METHOD, NO-PRIMARY-METHOD and NO-NEXT-METHOD now signal
  METHOD-CALL-ERROR or METHOD-CALL-TYPE-ERROR.
  See http://clisp.cons.org/impnotes.html#meth-call-err for details.

* New user variables CUSTOM:*APROPOS-MATCHER* and CUSTOM::*APROPOS-DO-MORE*
  make APROPOS more flexible in search and output.
  See http://clisp.cons.org/impnotes.html#apropos for details.

* New function EXT:MOD-EXPT efficiently computes the composition of MOD
  and EXPT on integers.
  See http://clisp.cons.org/impnotes.html#int-func-ext for details.

* New function EXT:ARGV returns the command line arguments passed to runtime.
  See http://clisp.cons.org/impnotes.html#argv for details.

* New generic function GRAY:STREAM-POSITION extends FILE-POSITION to
  Gray streams; FILE-POSITION now works with streams other than FILE-STREAMs.
  See http://clisp.cons.org/impnotes.html#gray for details.

* DEFINE-METHOD-COMBINATION and friends are now implemented.
  Thanks to James Anderson [EMAIL PROTECTED].
  This change obsoleted all compiled file.

Portability
---

* Improved portability for nearly all platforms: Linux, MacOS X, Solaris,
  Tru64, HP-UX, AIX, FreeBSD, NetBSD, OpenBSD, BeOS.

* Removed Acorn RISCOS support.

* Removed AmigaOS support.

* Removed support for MSDOS and OS/2, using EMX.

* Removed support for Borland C compiler on Win32.

* Added FFI support for x86_64 (AMD64) Linux and PowerPC MacOS X.




-- 
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
The only thing worse than X Windows: (X Windows) - X


--
Unsubscribe info:  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: Trailing commandline arguments not allowed.

2004-03-21 Thread Igor Pechtchanski
George,

I'm sure you have a /usr/share/doc/Cygwin directory on your system.  Look
for the file named apache-1.3.29-1.README in that directory.  Judging by
your reply, you looked in /usr/share/doc, not in /usr/share/doc/Cygwin.
Igor

On Sun, 21 Mar 2004, George Hester wrote:

 I don't have a folder by that name.  I have folder called
 apache-1.3.29-eapib and that's it.  The puny Readme in that said nothing
 about running Apache as a service.  Thanks anyway.

 George Hester
 __
 Igor Pechtchanski wrote:

  George,
 
  Please (re)read /usr/share/doc/Cygwin/apache-1.3.29-1.README, which is the
  official documentation for apache on Cygwin.  Any other occurrences of
  Cygwin in the Apache documentation should be considered incidental, and
  are subsumed by that README.
  Igor
 
  On Sun, 21 Mar 2004, George Hester wrote:
 
   Hi Igor.  Crap I messed up in my last post.  Please do not read it.  It
   will only upset you.
  
   I got the service to exist in the Services applet with:
  
   $cygrunsrv -I Apache -p /usr/sbin/httpd.exe -t auto
  
   but it does not behave as a normal service.  A normal service set to
   auto

-- 
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: sshd on WinXP machine in Win2003 Domain -- can't log in

2004-03-21 Thread Igor Pechtchanski
Mike,

Thanks.  First off (unrelated, but annoying): Norton Ghost screwed up your
path -- you should remove the quotes around
C:\Program Files\Symantec\Norton Ghost 2003\ in the PATH variable.
Other than that, everything in your cygcheck output seems in order.  The
only other thing I can think of at the moment is: is the home directory of
joeshmo readable by that user?  Can you please run ls -ln on joeshmo's
home directory?  Oh, and do you realize that what sshd thinks the home
directory is and what $HOME is set to don't match?
Igor

On Sun, 21 Mar 2004, MIke Hanby wrote:

 Ok, here's the version information:
   Cygwin:  CYGWIN_NT-5.1 xphost 1.5.8(0.112/4/2) 2004-03-16 00:19 i686 unknown 
 unknown Cygwin
   ssh: OpenSSH_3.8p1, SSH protocols 1.5/2.0, OpenSSL 0.9.7c 30 Sep 2003
   sshd:   sshd version OpenSSH_3.8p1, OpenSSL 0.9.7c 30 Sep 2003
   OS running sshd:  Windows XP Pro
   Domain Controller OS:  Windows 2003 Server

 I started sshd service with the -d -d double verbose debug output
 and ssh client with -v -v double verbose output.

 I've attached the ssh client, sshd service and cygcheck.out log files.
 I tried adding +rx to directory /bin, got the same Permission Denied
 error.
 I'm not putting the output in the message as it's quite long.

 Thanks for any help,

 Mike


 Igor Pechtchanski wrote:
 On Sun, 21 Mar 2004, MIke Hanby wrote:

  Hey y'all, (sorry if this double posts)
 
  System:  Windows XP Pro with brand new install of cygwin running sshd.
  This system is a member of a Widnows 2003 Active Directory domain.
 
  Problem:  I've gone through the config steps listed below and unable
  to connect to my sshd server.  On the sshd server, from the cygwin
  prompt I enter the following:
  $ ssh -p 3020 localhost
  [EMAIL PROTECTED]'s password:
  Last login: Sat Mar 20 16:01:17 2004 from localhost
  Fanfare!!!
  You are successfully logged in to this server!!!
  /bin/bash: Permission denied
  Connection to localhost closed.
 
  Permissions on /bin/bash were -rwxr-x---+, I tried adding +rx, still
  get the same error
  -rwxr-xr-x+   1 joeshmo  Users  527360 Oct 20 07:12 /bin/bash*
 
  Here's what I did to configure sshd
  1.  Installed Cygwin with packages that I downloaded today while logged in
  as my Active Directory user, joeshmo
  2.  Created a new Active Directory user, addomain\sshdproc, and added the
  following rights using the Windows 2003 Server Local Security Policy
  Create a token object
  Log on as a service
  Replcae a process level token
  Adjust memory quotas for a process
  3.  Added sshd as a service on the Windows XP Pro machine, it is set to
  start as the user addomain\sshdproc
  4.  Ran ssh-host-config and answered YES to all questions, including
  privilege separation
  5.  Ran the following on the Windows XP machine
   mkpasswd -l -d  /etc/passwd
   mkgroup -l -d  /etc/group
  6. changed permissions on the following files
   touch /var/log/sshd.log
   chmod 644 /var/log/sshd.log
   chown sshdproc /var/empty /var/log/sshd.log /etc/ssh_*
  7.  Start sshd
   cygrunsrv --start sshd
 
  I then get the error above, /bin/bash: Permission denied
  Any idea what file(s) it might be referring to?
  Any ideas on what else I can do?
 
  Thanks in advance,
  Mike

 Without the requisite information requested in the Cygwin problem
 reporting guidelines at http://cygwin.com/problems.html we can only
 guess, but, since you had to change the permissions on /bin/bash, I'd
 guess that you'll need to change the permissions on at least /bin as well.
 Also, try running sshd and ssh with a few -v flags (multiple -v's increase
 the verbosity level)...
 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: SetErrorMode

2004-03-21 Thread Larry Hall
At 12:52 PM 3/21/2004, you wrote:
I'm trying to run some builds under cygwin with SetErrorMode set to
avoid Windows dialog boxes in the event of hard errors. I'm failing. I
get dialog boxes. Is cygwin doing anything to call SetErrorMode and undo
my efforts, or do I need to look elsewhere?


You're a little short on details here but to answer your question, the
code for the Cygwin DLL only makes one call to SetErrorMode() for
SEM_FAILCRITICALERRORS.  

HTH,


--
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: Trailing commandline arguments not allowed.

2004-03-21 Thread George Hester
Yes I do.

So I followed the directions.  It said you must run httpd as root initially.
  To do this make a change so that I have,  User Guest. 
 Of course no one in their right mind enables the Guest account 
but I went ahead and left my Guest account alone 
(the directions did not say to enable that account) and made the entry directed.

Then the directions say, To install and start the HTTP daemon as Windows service use 
this command: 
  
  $ cygrunsrv -I httpd -d CYGWIN httpd (apache) -p /usr/sbin/httpd.exe -a -F 
  $ cygrunsrv -S httpd 

So I went ahead and did that.  The Service is now in my Services applet set to start 
automatically at boot.
  This looks alittle suspicious to me since the $cygrunsrv -S httpd will NOT occur at 
boot 
but hey I'm just following the directions.

I rebooted and the Apache server was not working.  I had to fire up Cygwin off my 
desktop into
 the bash shell and
$/usr/sbin/apachectl start to get the server running.

Again this is not the normal way of a service at boot.  It doesn't work.

Any other suggestions to get the Apache server to start as a service in the normal way?


George Hester
__
Igor Pechtchanski  wrote in message news:[EMAIL PROTECTED]
 George,
 
 I'm sure you have a /usr/share/doc/Cygwin directory on your system.  Look
 for the file named apache-1.3.29-1.README in that directory.  Judging by
 your reply, you looked in /usr/share/doc, not in /usr/share/doc/Cygwin.
 Igor
 
 On Sun, 21 Mar 2004, George Hester wrote:
 
  I don't have a folder by that name.  I have folder called
  apache-1.3.29-eapib and that's it.  The puny Readme in that said nothing
  about running Apache as a service.  Thanks anyway.
 
  George Hester
  __
  Igor Pechtchanski wrote:
 
   George,
  
   Please (re)read /usr/share/doc/Cygwin/apache-1.3.29-1.README, which is the
   official documentation for apache on Cygwin.  Any other occurrences of
   Cygwin in the Apache documentation should be considered incidental, and
   are subsumed by that README.
   Igor
  
   On Sun, 21 Mar 2004, George Hester wrote:
  
Hi Igor.  Crap I messed up in my last post.  Please do not read it.  It
will only upset you.
   
I got the service to exist in the Services applet with:
   
$cygrunsrv -I Apache -p /usr/sbin/httpd.exe -t auto
   
but it does not behave as a normal service.  A normal service set to
auto
 
 -- 
 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: Trailing commandline arguments not allowed.

2004-03-21 Thread George Hester
In fact it is now broke.

-- 
George Hester
__
Igor Pechtchanski  wrote in message news:[EMAIL PROTECTED]
 George,
 
 I'm sure you have a /usr/share/doc/Cygwin directory on your system.  Look
 for the file named apache-1.3.29-1.README in that directory.  Judging by
 your reply, you looked in /usr/share/doc, not in /usr/share/doc/Cygwin.
 Igor
 
 On Sun, 21 Mar 2004, George Hester wrote:
 
  I don't have a folder by that name.  I have folder called
  apache-1.3.29-eapib and that's it.  The puny Readme in that said nothing
  about running Apache as a service.  Thanks anyway.
 
  George Hester
  __
  Igor Pechtchanski wrote:
 
   George,
  
   Please (re)read /usr/share/doc/Cygwin/apache-1.3.29-1.README, which is the
   official documentation for apache on Cygwin.  Any other occurrences of
   Cygwin in the Apache documentation should be considered incidental, and
   are subsumed by that README.
   Igor
  
   On Sun, 21 Mar 2004, George Hester wrote:
  
Hi Igor.  Crap I messed up in my last post.  Please do not read it.  It
will only upset you.
   
I got the service to exist in the Services applet with:
   
$cygrunsrv -I Apache -p /usr/sbin/httpd.exe -t auto
   
but it does not behave as a normal service.  A normal service set to
auto
 
 -- 
 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: Can't login to proftpd unless shell is running.

2004-03-21 Thread Paul Fournier
It seems I must be asking the wrong question here :). Is it possible that my
problem may be resolved by running proftpd through xinetd? Please let me
know if I should be addressing this question somewhere else.

Thank you

I have this very strange problem.

I am runing proftpd in standalone mode as a service registered with
cugrunsrv.  The service starts and runs fine when I reboot the system.
However I have found that I cannot login to through ftp unless I am running
a shell in cygwin.  If the shell isn't runnning I get the following:

Status: Connecting to localhost ...
Status: Connected with localhost. Waiting for welcome message...
Response: 220 ProFTPD 1.2.9 Server (ProFTPD Default Installation)
[my_computer]Command: USER my_win_username
Response: 331 Password required for my_win_username.
Command: PASS ***
Response: 530 Login incorrect.
Error: Unable to connect!

Now if I run cygwin then I can log in appropriately with now problems.  I
would like to be able to use proftpd without having a user logged on to the
system at all.  Any help woud be greatly appreciated.

** I am using the default basic configuration file for proftpd


--
Unsubscribe info:  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: sshd on WinXP machine in Win2003 Domain -- can't log in

2004-03-21 Thread MIke Hanby
stupid Symantec products, thanks for pointing that out
my home directory is physically located in:
  C:\Documents and Settings\joeshmo.WIN2003DOMAIN
I've created a link for /home to point to /cygdrive/c/Docume~1
  lrwxrwxrwx1 1110710513 111 Mar 20 15:59 /home -
/cygdrive/c/Docume~1/
I've created another link to make my home directory more user friendly
  lrwxrwxrwx1 1110710513 114 Mar 18 00:58 /home/joeshmo -
./joeshmo.WIN2003DOMAIN/
User ID 11107 is the id for joeshmo in the /etc/passwd file
  joeshmo:unused_by_nt/2000/xp:11107:10513:Joe
Shmo,U-WIN2003DOMAIN\joeshmo,S-1-5-21-2516459027-1883439143-603107090-1107:/
home/joeshmo:/bin/bash

Now, one thing I've noticed in the -v -v output of the ssh client:
  SSH_TTY=/dev/tty1
/bin/bash: Permission denied

/dev doesn't exist, is this a problem?

Thanks,

Mike

Igor Pechtchanski [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Mike,

Thanks.  First off (unrelated, but annoying): Norton Ghost screwed up your
path -- you should remove the quotes around
C:\Program Files\Symantec\Norton Ghost 2003\ in the PATH variable.
Other than that, everything in your cygcheck output seems in order.  The
only other thing I can think of at the moment is: is the home directory of
joeshmo readable by that user?  Can you please run ls -ln on joeshmo's
home directory?  Oh, and do you realize that what sshd thinks the home
directory is and what $HOME is set to don't match?
Igor

On Sun, 21 Mar 2004, MIke Hanby wrote:

 Ok, here's the version information:
   Cygwin:  CYGWIN_NT-5.1 xphost 1.5.8(0.112/4/2) 2004-03-16 00:19 i686
unknown unknown Cygwin
   ssh: OpenSSH_3.8p1, SSH protocols 1.5/2.0, OpenSSL 0.9.7c 30 Sep
2003
   sshd:   sshd version OpenSSH_3.8p1, OpenSSL 0.9.7c 30 Sep 2003
   OS running sshd:  Windows XP Pro
   Domain Controller OS:  Windows 2003 Server

 I started sshd service with the -d -d double verbose debug output
 and ssh client with -v -v double verbose output.

 I've attached the ssh client, sshd service and cygcheck.out log files.
 I tried adding +rx to directory /bin, got the same Permission Denied
 error.
 I'm not putting the output in the message as it's quite long.

 Thanks for any help,

 Mike


 Igor Pechtchanski wrote:
 On Sun, 21 Mar 2004, MIke Hanby wrote:

  Hey y'all, (sorry if this double posts)
 
  System:  Windows XP Pro with brand new install of cygwin running sshd.
  This system is a member of a Widnows 2003 Active Directory domain.
 
  Problem:  I've gone through the config steps listed below and unable
  to connect to my sshd server.  On the sshd server, from the cygwin
  prompt I enter the following:
  $ ssh -p 3020 localhost
  [EMAIL PROTECTED]'s password:
  Last login: Sat Mar 20 16:01:17 2004 from localhost
  Fanfare!!!
  You are successfully logged in to this server!!!
  /bin/bash: Permission denied
  Connection to localhost closed.
 
  Permissions on /bin/bash were -rwxr-x---+, I tried adding +rx, still
  get the same error
  -rwxr-xr-x+   1 joeshmo  Users  527360 Oct 20 07:12 /bin/bash*
 
  Here's what I did to configure sshd
  1.  Installed Cygwin with packages that I downloaded today while logged
in
  as my Active Directory user, joeshmo
  2.  Created a new Active Directory user, addomain\sshdproc, and added
the
  following rights using the Windows 2003 Server Local Security Policy
  Create a token object
  Log on as a service
  Replcae a process level token
  Adjust memory quotas for a process
  3.  Added sshd as a service on the Windows XP Pro machine, it is set to
  start as the user addomain\sshdproc
  4.  Ran ssh-host-config and answered YES to all questions, including
  privilege separation
  5.  Ran the following on the Windows XP machine
   mkpasswd -l -d  /etc/passwd
   mkgroup -l -d  /etc/group
  6. changed permissions on the following files
   touch /var/log/sshd.log
   chmod 644 /var/log/sshd.log
   chown sshdproc /var/empty /var/log/sshd.log /etc/ssh_*
  7.  Start sshd
   cygrunsrv --start sshd
 
  I then get the error above, /bin/bash: Permission denied
  Any idea what file(s) it might be referring to?
  Any ideas on what else I can do?
 
  Thanks in advance,
  Mike

 Without the requisite information requested in the Cygwin problem
 reporting guidelines at http://cygwin.com/problems.html we can only
 guess, but, since you had to change the permissions on /bin/bash, I'd
 guess that you'll need to change the permissions on at least /bin as well.
 Also, try running sshd and ssh with a few -v flags (multiple -v's increase
 the verbosity level)...
 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 

Re: Trailing commandline arguments not allowed.

2004-03-21 Thread George Hester
Crap it is broke for good.  Is there some way I can remove EVERYTHING that has 
ANYTHIKNG to do with Apache in Cygwin?  The uninstall does NOT remove EVERYTHING.  I'd 
like to remove anything and everything of Apache in Cygwin.  Can this be done?

 There are no errors.  It looiks to me the executable shuts down as soon as it starts.

-- 
George Hester
__
Igor Pechtchanski [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
 George,
 
 I'm sure you have a /usr/share/doc/Cygwin directory on your system.  Look
 for the file named apache-1.3.29-1.README in that directory.  Judging by
 your reply, you looked in /usr/share/doc, not in /usr/share/doc/Cygwin.
 Igor
 
 On Sun, 21 Mar 2004, George Hester wrote:
 
  I don't have a folder by that name.  I have folder called
  apache-1.3.29-eapib and that's it.  The puny Readme in that said nothing
  about running Apache as a service.  Thanks anyway.
 
  George Hester
  __
  Igor Pechtchanski wrote:
 
   George,
  
   Please (re)read /usr/share/doc/Cygwin/apache-1.3.29-1.README, which is the
   official documentation for apache on Cygwin.  Any other occurrences of
   Cygwin in the Apache documentation should be considered incidental, and
   are subsumed by that README.
   Igor
  
   On Sun, 21 Mar 2004, George Hester wrote:
  
Hi Igor.  Crap I messed up in my last post.  Please do not read it.  It
will only upset you.
   
I got the service to exist in the Services applet with:
   
$cygrunsrv -I Apache -p /usr/sbin/httpd.exe -t auto
   
but it does not behave as a normal service.  A normal service set to
auto
 
 -- 
 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/



php and cygwin on win2k

2004-03-21 Thread kalmen
hi,

i installed the latest update - 1.5.9-1 the latest cygwin dlls
 bash-2.05b-16 , apache-1.3.29-2.tar and uninstall my php but
after I reinstall everything and my php won't work anymore.

i try to download the php but it cannot be found anymore , may be some
corruption in my
setup files of cygwin ?
BTW Is the mod_php4 still there in the server? how can i manually change the
setup.exe
init files and to let it display in the category - Web again ? (Note : I
tried to include another
site the mod_php4 is display at the category , but when i click it , my
setup.exe will be
crash and exit )

my last choice is to recompile the PHP myself , can anyone show me some
pages or details
instruction how to do it -
1. getting the source from ? (I believe this should be from the CVS)
2. getting the related libs and what are those required libraries , how to
check which is needed?
3. getting the related cygwin compilation tools , any related compiler , how
to install
4. compiling instruction  , any pre-require related tools ot libraries that
needed to compile before
re-compiling the mod_php4 source.
I have tried to look at many site thru search google , those infor are bit
and pieces and i counld not
find any good steps of instruction to handle this . pls help

thanks in advance.

-- 
Regards,
kalmen chia
Com Object Solution




--
Unsubscribe info:  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: Trailing commandline arguments not allowed.

2004-03-21 Thread Igor Pechtchanski
On Sun, 21 Mar 2004, George Hester wrote:

 Crap it is broke for good.  Is there some way I can remove EVERYTHING
 that has ANYTHIKNG to do with Apache in Cygwin?  The uninstall does NOT
 remove EVERYTHING.  I'd like to remove anything and everything of Apache
 in Cygwin.  Can this be done?

  There are no errors.  It looiks to me the executable shuts down as soon
 as it starts.

cygrunsrv -R httpd
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: sshd on WinXP machine in Win2003 Domain -- can't log in

2004-03-21 Thread Igor Pechtchanski
Hmm, really weird...  I'm officially out of ideas.  Does it work if you
try to log in as a local user (i.e., not a domain one)?

As for /dev, see http://cygwin.com/ml/cygwin/2004-03/msg01009.html.
HTH,
Igor

On Sun, 21 Mar 2004, MIke Hanby wrote:

 stupid Symantec products, thanks for pointing that out
 my home directory is physically located in:
   C:\Documents and Settings\joeshmo.WIN2003DOMAIN
 I've created a link for /home to point to /cygdrive/c/Docume~1
   lrwxrwxrwx1 1110710513 111 Mar 20 15:59 /home - 
 /cygdrive/c/Docume~1/
 I've created another link to make my home directory more user friendly
   lrwxrwxrwx1 1110710513 114 Mar 18 00:58 /home/joeshmo - 
 ./joeshmo.WIN2003DOMAIN/
 User ID 11107 is the id for joeshmo in the /etc/passwd file
   joeshmo:unused_by_nt/2000/xp:11107:10513:Joe 
 Shmo,U-WIN2003DOMAIN\joeshmo,S-1-5-21-2516459027-1883439143-603107090-1107:/home/joeshmo:/bin/bash

 Now, one thing I've noticed in the -v -v output of the ssh client:
   SSH_TTY=/dev/tty1
 /bin/bash: Permission denied

 /dev doesn't exist, is this a problem?

 Thanks,
 Mike

 Igor Pechtchanski [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 Mike,

 Thanks.  First off (unrelated, but annoying): Norton Ghost screwed up your
 path -- you should remove the quotes around
 C:\Program Files\Symantec\Norton Ghost 2003\ in the PATH variable.
 Other than that, everything in your cygcheck output seems in order.  The
 only other thing I can think of at the moment is: is the home directory of
 joeshmo readable by that user?  Can you please run ls -ln on joeshmo's
 home directory?  Oh, and do you realize that what sshd thinks the home
 directory is and what $HOME is set to don't match?
 Igor

 On Sun, 21 Mar 2004, MIke Hanby wrote:

  Ok, here's the version information:
Cygwin:  CYGWIN_NT-5.1 xphost 1.5.8(0.112/4/2) 2004-03-16 00:19 i686 unknown 
  unknown Cygwin
ssh: OpenSSH_3.8p1, SSH protocols 1.5/2.0, OpenSSL 0.9.7c 30 Sep 2003
sshd:   sshd version OpenSSH_3.8p1, OpenSSL 0.9.7c 30 Sep 2003
OS running sshd:  Windows XP Pro
Domain Controller OS:  Windows 2003 Server
 
  I started sshd service with the -d -d double verbose debug output
  and ssh client with -v -v double verbose output.
 
  I've attached the ssh client, sshd service and cygcheck.out log files.
  I tried adding +rx to directory /bin, got the same Permission Denied
  error.
  I'm not putting the output in the message as it's quite long.
 
  Thanks for any help,
 
  Mike
 
 
  Igor Pechtchanski wrote:
  On Sun, 21 Mar 2004, MIke Hanby wrote:
 
   Hey y'all, (sorry if this double posts)
  
   System:  Windows XP Pro with brand new install of cygwin running sshd.
   This system is a member of a Widnows 2003 Active Directory domain.
  
   Problem:  I've gone through the config steps listed below and unable
   to connect to my sshd server.  On the sshd server, from the cygwin
   prompt I enter the following:
   $ ssh -p 3020 localhost
   [EMAIL PROTECTED]'s password:
   Last login: Sat Mar 20 16:01:17 2004 from localhost
   Fanfare!!!
   You are successfully logged in to this server!!!
   /bin/bash: Permission denied
   Connection to localhost closed.
  
   Permissions on /bin/bash were -rwxr-x---+, I tried adding +rx, still
   get the same error
   -rwxr-xr-x+   1 joeshmo  Users  527360 Oct 20 07:12 /bin/bash*
  
   Here's what I did to configure sshd
   1.  Installed Cygwin with packages that I downloaded today while logged in
   as my Active Directory user, joeshmo
   2.  Created a new Active Directory user, addomain\sshdproc, and added the
   following rights using the Windows 2003 Server Local Security Policy
   Create a token object
   Log on as a service
   Replcae a process level token
   Adjust memory quotas for a process
   3.  Added sshd as a service on the Windows XP Pro machine, it is set to
   start as the user addomain\sshdproc
   4.  Ran ssh-host-config and answered YES to all questions, including
   privilege separation
   5.  Ran the following on the Windows XP machine
mkpasswd -l -d  /etc/passwd
mkgroup -l -d  /etc/group
   6. changed permissions on the following files
touch /var/log/sshd.log
chmod 644 /var/log/sshd.log
chown sshdproc /var/empty /var/log/sshd.log /etc/ssh_*
   7.  Start sshd
cygrunsrv --start sshd
  
   I then get the error above, /bin/bash: Permission denied
   Any idea what file(s) it might be referring to?
   Any ideas on what else I can do?
  
   Thanks in advance,
   Mike
 
  Without the requisite information requested in the Cygwin problem
  reporting guidelines at http://cygwin.com/problems.html we can only
  guess, but, since you had to change the permissions on /bin/bash, I'd
  guess that you'll need to change the permissions on at least /bin as well.
  Also, try running sshd and ssh with a few -v flags 

Re: sshd on WinXP machine in Win2003 Domain -- can't log in

2004-03-21 Thread MIke Hanby
crum, nope, can't maintane the connection with a local user either.
I get the same Permission Denied after logging in.

All of this worked before I joined this machine to the Windows 2003 Active
Directory domain, so it's got to be related, but beyond setting those Local
Policies on the Domain controller, I don't know what else to try.

Igor Pechtchanski [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hmm, really weird...  I'm officially out of ideas.  Does it work if you
try to log in as a local user (i.e., not a domain one)?

As for /dev, see http://cygwin.com/ml/cygwin/2004-03/msg01009.html.
HTH,
Igor

On Sun, 21 Mar 2004, MIke Hanby wrote:

 stupid Symantec products, thanks for pointing that out
 my home directory is physically located in:
   C:\Documents and Settings\joeshmo.WIN2003DOMAIN
 I've created a link for /home to point to /cygdrive/c/Docume~1
   lrwxrwxrwx1 1110710513 111 Mar 20 15:59 /home -
/cygdrive/c/Docume~1/
 I've created another link to make my home directory more user friendly
   lrwxrwxrwx1 1110710513 114 Mar 18 00:58 /home/joeshmo -
./joeshmo.WIN2003DOMAIN/
 User ID 11107 is the id for joeshmo in the /etc/passwd file
   joeshmo:unused_by_nt/2000/xp:11107:10513:Joe
Shmo,U-WIN2003DOMAIN\joeshmo,S-1-5-21-2516459027-1883439143-603107090-1107:/
home/joeshmo:/bin/bash

 Now, one thing I've noticed in the -v -v output of the ssh client:
   SSH_TTY=/dev/tty1
 /bin/bash: Permission denied

 /dev doesn't exist, is this a problem?

 Thanks,
 Mike

 Igor Pechtchanski [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 Mike,

 Thanks.  First off (unrelated, but annoying): Norton Ghost screwed up your
 path -- you should remove the quotes around
 C:\Program Files\Symantec\Norton Ghost 2003\ in the PATH variable.
 Other than that, everything in your cygcheck output seems in order.  The
 only other thing I can think of at the moment is: is the home directory of
 joeshmo readable by that user?  Can you please run ls -ln on joeshmo's
 home directory?  Oh, and do you realize that what sshd thinks the home
 directory is and what $HOME is set to don't match?
 Igor

 On Sun, 21 Mar 2004, MIke Hanby wrote:

  Ok, here's the version information:
Cygwin:  CYGWIN_NT-5.1 xphost 1.5.8(0.112/4/2) 2004-03-16 00:19 i686
unknown unknown Cygwin
ssh: OpenSSH_3.8p1, SSH protocols 1.5/2.0, OpenSSL 0.9.7c 30
Sep 2003
sshd:   sshd version OpenSSH_3.8p1, OpenSSL 0.9.7c 30 Sep 2003
OS running sshd:  Windows XP Pro
Domain Controller OS:  Windows 2003 Server
 
  I started sshd service with the -d -d double verbose debug output
  and ssh client with -v -v double verbose output.
 
  I've attached the ssh client, sshd service and cygcheck.out log files.
  I tried adding +rx to directory /bin, got the same Permission Denied
  error.
  I'm not putting the output in the message as it's quite long.
 
  Thanks for any help,
 
  Mike
 
 
  Igor Pechtchanski wrote:
  On Sun, 21 Mar 2004, MIke Hanby wrote:
 
   Hey y'all, (sorry if this double posts)
  
   System:  Windows XP Pro with brand new install of cygwin running sshd.
   This system is a member of a Widnows 2003 Active Directory domain.
  
   Problem:  I've gone through the config steps listed below and unable
   to connect to my sshd server.  On the sshd server, from the cygwin
   prompt I enter the following:
   $ ssh -p 3020 localhost
   [EMAIL PROTECTED]'s password:
   Last login: Sat Mar 20 16:01:17 2004 from localhost
   Fanfare!!!
   You are successfully logged in to this server!!!
   /bin/bash: Permission denied
   Connection to localhost closed.
  
   Permissions on /bin/bash were -rwxr-x---+, I tried adding +rx, still
   get the same error
   -rwxr-xr-x+   1 joeshmo  Users  527360 Oct 20 07:12 /bin/bash*
  
   Here's what I did to configure sshd
   1.  Installed Cygwin with packages that I downloaded today while
logged in
   as my Active Directory user, joeshmo
   2.  Created a new Active Directory user, addomain\sshdproc, and added
the
   following rights using the Windows 2003 Server Local Security
Policy
   Create a token object
   Log on as a service
   Replcae a process level token
   Adjust memory quotas for a process
   3.  Added sshd as a service on the Windows XP Pro machine, it is set
to
   start as the user addomain\sshdproc
   4.  Ran ssh-host-config and answered YES to all questions, including
   privilege separation
   5.  Ran the following on the Windows XP machine
mkpasswd -l -d  /etc/passwd
mkgroup -l -d  /etc/group
   6. changed permissions on the following files
touch /var/log/sshd.log
chmod 644 /var/log/sshd.log
chown sshdproc /var/empty /var/log/sshd.log /etc/ssh_*
   7.  Start sshd
cygrunsrv --start sshd
  
   I then get the error above, /bin/bash: Permission denied
   Any idea what file(s) it might be referring to?
   Any ideas on 

com/sun/jini/example/launcher/StartService

2004-03-21 Thread George Hester
This command line in the Bash shell:

java -cp /files/jini1_2/lib/jini-ext.jar:/files/jini1_2/lib/jini-examples.jar 
com.sun.jini.example.launcher.StartService

becomes

java -cp /files/jini1_2/lib/jini-ext.jar:/files/jini1_2/lib/jini-examples.jar 
com/sun/jini/example/launcher/StartService

and so of course error is 

java.lang.NoClassDefFoundError : com/sun/jini/example/launcher/StartService
Exception in thread main

What is wrong wiith Cygwin's usage of the java command console?  How do I convince 
Cygwin that I mean

com.sun.jini.example.launcher.StartService

and not

com/sun/jini/example/launcher/StartService?

Thanks.
-- 
George Hester
__


--
Unsubscribe info:  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: Trailing commandline arguments not allowed.

2004-03-21 Thread George Hester
$cygrunsrv -R httpd
cygrunsrv: Error removing a service: OpenService: Win32 error 1060:
The specified service does not exist as an installed service

Removing the service is not the issue.  I have done that.  What I would like to do is 
remove everything and anything that has anything to do with Apache in Cygwin.  Can 
this be done?

Actually I think we can just forget this Ivan.  I have wasted Cygwin's ability to use 
and start the Apache server.  I don't feel like fighting with it anymore.  The 
directions all they resulted in was a perfectly fine running Apache server turning 
into wasted space in the Cygwin folder.  Now I just want all of it out.

-- 
George Hester
__
Igor Pechtchanski [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
 On Sun, 21 Mar 2004, George Hester wrote:
 
  Crap it is broke for good.  Is there some way I can remove EVERYTHING
  that has ANYTHIKNG to do with Apache in Cygwin?  The uninstall does NOT
  remove EVERYTHING.  I'd like to remove anything and everything of Apache
  in Cygwin.  Can this be done?
 
   There are no errors.  It looiks to me the executable shuts down as soon
  as it starts.
 
 cygrunsrv -R httpd
 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: Trailing commandline arguments not allowed.

2004-03-21 Thread George Hester
http.log

fopen: Permission denied
httpd: could not open error log file /var/log/apache/error_log.
fopen: Permission denied
httpd: could not open error log file /var/log/apache/error_log.
fopen: Permission denied
httpd: could not open error log file /var/log/apache/error_log.


Apachehttpd.log
fopen: Permission denied
httpd: could not open error log file /var/log/apache/error_log.

Apache.log
fopen: Permission denied
httpd: could not open error log file /var/log/apache/error_log.
fopen: Permission denied
httpd: could not open error log file /var/log/apache/error_log.

Looks to me the change I made resulted in the loss of permissions.  I have uninstalled 
and reinstalled and uninstalled and reinstalled and Apache.  Still broke.

-- 
George Hester
__
Igor Pechtchanski [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
 George,
 
 Use a little judgement.  For example, I run httpd as nobody (a new user
 I created for just that purpose).  I also used the -t manual cygrunsrv
 parameter, which means I have to start httpd manually (which suits me
 fine).  You can use -t auto instead if you want the service to be
 started at boot (when, in fact, something like cygrunsrv -S does
 happen).  The reason you need cygrunsrv -S in the instructions is that
 simply adding the service, even with -t auto, won't start it in the
 current session.
 
 As for your apache not working, see if there are any messages in
 /var/log/httpd.log, /var/log/apache/error_log, and the Windows Event log.
 It's likely either a permissions problem, or a problem with httpd.conf
 syntax.
 
 As a datapoint, try removing the service and starting httpd from the
 command line with the exact same flags as cygrunsrv starts it with (i.e.,
 -F).  This will at least eliminate httpd.conf syntax (if the service
 starts correctly).  For a more definite experiment, try running it from a
 system-owned shell.
 Igor
 
 On Sun, 21 Mar 2004, George Hester wrote:
 
  Yes I do.
 
  So I followed the directions.  It said you must run httpd as root initially.
To do this make a change so that I have,  User Guest.
   Of course no one in their right mind enables the Guest account
  but I went ahead and left my Guest account alone
  (the directions did not say to enable that account) and made the entry directed.
 
  Then the directions say, To install and start the HTTP daemon as Windows service 
  use
  this command:
 
$ cygrunsrv -I httpd -d CYGWIN httpd (apache) -p /usr/sbin/httpd.exe -a -F
$ cygrunsrv -S httpd 
 
  So I went ahead and did that.  The Service is now in my Services applet set to 
  start automatically at boot.
This looks alittle suspicious to me since the $cygrunsrv -S httpd will NOT occur 
  at boot
  but hey I'm just following the directions.
 
  I rebooted and the Apache server was not working.  I had to fire up Cygwin off my 
  desktop into
   the bash shell and
  $/usr/sbin/apachectl start to get the server running.
 
  Again this is not the normal way of a service at boot.  It doesn't work.
 
  Any other suggestions to get the Apache server to start as a service in the normal 
  way?
 
 
  George Hester
  __
  Igor Pechtchanski wrote:
 
   George,
  
   I'm sure you have a /usr/share/doc/Cygwin directory on your system.  Look
   for the file named apache-1.3.29-1.README in that directory.  Judging by
   your reply, you looked in /usr/share/doc, not in /usr/share/doc/Cygwin.
   Igor
  
   On Sun, 21 Mar 2004, George Hester wrote:
  
I don't have a folder by that name.  I have folder called
apache-1.3.29-eapib and that's it.  The puny Readme in that said nothing
about running Apache as a service.  Thanks anyway.
   
George Hester
__
Igor Pechtchanski wrote:
   
 George,

 Please (re)read /usr/share/doc/Cygwin/apache-1.3.29-1.README, which is the
 official documentation for apache on Cygwin.  Any other occurrences of
 Cygwin in the Apache documentation should be considered incidental, and
 are subsumed by that README.
 Igor

 On Sun, 21 Mar 2004, George Hester wrote:

  Hi Igor.  Crap I messed up in my last post.  Please do not read it.  It
  will only upset you.
 
  I got the service to exist in the Services applet with:
 
  $cygrunsrv -I Apache -p /usr/sbin/httpd.exe -t auto
 
  but it does not behave as a normal service.  A normal service set to
  auto
 
 -- 
 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:   

Remove Cygwin entirely from Windows 2000 Server SP3

2004-03-21 Thread George Hester
Is all I have to do to remove Cygwin from Windows 2000 Server SP3
 is remove any and all cyg*.* files from C:\WINNT\sytem32 and
delete the C:\cygwin folder?
 
George Hester
__


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



cygpath solution

2004-03-21 Thread Vivek HS
Hi all,

I had faced the below problem when using the cygpath.exe.

Below is the data:
Was using cygwin 1.5.8 and the cygpath in that was crashing:


 10 [main] ? 1400 cygheap_fixup_in_child: Couldn't reserve space for
cygwin's heap (0x616E 0x41) in child, Win32 error 487
C:\cygwin\bin\cygpath.exe (1400): *** m.AllocationBase 0x0, m.
BaseAddress 0x616E, m.RegionSize 0x1AA, m.State 0x1

  9 [main] ? 412 cygheap_fixup_in_child: Couldn't reserve space for
cygwin's heap (0x616E 0x41) in child, Win32 error 487
C:\cygwin\bin\cygpath.exe (412): *** m.AllocationBase 0x0, m.BaseAddress
0x616E, m.RegionSize 0x1AA, m.State 0x1

checking for cl.exe... /cygdrive/c/Program Files/Microsoft Visual
Studio/VC98/bin/cl.exe
  9 [main] ? 1400 cygheap_fixup_in_child: Couldn't reserve space for
cygwin's heap (0x616E 0x41) in child, Win32 error 487
C:\cygwin\bin\cygpath.exe (1400): *** m.AllocationBase 0x0, m.
BaseAddress 0x616E, m.RegionSize 0x1AA, m.State 0x1


To resolve this had to get the cygwin snapshots(which are not tested)
from cygwin:

http://cygwin.com/snapshots/

2004-Mar-18
cygwin1-20040318.dll.bz2 using this dll resolved the problem with
cygpath.

Thanks.
Vivek




--
Unsubscribe info:  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: Minimal test case for Make crash bug

2004-03-21 Thread Dan Kegel
cgf wrote:
On Sun, Mar 21, 2004 at 11:04:29AM -0800, Dan Kegel wrote:
Here's the gdb stuff you asked for;
[snip]
(gdb) p alloc_sz
$3 = 0
Bingo.  That's the problem.  I've checked in a fix for this and have 
uploaded a new snapshot.  Can you confirm that it fixes the problem?
Yep, fixes my little test case.
I'll run more exhaustive tests tomorrow.
Thank you kindly, sir.
- Dan
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


F1 to F4 Vt emulation using Cygwin

2004-03-21 Thread Jim Gelasakis
We are using Cygwin version 2.416 on Windows 2000.

Our application runs an .exe through VT emulation in vt220 mode.

We cannot get it to ackknowledge PF1-PF4 instead it returns ^[[A to ^[[D
on these
function keys.  

Everything else is fine F5 - F20 work well.

We are running the .exe through a Cygwin bash shell.

We have checked term type, modified terminfo and messed with stty and
cannot get it to get these keys.

Is there a way we can get it to accept the vt220 PF1 - PF4 keys on F1 -
F4?.

Any ideas would be appreciated.

Kind Regards  
Jim Gelasakis


--
Unsubscribe info:  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: More on 'setup' fails and breaks pre-existing Cygwin installation: now have prompt, but it's ultra-high-response time.

2004-03-21 Thread Christopher M. Balz
 Please also see the other e-mail of similar subject title that I just 
sent, with 'cygcheck.out' attached.
I did run

c:\cygwin\bin\bash --norc
 

After a couple minutes the command prompt gave me:

   C:\WINNT\SYSTEM32c:\cygwin\bin\bash --norc
   bash-2.05b$
This command prompt cannot find any commands ('ls' is 'not found').  
Also, after about five minutes from opening a Cygwin command prompt 
window, I do get a (ultra-high-response-time) prompt! -

   TLSWE-LAPTOP-A0  Sun Mar 21 23:21:17
   ~/
Previously, I hadn't waited the full five minutes, thinking it was 
totally broken.  The prompt however takes almost a full minute to 
respond to a simple 'ls -ail' command (when listing only about 30 files 
in a directory). 

So, this installation is still not at all usable, and clearly the 
install problem needs to be fixed.

- Chris



Igor Pechtchanski wrote:

Okay, I don't recall seeing the output of cygcheck -svr attached to any
of your messages, as requested in http://cygwin.com/problems.html.
Please *attach* the output rather than including it inline.  You should be
able to run cygcheck from a CMD prompt.
Did you try a clean install by moving your Cygwin root directory out of
the way?  Whether or not you're able to do this, and what exact errors you
get when doing this, might prove instructive...  FWIW, unless you have
non-standard mounts, you should be able to recover the original (albeit
non-working) installation by moving the old root directory back to
c:\cygwin...  But first things first -- we need to see the output of
cygcheck -svr.
BTW, does running c:\cygwin\bin\bash --norc also result in no prompt?
If not, does that bash work normally (note that you'll need to explicitly
prepend /bin:/usr/bin:/usr/X11R6/bin to your PATH before you'll be able
to run any commands)?
Igor
On Sat, 20 Mar 2004, Christopher M. Balz wrote:

 

The hang itself is indeed a soft hang.  I can click out of it using the
'Cancel' button, and then at least sometimes, 'setup' will tell me that
installation is complete.  Somewhere in these last clicks is where my
entire machine was taken down during two of my earlier attempts today.
   cd c:\cygwin\bin
   .\bash.exe --login -i
yields nothing, as before -- meaning that a blinking prompt is shown on
the line after the last command, and that's all.
- CB

Igor Pechtchanski wrote:

   

On Sat, 20 Mar 2004, Christopher M. Balz wrote:

 

Answering Igor's questions . . .

'setup' hangs when it dies.  The window its in closes without any
problem, though.
   

So it doesn't really crash anything?  And this doesn't sound like a hard
hang, either -- at least the events are processed normally...
 

Running 'cygwin.bat' from the command line yields nothing.
   

I.e., just shows another prompt right away, or runs but doesn't show the
prompt?  How about if you run
cd c:\cygwin\bin
.\bash.exe --login -i
?

 

Below is the content of my setup.log.full file:

setup.log.full [irrelevant parts snipped]:
2004/03/20 10:11:01 Starting cygwin install, version 2.416
[X-startup-scripts] action=1.0.4-1 trust=curr installed=1.0.3-1 src?=no
   categories=All, XFree86
[xterm] action=185-2 trust=curr installed=185-1 src?=no
   categories=All, XFree86
2004/03/20 10:11:17 Installing file://C:\Program Files\cygwin/http%3a%2f%2fmirrors.sunsite.dk%2fcygwin/release/XFree86/X-startup-scripts/X-startup-scripts-1.0.4-1.tar.bz2
2004/03/20 10:11:18 Installing file://C:\Program Files\cygwin/http%3a%2f%2fmirrors.sunsite.dk%2fcygwin/release/XFree86/xterm/xterm-185-2.tar.bz2
2004/03/20 10:11:20 running: C:\cygwin\bin\sh.exe -c /etc/postinstall/post-texmf.sh
2004/03/20 11:24:36 mbox note: Installation Complete
2004/03/20 11:24:37 Ending cygwin install
   

Okay, so this shows that you did not reinstall either tetex-base or
tetex-tiny (good), and the postinstall script is still executed (bad).
This means that it never completed the execution, otherwise it would have
been renamed to *.done.  Try actually renaming it (by running
cd c:\cygwin\etc\postinstall
ren post-texmf.sh post-texmf.sh.done
 

from a CMD prompt).  Then try re-running setup and see if it still hangs.
   

Also, try the latest setup snapshot (http://cygwin.com/setup-snapshots/)
and see if it fares better.
It would also be interesting to try actually running the script (via

c:\cygwin\bin\sh.exe -x /etc/postinstall/post-texmf.sh.done

) and seeing if it hangs and what output it produces.
HTH,
 Igor
 

Igor Pechtchanski wrote:

   

On Sat, 20 Mar 2004, Christopher M. Balz wrote:

 

On Win2K SP 4 up-to-date, I install most packages (including X and tex)
and 'setup' hangs with the folllowing message:
 Running . . .

 No package

 /etc/postinstall/post-texmf.sh

The  progress bar is almost finished at this point (above).

The install has broken my Cygwin shell completely.  It pops up in a
window and closes fine but shows no text.
   

Have you seen 

Re: More on 'setup' fails and breaks pre-existing Cygwin installation: cygcheck.out attached.

2004-03-21 Thread Christopher M. Balz
I was able to run 'cygcheck -s -v -r  cygcheck.out' with no problem.  
'cygcheck.out' is attached.
I do not understand what moving the Cygwin root directory out of the way 
would entail, but will try if necessary and I know what to do.

Please see my other e-mail just sent about the 'bash -norc'.

This sounds like a hard bug and I very much appreciate the help.  I am 
tight on time these days but use Cygwin very often, have used it for 
four years, and seek only to install most or all of the available Cygwin 
packages on my machine and run them out of the box.

- CB

Igor Pechtchanski wrote:

Okay, I don't recall seeing the output of cygcheck -svr attached to any
of your messages, as requested in http://cygwin.com/problems.html.
Please *attach* the output rather than including it inline.  You should be
able to run cygcheck from a CMD prompt.
Did you try a clean install by moving your Cygwin root directory out of
the way?  Whether or not you're able to do this, and what exact errors you
get when doing this, might prove instructive...  FWIW, unless you have
non-standard mounts, you should be able to recover the original (albeit
non-working) installation by moving the old root directory back to
c:\cygwin...  But first things first -- we need to see the output of
cygcheck -svr.
BTW, does running c:\cygwin\bin\bash --norc also result in no prompt?
If not, does that bash work normally (note that you'll need to explicitly
prepend /bin:/usr/bin:/usr/X11R6/bin to your PATH before you'll be able
to run any commands)?
   Igor
On Sat, 20 Mar 2004, Christopher M. Balz wrote:



The hang itself is indeed a soft hang.  I can click out of it using the
'Cancel' button, and then at least sometimes, 'setup' will tell me that
installation is complete.  Somewhere in these last clicks is where my
entire machine was taken down during two of my earlier attempts today.
  cd c:\cygwin\bin
  .\bash.exe --login -i
yields nothing, as before -- meaning that a blinking prompt is shown on
the line after the last command, and that's all.
- CB
--
*Contact Info:*
Christopher M. Balz
Senior Software Engineer
/TreeLogic Software Engineering http://treelogic-swe.com/
160 Lincoln Avenue
Palo Alto, CA 94301-2437 U.S.A.
650.327.0367
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

. . . / This Cabinet is formd of Gold / And Pearl  Crystal shining bright
And within it opens into a World / . . .
Another England there I saw / Another London with its Tower
Another Thames  other Hills / And another pleasant Surrey Bower
. . .
- from /The Crystal Cabinet http://www.bartleby.com/236/59.html/, a 
poem by *William Blake http://www.art4net.com/EXPObl.html* 
(18th-century English poet) where Blake rues England's rule.

Cygwin Win95/NT Configuration Diagnostics
Current System Time: Sun Mar 21 23:02:57 2004

Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 4

Path:   C:\PROGRA~1\RATIONAL\RATION~1\NUTCROOT\bin
C:\PROGRA~1\RATIONAL\RATION~1\NUTCROOT\bin\x11
C:\PROGRA~1\RATIONAL\RATION~1\NUTCROOT\mksnt
C:\WINNT\system32
C:\WINNT
C:\WINNT\System32\Wbem
C:\PROGRA~1\OPENJA~1.1\bin
C:\PROGRA~1\COMMON~1\ROXIOS~1\DLLSHA~1
C:\WINNT\system32
C:\PROGRA~1\COMMON~1\ROXIOS~1\DLLSHA~1\
C:\PROGRA~1\Rational\CLEARQ~1
C:\PROGRA~1\Rational\common
C:\PROGRA~1\Rational\CLEARC~1\bin
C:\PROGRA~1\Rational\Rose\TopLink\
C:\PROGRA~1\Rational\RATION~1
C:\PROGRA~1\Rational\RUPBUI~1

C:\PROGRA~1\Rational\Coverage
C:\PROGRA~1\Rational\Coverage\cache
C:\PROGRA~1\ALADDI~1\STUFFI~1\
C:\PROGRA~1\ALADDI~1\STUFFI~1\OFFICE~2

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

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

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

HOME = `C:/cygwin/home/Administrator'

ALLUSERSPROFILE = `C:\DOCUME~1\ALLUSE~1'
APPDATA = `C:\DOCUME~1\ADMINI~1\APPLIC~1'
CLASSPATH = 
`C:\Progra~1\classes\JML\bin\jml-release.jar;C:\Progra~1\classes\mysql_drivers\m2_0_8m_mysql_jdbc\mm.mysql-2.0.8-bin.jar;C:\Progra~1\classes\jdom\jdom-b9\build\jdom.jar;C:\Progra~1\classes\jdom\jdom-b9\build\jdom-jdk11.jar;C:\Progra~1\classes\jdom\jdom-b9\lib\jaxp.jar;C:\Progra~1\classes\jdom\jdom-b9\lib\xerces.jar;C:\Progra~1\classes\jdom\jdom-b9\lib\ant.jar;C:\Progra~1\classes\utils.jar;C:\Progra~1\classes\rhino15R3\rhino1_5R3\js.jar;C:\cygwin\home\Administrator\code\development\test\junit\junit3.8.1\junit.jar;C:\cygwin\home\Administrator\code\development\test\junit\junit3.8.1;c:\Progra~1\classes\rhino15R3\rhino1_5R3\examples;C:\Progra~1\jakarta-tomcat-3.3.1\lib\common\classes\com\treelogic_swe\frameworks\dynafrontend\build;C:\Documents
 and