install old package

2006-06-30 Thread hulge hulge

hi
how to install old package,
which is not provided by cygwin's setup.exe

I want to use gcc-2.95.3
but cygwin currently supports gcc-3.4.4.1
so please help

regards
Hulge



--
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: install old package

2006-06-30 Thread Brian Dessent
hulge hulge wrote:

> how to install old package,
> which is not provided by cygwin's setup.exe
> 
> I want to use gcc-2.95.3
> but cygwin currently supports gcc-3.4.4.1

You can find old mirrors, or use the Cygwin time machine (google for
it.)  But none of these are supported here on this mailing list, as
explained at
, so you're
on your own.

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/



Change to Dwarf-2 debug info.

2006-06-30 Thread Danny Smith
Hello
I thought it was about time to change the default debug info for cygwin
and mingw from stabs to dwarf2.
Currently the default of stabs can be overriden by '-ggdb' (==use the
best format for gdb)  

Apple has done just such a change in gcc 4.2.

GCC 4.3 stage 1 seems like a good time to change the default for mingw32
and cygwin.

Comments?

Back to my room.

Danny


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



find missing parameter

2006-06-30 Thread prz

I have a small problem with find command
whenever I specify the -exec option this error is displayed

/cygdrive/c/workdir: find  . -name "db*" -mtime +2 -type f -exec /bin/rm {}
find: missing argument to `-exec'

tried quotes - single double ... with/without path to rm or any other
command (ls)
removing the exec returns the correct file
Best Regards, Guy Przytula
-- 
View this message in context: 
http://www.nabble.com/find-missing-parameter-tf1871842.html#a5116344
Sent from the Cygwin Users forum at Nabble.com.


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



[ANNOUNCEMENT] Updated: bzr 0.8.2 -- Next-generation distributed version control (like GNU arch)

2006-06-30 Thread Jari Aalto

PACKAGE DESCRIPTION
===

Home page: http://bazaar-vcs.org/
License  : GPL

Next-generation distributed version control similar to GNU Arch.

Distributed version control system that is powerful, friendly, and
scalable implemented in Python.

- Just one .bzr directory at the top of the tree; it doesn't clutter
  the tree or get in your face. No wierd ++file--names--0.
- The user interface is simple and familiar to people with experience
  from CVS or Subversion: add, mv, diff, status, commit, log, merge, etc
  all do what you would expect.
- Offers a choice between centralized and decentralized work within a
  single project: when in the office, you can work on a shared central
  branch. For experimental changes or offline work you can make a branch
  on your laptop and merge back in later.
- Preserves history; any previous revision can be recreated. History
  can be GPG-signed to protect against man-in-the-middle attacks, bad
  mirrors, server intrusion or data corruption.

CHANGES SINCE LAST RELEASE
==

http://bazaar.canonical.com/BzrHistory

INSTALL OR UPGRADE NOTES


If you have created Bzr < 0.7 branches, upgrade existing branches to
new format with command 'bzr upgrade'.

CYGWIN INSTALLATION INFORMATION
===

To install this package, click on the "Install Cygwin now" link on the
 web page. This downloads setup.exe to your
system. Then, run setup and answer all of the questions. You'll find
the package listed in the "All" category. After installation, read the
documentation at directories:

/usr/share/doc//*
/usr/share/doc/Cygwin/.README

If you have questions or comments, please send them to the Cygwin
mailing list at .

CYGWIN-ANNOUNCE UNSUBSCRIBE INFO


This message has been sent to cygwin-announce list.

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

[EMAIL PROTECTED]

More information on unsubscribing can be found:

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

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


--
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: "changed dev/ino" error with NetApp shared drive

2006-06-30 Thread Harald Dunkel
Hi folks,

I would need this fix asap in the official dll. Of course we
tried the suggested snapshot. rm worked as expected, but it
broke a lot of other things, so the snapshot is not an option.

Is there a patch for the existing "official" cygwin package
1.5.19-4, fixing just this problem without putting the rest
too much at risk?


Many thanx

Harri


--
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: Access to Network Drive under ssh

2006-06-30 Thread Richard Foulk
> David Greene wrote:
> > mwoehlke wrote:
> >> You need to first do:
> >> net use /delete h:
> >>
> >> ...so that you don't get prompted
> > 
> > Now I get this, which is what happened before I started
> > sshd as dag.  Except I can still cd to //samba-drive/dag:
> > 
> > $ net use H: \\samba-drive\dag
> > System error 67 has occurred.
> > 
> > The network name cannot be found.
> 
> Are you on a 64-bit Windows by any chance?
> If not, I won't be able to tell you why 'net' is being brain-dead, other 
> than "hmm, it does that sometimes; good luck!".
> 

I've written my own mount command for Cygwin in Perl.  One thing to
be aware of is that drive letters aren't necessary with Cygwin.

You can't say: `cd \\xyz\c$' with Windows cmd.exe.

You *can* say things like: `cd //xyz/c\$' in Cygwin.  This cleans up
many things.  If you have the right permissions `net use' isn't necessary!

A wrapper for `net use' in Perl is pretty easy to do, including all
the password stuff.

Those drive letters just get in the way.  Don't use them.


Richard

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



Re: rsync over ssh hang issue understood

2006-06-30 Thread Corinna Vinschen
On Jun 29 22:01, Lev Bishop wrote:
> On 6/29/06, Darryl Miles wrote:
> 
> >I also think from reading through the WIN32 API that I either get
> >blocking IO or overlapped IO, where overlapped is non-blocking with
> >async I/O completion signaling.  This mode isn't directly compatible
> >with non-blocking of Unix the way I see it as the data is still queued
> >into the kernel for IO.  Not next left with the application in the case
> >of errno=EAGAIN of unix.
> 
> Actually, the data is left with the application, but the application
> is not allowed to touch it until the write has completed. It's very
> similar to UNIX asynchronous IO (aio_read() aio_write() et al).
> 
> However for pipes (and only for pipes) the windows API offers
> something a lot like UNIX nonblocking semantics. It's only supported
> to provide Lan Manager 2.0 compatibility and MSDN says should never be
> used. Look at SetNamedPipeHandleState() with the PIPE_NOWAIT flag.
> Unlike Overlapped IO (see below) the PIPE_NOWAIT flag can be switched
> on and off at will, it seems, so maybe there's a way to use it to do
> what you want.

There's a tiny problem with overlapped I/O which spoils the fun a bit.

2 years ago I had socket I/O implemented using overlapped I/O to get
socket I/O interuptible by signals.  It worked quite nicely, up to the
point where the call was actually interrupted by a signal, the
overlapped call hadn't finshed, and CancelIO had to be called to
interrupt the action.  The problem is this:  There's no way to find
out how many bytes actually were transmitted in case of canceling the
Winsock send() call.

Cygwin's send() could only return -1/EINTR, so the application assumed
that the data has to be completely retransmit and called send() again
with the full block of data.  Out of sync, too bad.

I can easily imagine that we could get the same problem with pipes.
You can argue that the overlapped I/O should never get canceled and
that send() should always return as if all data has been send.  The next
send() then has to wait until the previously started overlapped I/O
gets finished, returning -1 on signal.  But what if the still running
overlapped I/O from the previosuly called send() returns with error?
Out of sync again.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

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



uninstall cygwin

2006-06-30 Thread f g
Hello,


I would like to uninstall a Cygwin installation under
Windows XP: to do this I follow the instruction in 



http://cygwin.com/faq/faq.setup.html#faq.setup.uninstall-all



but I have several problems.

Point 1) I type cygrunsrv -L at Cygwin prompt, but I
get the message
 "bash: cygrunsrv: command not found". What does this
mean? Is it safe to assume that I have non Cygiwn 
services running, and that I can pass to point 2?
Point 2) What is the X11 server? How do I know if
there are any Cygwin programs that might be running 
in the background, and in case there are some, how do
I terminate them?

If I complete these points, there should be no problem
with the following ones: basically, I just
delete Cygwin directory from the hard disk. I didn't
add Cygwin to system path, neither did I set
CYGWIN environment variable, so unless the installer
did it, I shouldn't need to do anything else.
Thanks for your attention,

Greetings,

deltaquattro (Sergio Rossi)




Chiacchiera con i tuoi amici in tempo reale! 
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com 

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



Re: Access to Network Drive under ssh

2006-06-30 Thread Corinna Vinschen
On Jun 29 22:46, Richard Foulk wrote:
> I've written my own mount command for Cygwin in Perl.  One thing to
> be aware of is that drive letters aren't necessary with Cygwin.
> 
> You can't say: `cd \\xyz\c$' with Windows cmd.exe.
> 
> You *can* say things like: `cd //xyz/c\$' in Cygwin.  This cleans up
> many things.  If you have the right permissions `net use' isn't necessary!
> 
> A wrapper for `net use' in Perl is pretty easy to do, including all
> the password stuff.
> 
> Those drive letters just get in the way.  Don't use them.

To add another data point:

When running under a public key ssh session, you're running in the login
session of the SYSTEM user.  Also, since you used pubkey instead of
password login, you don't have the credentials for network access.  This
has two results:

- You must use the net command to connect to non-public shares.
- You must use username and password in the net use command.
- You can't use drive letters.

So, what you have to do is this:  Use the 'net use' command with full
qualified domain/user name and password, omitting the drive letter, FROM
INSIDE YOUR PUBKEY SSH SESSION.  This is essential.  You only have to do
this once, in your first ssh session, the connection to the shares is
persistent across multiple sessions as long as you don't reboot.

  $ net use server\\share /user:DOMAIN\\username password
 
If you don't have a domain, use the name of your local windows box
instead.  However, YMMV depending on the security level used on the
server you're connecting to.

Now you can cd to the share as outlined above:

  $ cd //server/share

In my local environment, I have a tiny script to connect to the servers.
I start it manually after a (re)boot FROM INSIDE MY PUBKEY SSH SESSION.
Additionally I have the matching mount points always defined to access
the shares like local directories:

$ cat ~/bin/calimero
#!/bin/bash
SERVER='\\calimero'
SHARES='cygwinsrc cygwinbin'
USER='CATHI\corinna'

pwd=$1
[ -z "$pwd" ] && read -sp "Password: " pwd && echo
[ -z "$pwd" ] && exit 1
for i in $SHARES
do
  net use "$SERVER\\$i" /user:"$USER" $pwd
done
$ mount | grep calimero
\\calimero\cygwinbin on /home/corinna/bin/cygwin type system (binmode)
\\calimero\cygwinsrc on /home/corinna/src/cygwin type system (binmode)

This way I can just manually reconnect to the server after booting
and then use the shares like local dirs:

$ cd ~/src/cygwin/src/winsup
$ df .
Filesystem   1K-blocks  Used Available Use% Mounted on
\\calimero\cygwinsrc  66168952  38452912  27716040  59% /home/corinna/src/cygwin


Corinna


-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

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



Problems building gnuchess

2006-06-30 Thread fabien . hinault
Hello,
I tried building gnuchess on my cygwin box.

./configure gave me the following warning.

/cygdrive/c/Documents: line 1: fg: no job control
/cygdrive/c/Documents: line 2: fg: no job control
/cygdrive/c/Documents: line 3: 5: command not found
/cygdrive/c/Documents: line 48: syntax error near unexpected token `newline'
/cygdrive/c/Documents: line 48: `<>'
configure: WARNING: `missing' script is too old or missing
--
I don't know if it is serious or not, and I don't know
how to find if it is serious.
(Is there really a script named 'missing' which is missing? How funny!)

Then, with make, I had a first error:
redefinition of function "getline" .
I renamed the local "getline" into "get_line" in all files, and it was enough.

Then I have another error, at the linking step:
---
Making all in src
make[1]: Entering directory `/cygdrive/c/Documents and
Settings/fhinault/gnuchess-5.07/src'
make  all-am
make[2]: Entering directory `/cygdrive/c/Documents and
Settings/fhinault/gnuchess-5.07/src'
gcc  -g -O2-o gnuchess.exe  atak.o book.o cmd.o debug.o epd.o eval.o
genmove.o getopt.o getopt1.o hash.o hung.o init.o input.o iterate.o main.o
move.o null.o output.o players.o pgn.o ponder.o quiesce.o random.o repeat.o
search.o solve.o sort.o swap.o test.o ttable.o util.o lexpgn.o  -lreadline
-lncurses
init.o: In function `InitVars':
/cygdrive/c/Documents and Settings/fhinault/gnuchess-5.07/src/init.c:649:
undefined reference to `_initial_comments'
/cygdrive/c/Documents and Settings/fhinault/gnuchess-5.07/src/init.c:652:
undefined reference to `_pgn_othertags'
/cygdrive/c/Documents and Settings/fhinault/gnuchess-5.07/src/init.c:652:
undefined reference to `_pgn_result'
/cygdrive/c/Documents and Settings/fhinault/gnuchess-5.07/src/init.c:652:
undefined reference to `_pgn_blackELO'
/cygdrive/c/Documents and Settings/fhinault/gnuchess-5.07/src/init.c:652:
undefined reference to `_pgn_whiteELO'
/cygdrive/c/Documents and Settings/fhinault/gnuchess-5.07/src/init.c:652:
undefined reference to `_pgn_black'
/cygdrive/c/Documents and Settings/fhinault/gnuchess-5.07/src/init.c:652:
undefined reference to `_pgn_white'
/cygdrive/c/Documents and Settings/fhinault/gnuchess-5.07/src/init.c:652:
undefined reference to `_pgn_round'
/cygdrive/c/Documents and Settings/fhinault/gnuchess-5.07/src/init.c:652:
undefined reference to `_pgn_date'
/cygdrive/c/Documents and Settings/fhinault/gnuchess-5.07/src/init.c:652:
undefined reference to `_pgn_site'
/cygdrive/c/Documents and Settings/fhinault/gnuchess-5.07/src/init.c:652:
undefined reference to `_pgn_event'
pgn.o: In function `PGNSaveToFile':
/cygdrive/c/Documents and Settings/fhinault/gnuchess-5.07/src/pgn.c:67:
undefined reference to `_pgn_event'
/cygdrive/c/Documents and Settings/fhinault/gnuchess-5.07/src/pgn.c:67:
undefined reference to `_pgn_event'
/cygdrive/c/Documents and Settings/fhinault/gnuchess-5.07/src/pgn.c:68:
undefined reference to `_pgn_site'
/cygdrive/c/Documents and Settings/fhinault/gnuchess-5.07/src/pgn.c:68:
undefined reference to `_pgn_site'
/cygdrive/c/Documents and Settings/fhinault/gnuchess-5.07/src/pgn.c:70:
undefined reference to `_pgn_date'
/cygdrive/c/Documents and Settings/fhinault/gnuchess-5.07/src/pgn.c:71:
undefined reference to `_pgn_date'
/cygdrive/c/Documents and Settings/fhinault/gnuchess-5.07/src/pgn.c:77:
undefined reference to `_pgn_round'
/cygdrive/c/Documents and Settings/fhinault/gnuchess-5.07/src/pgn.c:77:
undefined reference to `_pgn_round'
/cygdrive/c/Documents and Settings/fhinault/gnuchess-5.07/src/pgn.c:79:
undefined reference to `_pgn_white'
/cygdrive/c/Documents and Settings/fhinault/gnuchess-5.07/src/pgn.c:80:
undefined reference to `_pgn_white'
/cygdrive/c/Documents and Settings/fhinault/gnuchess-5.07/src/pgn.c:86:
undefined reference to `_pgn_black'
/cygdrive/c/Documents and Settings/fhinault/gnuchess-5.07/src/pgn.c:87:
undefined reference to `_pgn_black'
/cygdrive/c/Documents and Settings/fhinault/gnuchess-5.07/src/pgn.c:93:
undefined reference to `_pgn_whiteELO'
/cygdrive/c/Documents and Settings/fhinault/gnuchess-5.07/src/pgn.c:94:
undefined reference to `_pgn_white'
/cygdrive/c/Documents and Settings/fhinault/gnuchess-5.07/src/pgn.c:94:
undefined reference to `_pgn_white'
/cygdrive/c/Documents and Settings/fhinault/gnuchess-5.07/src/pgn.c:97:
undefined reference to `_pgn_blackELO'
/cygdrive/c/Documents and Settings/fhinault/gnuchess-5.07/src/pgn.c:98:
undefined reference to `_pgn_black'
/cygdrive/c/Documents and Settings/fhinault/gnuchess-5.07/src/pgn.c:98:
undefined reference to `_pgn_black'
/cygdrive/c/Documents and Settings/fhinault/gnuchess-5.07/src/pgn.c:102:
undefined reference to `_pgn_result'
/cygdrive/c/Documents and Settings/fhinault/gnuchess-5.07/src/pgn.c:103:
undefined reference to `_pgn_result'
/cygdrive/c/Documents and Settings/fhinault/gnuchess-5.07/src/pgn.c:110:
undefined reference to `_pgn_othertags'
/cygdrive/c/Documents and Settings/fhinault/gnuchess-5.07/src/pgn

Re: find missing parameter

2006-06-30 Thread Brian Dessent
prz wrote:

> I have a small problem with find command
> whenever I specify the -exec option this error is displayed
> 
> /cygdrive/c/workdir: find  . -name "db*" -mtime +2 -type f -exec /bin/rm {}
> find: missing argument to `-exec'
> 
> tried quotes - single double ... with/without path to rm or any other
> command (ls)
> removing the exec returns the correct file

None of this is Cygwin-specific.

First, -exec is a bad way to do this.  It will have to fork/exec a copy
of rm once for each file to be deleted, which is extraordinarily slow
under Cygwin.  Use xargs instead:

find . -name db\* -mtime +2 -type f -print0 | xargs -0 rm

This will result in rm being called only once with all the filenames to
delete as arguments (unless the total length is too great to fit on one
command line, in which case rm will be called as many times as
necessary, but still much less than once per file.)

If you really want to use -exec even though it's horribly slow, then
re-read the find manpage, as you are missing the trailing semicolon that
tells -exec when the argments end.  This makes it possible to include
further 'find' options after -exec without them being treated as
arguments to -exec, for example: find . -type f -exec cmd {} \; -print

Note that semicolon is a shell special character so you have to quote it
if you want to pass a literal semicolon to find, just as you have to do
with * in -name.

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: Change to Dwarf-2 debug info.

2006-06-30 Thread Corinna Vinschen
On Jun 30 19:45, Danny Smith wrote:
> Hello
> I thought it was about time to change the default debug info for cygwin
> and mingw from stabs to dwarf2.
> Currently the default of stabs can be overriden by '-ggdb' (==use the
> best format for gdb)  
> 
> Apple has done just such a change in gcc 4.2.
> 
> GCC 4.3 stage 1 seems like a good time to change the default for mingw32
> and cygwin.
> 
> Comments?

Thumbs up from me.  The Cygwin build process is supposed to work
with dwarf2 debug sections already.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
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: "changed dev/ino" error with NetApp shared drive

2006-06-30 Thread Corinna Vinschen
On Jun 30 10:33, Harald Dunkel wrote:
> Hi folks,
> 
> I would need this fix asap in the official dll.

I can't speak for others, but I have no idea what you're talking about.
Let's start here:  http://cygwin.com/problems.html


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
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: Access to Network Drive under ssh

2006-06-30 Thread Corinna Vinschen
On Jun 30 11:38, Corinna Vinschen wrote:
> On Jun 29 22:46, Richard Foulk wrote:
> > I've written my own mount command for Cygwin in Perl.  One thing to
> > be aware of is that drive letters aren't necessary with Cygwin.
> > 
> > You can't say: `cd \\xyz\c$' with Windows cmd.exe.
> > 
> > You *can* say things like: `cd //xyz/c\$' in Cygwin.  This cleans up
> > many things.  If you have the right permissions `net use' isn't necessary!
> > 
> > A wrapper for `net use' in Perl is pretty easy to do, including all
> > the password stuff.
> > 
> > Those drive letters just get in the way.  Don't use them.
> 
> To add another data point:
> 
> When running under a public key ssh session, you're running in the login
> session of the SYSTEM user.  Also, since you used pubkey instead of
> password login, you don't have the credentials for network access.  This
> has two results:

Three, it were three results:

> - You must use the net command to connect to non-public shares.
> - You must use username and password in the net use command.
> - You can't use drive letters.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
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: Problems building gnuchess

2006-06-30 Thread Brian Dessent
[EMAIL PROTECTED] wrote:

> ./configure gave me the following warning.
> 
> /cygdrive/c/Documents: line 1: fg: no job control
> /cygdrive/c/Documents: line 2: fg: no job control
> /cygdrive/c/Documents: line 3: 5: command not found
> /cygdrive/c/Documents: line 48: syntax error near unexpected token `newline'
> /cygdrive/c/Documents: line 48: `<>'
> configure: WARNING: `missing' script is too old or missing

You will encounter many such problems in common unix tools when using a
directory with a space in it.  Unless you really enjoy debugging strange
shell script failures, don't do that. 
. 
Remember that you can use "mount" to translate paths, so there is no
reason why you can't use the same directory as just
/home/fhinault/gnuchess-5.07.

> Then, with make, I had a first error:
> redefinition of function "getline" .
> I renamed the local "getline" into "get_line" in all files, and it was enough.

This has been discussed at length in the mailing list archives.

> gcc  -g -O2-o gnuchess.exe  atak.o book.o cmd.o debug.o epd.o eval.o
> genmove.o getopt.o getopt1.o hash.o hung.o init.o input.o iterate.o main.o
> move.o null.o output.o players.o pgn.o ponder.o quiesce.o random.o repeat.o
> search.o solve.o sort.o swap.o test.o ttable.o util.o lexpgn.o  -lreadline
> -lncurses
> init.o: In function `InitVars':
> /cygdrive/c/Documents and Settings/fhinault/gnuchess-5.07/src/init.c:649:
> undefined reference to `_initial_comments'
> ...

This link command is incorrect.  It is missing some libraries, possibly
as a consequence of configure tests that failed.  First get a
'configure' run that does not show errors, and then if you still have
problems, figure out which library each undefined symbol is defined in
and arrange to include this library in the link command.  The easiest
way to modify this if the configure script gets it wrong is just by
overriding LDFLAGS when configuring, e.g. path/to/configure (configure
options) LDFLAGS="-lfoo -lbar".

Note that the order things are specified on the link command line
matters.  Often linux packages will get sloppy here and it won't matter
because undefined symbols are allowed at link time on ELF platforms, but
not on win32 PE/COFF.  This means it's imperative that the order you
specify things on the link command follows their dependancy chain.

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/



sending an empty UDP packet.

2006-06-30 Thread Tanaka Akira
Hi.  I have a trouble to send an empty UDP packet.

$ uname -a
CYGWIN_NT-5.1 D2RP7F1X 1.5.19(0.150/4/2) 2006-01-20 13:28 i686 Cygwin

I run a UDP server (written in Ruby) on port  as follows
on a terminal:

$ ~/ruby/bin/ruby -rsocket -ve 's = UDPSocket.new; s.bind("0.0.0.0", ); 
loop { p s.recv(100) }'
ruby 1.9.0 (2006-06-08) [i386-cygwin]

I compiled following UDP client on another terminal.

$ cat send.c 
#include 
#include 
#include 
#include 

int main(int argc, char **argv)
{
  int s;
  int ret;
  char *buf;
  struct sockaddr_in addr;

  if (argc != 4) {
puts("usage: send ipaddr port data");
exit(1);
  }

  addr.sin_family = AF_INET;
  ret = inet_aton(argv[1], &addr.sin_addr);
  if (ret == 0) { perror("inet_aton"); exit(1); }
  addr.sin_port = htons(atoi(argv[2]));
  buf = argv[3];

  s = socket(PF_INET, SOCK_DGRAM, 0);
  if (s == -1) { perror("socket"); exit(1); }

  ret = sendto(s, buf, strlen(buf), 0, (struct sockaddr *)&addr, sizeof(addr));
  if (ret == -1) { perror("sendto"); exit(1); }

  return 0;
}

$ gcc -o send.exe send.c

I expect send.exe can send an empty packet as follows.
But the server receive no data.  The server prints nothing.

$ ./send.exe 127.0.0.1  ''
$ ./send.exe 127.0.0.1  ''
$ ./send.exe 127.0.0.1  ''
$ ./send.exe 127.0.0.1  ''

When I use send.exe to send 1, 2 and 3-bytes data, it works
fine.  The server prints "a", "ab", "abc".

$ ./send.exe 127.0.0.1  a
$ ./send.exe 127.0.0.1  ab
$ ./send.exe 127.0.0.1  abc

I can send an empty UDP packet using a mswin32 (non-cygwin)
ruby as follows.  The server prints "".
(The server still runs by cygwin ruby.  cygwin ruby can
receive empty UDP packet.)

$ ~/19/bin/ruby -rsocket -ve 'UDPSocket.new.send("", 0, "127.0.0.1", )'
ruby 1.9.0 (2005-07-22) [i386-mswin32]

But I cannot send an empty UDP packet.

$ ~/ruby/bin/ruby -rsocket -ve 'UDPSocket.new.send("", 0, "127.0.0.1", )'
ruby 1.9.0 (2006-06-08) [i386-cygwin]

Is there a way to send an empty UDP packet from cygwin?
-- 
Tanaka Akira

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



Re: find missing parameter

2006-06-30 Thread Owen Rees

--On 30 June 2006 02:42 -0700 Brian Dessent wrote:


First, -exec is a bad way to do this.  It will have to fork/exec a copy
of rm once for each file to be deleted, which is extraordinarily slow
under Cygwin.  Use xargs instead:

find . -name db\* -mtime +2 -type f -print0 | xargs -0 rm

This will result in rm being called only once with all the filenames to
delete as arguments (unless the total length is too great to fit on one
command line, in which case rm will be called as many times as
necessary, but still much less than once per file.)


Provided that your version of cygwin (specifically findutils) is reasonable 
recent, you can use


find  . -name "db*" -mtime +2 -type f -exec /bin/rm {} +

to do more or less the same as with xargs.

--
Owen Rees
Hewlett Packard Laboratories, Bristol, UK



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



Re: sending an empty UDP packet.

2006-06-30 Thread Corinna Vinschen
On Jun 30 19:18, Tanaka Akira wrote:
> Hi.  I have a trouble to send an empty UDP packet.

Thanks for the bug report and especially the testcase.  It's incredible
but the check for a zero length packet has been introduced in 2002, 4
years ago, and nobody has ever complained that it's wrong.  Wow.  Almost
embarrassing.

I've fixed that in current CVS.  Check the next snapshot from
http://cygwin.com/snapshots or wait for 1.5.20, which is really
due soon now.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

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



Re: rsync over ssh hang issue understood

2006-06-30 Thread Darryl Miles

Lev Bishop wrote:

On 6/28/06, Darryl Miles wrote:
See how-to-debug-cygwin.txt
http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/how-to-debug-cygwin.txt?rev=1.12&content-type=text/x-cvsweb-markup&cvsroot=src 


Thanks for your pointers.  Everything I'm wanting to get started is 
already covered in the how-to-debug-cygwin.txt.





indications from select(2) interface. But if no worker thread is busy
working on that fd then you get writability back ?


Yes, but it is very hard to get the precise unix semantics. For
example, the application issues a write() which spawns off a thread
that then blocks. Then the application exit()s, causing the thread to
also terminate before completing its write, and the write never
completes.


This is a very valid point, but not one that is a problem in the 
situations I'm looking at.  The situation I am looking as it much more 
chronic.


How does Overlapping I/O get around this, since you have send the data 
into the kernel layer and are now waiting on a completion notification 
or event signalling.  If the application holding the handle exits from 
under it, does Win32 kernel abort the I/O in this circumstance ?


What about if this was gotten around via a fork() but not at every I/O 
but only if we exit and there is an incomplete I/O operation still in 
progress.   Can we:


 * fork()
 * reaquire handle, as per dup()
 * CloseHandle() from dying process
 * receive IO completion callback with indication of failure, handle 
was closed!

 * hand data over to the child (of fork()) for it to take up the mission.

Maybe there is a resident part of cygwin that could take up the mission, 
since a named pipe can be obtained by any process on the system.  This 
resident part is a process outside of the lifecycle of the emulated 
POSIX processes.


It still would not be perfect but I can't think of any situation that 
would use a single write call (as two writes would be allowed to cause 
blocking) and the data must reliability make it to the reader, but once 
written the writer exited.  Pretty rare if you ask me.  Even when it was 
queued into a POSIX kernel there is no guarantee the reader will read 
it, it might sit in the buffer.  Applications that need that guarantee 
would round trip the other end of the pipe to be sure.


At least we should be able to _DETECT_ that incomplete pipe writing I/O 
is still in progress when a process exits.  So maybe we can log a 
warning and pickup any real problem from there.  Rather than thinking 
too deeply about that rare case.




There is also the issue of what return value to give the application
doing the write() on the pipe. You'll have to be careful to deal with
error conditions, SIGPIPE, etc, etc.


As cgf put:
| If I understand the plan correctly, in the scenario where select says
| it's ok to write but it really isn't, the write would return as if it
| succeeded and a writer thread would be created which sits around
| trying to empty the pipe.

This is _EXACTLY_ the problem as I see.  We have to deal with those 
rules, if the OS can't tell us in a reliable way that a write() will work.


The writer thread sits around trying to fill the pipe, would be more 
correct.



There maybe other ways to deal with that write() but as far as I 
understand the NT kernel does not provide a true non-blocking mechanism 
to work from with pipes.  This is where you can offer to the kernel the 
data and if the buffers are full the kernel will reject the data without 
blocking leaving the application holding it.  Overlapped I/O as I 
understand it does not work like this.


I have read the Overlapped I/O model as documented, but in my (limited) 
understanding of Overlapped I/O is that the call to 
WriteFile()/WriteFileEx() can still block (and it probably will under 
the pipelined conditions of rsync+ssh) when the kernel can't queue new 
requests.


I have not read this anywhere but surely everyone can appreciate that an 
application can't keep doing continuous overlapped I/O into the kernel 
and expect to get back an ERROR_IO_PENDING everytime without it ever 
blocking the applications call.  Something has to block or the kernel 
has to give back another error equivalent to EAGAIN of POSIX.  As I 
can't see any EAGAIN equivalent I presume it must block where the data 
rate of the writer is faster than the reader end of the pipe.


This is not true non-blocking IO as I see it.  So there is actually no 
non-blocking API unless you use PIPE_NOWAIT, for which there is a big 
fat warning not to use.  Nature did not intend PIPE_NOWAIT to exist.



As cgf writes:
| The idea of using threads for pipe writing has been bounced around for
| a long time.  It doesn't solve the select problem if there are
| multiple processes writing to one pipe.  That is not a completely
| unusual event, unfortunately.

I dont see the problem here, each writing process will have its own 
worker thread taking the block.


But to pickup with the point here.

The problem is betw

RE: Change to Dwarf-2 debug info.

2006-06-30 Thread Dave Korn
On 30 June 2006 08:45, Danny Smith wrote:

> Hello

  AUGH!  Ow, you startled me!

> I thought it was about time to change the default debug info for cygwin
> and mingw from stabs to dwarf2.
> Currently the default of stabs can be overriden by '-ggdb' (==use the
> best format for gdb)
> 
> Apple has done just such a change in gcc 4.2.
> 
> GCC 4.3 stage 1 seems like a good time to change the default for mingw32
> and cygwin.
> 
> Comments?

  There's bound to be a bit of pain but what the hey, it'll be s worth it
in the long run.

> Back to my room.

  And no supper for you until you've tidied it up, young man!  

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


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



Re: Access to Network Drive under ssh

2006-06-30 Thread David Greene

Richard Foulk wrote:


Those drive letters just get in the way.  Don't use them.


But the whole point of my initial message is that I need
the drive letters because djgpp doesn't understand
network path names.

 -Dave

--
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: uninstall cygwin

2006-06-30 Thread Dave Korn
On 30 June 2006 10:23, f g wrote:

> I would like to uninstall a Cygwin installation under
> Windows XP: to do this I follow the instruction in

> http://cygwin.com/faq/faq.setup.html#faq.setup.uninstall-all

> but I have several problems.
> 
> Point 1) I type cygrunsrv -L at Cygwin prompt, but I
> get the message
>  "bash: cygrunsrv: command not found". What does this
> mean? Is it safe to assume that I have non Cygiwn
> services running, and that I can pass to point 2?
> Point 2) What is the X11 server? How do I know if
> there are any Cygwin programs that might be running
> in the background, and in case there are some, how do
> I terminate them?
> 
> If I complete these points, there should be no problem
> with the following ones: basically, I just
> delete Cygwin directory from the hard disk. I didn't
> add Cygwin to system path, neither did I set
> CYGWIN environment variable, so unless the installer
> did it, I shouldn't need to do anything else.

  Nope, if you didn't do it, the installer would not have done either.

  And the same goes for cygwin services and X: if *you* didn't set it up, nor
did anyone else.  You should be able to just go right ahead.

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


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



gdb: Segfault in pthread_mutex_init

2006-06-30 Thread David Greene

Apparently, the saga of pthreads and buggy gdb continues.

I've previously run into the famous gdb pthread_key_create
segfault on IRIX.  Apparently it exists on Cygwin as well.

But my program also segfaults in pthread_mutex_init:

Program received signal SIGSEGV, Segmentation fault.
0x610af064 in pthread_mutex::init () from /usr/bin/cygwin1.dll

Just like on IRIX, I can continue (many times for this
code, it turns out) and eventually get into a running state.

Is there a fix for this in some soon-to-be-released gdb?

-Dave

--
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: gdb: Segfault in pthread_mutex_init

2006-06-30 Thread Brian Dessent
David Greene wrote:

> Program received signal SIGSEGV, Segmentation fault.
> 0x610af064 in pthread_mutex::init () from /usr/bin/cygwin1.dll

Please just consult the eleventy-billion previous threads on this
topic.  Covered.  To.  Death.

--
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: gdb: Segfault in pthread_mutex_init

2006-06-30 Thread David Greene

David Greene wrote:


But my program also segfaults in pthread_mutex_init:


It turns out it also segfaults on pthread_mutex_lock
and pthread_mutex_unlock.  Continuing works just fine.
But this is very annoying because the program doesn't
get very far before it has to do a lock or unlock
operation.  It makes gdb next to useless for multithreaded
programs.

   -Dave

--
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: gdb: Segfault in pthread_mutex_init

2006-06-30 Thread David Greene

Brian Dessent wrote:

David Greene wrote:


Program received signal SIGSEGV, Segmentation fault.
0x610af064 in pthread_mutex::init () from /usr/bin/cygwin1.dll


Please just consult the eleventy-billion previous threads on this
topic.  Covered.  To.  Death.


Then please point me to them.  My searches didn't turn up
anything.

 -Dave


--
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: gdb: Segfault in pthread_mutex_init

2006-06-30 Thread Eric Blake
> But my program also segfaults in pthread_mutex_init:
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x610af064 in pthread_mutex::init () from /usr/bin/cygwin1.dll

Read the archives, this issue has already been beaten to death.
This is already fixed in CVS cygwin and CVS gdb; but until cygwin
1.5.20 is released, so that a new gdb snapshot can be provided,
you will have to use snapshots or resign yourself to hitting continue.

-- 
Eric Blake

--
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: gdb: Segfault in pthread_mutex_init

2006-06-30 Thread Brian Dessent
David Greene wrote:

> Then please point me to them.  My searches didn't turn up
> anything.

http://www.google.com/search?q=site:cygwin.com+inurl:ml+inurl:cygwin+pthread+sigsegv+inurl:2006&num=100&filter=0

(and that is only 2006)

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



Re: rsync over ssh hang issue understood

2006-06-30 Thread Darryl Miles

Darryl Miles wrote:
There maybe other ways to deal with that write() but as far as I 
understand the NT kernel does not provide a true non-blocking mechanism 
to work from with pipes.  This is where you can offer to the kernel the 
data and if the buffers are full the kernel will reject the data without 
blocking leaving the application holding it.  Overlapped I/O as I 
understand it does not work like this.


Okay the biggest factor I overlooked here was that the memory buffer 
inside application space is pinned until IO completion is signalled, so 
the theory here must be that for any real world usage I'd run out of 
application address space before the kernel hit any internal problems. 
As there is little overhead inside the NT kernel per overlapped IO that 
is queued up compared to the 1kb/4kb buffer within application address 
space.


If this is the case then for any application using Overlapped I/O on 
Win32 it must manage its own outstanding queue and perform its own 
throttling to stop it chewing itself to pieces.


But with POSIX in both blocking and non-blocking mode the kernel 
implements that rate limiting by virue of design.


So I think even more that a solution is possible with overlapping I/O 
(after creating a temporary private copy of the application data) with a 
byte count outstanding threshold driving select/poll writability 
indication is the way to go.


If the byte count if over the threshold:
 * When a POSIX write(2) is made on a blocking fd (O_NONBLOCK is reset) 
then we implement the blocking all the way until the IO completion arrives.


 * When a POSIX write(2) is made on a non-blocking fd (O_NONBLOCK is 
set) then we return -1 EAGAIN.


 * Select justs need to lookup the outstanding by count and update the 
write_ready state based on the threshold.


 * The outstanding byte count needs to be protected by a mutex.



If WriteFileEx() can never block for overlapped I/O there is no need to 
have a writer thread.  The purpose of the writer thread then thinking 
out loud before was to offload the possibility of the 
WriteFile()/WriteFileEx() from blocking.  Offloading it away from the 
application thread of execution making the POSIX write(2) call.




Another point I have thought about when we call close(2) on a pipe with 
outstanding IO, we need to close the POSIX side but keep the W32API side 
active until the IO completes.  Call it an unlinked IO if you will. 
This means that the IO completion routine needs to check and handle 
deallocation of the "fhandle_pipe" class since it maybe the last to be 
using it.  Maybe this is already accounted for in some other way.



Darryl

--
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: gdb: Segfault in pthread_mutex_init

2006-06-30 Thread David Greene

Eric Blake wrote:


Read the archives, this issue has already been beaten to death.
This is already fixed in CVS cygwin and CVS gdb; but until cygwin
1.5.20 is released, so that a new gdb snapshot can be provided,
you will have to use snapshots or resign yourself to hitting continue.


When is a new release expected?

-Dave

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



Re: rsync over ssh hang issue understood

2006-06-30 Thread mwoehlke

Darryl Miles wrote:
[snip]

 * The outstanding byte count needs to be protected by a mutex.


Are you familiar with the Interlocked* family of functions? Depending on 
what exactly you need to do with the value, a mutex may be unnecessary.


Fascinating discussion, but over my head without taking more time to 
understand it. :-)


--
Matthew
Do not expose to hippos. Doing so may void your warranty.


--
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: gdb: Segfault in pthread_mutex_init

2006-06-30 Thread David Greene

Brian Dessent wrote:

David Greene wrote:


Then please point me to them.  My searches didn't turn up
anything.


http://www.google.com/search?q=site:cygwin.com+inurl:ml+inurl:cygwin+pthread+sigsegv+inurl:2006&num=100&filter=0


Thanks for the pointer.  I installed the latest cygwin-inst snapshot
and am unpacking gdb-6.5 right now.

  -Dave

--
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: uninstall cygwin

2006-06-30 Thread Igor Peshansky
On Fri, 30 Jun 2006, f g wrote:

> I would like to uninstall a Cygwin installation under
> Windows XP: to do this I follow the instruction in
>
> http://cygwin.com/faq/faq.setup.html#faq.setup.uninstall-all
>
> but I have several problems.
>
> Point 1) I type cygrunsrv -L at Cygwin prompt, but I get the message
> "bash: cygrunsrv: command not found". What does this mean? Is it safe to
> assume that I have non Cygiwn services running, and that I can pass to
> point 2?

Yes, that basically means that you have no way of running Cygwin services
(well, technically, some Cygwin programs, notably inetd, know how to
install themselves as a service, but cygrunsrv wouldn't've helped you find
them anyway).  The FAQ could be clearer on this point.

> Point 2) What is the X11 server? How do I know if there are any Cygwin
> programs that might be running in the background, and in case there are
> some, how do I terminate them?

Use "ps -ef" to list all Cygwin processes (from all users).  Again,
probably something for the FAQ.

> If I complete these points, there should be no problem with the
> following ones: basically, I just delete Cygwin directory from the hard
> disk. I didn't add Cygwin to system path, neither did I set CYGWIN
> environment variable, so unless the installer did it, I shouldn't need
> to do anything else. Thanks for your attention,

You'll also want to delete the registry key, as outlined in the above
instructions.  Oh, and deleting the directory won't remove any shortcuts
created by the Cygwin installation packages (like those in the Start Menu
or on the desktop, or the associations created by the "chere" package), so
it's better to use setup.exe to uninstall everything first, *then* delete
the directory and the registry key.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
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: uninstall cygwin

2006-06-30 Thread Dave

Igor Peshansky wrote:

On Fri, 30 Jun 2006, f g wrote:


I would like to uninstall a Cygwin installation under
Windows XP: to do this I follow the instruction in


You'll also want to delete the registry key, as outlined in the above
instructions.  Oh, and deleting the directory won't remove any shortcuts
created by the Cygwin installation packages (like those in the Start Menu
or on the desktop, or the associations created by the "chere" package), so
it's better to use setup.exe to uninstall everything first, *then* delete
the directory and the registry key.


Just to clarify, Igor's procedure won't remove the chere associations 
that he mentioned.


If you don't recognise "chere", then you don't have any associations to 
remove. If someone else set things up for you, run the following command 
(before uninstalling cygwin) to identify any associations:


chere -l

To remove the associations, run

chere -u -s 

for each shell, where  is the shell you installed 
(cmd/ash/bash/tcsh/pdksh/zsh). That's from memory (and I don't uninstall 
that often:), see man chere for accurate information.


Regards,

Dave.
chere maintainer.

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



Need help running expect script under CYGWIN...

2006-06-30 Thread cledford

Hi, much thanks in advance for any and all help anyone can provide.  

I'm by no means a scripting/*NIX/Expect guru - but a while back was able to
stumble  through setting up Windows/CYGWIN/expect enough to put together a
really functional system for basic network management of Cisco routers and
switches.  Everything ran fine on my old laptop which died recently.  I've
just downloaded the latest CYGWIN to my new laptop (I'm assuming a newer
version since last July) and none of my scripts will work any longer.  They
are very basic - essentially they just spawn telnet to a host and do what's
in the script.  It appears that with the current version of CYGWIN (or the
expect that runs in it) the spawn sessions are dying early.  I've scoured
the internet for help, but while there are several people in my same boat -
I'm not finding any solutions.  Attached below is my error message, my
expect script, and my (simple) shell script that pipes in a list of
names/IPs as arguments to expect.

I really relied on this to manage a large number of switches in the past and
am really hurting not having this - thanks for any input at all.

-Calvin

ERROR:
=

Spawn telnet pn-abrams-switch
Send: invalid spawn id (4)

EXPECT SCRIPT:
=

set timeout 20
set USER_NAME "X"
set USER_PASS "XX"
set ENABLE_PASS "XX"
set ROUTER $argv
spawn telnet $ROUTER 
expect "Username: "
send "$USER_NAME\r"
expect "Password: "
send "$USER_PASS\r"
expect "#$"
send "term length 0\r"
expect "#$"
log_file ./output/$ROUTER-show_run.txt
send "sh run | include hostname\r"
expect "#$"
send "\r"
expect "#$"
send "\r"
expect "#$"
send "sh run"
expect "#$"
send "\r"
expect "#$"
log_file
send "exit\r"

SHELL SCRIPT:
===

for ROUTER in `cat names.txt`; do ./expect-BABW-show_run.txt $ROUTER; done

-- 
View this message in context: 
http://www.nabble.com/Need-help-running-expect-script-under-CYGWIN...-tf1874435.html#a5124210
Sent from the Cygwin Users forum at Nabble.com.


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



Keeps asking password after putting the id_rsa.pub in ~/.ssh/authorized_keys on remote host

2006-06-30 Thread Tzung-Cheng Yang

Hi,

I tried to make password_less sftp work.

After I putting the id_rsa.pub in ~/.ssh/authorized_keys on remote host, 
the sftp still keeps

asking password.

I also changed the following on the /etc/ssh/sshd_config file on remote 
hosts


RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile  .ssh/authorized_keys

Anything to do to solve the problem?

Here is the message

$ sftp -v [EMAIL PROTECTED]
Connecting to nhic2...
OpenSSH_4.3p2, OpenSSL 0.9.8b 04 May 2006
debug1: Connecting to nhic2 [140.90.22.252] port 22.
debug1: Connection established.
debug1: identity file /cygdrive/h/.ssh/id_rsa type 1
debug1: identity file /cygdrive/h/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_3.9p1
debug1: match: OpenSSH_3.9p1 pat OpenSSH_3.*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.3
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'nhic2' is known and matches the RSA host key.
debug1: Found key in /cygdrive/h/.ssh/known_hosts:2
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: 
publickey,gssapi-with-mic,password

debug1: Next authentication method: publickey
debug1: Offering public key: /cygdrive/h/.ssh/id_rsa
debug1: Authentications that can continue: 
publickey,gssapi-with-mic,password

debug1: Trying private key: /cygdrive/h/.ssh/id_dsa
debug1: Next authentication method: password
[EMAIL PROTECTED]'s password:


--
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: Need help running expect script under CYGWIN...

2006-06-30 Thread Brian Dessent
cledford wrote:

> I'm by no means a scripting/*NIX/Expect guru - but a while back was able to
> stumble  through setting up Windows/CYGWIN/expect enough to put together a
> really functional system for basic network management of Cisco routers and
> switches.  Everything ran fine on my old laptop which died recently.  I've
> just downloaded the latest CYGWIN to my new laptop (I'm assuming a newer

You didn't mention whether you were using Windows' telnet.exe or
Cygwin's (inetutils) telnet.  (If you had attached the cygcheck output
as per the reporting guidelines this would have been clear.)  You
probably will have difficulty using Windows' telnet with expect as it
does not know about ptys, but Cygwin's telnet should work fine.

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: Need help running expect script under CYGWIN...

2006-06-30 Thread cledford

Hi Brian - thanks for the reply.  I am using the windows telnet (not by
choice) as I could not find a native CYGWIN telnet app in /usr/bin.  Would
you happen to know what "catagory" the telnet app is and I'll go back to the
CYGWIN website and download?

Here is the output of the cygcheck -c (not sure which option to run - will
go back and look for instructions...)

Anyhow, thanks for the heads up.

-Calvin

Cygwin Package Information
Package  VersionStatus
_update-info-dir 00347-1OK
alternatives 1.3.20a-2  OK
ash  20040127-3 OK
base-files   3.6-1  OK
base-passwd  2.2-1  OK
bash 3.0-14 OK
bzip21.0.3-1OK
cabextract   1.1-1  OK
coreutils5.93-2 OK
cygutils 1.2.9-1OK
cygwin   1.5.19-3   OK
cygwin-doc   1.4-3  OK
diffutils2.8.7-1OK
editrights   1.01-1 OK
expect   20030128-1 OK
findutils4.2.27-1   OK
gawk 3.1.5-2OK
gdbm 1.8.3-7OK
grep 2.5.1a-2   OK
groff1.18.1-2   OK
gzip 1.3.5-1OK
less 381-1  OK
libbz2_1 1.0.3-1OK
libcharset1  1.9.2-2OK
libgdbm  1.8.0-5OK
libgdbm-devel1.8.3-7OK
libgdbm3 1.8.3-3OK
libgdbm4 1.8.3-7OK
libiconv 1.9.2-2OK
libiconv21.9.2-2OK
libintl  0.10.38-3  OK
libintl1 0.10.40-1  OK
libintl2 0.12.1-3   OK
libintl3 0.14.5-1   OK
libncurses5  5.2-1  OK
libncurses6  5.2-8  OK
libncurses7  5.3-4  OK
libncurses8  5.4-4  OK
libpcre0 6.3-1  OK
libpopt0 1.6.4-4OK
libreadline4 4.1-2  OK
libreadline5 4.3-5  OK
libreadline6 5.0-4  OK
login1.9-7  OK
man  1.5p-1 OK
mktemp   1.5-3  OK
ncurses  5.4-4  OK
run  1.1.6-1OK
sed  4.1.4-1OK
sharutils4.5.3-1OK
tar  1.15.1-3   OK
tcltk20030901-1 OK
termcap  20050421-1 OK
terminfo 5.4_20041009-1 OK
texinfo  4.8-1  OK
unzip5.50-5 OK
which1.7-1  OK
zip  2.3-6  OK
zlib 1.2.3-1OK

-- 
View this message in context: 
http://www.nabble.com/Need-help-running-expect-script-under-CYGWIN...-tf1874435.html#a5124475
Sent from the Cygwin Users forum at Nabble.com.


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



Re: cygwin 1-5.19-4 crashes at tty_list::terminate() when using gvim in diff mode

2006-06-30 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to Kiyo Kelvin Lee on 6/29/2006 10:15 PM:
> 
> I took some time to debug into the gvim process and found that actually
> a crash (SIGSEGV as reported by gdb) would happen inside the function
> tty_list::terminate() (in tty.cc) all the time upon quiting from gvim.
> And somehow the crash would become consuming all cpu cycles.

Have you tried a recent snapshot?  This may have already been fixed in
CVS, and getting testing exposure will help speed up the 1.5.20 release
process.

- --
Life is short - so eat dessert first!

Eric Blake [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEpWko84KuGfSFAYARAspOAJ9ZAHwc7bMcI9VZ3w/44OD1VpEuUgCgl75n
7zYW0nt8CIqUcuSwmKtPBm4=
=AHjc
-END PGP SIGNATURE-

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



ipconfig and cygwin

2006-06-30 Thread Dave

Robert wrote:

Do you know if ipconfig has been ported to cygwin


Please send all queries direct to the cygwin list rather than to
individuals who post to the list.

To find out if a particular package has been ported, use the cygwin
package search page at http://cygwin.com/packages

Doing http://cygwin.com/cgi-bin2/package-grep.cgi?grep=ipconfig does not
reveal a package/file with that name.

That said, ipconfig is a windows command, and I am not aware of an
ipconfig for Unix/Linux.

Dave.


--
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: Need help running expect script under CYGWIN...

2006-06-30 Thread Brian Dessent
cledford wrote:

> Hi Brian - thanks for the reply.  I am using the windows telnet (not by
> choice) as I could not find a native CYGWIN telnet app in /usr/bin.  Would
> you happen to know what "catagory" the telnet app is and I'll go back to the
> CYGWIN website and download?

As I already said in my previous reply, you want the inetutils package. 
And you can always use the package search page on the website.

> Here is the output of the cygcheck -c (not sure which option to run - will
> go back and look for instructions...)

Aggh.  When you put this inline you just frustrate people trying to
search the mailing list archives because the entire contents will be
indexed and cause keyword searches for unrelated subjects to match. 
This is why the instructions ask you to send it as an attachment.  But
of course you can't attachments because...

> Sent from the Cygwin Users forum at Nabble.com.

...you're using /this/.

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: Need help running expect script under CYGWIN...

2006-06-30 Thread cledford

Sorry to all for skewing the index - in the future is should be made much
more obvious the requirements/process to post a technical question. (I
posted through the web interface and instructions would be nice)

For anyone running into this issue - the problem was the default use (by
CYGWIN) of the windows telnet app.  By downloading and installing the
suggested / inetutils package (located in the - net category under the
package installer) CYGWIN then uses its own telnet app instead.

-Calvin

-- 
View this message in context: 
http://www.nabble.com/Need-help-running-expect-script-under-CYGWIN...-tf1874435.html#a5125677
Sent from the Cygwin Users forum at Nabble.com.


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



MEX interface + DAE solvers in Fortran + gnumex/cygwin/mingw

2006-06-30 Thread Hannes Gruschinski

Hi,

I try to make a DAE solver work for my problems using the mex interface
between Fortran and MATLAB. That is, I installed gnumex, Cygwin, and
Mingw according to

http://gnumex.sourceforge.net/

and built the mex interface between fortran and MATLAB 6.5.1.

It turns out that it successfully compiles the test files yprimef.f and
yprimefg.f and runs it.


mex -f mexopts.bat -v -O -output yprime yprimef.f yprimefg.f

This is mex, Copyright 1984-2002 The MathWorks, Inc.
...

yprimef(1, 1:4)

ans =
   2.8.96854.   -1.0947

I then have been trying to compile mex interfaces for RADAU, one of the
ODE/DAE solvers, from

http://www-m3.ma.tum.de/twiki/bin/view/Software/ODEWebHome#ODE_MEXfiles_Homepage

and its solvers from

http://www.unige.ch/~hairer/software.html

Similarly, I have problems compiling DASSL and a test set (Test Set for
IVP Solvers) from

http://pitagora.dm.uniba.it/~testset//instruc.htm

as can be seen below.

I guess it is a problem related to my mex interface configuration.

If you have an idea please let me know.

Thank you!

Hannes


Appendix 0: my mexopts.bat file

@echo off
rem C:\Documents and Settings\student\Application
Data\MathWorks\MATLAB\R13\mexopts.bat
rem Generated by gnumex.m script in c:\gnumex
rem gnumex version: 1.11
rem Compile and link options used for building MEX etc files with
rem the Mingw/Cygwin tools.  Options here are:
rem Mingw linking
rem Mex (*.dll) creation
rem Safe linking to temporary libraries
rem Language: Fortran
rem Compiling for pentium and above
rem Matlab version 6.5
rem
set MATLAB=C:\MATLAB~1
set GM_PERLPATH=C:\MATLAB~1\sys\perl\win32\bin\perl.exe
set GM_UTIL_PATH=c:\gnumex
set PATH=c:\mingw\bin;%PATH%
rem
rem Added libraries for linking
set GM_ADD_LIBS=-lg2c
rem
rem Type of file to compile (mex or engine)
set GM_MEXTYPE=mex
rem
rem Language for compilation
set GM_MEXLANG=f
rem
rem def files to be converted to libs
set GM_DEFS2LINK=libmx.def;libmex.def;libmat.def;_libmatlbmx.def;
rem
rem dlltool command line
set GM_DLLTOOL=c:\gnumex\mexdlltool -E --as c:\mingw\bin\as.exe
rem
rem compiler options; add compiler flags to compflags as desired
set NAME_OBJECT=-o
set COMPILER=gcc
set COMPFLAGS=-c -DMATLAB_MEX_FILE -mrtd -fcase-upper -fno-underscoring
-fleading-underscore
set OPTIMFLAGS=-O3 -malign-double -fno-exceptions -mcpu=pentium
set DEBUGFLAGS=-g
rem
rem NB Library creation commands occur in linker scripts
rem
rem Linker parameters
set LINKER=%GM_PERLPATH% %GM_UTIL_PATH%\linkmex.pl
set LINKFLAGS=
set LINKOPTIMFLAGS=-s
set LINKDEBUGFLAGS=-g  -Wl,--image-base,0x2800\n
set LINK_FILE=
set LINK_LIB=
set NAME_OUTPUT=-o %OUTDIR%%MEX_NAME%.dll
rem
rem Resource compiler parameters
set RC_COMPILER=%GM_PERLPATH% %GM_UTIL_PATH%\rccompile.pl  -o
%OUTDIR%mexversion.res
set RC_LINKER=


Appendix 1:compilation trial with RADAU and driver

mex -v -DFORTRANUPP -DFORTRANNOUNDER -f C:\mex\mexopts\mexopts.bat 

-O -output VDPOL radau.f dr_radau.f
This is mex, Copyright 1984-2002 The MathWorks, Inc.

-> Options file specified on command line

->Options file   = C:\ThesisWork_HG\mex\mexopts\mexopts.bat
 MATLAB = C:\MATLAB~1
->COMPILER   = gcc
->Compiler flags:
COMPFLAGS   = -c -DMATLAB_MEX_FILE -mrtd -fcase-upper
-fno-underscoring -fleading-underscore
OPTIMFLAGS  = -O3 -malign-double -fno-exceptions
-mcpu=pentium
DEBUGFLAGS  = -g
arguments   =  -DFORTRANUPP -DFORTRANNOUNDER
Name switch = -o
->Pre-linking commands   =
->LINKER = C:\MATLAB~1\sys\perl\win32\bin\perl.exe
c:\gnumex\linkmex.pl
->Link directives:
LINKFLAGS   =
LINKFLAGSPOST   =
Name directive  = -o VDPOL.dll
File link directive =
Lib. link directive =
Rsp file indicator  =
->Resource Compiler  = C:\MATLAB~1\sys\perl\win32\bin\perl.exe
c:\gnumex\rccompile.pl  -o mexversion.res
->Resource Linker=



--> "gcc  -DFORTRANUPP -DFORTRANNOUNDER -c -DMATLAB_MEX_FILE -mrtd
-fcase-upper -fno-underscoring -fleading-underscore -oradau.obj -O3
-malign-double -fno-exceptions -mcpu=pentium radau.f"


--> "gcc  -DFORTRANUPP -DFORTRANNOUNDER -c -DMATLAB_MEX_FILE -mrtd
-fcase-upper -fno-underscoring -fleading-underscore -odr_radau.obj -O3
-malign-double -fno-exceptions -mcpu=pentium dr_radau.f"


--> "C:\MATLAB~1\sys\perl\win32\bin\perl.exe c:\gnumex\linkmex.pl -o
VDPOL.dll  -s  radau.obj  dr_radau.obj "

Cannot export MEXFUNCTION: symbol not defined
radau.obj(.text+0x1fba):radau.f: undefined reference to `DECOMR'
radau.obj(.text+0x20c6):radau.f: undefined reference to `DECOMC'
radau.obj(.text+0x242f):radau.f: undefined reference to `SLVRAR'
radau.obj(.text+0x26aa):radau.f: undefined reference to `ESTRAV'
radau.obj(.text+0x3693):radau.f: undefined refe

Re: rsync over ssh hang issue understood

2006-06-30 Thread Darryl Miles

mwoehlke wrote:

Darryl Miles wrote:
[snip]

 * The outstanding byte count needs to be protected by a mutex.


Are you familiar with the Interlocked* family of functions? Depending on 
what exactly you need to do with the value, a mutex may be unnecessary.


Do these function perform buslock prefixed increment/add with memory 
operand.   As per Linux kernel /usr/src/linux/include/asm-i386/atomic.h. 
 Its an atomic add operation that would be needed, but I dont think 
that will be the only thing that will need intra-thread protection.  The 
close() case flag setting might need to be involved too as well as other 
things, like we need serialization.




One point from my last post was:
> Select justs need to lookup the outstanding by count and update the 
write_ready state based on the threshold.


I need to revise that, in that all decrement operations on the 
outstanding byte count need to re-test for the new decremented value 
ends is below the threshold to allow more IO to occur.  If so it should 
_consider_ waking up all threads waiting on the fd under select(2).



That consideration would be along the lines of:

 * If there is blocked IO already waiting behind the serialization gate 
to come through, then this instance of the io completion routine is not 
responsible for waking up select(2).  That responsibility passes to the 
next IO after it has come through the gate and called WriteFileEx() and 
then added its byte count to the outstanding byte count as necessary.


 * If there is no blocked IO waiting at the gate to come through, then 
its the responsibility of this completion routine to wake up select waiters.



This is to stop false writable events from waking up select then we 
already have an IO queued up and blocked.




Darryl

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



cygwing list subscription

2006-06-30 Thread Abdellatif Ezzouhairi


Hi,

i'm currently doing simulations with ns-2 using cygwin,
and i need to subscribe to cygwin mailing list
how can i subscribe to this group !

--
Ing. M.Sc.A Phd candidate
LARIM (www.larim.polymtl.ca)
École Polytechnique de Montréal

--
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: uninstall cygwin

2006-06-30 Thread Igor Peshansky
On Fri, 30 Jun 2006, Dave wrote:

> Igor Peshansky wrote:
> > On Fri, 30 Jun 2006, f g wrote:
> >
> > > I would like to uninstall a Cygwin installation under
> > > Windows XP: to do this I follow the instruction in
> >
> > You'll also want to delete the registry key, as outlined in the above
> > instructions.  Oh, and deleting the directory won't remove any
> > shortcuts created by the Cygwin installation packages (like those in
> > the Start Menu or on the desktop, or the associations created by the
> > "chere" package), so it's better to use setup.exe to uninstall
> > everything first, *then* delete the directory and the registry key.
>
> Just to clarify, Igor's procedure won't remove the chere associations
> that he mentioned.
>
> If you don't recognise "chere", then you don't have any associations to
> remove. If someone else set things up for you, run the following command
> (before uninstalling cygwin) to identify any associations:
>
> chere -l
>
> To remove the associations, run
>
> chere -u -s 
>
> for each shell, where  is the shell you installed
> (cmd/ash/bash/tcsh/pdksh/zsh). That's from memory (and I don't uninstall
> that often:), see man chere for accurate information.

Right, thanks for the clarification, Dave.  I forgot that chere needed to
be explicitly invoked to add the association (and thus explicitly invoked
to remove it as well).  This also applies to other packages that need to
be explicitly configured (e.g., sshd, cron, etc).

In any case, the advice still applies -- any package that was installed
using Cygwin setup will need to be uninstalled using Cygwin setup to give
the preremove scripts a chance to run.  Technically, the preremove scripts
should undo whatever the postinstall scripts did (if they don't, it's a
packaging bug).
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
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: Need help running expect script under CYGWIN...

2006-06-30 Thread Igor Peshansky
On Fri, 30 Jun 2006, cledford wrote:

> Sorry to all for skewing the index - in the future is should be made
> much more obvious the requirements/process to post a technical question.
> (I posted through the web interface and instructions would be nice)

The instructions are at  (just a short
click away from the Cygwin home page, with the link named "Problem
Reports" -- I don't know how much more obvious you can get).  You posted
through the web interface at Nabble (which is not associated with Cygwin).
You might want to do some lobbying for them to include a link to the above
instructions.  And while you're at it, please tell them to allow posting
attachments using their web interface.

> For anyone running into this issue - the problem was the default use (by
> CYGWIN) of the windows telnet app.  By downloading and installing the
> suggested / inetutils package (located in the - net category under the
> package installer) CYGWIN then uses its own telnet app instead.

The default use is of whatever telnet app is in the PATH first.  That is
not a problem -- that is expected behavior.  The problem was that you were
missing the inetutils package, as Brian pointed out.  You could've
searched for "bin/telnet\b" on the package search page at
, or via "cygcheck -p", to get this
information yourself.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
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: cygwing list subscription

2006-06-30 Thread Igor Peshansky
On Fri, 30 Jun 2006, Abdellatif Ezzouhairi wrote:

> Hi,
>
> i'm currently doing simulations with ns-2 using cygwin,
> and i need to subscribe to cygwin mailing list
> how can i subscribe to this group !

Try , which is one link away from

> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple

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

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
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: ipconfig and cygwin

2006-06-30 Thread Robert Pendell
Dave wrote:
> Robert wrote:
>> Do you know if ipconfig has been ported to cygwin
> 
> Please send all queries direct to the cygwin list rather than to
> individuals who post to the list.
> 
> To find out if a particular package has been ported, use the cygwin
> package search page at http://cygwin.com/packages
> 
> Doing http://cygwin.com/cgi-bin2/package-grep.cgi?grep=ipconfig does not
> reveal a package/file with that name.
> 
> That said, ipconfig is a windows command, and I am not aware of an
> ipconfig for Unix/Linux.
> 
> Dave.
> 

The closest command to `ipconfig` on linux is `ifconfig`.

-- 
Robert Pendell
[EMAIL PROTECTED]

Thawte Web of Trust Notary
CAcert Assurer



signature.asc
Description: OpenPGP digital signature


Re: rsync over ssh hang issue understood

2006-06-30 Thread mwoehlke

Darryl Miles wrote:

mwoehlke wrote:

Darryl Miles wrote:
[snip]

 * The outstanding byte count needs to be protected by a mutex.


Are you familiar with the Interlocked* family of functions? Depending 
on what exactly you need to do with the value, a mutex may be 
unnecessary.


Do these function perform buslock prefixed increment/add with memory 
operand.   As per Linux kernel /usr/src/linux/include/asm-i386/atomic.h. 
 Its an atomic add operation that would be needed, but I dont think that 
will be the only thing that will need intra-thread protection.  The 
close() case flag setting might need to be involved too as well as other 
things, like we need serialization.


Um... probably? Did you try looking at them? There is an 
InterlockedExchangeAdd (I think that's the right name... anyway, you 
feed it a pointer and a constant, and you get back the previous value). 
At any rate, anything Linux can do in assembly, Windows can also do, 
also in assembly, with it's own __asm keyword. The syntax is a little 
different, but it's there, and for something as speed-sensitive as I 
would guess pipes are, this sort of optimization is probably a Good Thing.


Mostly, there is an Interlocked function that will save you from inline 
assembly of most assembly instructions that accept the 'lock' prefix.


Of course, if it can't be done without a mutex in assembly, then it 
can't be done without a mutex, and you remain the person (as opposed to 
me) that knows the answer to that question.


--
Matthew
Do not expose to hippos. Doing so may void your warranty.


--
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: cygwing list subscription

2006-06-30 Thread mwoehlke

Igor Peshansky wrote:

On Fri, 30 Jun 2006, Abdellatif Ezzouhairi wrote:

i'm currently doing simulations with ns-2 using cygwin,
and i need to subscribe to cygwin mailing list
how can i subscribe to this group !


Try , which is one link away from


Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple


HTH,
Igor


You can also check out gmane.org (group gmane.os.cygwin) if you would 
prefer an NTP interface to the list.


--
Matthew
Do not expose to hippos. Doing so may void your warranty.


--
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: cygwing list subscription

2006-06-30 Thread Igor Peshansky
On Fri, 30 Jun 2006, mwoehlke wrote:

> Igor Peshansky wrote:
> > On Fri, 30 Jun 2006, Abdellatif Ezzouhairi wrote:
> > > i'm currently doing simulations with ns-2 using cygwin,
> > > and i need to subscribe to cygwin mailing list
> > > how can i subscribe to this group !
> >
> > Try , which is one link away from
> >
> > > Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> >
> > HTH,
> > Igor
>
> You can also check out gmane.org (group gmane.os.cygwin) if you would
> prefer an NTP interface to the list.

...but note that any problems with accessing the Cygwin mailing lists via
Gmane should be reported to Gmane.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
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: Need help running expect script under CYGWIN...

2006-06-30 Thread fschmidt


Igor Peshansky-2 wrote:
> 
> You posted
> through the web interface at Nabble (which is not associated with Cygwin).
> You might want to do some lobbying for them to include a link to the above
> instructions.
> 

No lobbying required.  Nabble has a wiki-like system so anyone can change
forum description.



> And while you're at it, please tell them to allow posting
> attachments using their web interface.
> 

Coming soon, in a few weeks.

Franklin Schmidt
Nabble.com

-- 
View this message in context: 
http://www.nabble.com/Need-help-running-expect-script-under-CYGWIN...-tf1874435.html#a5128135
Sent from the Cygwin Users forum at Nabble.com.


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



When is next official cygwin net release?

2006-06-30 Thread John Neil
Is there going to be an official cygwin net release soon?  The  
current one is 6 months old, and I could really use an official fix  
for  in order  
to deploy a Cygwin install I am testing.


Also, it would be good if the above bug were listed in cygwin.com/faq/faq.known-problems.html>, and there was a FAQ on the  
Cygwin site with the current estimated release date of the next  
official release.


Thanks,

John

---
This email message is for the sole use of the intended recipient(s) and may 
contain
confidential information.  Any unauthorized review, use, disclosure or 
distribution
is prohibited.  If you are not the intended recipient, please contact the 
sender by
reply email and destroy all copies of the original 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: Change to Dwarf-2 debug info.

2006-06-30 Thread Christopher Faylor
On Fri, Jun 30, 2006 at 11:50:39AM +0200, Corinna Vinschen wrote:
>On Jun 30 19:45, Danny Smith wrote:
>> Hello
>> I thought it was about time to change the default debug info for cygwin
>> and mingw from stabs to dwarf2.
>> Currently the default of stabs can be overriden by '-ggdb' (==use the
>> best format for gdb)  
>> 
>> Apple has done just such a change in gcc 4.2.
>> 
>> GCC 4.3 stage 1 seems like a good time to change the default for mingw32
>> and cygwin.
>> 
>> Comments?
>
>Thumbs up from me.  The Cygwin build process is supposed to work
>with dwarf2 debug sections already.

Ditto for me.  I've wanted this for a long time.

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: rsync over ssh hang issue understood

2006-06-30 Thread Christopher Faylor
On Fri, Jun 30, 2006 at 04:12:11PM +0100, Darryl Miles wrote:
>Darryl Miles wrote:
>>There maybe other ways to deal with that write() but as far as I 
>>understand the NT kernel does not provide a true non-blocking mechanism 
>>to work from with pipes.  This is where you can offer to the kernel the 
>>data and if the buffers are full the kernel will reject the data without 
>>blocking leaving the application holding it.  Overlapped I/O as I 
>>understand it does not work like this.
>
>Okay the biggest factor I overlooked here was that the memory buffer 
>inside application space is pinned until IO completion is signalled, so 
>the theory here must be that for any real world usage I'd run out of 
>application address space before the kernel hit any internal problems. 
>As there is little overhead inside the NT kernel per overlapped IO that 
>is queued up compared to the 1kb/4kb buffer within application address 
>space.

I chimed in earlier in this thread because I didn't want you to start
working on an implementation which I'd have to reject at some later point.

I just want to be clear here.  I really do want to be convinced that the
current implementation in cygwin can't be fixed before we scrap that and
implement something new.  The person who submitted the original change
thought that it should be possible to fix the problem but he never
followed through with a fix.

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/



Customizing setup.exe (How to specify "default" packages)

2006-06-30 Thread Harry Dellicker

I know this has been asked before but I have not yet found a real answer.

 ---> How does setup.exe "decide" which packages are to be installed by
default?  <---

I do not see anything in setup.ini that controls this.  It is also not
hard-coded in the setup program itself, as far as I can tell, nor does
there seem to be any other obvious external source (file) which provides
the necessary information.

I have seen the suggestion that any packages placed in "Base" will be
included in the default package list, but that seems like a bit of a kluge.

I have spent hours with google, and hours studying the setup.exe source
code without any success.

Does anyone have a answer to this?  Is it just so simple that "any six
year old" could see it, but I'm no longer six?

Thank you,
Harry Dellicker



--
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: Need help running expect script under CYGWIN...

2006-06-30 Thread Christopher Faylor
On Fri, Jun 30, 2006 at 04:17:31PM -0700, fschmidt wrote:
>Igor Peshansky-2 wrote:
>>You posted through the web interface at Nabble (which is not associated
>>with Cygwin).  You might want to do some lobbying for them to include a
>>link to the above instructions.
>
>No lobbying required.  Nabble has a wiki-like system so anyone can
>change forum description.

But those of us who do not use nabble but do try to maintain up-to-date
instructions on the web sites that we manage are not particularly
interested in getting sucked into maintaining descriptions at two
separate sites.

There is a catch-22 here, I guess.  If Nabble really catches on, it
might be necessary to start blocking them just to cut down on people
sending email without understanding the rules.

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: rsync over ssh hang issue understood

2006-06-30 Thread Brian Dessent
mwoehlke wrote:

> Um... probably? Did you try looking at them? There is an
> InterlockedExchangeAdd (I think that's the right name... anyway, you
> feed it a pointer and a constant, and you get back the previous value).
> At any rate, anything Linux can do in assembly, Windows can also do,
> also in assembly, with it's own __asm keyword. The syntax is a little
> different, but it's there, and for something as speed-sensitive as I
> would guess pipes are, this sort of optimization is probably a Good Thing.

Maybe you guys ought to read the existing source code before discussing
this.  There are already dozens of calls to InterlockedIncrement,
InterlockedDecrement, InterlockedExchange, and
InterlockedCompareExchange in the codebase, and if you look at winbase.h
you'll see that these have been #defined to be inline assembly versions
of the functions.

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: Customizing setup.exe (How to specify "default" packages)

2006-06-30 Thread Brian Dessent
Harry Dellicker wrote:

> I have seen the suggestion that any packages placed in "Base" will be
> included in the default package list, but that seems like a bit of a kluge.

That is it.  Setup.exe will automatically select "Curr" for any package
in "Base" (and any of its dependant packages) that is not currently
installed.  I wouldn't say "the default package list" because there is
no list and because it's not just a default, i.e. if you uninstall
something in category "Base" then setup will try to install it again the
next time around.  It's more like "anything in this category is taken as
required and always will be selected for installation if not already
installed."

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: Customizing setup.exe (How to specify "default" packages)

2006-06-30 Thread Igor Peshansky
On Fri, 30 Jun 2006, Harry Dellicker wrote:

> I know this has been asked before but I have not yet found a real answer.
>
>  ---> How does setup.exe "decide" which packages are to be installed by
> default?  <---

Simple.  Everything in the "Base" and "Misc" categories is installed by
default.  Any package that an installed package requires is installed by
default.  Shampoo, rinse, repeat.

> I do not see anything in setup.ini that controls this.

You didn't look hard enough.  It's everything with "category:.* Base" or
"category:.* Misc".

> It is also not hard-coded in the setup program itself, as far as I can
> tell, nor does there seem to be any other obvious external source (file)
> which provides the necessary information.

Ah, but it *is* hard-coded in setup.  In two places.  See
PickView::defaultTrust() and packagemeta::set_action().

> I have seen the suggestion that any packages placed in "Base" will be
> included in the default package list, but that seems like a bit of a
> kluge.

Perhaps, but that's how it is.

> I have spent hours with google, and hours studying the setup.exe source
> code without any success.
>
> Does anyone have a answer to this?  Is it just so simple that "any six
> year old" could see it, but I'm no longer six?

It is pretty simple.  And, to answer the question you've put in your
subject line but never asked in the body of the message, the easiest way
to make some packages install by default is to create an empty dummy
package, put it in the "Base" category, and make it require all the
packages you want installed.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
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:MEX interface + DAE solvers in Fortran + gnumex/cygwin/mingw

2006-06-30 Thread James R. Phillips
I receive the mailing list in digest form, so forgive the lack of threading on
this reply.  BTW, good to hear from a Rose-Hulman student (I am an alum).

I think your basic problem is that you don't need cygwin _and_ mingw installed.
 You need one or the other, but not both.  Since the web site you refer to
mentions that cygwin gcc doesn't always work with matlab, I would suggest you
forget cygwin and go with mingw (and msys) all the way.  Try that, and if it
doesn't work, at least your problem is simplified, and it may be easier to find
an answer.  And BTW, you can't post mingw issues here - this list is cygwin
only.

Wnen you have a minute, take a look at the cygwin octave package - it can do
most of what matlab does, and there is even some mex compatibility if you
install octave-forge.

James R. Phillips
RHIT EE '78 and cygwin octave maintainer




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



error starting sshd as a service

2006-06-30 Thread Raymond Blum

Hi
 My Win2003 server sshd stopped working last night, from the time of  
day I assume that it was an MS Windows update and in hindsight  
perhaps windows FW had started blocking it and it was reparable  
but... I decided instead to upgrade my Cygwin installation to the  
current release (bad move)


I have it at the point where I can run sshd as the sshd_server user  
("/usr/sbin/sshd -D") but when I start it as a service I get the  
message in the event viewer
"The sshd service was unable to log on as .\sshd_server with the  
currently configured password due to the following error: The  
parameter is incorrect."


I tried, against popular advice in the archives, to run as the local  
system account and turn off privilege separation in sshd_config but  
while the service started I then got the error "seteuid 1003 no such  
process" in the application event log every time I tried to ssh into  
the machine.  So, I abandoned that effort and put it back to running  
as sshd_server.


I have uninstalled, reinstalled, checked the password for the user  
several times.


I have also googled and tried various advice offered on different  
pages for the last 6 hours. So, I decided that it is time to ask for   
help.


Here is what I have from cygrunsrv
$cygrunsrv -L
sshd
cygserver

$cygrunsrv -Q sshd
Service : sshd
Display name : CYG SSHD
Current State : Started
Command : /usr/sbin/sshd -D

I have no idea what parameter it is that's invalid (or even what  
command it is a parameter to) - ie a parameter to cygrunsrv or a  
parameter to sshd.


I have the machine running sshd -D from a session logged in as  
sshd_server but obviously this is not acceptable in the long term.


Thanks for reading this far, any advice or ideas?
---Raymond

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



Correction to: error starting sshd as a service

2006-06-30 Thread Raymond Blum
Pasted in the wrong cygrunsrv output, sorry, The output in the  
current state of affairs is


$cygrunsrv -Q sshd
Service : sshd
Display name : CYG SSHD
Current State : Stopped
Command : /usr/sbin/sshd -D
---Raymond


On Jul 1, 2006, at 12:00 AM, Raymond Blum wrote:

Hi
 My Win2003 server sshd stopped working last night, from the time of  
day I assume that it was an MS Windows update and in hindsight  
perhaps windows FW had started blocking it and it was reparable  
but... I decided instead to upgrade my Cygwin installation to the  
current release (bad move)


I have it at the point where I can run sshd as the sshd_server user  
("/usr/sbin/sshd -D") but when I start it as a service I get the  
message in the event viewer
"The sshd service was unable to log on as .\sshd_server with the  
currently configured password due to the following error: The  
parameter is incorrect."


I tried, against popular advice in the archives, to run as the local  
system account and turn off privilege separation in sshd_config but  
while the service started I then got the error "seteuid 1003 no such  
process" in the application event log every time I tried to ssh into  
the machine.  So, I abandoned that effort and put it back to running  
as sshd_server.


I have uninstalled, reinstalled, checked the password for the user  
several times.


I have also googled and tried various advice offered on different  
pages for the last 6 hours. So, I decided that it is time to ask for   
help.


Here is what I have from cygrunsrv
$cygrunsrv -L
sshd
cygserver

$cygrunsrv -Q sshd
Service : sshd
Display name : CYG SSHD
Current State : Started
Command : /usr/sbin/sshd -D

I have no idea what parameter it is that's invalid (or even what  
command it is a parameter to) - ie a parameter to cygrunsrv or a  
parameter to sshd.


I have the machine running sshd -D from a session logged in as  
sshd_server but obviously this is not acceptable in the long term.


Thanks for reading this far, any advice or ideas?
---Raymond

--
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: Customizing setup.exe (How to specify "default" packages)

2006-06-30 Thread Harry Dellicker


Ah yes, it is so simple when someone who knows explains it clearly.  I 
should have asked sooner but was afraid I would get flamed for asking 
something "stupid."


Thanks,
Harry

P.S.  Is there any way to get ahold of a copy of the script used for 
creating the setup.ini file?  If not I guess I can simply tack my 
additions onto the end of the official copy each time I rsync my mirror.




Igor Peshansky wrote:


On Fri, 30 Jun 2006, Harry Dellicker wrote:

 


I know this has been asked before but I have not yet found a real answer.

---> How does setup.exe "decide" which packages are to be installed by
default?  <---
   



Simple.  Everything in the "Base" and "Misc" categories is installed by
default.  Any package that an installed package requires is installed by
default.  Shampoo, rinse, repeat.

 


I do not see anything in setup.ini that controls this.
   



You didn't look hard enough.  It's everything with "category:.* Base" or
"category:.* Misc".

 


It is also not hard-coded in the setup program itself, as far as I can
tell, nor does there seem to be any other obvious external source (file)
which provides the necessary information.
   



Ah, but it *is* hard-coded in setup.  In two places.  See
PickView::defaultTrust() and packagemeta::set_action().

 


I have seen the suggestion that any packages placed in "Base" will be
included in the default package list, but that seems like a bit of a
kluge.
   



Perhaps, but that's how it is.

 


I have spent hours with google, and hours studying the setup.exe source
code without any success.

Does anyone have a answer to this?  Is it just so simple that "any six
year old" could see it, but I'm no longer six?
   



It is pretty simple.  And, to answer the question you've put in your
subject line but never asked in the body of the message, the easiest way
to make some packages install by default is to create an empty dummy
package, put it in the "Base" category, and make it require all the
packages you want installed.
HTH,
Igor
 




--
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: Customizing setup.exe (How to specify "default" packages)

2006-06-30 Thread Brian Dessent
Harry Dellicker wrote:

> P.S.  Is there any way to get ahold of a copy of the script used for
> creating the setup.ini file?  If not I guess I can simply tack my
> additions onto the end of the official copy each time I rsync my mirror.

http://cygwin.com/ml/cygwin-apps/2005-09/msg00142.html
http://cygwin.com/ml/cygwin/2006-03/msg00625.html

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/



Non network install of Cygwin?

2006-06-30 Thread Jessica M. Sager
My organization supports two major United State federal
government networks which are not connected to the Internet.  Part of
our support is maintaining an archive of software in which we place a
variety of products, including software for evaluation.  One of our
users has requested that Cygwin be placed in our archive for use, but
after reviewing the Cygwin site, I am unable to find a non-network
install of the software. Is a non-network install version of Cygwin
available? If so, we would like to add it to our Software Archives. We
will be including both a copy of the licensing agreement and will list
the address of your Internet web site, when we package it for
distribution to our other networks. 

If a non-network install of Cygwin does not exist, please advice
us as to what we here would have to do to make Cygwin viable for a
variety of different users who access our archives.

Thank you in advance for your time and effort.

Jessica Sager
Intelink Service Management Center

 





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