Re: [ANNOUNCEMENT] New package: scsh-0.6.7-2

2007-08-30 Thread Thorsten Kampe
* Reini Urban (Wed, 29 Aug 2007 22:59:38 +0200)
> scsh - the "scheme shell" - has been added to the cygwin distribution.

I've noticed on two computers that this package was installed without 
me manually selecting it. On the other hand I could see no other 
package depending on it. How come?

Thorsten


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



Re: [ANNOUNCEMENT] New package: scsh-0.6.7-2

2007-08-30 Thread Brian Dessent
Thorsten Kampe wrote:

> I've noticed on two computers that this package was installed without
> me manually selecting it. On the other hand I could see no other
> package depending on it. How come?

Because it was incorrectly listed in category Misc for a few hours. 
Setup will always try to install everything in Base and Misc.  It's not
any more, though.

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: How do I make scripts my PC executable

2007-08-30 Thread Frank Fesevur

Gary Johnson wrote:

  The first time you do that, windows will complain it doesn't know what to do
with a sh file, and offer you the choice of looking up on the web or selecting
from a list which program you want to open .sh files with; choose the
select-from-a-list option, when the list appears click the browse button, find
your way to cygwin\bin\bash.exe and select that.  Make sure "Always use this
program" is ticked, enter a nice descriptive name such as "Bash script" in the
description box, OK it and away you go!


That won't run the script in the same environment that it would get 
when run from a Cygwin login shell, though, will it?  I would think 
the program might have to be a .bat file that contains something 
like this (untested):


   C:\cygwin\bin\bash.exe --login -c %1


Last year I wrote app (weft) that allows you to double-click a .sh file 
in the Windows Explorer to start the script, a bit similar to the chere 
package. I basically does the registry settings mentioned above.


Even tried to make it a package, but since nobody was interested in it I 
never continued.


http://sourceware.org/ml/cygwin/2006-03/msg00311.html
http://sourceware.org/ml/cygwin-apps/2006-10/msg00029.html

If anyone is interested, I have put the archived of 0.4-1 back on-line. 
That version works reasonably well with local and mounted drives. It has 
problems with UNC paths.


Regards,
Frank


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



RE: octave configure on cygwin snapshot

2007-08-30 Thread Dave Korn
On 30 August 2007 01:40, Eric Blake wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> According to Dave Korn on 8/29/2007 11:00 AM:
>> 
>>   It would be worth going back through the archives; IIRC, this was a
>> recent change made by CV in response to a PR on the list.  Any un-cautious
>> solution would probably just regress back the original bug...
> 
> It was this commit:
> http://cygwin.com/ml/cygwin-cvs/2007-q3/msg3.html
> 
> But I don't see any list traffic related to char *timezone() vs. long
> timezone in that timeframe.

  Good catch.  So, the OP's problem should be solved by defining
__timezonefunc__, or by "#define timezone timezone".  Struct tags live in a
separate namespace from functions and variables, it's only the #define below
that indiscriminately mungs the word 'timezone' in the struct tag that's
causing the problem.

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


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



Setup suggestion: 'New' category

2007-08-30 Thread Henry S. Thompson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I was reminded by the recent spate of new packages -- how hard would
it be for Setup to support a 'New' category, which new packages go
into automatically, and expire out after. . .three months?  I only
update once every month or so, and often think "Now, what was that
cool new package I saw announced a few weeks ago?" and can't remember,
or be bothered to trawl the archives. . .

Obviously not a high-priority requirement, but if a) it's easy and b)
someone who knows the code is inspired to add it at some point, I
think it would be a palpable improvement.

ht
- -- 
 Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
 Half-time member of W3C Team
2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: [EMAIL PROTECTED]
   URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFG1prokjnJixAXWBoRAn3iAJ4x2q34Mb9zeAJu0BlZQW4ajuILjQCdEjTL
wEdGApsmo2Wq23E76KySLXI=
=6jza
-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/



Re: ldconfig problem

2007-08-30 Thread Larry Hall (Cygwin)

Senthil Nathan wrote:

Hi,
I'm using cygwin for the first time to compile my programs.

I get the following error during dynamic loading of my libraries.
And I came to know that there is no concept of "ldconfig".

So how do I load my dynamic libraries while compiling.

this is the command i run on linux platform, which works well.
$ gcc `xml2-config --cflags --libs` -o save save.c  --> /usr/local/lib
has the library to linked with this.

but how do i compile this in cygwin.
and the error I get in cygwin is,
/cygdrive/c/DOCUME~1/che02099/LOCALS~1/Temp/ccWWThmX.o:save.c:(.text+0x15c):
undefined reference
collect2: ld returned 1 exit status


Order matters on Win32 platforms.  You *may* find the following resolves
the link problem you were seeing:

gcc `xml2-config --cflags` -o save save.c `xml2-config --libs`

Note: I didn't try the above and I have no experience with xml2-config.
YMMV.

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

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

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



Re: Setup suggestion: 'New' category

2007-08-30 Thread Larry Hall (Cygwin)

Henry S. Thompson wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I was reminded by the recent spate of new packages -- how hard would
it be for Setup to support a 'New' category, which new packages go
into automatically, and expire out after. . .three months?  I only
update once every month or so, and often think "Now, what was that
cool new package I saw announced a few weeks ago?" and can't remember,
or be bothered to trawl the archives. . .



Not to dismiss your idea but "trawling" the archives for this kind of
information isn't hard, since you only need to look at the cygwin-annnounce
list.  This is a low volume list which only contains package announcements.
It is a step external to 'setup.exe' though.


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

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
Unsubscribe info:  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: quilt-0.46-1

2007-08-30 Thread Jari Aalto
PACKAGE DESCRIPTION
===

Homepage: http://freshmeat.net/projects/quilt/
License : GPL

Tool to work with series of patches

Program manages a series of patches by keeping track of the changes each
of them makes. They are logically organized as a stack, and you can
apply, un-apply, refresh them easily by traveling into the stack
(push/pop). Quilt is good for managing additional patches applied to a
package received as a tarball or maintained in another version control
system. The stacked organization proved to be efficient for the
management of very large patch sets (more than hundred patches).

With quilt, all work occurs within a single directory tree. Since
version 0.30, commands can be invoqued from anywhere within the source
tree. Commands are of the form quilt cmd, similar to CVS commands.
They can be abbreviated as long as the specified part of the command
is unique. All commands print some help text with "quilt  -h".

CHANGES SINCE LAST RELEASE
==

See 
http://cvs.savannah.nongnu.org/viewvc/*checkout*/quilt/quilt.changes?root=quilt
and local file /usr/share/doc/quilt-*/quilt.changes

INSTALL OR UPGRADE NOTES


None.

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.


-- 
Welcome to FOSS revolution: we fix and modify until it shines


--
Unsubscribe info:  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: ldconfig problem

2007-08-30 Thread Senthil Nathan
On 8/30/07, Larry Hall (Cygwin) <[EMAIL PROTECTED]> wrote:
> Senthil Nathan wrote:
> > Hi,
> > I'm using cygwin for the first time to compile my programs.
> >
> > I get the following error during dynamic loading of my libraries.
> > And I came to know that there is no concept of "ldconfig".
> >
> > So how do I load my dynamic libraries while compiling.
> >
> > this is the command i run on linux platform, which works well.
> > $ gcc `xml2-config --cflags --libs` -o save save.c  --> /usr/local/lib
> > has the library to linked with this.
> >
> > but how do i compile this in cygwin.
> > and the error I get in cygwin is,
> > /cygdrive/c/DOCUME~1/che02099/LOCALS~1/Temp/ccWWThmX.o:save.c:(.text+0x15c):
> > undefined reference
> > collect2: ld returned 1 exit status
>
> Order matters on Win32 platforms.  You *may* find the following resolves
> the link problem you were seeing:
>
> gcc `xml2-config --cflags` -o save save.c `xml2-config --libs`
>
> Note: I didn't try the above and I have no experience with xml2-config.
> YMMV.

Hi Larry Hall,
Thanks. That worked and linked the dynamic libraries properly.
I have using the libxml2 on cygwin and found this problem, which
actually did not have any issues on Linux.

Anyway, the order matters in compiling on cygwin.

Thanks a lot.
Senthil

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



RE: How do I make scripts my PC executable

2007-08-30 Thread David Christensen
I wrote:
> $ cat ssh-backup-all.bat
> C:\cygwin\bin\bash ./ssh-backup-all

Steve Holden wrote:
> Wouldn't it be possible to omit the first two executable lines and
> have the batch script read
> c:\cygwin\bin\bash -l ./ssh-backup-all

I posted a sample shell session.  The "$ cat ssh-backup-all.bat" is what I typed
into my shell and the "C:\cygwin\bin\bash ./ssh-backup-all" is the result (e.g.
the output of the "cat" command; the contents of "./ssh-backup-all").


HTH,

David


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



Re: How do I make scripts my PC executable

2007-08-30 Thread Andrew DeFaria

David Christensen wrote:

I wrote:

$ cat ssh-backup-all.bat
C:\cygwin\bin\bash ./ssh-backup-all

Steve Holden wrote:

Wouldn't it be possible to omit the first two executable lines and
have the batch script read
c:\cygwin\bin\bash -l ./ssh-backup-all
I posted a sample shell session. The "$ cat ssh-backup-all.bat" is 
what I typed into my shell and the "C:\cygwin\bin\bash 
./ssh-backup-all" is the result (e.g. the output of the "cat" command; 
the contents of "./ssh-backup-all").

I think he was saying that this:

   $ cat ssh-backup-all.bat
   C:\cygwin\bin\bash ./ssh-backup-all
   $ cat ssh-backup-all
   #! /bin/sh
   . /etc/profile
   . /home/dpchrist/.bash_profile
   # do backup stuff
 


could be reduced to this:

   $ cat ssh-backup-all.bat
   C:\cygwin\bin\bash -l ./ssh-backup-all
   $ cat ssh-backup-all
   # do backup stuff

--
Andrew DeFaria 
Cannot find REALITY.SYS. Universe halted.


--
Unsubscribe info:  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: mkgroup (366): [2123] The API return buffer is too small.

2007-08-30 Thread Dave Korn
On 30 August 2007 01:35, Brian Egge wrote:

> When running mkgroup after installing cygwin I receive the following
> error:
> 
> $ mkgroup  -l -d > /etc/group
> mkgroup (366): [2123] The API return buffer is too small.
> 
> I suspect this is due to the large number of groups our organization
> has.

  If you're happy with building the cygwin dll (and associated utilities) from
source, you could have a go with 
http://cygwin.com/ml/cygwin-patches/2007-q3/msg00011.html

  Otherwise give it a couple of days to be approved and applied and a new
snapshot generated, and you should be able to extract just the new mkgroup.exe
from the snapshot tarball and use it with your current installation.

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: How do I make scripts my PC executable

2007-08-30 Thread Steve Holden

David Christensen wrote:

I wrote:

$ cat ssh-backup-all.bat
C:\cygwin\bin\bash ./ssh-backup-all


Steve Holden wrote:

Wouldn't it be possible to omit the first two executable lines and
have the batch script read
c:\cygwin\bin\bash -l ./ssh-backup-all


I posted a sample shell session.  The "$ cat ssh-backup-all.bat" is what I typed
into my shell and the "C:\cygwin\bin\bash ./ssh-backup-all" is the result (e.g.
the output of the "cat" command; the contents of "./ssh-backup-all").

And I posted alternative content for the batch script that would save 
you from putting two unnecessary lines in the shell script. Or so I thought.


The -l (or --login) option has bash read its usual startup files, 
thereby avoiding the need four the course (".") commands at the 
beginning of the shell script.


regards
 Steve
--
Steve Holden+1 571 484 6266   +1 800 494 3119
Holden Web LLC/Ltd   http://www.holdenweb.com
Skype: holdenweb  http://del.icio.us/steve.holden
--- Asciimercial --
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
--- Thank You for Reading -


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



RE: How do I make scripts my PC executable

2007-08-30 Thread David Christensen
Andrew DeFaria wrote:
> I think he was saying that this:
>$ cat ssh-backup-all.bat
>C:\cygwin\bin\bash ./ssh-backup-all
>$ cat ssh-backup-all
>#! /bin/sh
>. /etc/profile
>. /home/dpchrist/.bash_profile
># do backup stuff
> could be reduced to this:
>$ cat ssh-backup-all.bat
>C:\cygwin\bin\bash -l ./ssh-backup-all
>$ cat ssh-backup-all
># do backup stuff

I forget the gory details, but I do remember that there was gore.  I tried many
permutations of Bash arguments, shell script commands, etc., and the above is
what worked on my particular installation of Cygwin then (2006/09/14) and what
still works on my particular installation of Cygwin today (last updated
2007-05-25).  There may be other ways to get it to work; YMMV.


David


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



RE: How do I make scripts my PC executable

2007-08-30 Thread David Christensen
Steve Holden wrote:
> I posted alternative content for the batch script that would save you
> from putting two unnecessary lines in the shell script. Or so I
> thought.
> The -l (or --login) option has bash read its usual startup files, 
> thereby avoiding the need four the course (".") commands at the 
> beginning of the shell script.

I tried the Bash --login option, and couldn't get *everything* to work (e.g. all
the backup Bash and Perl scripts, and everything they depend upon) under all
tested conditions -- invoking the shell script via Cygwin Bash, invoking the
shell script via a batch file invoked from cmd.exe, invoking the batch file via
Windows Explorer, invoking the batch file via a Windows shortcut, etc..  Please
test your ideas, test my solution, figure out the obvious and unobvious
differences, and post your results.  


David


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



Re: How do I make scripts my PC executable

2007-08-30 Thread Steve Holden

David Christensen wrote:

Steve Holden wrote:

I posted alternative content for the batch script that would save you
from putting two unnecessary lines in the shell script. Or so I
thought.
The -l (or --login) option has bash read its usual startup files, 
thereby avoiding the need four the course (".") commands at the 
beginning of the shell script.


I tried the Bash --login option, and couldn't get *everything* to work (e.g. all
the backup Bash and Perl scripts, and everything they depend upon) under all
tested conditions -- invoking the shell script via Cygwin Bash, invoking the
shell script via a batch file invoked from cmd.exe, invoking the batch file via
Windows Explorer, invoking the batch file via a Windows shortcut, etc..  Please
test your ideas, test my solution, figure out the obvious and unobvious
differences, and post your results.  

Well there's no need to be so defensive. A simple "that doesn't work", 
preferably with a following "because ..." would have been quite 
adequate. Now I have seen your reply to Andrew DeFaria I am somewhat 
better informed.


regards
 Steve
--
Steve Holden+1 571 484 6266   +1 800 494 3119
Holden Web LLC/Ltd   http://www.holdenweb.com
Skype: holdenweb  http://del.icio.us/steve.holden
--- Asciimercial --
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
--- Thank You for Reading -

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



1.5.24: sshd immediately disconnects upon receiving a connection

2007-08-30 Thread Jeremy K . Truax
Hi all



I've been trying to get sshd running on Cygwin on Windows XP. Just to give a 
quick summary of the problem, I'll start up the sshd service and try to connect 
from another machine or even from localhost and it will hang. So I have been 
trying to get it working by just running it from the cygwin command line, like 
so: 



/usr/sbin/sshd -ddd



debug2: load_server_config: filename /etc/sshd_config

debug2: load_server_config: done config len = 196

debug2: parse_server_config: config /etc/sshd_config len 196

debug3: /etc/sshd_config:13 setting Port 22

debug3: /etc/sshd_config:38 setting StrictModes no

debug3: /etc/sshd_config:92 setting UsePrivilegeSeparation yes

debug3: /etc/sshd_config:106 setting Subsystem sftp /usr/sbin/sftp-server

debug1: sshd version OpenSSH_4.5p1

debug1: private host key: #0 type 0 RSA1

debug3: Not a RSA1 key file /etc/ssh_host_rsa_key.

debug1: read PEM private key done: type RSA

debug1: private host key: #1 type 1 RSA

debug3: Not a RSA1 key file /etc/ssh_host_dsa_key.

debug1: read PEM private key done: type DSA

debug1: private host key: #2 type 2 DSA

debug1: rexec_argv[0]='/usr/sbin/sshd'

debug1: rexec_argv[1]='-ddd'

debug1: rexec_argv[2]='-e'

debug2: fd 3 setting O_NONBLOCK

debug1: Bind to port 22 on 0.0.0.0.

Server listening on 0.0.0.0 port 22.

Generating 768 bit RSA key.

RSA key generation complete.



Then I connect from either localhost or from another machine and it continues:



debug1: fd 4 clearing O_NONBLOCK

debug1: Server will not fork when running in debugging mode.

debug3: send_rexec_state: entering fd = 7 config len 196

debug3: ssh_msg_send: type 0

ssh_msg_send: write

send_rexec_state: ssh_msg_send failed



Meanwhile, on the client, I get:



OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007

debug1: Reading configuration data /etc/ssh/ssh_config

debug2: ssh_connect: needpriv 0

debug1: Connecting to avila [10.10.12.8] port 22.

debug1: Connection established.

debug1: identity file /home/portal/.ssh/identity type -1

debug1: identity file /home/portal/.ssh/id_rsa type -1

debug1: identity file /home/portal/.ssh/id_dsa type -1

ssh_exchange_identification: read: Connection reset by peer





I'm using openssh 4.6p1 but I also tried downgrading to 4.5p1 and had the same 
problems. I'm running it from a local user account. The machine itself is in 
the domain though. 



I've been searching around and trying different things. Another thing that was 
suggested was doing -r to disable rexec calls. When I do that I get different 
output when the client connects:



debug1: fd 4 clearing O_NONBLOCK

debug1: Server will not fork when running in debugging mode.

Connection from 127.0.0.1 port 1195

Could not write ident string to 127.0.0.1



I also tried stracing the process, I'll post just the last part of it:



   50 4917736 [main] sshd 3516 sig_send: returning 0x0 from sending signal -34

  415 4918151 [main] sshd 3516 fhandler_base::write: binary write

   72 4918223 [main] sshd 3516 close: close (3)

  178 4918401 [main] sshd 3516 fhandler_socket::close: 0 = 
fhandler_socket::close()

   47 4918448 [main] sshd 3516 close: 0 = close (3)

   31 4918479 [main] sshd 3516 close: close (5)

   33 4918512 [main] sshd 3516 fhandler_base::close: closing '' handle 0x510

   53 4918565 [main] sshd 3516 close: 0 = close (5)

   36 4918601 [main] sshd 3516 close: close (6)

   28 4918629 [main] sshd 3516 fhandler_base::close: closing '' handle 0x51C

   50 4918679 [main] sshd 3516 close: 0 = close (6)

 -106 4918573 [main] sshd 3516 sig_send: sendsig 0x6B4, pid 3516, signal -34, 
its_me 1

   44 4918617 [main] sshd 3516 sig_send: wakeup 0x51C

   41 4918658 [main] sshd 3516 sig_send: Waiting for pack.wakeup 0x51C

   34 4918692 [sig] sshd 3516 wait_sig: signalling pack.wakeup 0x51C

   40 4918732 [main] sshd 3516 sig_send: returning 0x0 from sending signal -34

   64 4918796 [main] sshd 3516 fhandler_base::write: binary write

 1019 4919815 [main] sshd 3516 sig_send: sendsig 0x6B4, pid 3516, signal -34, 
its_me 1

   41 4919856 [main] sshd 3516 sig_send: wakeup 0x51C

   43 4919899 [main] sshd 3516 sig_send: Waiting for pack.wakeup 0x51C

 -334 4919565 [sig] sshd 3516 wait_sig: signalling pack.wakeup 0x51C

  421 4919986 [main] sshd 3516 sig_send: returning 0x0 from sending signal -34

   67 4920053 [main] sshd 3516 fhandler_base::write: binary write

   72 4920125 [main] sshd 3516 sig_send: sendsig 0x6B4, pid 3516, signal -34, 
its_me 1

   39 4920164 [main] sshd 3516 sig_send: wakeup 0x51C

   42 4920206 [main] sshd 3516 sig_send: Waiting for pack.wakeup 0x51C

 -333 4919873 [sig] sshd 3516 wait_sig: signalling pack.wakeup 0x51C

   86 4919959 [main] sshd 3516 sig_send: returning 0x0 from sending signal -34

  377 4920336 [main] sshd 3516 writev: writev (7, 0x22BEF0, 1)

 -202 4920134 [main] sshd 3516 __set_errno: void __set_winsock_errno(const 
char*, int):234 val 108

   50 4920184 [main] sshd 3516 __set_winsock_errno: sendmsg:1376 - winsock 
e

Re: 1.5.24: sshd immediately disconnects upon receiving a connection

2007-08-30 Thread Larry Hall (Cygwin)

A few quick comments:

Jeremy K. Truax wrote:

Hi all



I've been trying to get sshd running on Cygwin on Windows XP. Just to 
give a quick summary of the problem, I'll start up the sshd service and 
try to connect from another machine or even from localhost and it will

hang. So I  have been trying to get it working by just running it from the
cygwin command line, like so:


/usr/sbin/sshd -ddd




Since you're starting things this way, I assume you realize the limitations
it imposes and the issues you will need to deal with when you migrate back
to running this as a service.  If you don't, I recommend just wiping your
installation and reinstalling (this isn't required but it's often easier
than tracking down all the files that need fiddling with and doing so).
Once reinstalled, you can accomplish the same thing from a system-owned
shell (search the email archives for the recipe).  This way allows you to
do the debugging you want without polluting the service configuration.



Connection from 127.0.0.1 port 1195



I hope the above is a typo/wrong example.




I tried searching around for that winsock error but didn't find much from
that either.



$ net helpmsg 10038

An operation was attempted on something that is not a socket.



As for how I set this up, I just had a clean windows xp install, disabled
the firewall, installed Cygwin, selected openssh to be installed. Then I ran
ssh-host-config and said yes to all prompts (Note: I did try this without
privsep both on and off but still had the same problems). I've also tried to
refresh /etc/passwd and /etc/group by doing:



Why didn't you run ssh-user-config too?


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

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
Unsubscribe info:  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: 1.5.24: sshd immediately disconnects upon receiving a connection

2007-08-30 Thread Jeremy K . Truax

> Since you're starting things this way, I assume you realize the
> limitations
> it imposes and the issues you will need to deal with when you migrate
back
> to running this as a service.  If you don't, I recommend just wiping your
> installation and reinstalling (this isn't required but it's often easier
> than tracking down all the files that need fiddling with and doing so).
> Once reinstalled, you can accomplish the same thing from a system-owned
> shell (search the email archives for the recipe).  This way allows you to
> do the debugging you want without polluting the service configuration.
 

Thanks for that info. Once I figure out the problem, I'll try just wiping
the install then before running it as a service again.


>> Connection from 127.0.0.1 port 1195
> 
> 
> I hope the above is a typo/wrong example.
 

Why is that? That's my connection from another cygwin window from localhost
(ssh localhost). The port 1195 I'm guessing is the client's port. Am I
wrong in thinking that?

When trying from another computer I get a similar message:

Connection from 10.10.2.27 port 57735


> 
> Why didn't you run ssh-user-config too?
> 

Actually I did try that as well. It had the same result.

Appreciate any other suggestions, thanks.


-- 
Jeremy K. Truax
[EMAIL PROTECTED]


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



install bug when selecting flac program

2007-08-30 Thread jdeifik
I have an existing installation of cygwin on my computer.
Using the cygwin setup program version 2.573.2.2,
I decide to add the program flac.
I select flac, and it gets installed.
When I run it, nothing happens when I run it from bash.
When I run it from a windows command prompt, it produces
a pop-up window, saying that it is missing libogg.

I re-run cygwin setup, and I see that libogg has not been
selected. I select it, and it gets installed. flac now
works (flac is version 1.2.0).

The bug is that selecting flac for install did not trigger
libogg as a dependency that also needed to get installed.

jeff


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



Re: 1.5.24: sshd immediately disconnects upon receiving a connection

2007-08-30 Thread Larry Hall (Cygwin)

Jeremy K. Truax wrote:

Since you're starting things this way, I assume you realize the
limitations
it imposes and the issues you will need to deal with when you migrate

back

to running this as a service.  If you don't, I recommend just wiping your
installation and reinstalling (this isn't required but it's often easier
than tracking down all the files that need fiddling with and doing so).
Once reinstalled, you can accomplish the same thing from a system-owned
shell (search the email archives for the recipe).  This way allows you to
do the debugging you want without polluting the service configuration.
 


Thanks for that info. Once I figure out the problem, I'll try just wiping
the install then before running it as a service again.



OK.  The way you're running it, though, means that the user that you log
in as must be the same user as is running 'sshd'.  Are you using password
or pubkey authentication?  Your better off with password in this case.



Connection from 127.0.0.1 port 1195


I hope the above is a typo/wrong example.
 


Why is that? That's my connection from another cygwin window from localhost
(ssh localhost). The port 1195 I'm guessing is the client's port. Am I
wrong in thinking that?

When trying from another computer I get a similar message:

Connection from 10.10.2.27 port 57735



My mistake.



Why didn't you run ssh-user-config too?



Actually I did try that as well. It had the same result.



Yeah, go with password.




Appreciate any other suggestions, thanks.



Any way you can work with the system directly, rather than through the
terminal server?  It might help eliminate a variable.

Setting up sshd on a TS here (and sshing to localhost from the TS) worked OK
for me but in my case, I don't have the choice of running sshd as a service
or using privilege separation because my user on the TS is not privileged.
;-)

In actuality, it sounds like this is indeed a socket problem.  Any chance
you have some other anti-virus/anti-spyware/firewall on this system?

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

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

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



Cygwin's setup.exe fails to start - error "C:\...\setup.exe is not a valid Win32 application.

2007-08-30 Thread dwkimery
I downloaded the Cygwin setup.exe and attempted to run it. 
I first received an "Open File - Security Warning" dialog
box with the message "The publisher could not be verified. 
Are you sure you want to run this software.  ... ".  I then
clicked on the "Run" button and received the message
"C:\Documents and Settings\David\Application
Data\Cygwin\setup.exe is not a valid Win32 application." in
a dialog box with an "OK" button only.
 
I would appreciate any suggestions you can provide.  Thank
you for your help.
 
David Kimery


--
Unsubscribe info:  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: 1.5.24: sshd immediately disconnects upon receiving a connection

2007-08-30 Thread Jeremy K . Truax
> OK.  The way you're running it, though, means that the user that you log
> in as must be the same user as is running 'sshd'.  Are you using password
> or pubkey authentication?  Your better off with password in this case.
> 

Correct. So after ssh-user-config didn't work, I removed the .ssh directory
in my homedir to erase the keys it created. So I am using password
authenticaiton, but it never gets far enough to ask me for a password of
course.

Should I remove the keys that ssh-host-config installed too for kicks?
Maybe I'll try that although I'm not sure what it'll accomplish, other than
sshd to recreate them when it starts up again.


> Any way you can work with the system directly, rather than through the
> terminal server?  It might help eliminate a variable.
> 
> Setting up sshd on a TS here (and sshing to localhost from the TS) worked
> OK
> for me but in my case, I don't have the choice of running sshd as a
> service
> or using privilege separation because my user on the TS is not
privileged.
> ;-)
> 
> In actuality, it sounds like this is indeed a socket problem.  Any chance
> you have some other anti-virus/anti-spyware/firewall on this system?

Well I have been doing this all from RDP (TS) and we do have an antivirus
program (nod32) and another firewall program installed. I've disabled both
of these as well and still had the problem but just in case there were any
weird processes still running covertly, I tried booting into Safe Mode with
Networking and working from the console (instead of RDP). Sadly, it still
had the exact same problem. 

Maybe I'll try reinstalling Cygwin fully from Safe Mode with networking
although again, I'm not sure how much it'll helpbut willing to try just
about anything at this point. 

Thanks, I Appreciate your continuing help.


-- 
Jeremy K. Truax
[EMAIL PROTECTED]


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



Request to add "RFU" to OLOCA

2007-08-30 Thread Buchbinder, Barry (NIH/NIAID) [E]
Please see the Subject.

Thanks for your kind attention to this request.

- Barry

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



error starting apache2: signal 12 raised

2007-08-30 Thread Andrew Louie
Trying to start the apache2 httpd daemon in cygwin and i get the
following error:

Aug 30 16:55:14 localhost cygwin_apache2: PID 3232: service
`cygwin_apache2' failed: signal 12 raised

im guessing signal 12 is defined in the errno.h ?

$grep 12 /usr/include/sys/errno.h
#define ENOMEM 12   /* Not enough core */

not enough core? no memory?

attached is cygcheck -svr >cygcheck.out

thanks for your help.

-- 
-Andrew Louie


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

Re: Cygwin's setup.exe fails to start - error "C:\...\setup.exe is not a valid Win32 application.

2007-08-30 Thread Larry Hall (Cygwin)

dwkimery wrote:
I downloaded the Cygwin setup.exe and attempted to run it. 
I first received an "Open File - Security Warning" dialog
box with the message "The publisher could not be verified. 
Are you sure you want to run this software.  ... ".  I then

clicked on the "Run" button and received the message
"C:\Documents and Settings\David\Application
Data\Cygwin\setup.exe is not a valid Win32 application." in
a dialog box with an "OK" button only.
 
I would appreciate any suggestions you can provide.  Thank

you for your help.



So you're running Vista then?

Try downloading it again.  I just did so and it ran fine.  Cygwin's
'setup.exe' is a valid Win32 application.  If that doesn't work, make
sure you're running it with administrator privileges.


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

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
Unsubscribe info:  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: 1.5.24: sin() bug

2007-08-30 Thread Lev Bishop
On 8/29/07, Dmitry Karasik wrote:

> I'd like to submit a bug in cygwin implementation of sin().

> the difference is in 7th digit, and is significant for double precision.

This is not a bug in newlib.
The problem is in glibc and msvc and newlib is (more) correct in this case.
Or, to put it another way, the problem is that the 8087 was designed a
few years before the proper theory for doing argument reduction for
trig functions was discovered, and most subsequent x86 compatible
processors (except for the AMD K5) have decided to be bug-compatible
with the original 8087. If you would do your experiment on another
architecture (PowerPC, IA64, x86-64 (assuming glibc built using the
default -msse -mfpmath=sse compiler options) etc) you would get the
same result as from newlib. The C specifications don't require  exact
argument reduction, and so many implementations just return whatever
the underlying hardware implements. This is in opposition to, say,
Java, where the FP rules are more precise. See:
http://blogs.sun.com/jag/entry/transcendental_meditation

Analysis of your testcase:
Closest IEEE-754 double to 3.1415926535897900074 is indeed
0x1.921fb54442d11p+1 (as correctly given by gcc on both cygwin and
linux).

Sin(0x1.921fb54442d11) is according to Mathematica:
  0x1.d1a62633145c06e0e690...p-49
the closest IEEE-754 double to this (round-to-even) is
  0x1.d1a62633145c0p-49
as given by newlib.

So, in this case, newlib is getting it right to less than 0.5ulp
(better than 1ulp is all that is usually possible, due to the
table-maker's dilemma). The info file for glibc ("errors in math
functions" node) claims that on ix86 sincos() should be accurate to 1
ulp (it doesn't give an error for sin() alone, but I reworked your
test program to use sincos() and it didn't change the answer). But in
this case, glibc is off by 0x2633145c0 ulps (about 10^10 ulps).

Lev

--
Unsubscribe info:  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: Failure in building Emacs 23.0.50 on Cygwin

2007-08-30 Thread Angelo Graziosi

For the sake of completeness, using Emacs CVS 20070829 07:20 (cvs -z3
-d:pserver:[EMAIL PROTECTED]:/sources/emacs co -P -D
"29 Aug 2007 7:20" emacs) bootstraps, while the CVS of few minutes later,
7:30, fails in bootstrapping as described.

It looks the problem is in src/term.c.


Cheers,

   Angelo.


On Wed, 29 Aug 2007, Dan Nicolaescu wrote:

> Angelo Graziosi <[EMAIL PROTECTED]> writes:
>
>   > I have tried to bootstrap the last Emacs-23.0.50 CVS (checked out about an
>   > hour ago) on Cygwin, but it fails:
>
> [snip]
>
>   > gcc   -Wl,--enable-auto-import -Wl,--enable-auto-image-base
>   > -L/usr/X11R6/lib -o temacs ecrt0.o dispnew.o frame.o scroll.o xdisp.o
>   > xmenu.o window.o charset.o coding.o category.o ccl.o cm.o term.o
>   > terminal.o xfaces.o xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o
>   > fringe.o image.o  emacs.o keyboard.o macros.o keymap.o sysdep.o buffer.o
>   > filelock.o insdel.o marker.o minibuf.o fileio.o dired.o filemode.o cmds.o
>   > casetab.o casefiddle.o indent.o search.o regex.o undo.o alloc.o data.o
>   > doc.o editfns.o callint.o eval.o floatfns.o fns.o print.o lread.o abbrev.o
>   > syntax.o unexcw.o bytecode.o process.o callproc.o region-cache.o sound.o
>   > atimer.o doprnt.o strftime.o intervals.o textprop.o composite.o md5.o
>   > sheap.o terminfo.o gmalloc.o ralloc.o lastfile.o vm-limit.o  widget.o
>   > mktime.o getloadavg.o   ../lwlib/liblw.a -L/usr/X11R6/lib -lXaw3d -lXmu
>   > -lXt -lSM -lICE -lXext -ltiff -ljpeg -lpng -lz -lm -lungif -lXpm -lX11
>   > -lcurses -lg  `gcc -print-libgcc-file-name` -lm -lc `gcc
>   > -print-libgcc-file-name`
>   > term.o: In function `dissociate_if_controlling_tty':
>   > /tmp/emacs/src/term.c:3146: undefined reference to `_croak'
>   > collect2: ld returned 1 exit status
>   > make[2]: *** [temacs.exe] Error 1
>   > make[2]: Leaving directory `/tmp/emacs/build/src'
>   > make[1]: *** [bootstrap-build] Error 2
>   > make[1]: Leaving directory `/tmp/emacs/build'
>   > make: *** [bootstrap] Error 2
>   > ---
>   >
>   > (Note that term.c was one of the last update files before I checked out
>   > CVS)
>   >
>   >
>   > The same CVS bootstraps fine on GNU/Linux SLC4.
>   >
>   >
>   > The CVS of 20070819 builds fine on both systems (linux and cygwin)
>
> This is because the multi-tty branch got merged into emacs CVS
> mainline. Most likely nobody tried it on cygwin before. Someone that
> uses cygwin needs to take a look at what does it take to make it
> compile again. Probably just a few #ifs need to be updated.
>
>

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



Cygwin w/ Apache+mysql+php+Perl (win XP)

2007-08-30 Thread JamesStock

Hi I am having issues w/ the following config:

I have Apache, mysql, PHP and perl (activestate) installed in my XP (NOT
through cygwin but installed individually).  I can use dos prompt and
connect to mysql DB (e.g mysql -U -P?), I can also use Mysql-Front /
SQLyog to connect to mysql (localhost of course).  But if I open an xterm
through cygwin, I cannot connect to mysql (e.g mysql -U -P?).  Also
the activestate perl (has DBD DBI mysql module installed) can access mysql
db (through dos calling a pl script / using cgi through apache).  But I
cannot use perl through cygwin to connect to mysql.  WHen I tried to do a
'mysql -U -P' through the xterm in cygwin, it'll just 'hang' and
keep me waiting and waiting w/out errors..so I had to do a hard excape. 
also when I tried to execute the same perl script (the same script I used
through dos prompt) through the xterm in cygwin, i cannot connect to mysql. 
Not sure if it's the same issue (mysql and perl), but how should I tackle
them?  I know that the perl and mysql package is different b/w the one
installed in windows and the one installed through cygwin.  anyways I can
have cygwin use the perl and mysql installed in windows?  when I do a 'which
perl' it tells me it's using /usr/bin/perl while the perl (activestate)
under windows is installed in another dir so it's definitely using a
different perl package.  I tried installed DBI:mysql bundle into the perl
pkg in cygwin but it failed becoz it cannot find the mysql_config. so I
cannot installed that.  ANyhelp will be appreciated. thx

-- 
View this message in context: 
http://www.nabble.com/Cygwin-w--Apache%2Bmysql%2Bphp%2BPerl-%28win-XP%29-tf4357512.html#a12418256
Sent from the Cygwin Users mailing list archive 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's setup.exe fails to start - error "C:\...\setup.exe is not a valid Win32 application.

2007-08-30 Thread Morgan Gangwere
On 8/30/07, Larry Hall (Cygwin)  wrote:
> dwkimery wrote:
> > I downloaded the Cygwin setup.exe and attempted to run it.
> > I first received an "Open File - Security Warning" dialog
> > box with the message "The publisher could not be verified.
> > Are you sure you want to run this software.  ... ".  I then
> > clicked on the "Run" button and received the message
> > "C:\Documents and Settings\David\Application
> > Data\Cygwin\setup.exe is not a valid Win32 application." in
> > a dialog box with an "OK" button only.
> >
> > I would appreciate any suggestions you can provide.  Thank
> > you for your help.
>
>
> So you're running Vista then?
>
> Try downloading it again.  I just did so and it ran fine.  Cygwin's
> 'setup.exe' is a valid Win32 application.  If that doesn't work, make
> sure you're running it with administrator privileges.
>

Step 1 with running Cygwin on Vista: Disable UAC. UAC was the place
that got fuxed up in doom. you have to do that in vista.
Also, are you running on an x64 machine? if so, then make sure WOW64
is installed for WOW32 (Its the old x86 interop stuff)
Step 2:
If at all possible DONT RUN VISTA!

-- 
Morgan gangwere

"Space does not reflect society, it expresses it." -- Castells, M.,
Space of Flows, Space of Places: Materials for a Theory of Urbanism in
the Information Age, in The Cybercities Reader, S. Graham, Editor.
2004, Routledge: London. p. 82-93.
-BEGIN PGP SIGNATURE-
Version: Gmail/GnuPG Min32 Hack
Comment: Using GnuPG and Gmail - ask me about Grim Fandango

iD8DBQFGV3KQCF9T/dUsmAgRAvESAKDfZYbRtebNO+WPfx6DryIvIwt9TgCgukZG
cIj5nSWws/pAeW2ESlj7GuM=
=Y4uC
-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/



Re: Cygwin w/ Apache+mysql+php+Perl (win XP)

2007-08-30 Thread Yaakov (Cygwin Ports)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

JamesStock wrote:
> I have Apache, mysql, PHP and perl (activestate) installed in my XP (NOT
> through cygwin but installed individually).  I can use dos prompt and
> connect to mysql DB (e.g mysql -U -P?), I can also use Mysql-Front /
> SQLyog to connect to mysql (localhost of course).  But if I open an xterm
> through cygwin, I cannot connect to mysql (e.g mysql -U -P?).

Try mysql -h 127.0.0.1.


Yaakov
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG13z6piWmPGlmQSMRCKApAKCmSxmNZRmwYF2xkQ+2hsUD2/wWqwCeJJ7N
f6edttkh9YnPpgj4XyqiaSk=
=rE38
-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/



Re: Cygwin w/ Apache+mysql+php+Perl (win XP)

2007-08-30 Thread JamesStock

Hi, thx for the response.  I tried w/ 'mysql -h 127.0.0.1 -u -p'
(substitute the s w/ the appropriate username and passwd of course) and
it seems to just 'hang' there w/out doing anything.  If I entered an invalid
username, it'll immediately give me ERROR 1045 (28000): Access denied for
user "'@'localhost' (Using password: YES).  SO I am confused.  

Besides this mysql connection through cygwin, I have issues w/ the perl
connecting to mysql through cygwin also. Everything through DOS / apache
server is fine.

-

Yaakov (Cygwin Ports) wrote:
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
> 
> JamesStock wrote:
>> I have Apache, mysql, PHP and perl (activestate) installed in my XP (NOT
>> through cygwin but installed individually).  I can use dos prompt and
>> connect to mysql DB (e.g mysql -U -P?), I can also use
>> Mysql-Front /
>> SQLyog to connect to mysql (localhost of course).  But if I open an xterm
>> through cygwin, I cannot connect to mysql (e.g mysql -U -P?).
> 
> Try mysql -h 127.0.0.1.
> 
> 
> Yaakov
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.5 (Cygwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iD8DBQFG13z6piWmPGlmQSMRCKApAKCmSxmNZRmwYF2xkQ+2hsUD2/wWqwCeJJ7N
> f6edttkh9YnPpgj4XyqiaSk=
> =rE38
> -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/
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Cygwin-w--Apache%2Bmysql%2Bphp%2BPerl-%28win-XP%29-tf4357512.html#a12420267
Sent from the Cygwin Users mailing list archive 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: How do I make scripts my PC executable

2007-08-30 Thread David Christensen
Steve Holden wrote:
> Well there's no need to be so defensive.  A simple "that doesn't
> work", preferably with a following "because ..." would have been
> quite adequate. Now I have seen your reply to Andrew DeFaria I am
> somewhat better informed.

If my tone put you off, I apologize.  Understand that GNU, Cygwin, Linux, *BSD,
etc., are labors of love; users are expected to put effort into educating
themselves, finding answers on their own, and helping others with difficulties.
Requesting help on a support forum implies a willingness to learn, to do work,
and to share the results.  Understand that my solution is by no means the only 
or
the best answer; I beat my head against the problem until I found something that
worked, and then stopped there.  If you follow my suggestion of "please test 
your
ideas, test my solution, figure out the obvious and unobvious differences, and
post your results", I suspect that we'll all have a better understanding of
what's going on with Windows, Windows Explorer, cmd.exe, Cygwin, and/or Bash.


David


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



Re: How do I make scripts my PC executable

2007-08-30 Thread Andrew DeFaria

David Christensen wrote:

Steve Holden wrote:
Well there's no need to be so defensive. A simple "that doesn't 
work", preferably with a following "because ..." would have been 
quite adequate. Now I have seen your reply to Andrew DeFaria I am 
somewhat better informed.
If my tone put you off, I apologize. Understand that GNU, Cygwin, 
Linux, *BSD, etc., are labors of love; users are expected to put 
effort into educating themselves, finding answers on their own, and 
helping others with difficulties. Requesting help on a support forum 
implies a willingness to learn, to do work, and to share the results. 
Understand that my solution is by no means the only or the best 
answer; I beat my head against the problem until I found something 
that worked, and then stopped there. If you follow my suggestion of 
"please test your ideas, test my solution, figure out the obvious and 
unobvious differences, and post your results", I suspect that we'll 
all have a better understanding of what's going on with Windows, 
Windows Explorer, cmd.exe, Cygwin, and/or Bash.
I'm always amazed how little people know about their own startup 
environments and the reluctance to learn more about them thus improving 
their environment and productivity. The -l option to bash *should* 
source /etc/profile and your ~/.bash_profile. Additionally it should 
source your .bashrc - if any of these are present. Additionally, if say 
run from cron, you'll have a non-interactive shell and the behavior 
should be slightly different. In any event it really is your 
responsibility to insure that your start up environment is configured 
correctly. Since you were obviously having difficulties there is still 
something wrong with *your* environment and as such I know that I, 
personally, would be concerned about that until I got it fixed.


We cannot debug your environment because we don't have your environment. 
We don't have your /etc/profile (if you made any changes) and we don't 
have your ~/.bash_profile either.  Additionally we don't have your perl 
and bash scripts that you've purposely left out of the equation here. 
Lastly we don't even have much of a description of what exactly goes 
wrong when you use -l instead of sourcing /etc/profile and 
~/.bash_profile nor do we have any of the error messages. How then are 
we to post our results?


Granted you may not care - you have a working solution and what the hell 
it's just two lines of code. However, as a profession I squint and say 
"That just ain't right" and "That's a kludgy fix" and it would bother 
me. I know from past experience that such things eventually have a knack 
of coming back and biting you in the ass later on...

--
Andrew DeFaria 
Sex: In America an obsession. In other parts of the world a fact. - 
Marlene Dietrich



--
Unsubscribe info:  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 w/ Apache+mysql+php+Perl (win XP)

2007-08-30 Thread Andrew DeFaria

JamesStock wrote:

Hi I am having issues w/ the following config:

Rule of thumb: Don't use non Cygwin stuff with Cygwin stuff!

Corollary: Well since Cygwin runs under Windows there are many 
interactions and you can use some (a lot) of non Cygwin stuff with Cygwin.


Corollary #1: If you're gonna interface between Cygwin and non Cygwin, 
you'll have to hack, take into account the differences and do lots of 
experimentation. BTW: You'll probably do lots of this...


OK. So,
I have Apache, mysql, PHP and perl (activestate) installed in my XP 
(NOT through cygwin but installed individually).
Stop. We know perl (activestate) is not Cygwin I assume Apache, Mysql 
and Php are similarly not Cygwin? Cygwin stuff works best with other 
Cygwin stuff. Piecemealing a bunch of Unix like utilities together from 
different places (perl: activestate, apache: apache.org, mysql: 
mysql.com, etc...) is asking for trouble (and I never understand why 
people insist on doing it! I mean why use PuTTY when Cygwin already 
provides ssh!) Why are you not simply using the Cygwin versions of all 
of these?

I can use dos prompt and connect to mysql DB (e.g mysql -U -P?),

Windows DOS box, running a Windows oriented mysql...
I can also use Mysql-Front / SQLyog to connect to mysql (localhost of 
course).

Whatever that is...
But if I open an xterm through cygwin, I cannot connect to mysql (e.g 
mysql -U -P?).
Ah so now you're using a Cygwin program (xterm) and a non-Cygwin program 
(mysql)
Also the activestate perl (has DBD DBI mysql module installed) can 
access mysql db (through dos calling a pl script / using cgi through 
apache).

Non-Cygwin perl (activestate) using a non-Cygwin mysql.
But I cannot use perl through cygwin to connect to mysql. WHen I tried 
to do a 'mysql -U -P' through the xterm in cygwin, it'll just 
'hang' and keep me waiting and waiting w/out errors..
Have you heard of ptys? They're what Unix uses when using things like 
xterm (BTW, stop the X server and use rxvt. Works like xterm but will 
also work without an X server using Windows widgets instead). Cygwin, 
being Unix-like, also uses them. Windows knowns nothing about them. So 
the Windows oriented mysql gets confused when it attempts to talk to you 
through stdout/stdin because those are connected to ptys, which Windows 
knows nothing about. Bottom line is it is talking to you (displaying the 
mysql banner and prompt) and it will listen to you (accept input). It's 
just that you don't see any of the output because it's sorta lost in the 
pty. Again, mixing Cygwin programs (xterm) with non-Cygwin programs (mysql).

so I had to do a hard excape.
What's that? Try just typing exit (blindly) and I bet you return to the 
shell prompt.
also when I tried to execute the same perl script (the same script I 
used through dos prompt) through the xterm in cygwin, i cannot connect 
to mysql.

Might be the same thing.
Not sure if it's the same issue (mysql and perl), but how should I 
tackle them?
Personally I would remove all of the non Cygwin versions of LAMP that 
you have there and install the Cygwin versions. They are designed to 
work well together.
I know that the perl and mysql package is different b/w the one 
installed in windows and the one installed through cygwin. anyways I 
can have cygwin use the perl and mysql installed in windows? 
Maybe but it may take considerable effort. For example, Windows programs 
typically use "\" as the directory separator whereas Cygwin uses "/". To 
the shell the "\" will need to be doubled. Again, just going all Cygwin 
(or all non-Cygwin if you must) would be much less hassle.
when I do a 'which perl' it tells me it's using /usr/bin/perl while 
the perl (activestate) under windows is installed in another dir so 
it's definitely using a different perl package.
When you type "which perl" *in the cygwin environment* it will be 
evaluated in that light. It's no wonder it would favor the Cygwin 
version. However, if the activestate perl was in say C:\Perl\bin you 
could do:


$ export PATH=/cygdrive/c/perl/bin:$PATH

and "which perl" would yield the activestate one. However I wouldn't 
advise that you do that. (BTW: Write a simple perl script to call 
setsid. Run it under activestate. What does it say?)
I tried installed DBI:mysql bundle into the perl pkg in cygwin but it 
failed becoz it cannot find the mysql_config. so I cannot installed 
that. ANyhelp will be appreciated. thx
I'm not sure of the status of the availability of mysql as a Cygwin 
package. I think that package just lacks an owner. My solution was to 
invest $400 and get a real Linux system instead. However if one were 
available (and I believe it is, somewhere, unofficially) then you could 
just install the Cygwin mysql then install (I suspect) the DBD::mysql 
(DBI is, as it's name implies, DataBase *Independent*). DBD is the 
DataBase Driver, of which there is a MySQL version...

--
Andrew DeFaria 
Why is it that when 

Re: [ANNOUNCEMENT] New package: scsh-0.6.7-2

2007-08-30 Thread Reini Urban

Brian Dessent schrieb:

Thorsten Kampe wrote:


I've noticed on two computers that this package was installed without
me manually selecting it. On the other hand I could see no other
package depending on it. How come?


Because it was incorrectly listed in category Misc for a few hours. 
Setup will always try to install everything in Base and Misc.  It's not

any more, though.


Interesting. I didn't know that.
I'll correct it for the next update which might be needed for the broken 
man page.


I'll add
category: Interpreters Shells
--
Reini
sdesc: "Open-source Unix shell embedded within Scheme"
ldesc: "Scsh is a variant of Scheme 48 (an R5RS compliant new-tech Scheme 
system) 
Scsh is designed for writing real-life standalone Unix programs and shell 
scripts.
Scsh spans a wide range of application, from script applications usually 
handled with perl or sh, to more standard systems applications usually written 
in C."
requires: cygwin crypt
category: Interpreters Shells

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

Re: [ANNOUNCEMENT] New package: scsh-0.6.7-2

2007-08-30 Thread Reini Urban

Mark Harig schrieb:

Reini Urban writes:

 > scsh - the "scheme shell" - has been added to the cygwin distribution.

Thank you for providing this package.

1. This package is classified in 'setup' as a 'Misc' package.  Should
  this package be classified as a 'Shell' package instead?


"Shells"


2. The manual page 'scsh.1.gz' in /usr/share/man/man1 has only 27 bytes
  in it.  The manual page, 'scsh.man', included in the source for
  'scsh' has 1982 bytes.  Is there a defect in the scsh cygwin package
  (i.e., did the manual page get package incorrectly), or is this
  a problem with my cygwin installation?


Yes, the scsh cygwin package is broken.
I'll also try to find the cygport problem and report it upstream.
--
Reini

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