Re: 64 bit applications

2010-04-17 Thread Andrew P.

Thanks, Christopher Faylor !

Mingw64 is for compiling x64 Windows applications.
As there no possibilities to run Linux_x86_64 applications under 
Windows, so far as I'll try to compile they for Windows x64 (though it 
should lead to loss in relative productivity approximately on a quarter 
because of worse Windows architecture).


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



Re: 64 bit applications

2010-04-17 Thread Andy Koppe
Andrew P. wrote:
> Mingw64 is for compiling x64 Windows applications.
> As there no possibilities to run Linux_x86_64 applications under Windows, so
> far as I'll try to compile they for Windows x64

What x86-64-specific applications are you talking about? The vast
majority of applications compile and run both on x86 and x86-64 Linux,
and plenty of other architectures as well, for that matter. If
anything, you're still more likely to find apps that work on x86 but
not on x86-64, rather than the other way round. So chances are, your
app will compile and run on Cygwin.

> (though it should lead to
> loss in relative productivity approximately on a quarter because of worse
> Windows architecture).

What? Do you mean because of the different APIs on Windows? Well, yes,
that would require extra work, although quantifying that as a quarter
a seems rather arbitrary.

Andy

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



Re: mintty: Doesn't know about CTRL key

2010-04-17 Thread Corinna Vinschen
On Apr 17 06:20, Andy Koppe wrote:
> Corinna Vinschen wrote:
> > Consider you have more than one mintty window open.  A typical use case
> > for me is to have one shell open under UAC and the other one with admin
> > rights to test to test something.  Then I want to close both ttys and
> > test again with another Cygwin DLL.
> >
> > So I press Ctrl-D twice, without lifting my thumb from the Ctrl key.
> > The first mintty window closes just fine.  The second mintty window does
> > not close.  Instead, it behaves as if I had pressed the 'd' key alone.
> > So I have to BS and then press Ctrl-D again to exit the second shell.
> >
> > Apparently the second mintty window doesn't recognize the fact that the
> > Ctrl key is still pressed.  This does not happen with two console
> > windows, neither in tty, nor in notty mode.
> 
> Fixed in svn. If you want to give it a try:
> 
> svn checkout http://mintty.googlecode.com/svn/branches/0.6 mintty-0.6
> cd mintty-0.6
> make

Much better.  Thank you!


Corinna

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

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



[ANNOUNCEMENT] Updated: irssi-0.8.15-1

2010-04-17 Thread Kostya Altukhov
Version 0.8.15-1 of irssi has been uploaded.

This is a new upstream release. It fixes two security issues: the first
being that Irssi didn't check hostname on SSL connections and
the other being a hard to exploit remote crash bug.

For a complete listing of the changes and bugfixes since 0.8.14,
please have a look at the official change log:
http://irssi.org/news/ChangeLog

If you have questions or comments, please send them to the cygwin
mailing list at: cygwin@cygwin.com .

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

   *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

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

cygwin-announce-unsubscribe-you=yourdomain@cygwin.com

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

http://sourceware.org/lists.html#unsubscribe-simple

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

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



[ANNOUNCEMENT] Updated: pure-ftpd-1.0.29-1

2010-04-17 Thread Kostya Altukhov
Version 1.0.29-1 of pure-ftpd has been uploaded.

This is a new upstream release. For the complete list of changes
since 1.0.21 see the official news page:
http://www.pureftpd.org/project/pure-ftpd/news

If you have questions or comments, please send them to the cygwin
mailing list at: cygwin@cygwin.com .

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

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

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

cygwin-announce-unsubscribe-you=yourdomain@cygwin.com

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

http://sourceware.org/lists.html#unsubscribe-simple

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

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



General cuestions about package mantainership

2010-04-17 Thread d.sastre.medina
Hello,

I'm taking into consideration the possibility of taking over the
mantainership of an orphaned package[1], but I'd need some clarifications
regarding this task, in order to decide if I am capable enough to do
it. Caution comes from the assumption of my limitations.

To me it's clear that the notion of Community implies giving back to
it, at least, within someone's own ability and knowledge. In my case, 
this limit is the lack of C programming background.

Would such a mantainer be totally useless?

To my understanding, a mantainer should be able to patch the sources
if necessary, not only build/package/publish them and act as a proxy
between bug reporters and developers.

Despite the fact that I'm probably answering myself, I'd be glad to know
your opinion.

Regards.

[1] http://cygwin.com/cygwin-pkg-maint.

-- 
Huella de clave = 943C D77F 0CB0 02FE 166E  E06F D13A A2E1 98A5 C953


pgpkU6G29lesS.pgp
Description: PGP signature


Re: 64 bit applications

2010-04-17 Thread Andrew P.

Dear Andy Koppe !

The goal is to run application in 64bit mode, because in 32bit mode it 
lacks in relative productivity ~0,4.
This I have personally established on CAE applications example (as well 
as loss on ~1/4 Windows x64 rather Linux_x86_64).
I want to run on Windows not CAE but too exacting to productivity 
applications...


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



Re: [ANNOUNCEMENT] Updated: {xz/liblzma-devel/liblzma1}-4.999.9beta-11

2010-04-17 Thread Rolf Campbell

On 2010-04-11 11:54, Charles Wilson wrote:

This is routine update to a more recent git snapshot.

[[ compiled using gcc-4.3.4-3 ]]

CHANGES (since 4.999.9beta-10)

o Update to 2010-Apr-01 git snapshot
   Wed Mar 31 16:47:25 2010 +0300
   a1f7a986b8d708f9290da9799ca1b8d7082fad3e
o Rebuild using gcc4, against official cygwin-1.7.x release.
o Upstream:
   - Documentation updates
   - Fix option parsing bug in xz
   - Fix installation issue on cygwin/mingw.
   - lzmainfo bugfixes
   - New lzma_filters_copy(), lzma_physmem(), and io_pread() APIs.
   - Behavioral modification for filter chain initialization/update:
 Technically, this is a ABI change, but to date is is only used
 internally, so I didn't bump the DLL number.
   - xz now supports --info-memory and --robot options, and a
 rudimentary implemenation of --list.
   - Fix various liblzma bugs
   - liblzma now relies on auto-import, for MinGW/Cygwin
   - Never accept (or output) compressed data from a tty
   - xzgrep now supports filenames with spaces



This release will not compress a file with multiple hard links, even 
when "forced".


I'm running an NTFS drive, and my source file has 2 hard-links to it. 
Running "xz -9evf source.txt" prints:

xz: source.txt: Input file has more than one hard link, skipping

When using "4.999.9beta-10", it correctly compresses that file.


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



Re: [ANNOUNCEMENT] Updated: {xz/liblzma-devel/liblzma1}-4.999.9beta-11

2010-04-17 Thread Charles Wilson
On 4/17/2010 10:42 AM, Rolf Campbell wrote:
 > This release will not compress a file with multiple hard links, even
> when "forced".
> 
> I'm running an NTFS drive, and my source file has 2 hard-links to it.
> Running "xz -9evf source.txt" prints:
> xz: source.txt: Input file has more than one hard link, skipping
> 
> When using "4.999.9beta-10", it correctly compresses that file.

Thanks for the report. I'll investigate and report it upstream.

--
Chuck

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



Re: scripting elevated privilege on Windows 7

2010-04-17 Thread Robert Pendell
On Fri, Apr 16, 2010 at 12:33 PM wrote:
> Thank you Robert Pendell! I wrote this shell script. Any suggestions
> for optimization?
>
> #!/bin/bash
> if [ $# -eq 1 ]
> then
>        echo "Usage: elev program arg1 arg2 ..."
>        exit 1
> fi
> prog="$1"
> shift
> exec cygstart --action=runas `which "$prog"` "$@"
>
>

It looks fine (beyond the quoting) but there is an error.

In your if test you check the number of parameters and check to see if
there is exactly one then throw the message.  It should be zero rather
than one because it doesn't count the current process name.

On that note I might suggest replacing 'elev' in the Usage text with
$0 so it can reflect the file it was called as.

On and while quoting works there are better ways as Eric had already
suggested.  I didn't bother changing it but the following script works
well and is tested.

#!/bin/bash
if [ $# -eq 0 ]
then
 echo "Usage: $0 program arg1 arg2 ..."
 exit 1
fi
prog="$1"
shift
exec cygstart --action=runas `which "$prog"` "$@"

On that note if you plan on reusing the script on xp or older (for
portability) then you might want to check the platform os so that you
don't use that action setting on them.  The runas action is only valid
on Windows Vista and Windows 7 since that is when it was added.

Robert Pendell
shi...@elite-systems.org
CAcert Assurer
"A perfect world is one of chaos."

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



Re: ./ns command not WORKING AT ALL!!!

2010-04-17 Thread novice_246



Christopher Faylor-8 wrote:
> 
> On Fri, Apr 16, 2010 at 05:35:32PM +0200, d.sastre.med...@gmail.com wrote:
>>Hello,
>>
>>A quick google search points to this:
> 
> Yes.  I was actually attempting a "teach someone to fish" exercise here.
> But I should know that that trick never works here.
> 
> cgf
> 
> --
> Problem reports:   http://cygwin.com/problems.html
> FAQ:   http://cygwin.com/faq/
> Documentation: http://cygwin.com/docs.html
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> 
> 
> 

FRIG WANNA!!! I JUST ASK FOR A LITTLE HELP AND WANNA GETTING ON LIKE A BUNCH
OF PUSSYHOLES!!
-- 
View this message in context: 
http://old.nabble.com/.-ns-command-not-WORKING-AT-ALL%21%21%21-tp28265800p28277663.html
Sent from the Cygwin list mailing list archive at Nabble.com.


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



Re: Running a Matlab script remotely via ssh

2010-04-17 Thread Geraldo Veiga
I have Cygwin installed in a Vista/64 system with sshd enabled.  I
would like to login remotely via ssh and run a script written in
Matlab.
Directly from the DOS command line this is possible:

matlab -nosplash -nodesktop -minimize -r test_batch -logfile logfile

No such luck when I try the same with a remote session.  The thing
just hangs there until I interrupt it with CTRL-C.

Is there any way around this?  Matlab is a Windows application and
always opens a window when executed.  That "-minimize" in the
command-line  just hides the obvious.

Thanks in advance for your help




--
Geraldo Veiga 

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



Re: ./ns command not WORKING AT ALL!!!

2010-04-17 Thread Jeremy Bopp
On 4/17/2010 12:42 PM, novice_246 wrote:
> 
> 
> 
> Christopher Faylor-8 wrote:
>>
>> On Fri, Apr 16, 2010 at 05:35:32PM +0200, d.sastre.med...@gmail.com wrote:
>>> Hello,
>>>
>>> A quick google search points to this:
>>
>> Yes.  I was actually attempting a "teach someone to fish" exercise here.
>> But I should know that that trick never works here.
>>
>> cgf
>>
>> --
>> Problem reports:   http://cygwin.com/problems.html
>> FAQ:   http://cygwin.com/faq/
>> Documentation: http://cygwin.com/docs.html
>> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
>>
>>
>>
> 
> FRIG WANNA!!! I JUST ASK FOR A LITTLE HELP AND WANNA GETTING ON LIKE A BUNCH
> OF PUSSYHOLES!!

Damn!  I think you made cgf cry with that one!  Next time he'll think
twice about trying to teach someone to help themselves and just give
them the answers they want.  His time isn't worth anything anyway, so
doing your work for you shouldn't be a problem.

Thank you, novice_246, for being such an effective voice of reason.

-Jeremy

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



Re: Running a Matlab script remotely via ssh

2010-04-17 Thread Jeremy Bopp
On 4/17/2010 1:04 PM, Geraldo Veiga wrote:
> I have Cygwin installed in a Vista/64 system with sshd enabled.  I
> would like to login remotely via ssh and run a script written in
> Matlab.
> Directly from the DOS command line this is possible:
> 
> matlab -nosplash -nodesktop -minimize -r test_batch -logfile logfile
> 
> No such luck when I try the same with a remote session.  The thing
> just hangs there until I interrupt it with CTRL-C.
> 
> Is there any way around this?  Matlab is a Windows application and
> always opens a window when executed.  That "-minimize" in the
> command-line  just hides the obvious.
> 
> Thanks in advance for your help

Since it's a Windows-native build which needs to open a window, running
it remotely won't be an option unless you give the sshd service the
right to interact with the desktop.  What you probably want instead is a
Cygwin build of Matlab, if such a thing exists.

-Jeremy

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



RE: General cuestions about package mantainership

2010-04-17 Thread Buchbinder, Barry (NIH/NIAID) [E]
d.sastre.medina wrote on Saturday, April 17, 2010 6:59 AM
> I'm taking into consideration the possibility of taking over the
> maintainership of an orphaned package[1], but I'd need some
> clarifications regarding this task, in order to decide if I am capable
> enough to do it.  Caution comes from the assumption of my limitations.
> 
> To me it's clear that the notion of Community implies giving back to
> it, at least, within someone's own ability and knowledge.  In my case,
> this limit is the lack of C programming background.
> 
> Would such a maintainer be totally useless?
> 
> To my understanding, a maintainer should be able to patch the sources if
> necessary, not only build/package/publish them and act as a proxy
> between bug reporters and developers.
> 
> Despite the fact that I'm probably answering myself, I'd be glad to
> know your opinion.
> 
> [1] http://cygwin.com/cygwin-pkg-maint.
 
http://cygwin.com/ml/cygwin-talk/2005-q2/msg00186.html

I'm not sure that says everything that's been written on the subject but
it's a start.  (I seem to remember something by cgf (that I evidently
neglected to save) that I took to mean that even if it compiles OOTB,
one should be able to debug it so that if it breaks in the future, it
wouldn't become abandoned.)


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



[ANNOUNCEMENT] Updated: ImageMagick-6.4.0.6-2 + libMagick10, libMagick-devel, perl-Image-Magick

2010-04-17 Thread Reini Urban

[sending old message again to the right address for reference]

The following packages have been updated in the Cygwin distribution:

* ImageMagick-6.4.0.6-2
* libMagick10-6.4.0.6-2
* libMagick-devel-6.4.0.6-2
* perl-Image-Magick-6.4.0.6-2

This was made by me with permission by the original maintainer in 
january. I just forgot to upload it until now.

http://cygwin.com/ml/cygwin/2010-01/msg00767.html

DESCRIPTION
===
ImageMagick® is a software suite to create, edit, and compose bitmap
images. It can read, convert and write images in a variety of formats
(about 100) including GIF, JPEG, JPEG-2000, PNG, PDF, PhotoCD, TIFF, and
DPX. Use ImageMagick to translate, flip, mirror, rotate, scale, shear
and transform images, adjust image colors, apply various special
effects, or draw text, lines, polygons, ellipses and Bézier curves.

For more information check its homepage:  http://www.imagemagick.org


NEWS

* perl fixes

CHANGES
===
* fixed setup.hint dependencies

UPDATE
==
To update your installation, click on the "Install Cygwin now" link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Save it and run setup, answer the questions and pick up
the above mentioned packages.


DOWNLOAD:
=
Note that downloads from sources.redhat.com (aka cygwin.com) aren't
allowed due to bandwidth limitations.  This means that you will need
to find a mirror which has this update, please choose the one nearest to
you: http://cygwin.com/mirrors.html


QUESTIONS:
==
If you want to make a point or ask a question the Cygwin mailing
list is the appropriate place.


CYGWIN-ANNOUNCE UNSUBSCRIBE INFO:
=
To unsubscribe to the cygwin-announce mailing list, look at the
"List-Unsubscribe: " tag in the email header of this message.  Send
email to the address specified there.  It will be in the format:

cygwin-announce-unsubscribe-you=yourdomain@cygwin.com


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

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

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

--
PGP/GPG key  (ID: 0x9F8A785D)  available  from  wwwkeys.de.pgp.net
key-fingerprint 550D F17E B082 A3E9 F913  9E53 3D35 C9BA 9F8A 785D

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



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



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



bash loop using mintty

2010-04-17 Thread ERIC HO
I reported a couple of times of the bash loop problem before. But it seems the 
problem could bot be duplicated
by others.
I use "mintty -" to start up a terminal session.
Today, I found out the problem. The loop is caused by set -o vi in my .bashrc. 
After I removed that statement,
 I can hit  shift F12 without bash looping (reported by task manager). 
If I start mintty without -, shift F12 just gives 4;2~  back.
Once I enter set -o vi, shift F12 hang and bash starts looping
With this information, I hope mintty users can duplicate this problem and 
hopefully a fix could be available.
Thanks.

Regards,

Eric.

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



setup.exe download has no Content-Length header

2010-04-17 Thread David Balažic
Hi!

When downloading http://www.cygwin.com/setup.exe with Firefox, the
server sends no Content-Length header,
so the download manager can not show a percentage progress. Here are
the headers captured with
the Live HTTP Headers plugin:

http://www.cygwin.com/setup.exe

GET /setup.exe HTTP/1.1
Host: www.cygwin.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://www.cygwin.com/

HTTP/1.1 200 OK
Date: Sat, 17 Apr 2010 19:51:41 GMT
Server: Apache/2.0.52 (Red Hat)
Last-Modified: Thu, 08 Apr 2010 15:55:13 GMT
Etag: "18e1397-a6213-b43f1a40"
Accept-Ranges: bytes
Vary: Accept-Encoding
Content-Encoding: gzip
Cache-Control: max-age=0
Expires: Sat, 17 Apr 2010 19:51:41 GMT
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: application/octet-stream

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



Re: ./ns command not WORKING AT ALL!!!

2010-04-17 Thread Christopher Faylor
On Sat, Apr 17, 2010 at 01:08:35PM -0500, Jeremy Bopp wrote:
>On 4/17/2010 12:42 PM, novice_246 wrote:
>> Christopher Faylor wrote:
>>> Nothing above points to this being related to Cygwin.  Could you elaborate
>>>on why you think this is something that could be handled by this mailing
>>>list?
>>>
>>> On Fri, Apr 16, 2010 at 05:35:32PM +0200, d.sastre.medina wrote:
 Hello,

 A quick google search points to this:
>>>
>>> Yes.  I was actually attempting a "teach someone to fish" exercise here.
>>> But I should know that that trick never works here.
>> 
>> FRIG WANNA!!! I JUST ASK FOR A LITTLE HELP AND WANNA GETTING ON LIKE A BUNCH
>> OF PUSSYHOLES!!
>
>Damn!  I think you made cgf cry with that one!

Jeremy, you know me so well.

I need to stop typing now and go eat a box of chocolates to console
myself.

Sniff.

cgf

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



Re: DBD-DB2-1.78 driver for Perl V5.10 under CYGWIN 1.7.4

2010-04-17 Thread ERIC HO

The attached script file was provided to me by T.Allsopp and it works. His 
email to cygwin somehow never delivered.

Regards,

Eric.


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

Re: bash loop using mintty

2010-04-17 Thread Andy Koppe
ERIC HO wrote:
> I reported a couple of times of the bash loop problem before. But it seems 
> the problem could bot be duplicated
> by others.
> I use "mintty -" to start up a terminal session.
> Today, I found out the problem. The loop is caused by set -o vi in my 
> .bashrc. After I removed that statement,
>  I can hit  shift F12 without bash looping (reported by task manager).
> If I start mintty without -, shift F12 just gives 4;2~  back.
> Once I enter set -o vi, shift F12 hang and bash starts looping
> With this information, I hope mintty users can duplicate this problem and 
> hopefully a fix could be available.

That would be a bash/readline problem, not a mintty problem. Shift+F12
in mintty sends the same keycode that xterm sends: '\e[24;2~'. I
suspect though that it is simply a case of vi mode interpreting that
keycode in some vi-ish way. A vi expert will have to pronounce on
that.

Andy

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



Re: bash loop using mintty

2010-04-17 Thread ERIC HO
Hi Andy, you are right, I  just tested it under xterm and bash loops as well 
with shift F12.

Eric

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



Re: gcc: building gcc-4.5.0 for Cygwin

2010-04-17 Thread Paul Bibbings
Jerry DeLisle  writes:
> I have not had any problems building with Cygwin 1.7 on WinNT or Win7.
> You do have to make sure you have the mpc complex math library
> installed.  Other than that I have had no problems.
>
> Jerry

I've had no problems with the build itself, as far as I can tell.  The
issue I faced was over paths to the cyg<...>.dlls that it put in
/opt/gcc-4.5.0/bin, having configured it to install in
/opt/gcc-4.5.0. Obviously the runtime for programs built with gcc-4.5.0
requires these over the counterparts installed in /usr/bin by the Cygwin
versions with the same name.  As I reported in a previous post, I get
around this presently by adding a run target to my makefiles which
prepends /opt/gcc-4.5.0 to the path before running.  As I regularly
switch between several versions, including the Cygwin-installed gcc-3
and gcc-4, using the `alternatives' system, I had wanted to avoid
hard-setting the path only to face the same issues when switching away
from 4.5, which I am really only using to get a head start on C++0x.

The .dlls in question are:

21:10:29 Paul bibbi...@jijou
~ $ls -l /opt/gcc-4.5.0/bin | grep dll
-rwxr-xr-x 1 ...  437743 Apr 15 09:08 cyggcc_s-1.dll
-rwxr-xr-x 1 ...  271146 Apr 15 09:08 cyggomp-1.dll
-rwxr-xr-x 1 ...   55679 Apr 15 09:08 cygssp-0.dll
-rwxr-xr-x 1 ... 5829289 Apr 15 09:07 cygstdc++-6.dll

Maybe I am missing something in having these in the first place.  I
didn't get any new .dlls for gcc-4.4.1, for instance:

21:20:52 Paul bibbi...@jijou
~ $ls -l /opt/gcc-4.4.1/bin | grep dll

21:22:23 Paul bibbi...@jijou

Can I ask, how did you configure your build?  Do you have these .dlls?
Also, do you have gcc-3 and/or -4 installed, with the .dlls these
require in /usr/bin?

Regards

Paul Bibbings


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



Re: bash loop using mintty

2010-04-17 Thread Jeremy Bopp
On 4/17/2010 3:31 PM, ERIC HO wrote:
> Hi Andy, you are right, I  just tested it under xterm and bash loops as well 
> with shift F12.

I just reproduced this problem with a simpler test case.  Enter vi
editing mode under bash and then type ESC-;.  That is, press the escape
key and then hit the semicolon key.  I'm not sure why offhand, but the
semicolon while in vi-movement-mode causes bash to spin out.

-Jeremy

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



Re: Running a Matlab script remotely via ssh

2010-04-17 Thread Matthew B. Smith
I'm pretty sure you cannot use a window.  I think matlab has another cmd
line argument such as -batch to run w/out windows?

mbs

On Sat, 2010-04-17 at 15:04 -0300, Geraldo Veiga wrote:
> I have Cygwin installed in a Vista/64 system with sshd enabled.  I
> would like to login remotely via ssh and run a script written in
> Matlab.
> Directly from the DOS command line this is possible:
> 
> matlab -nosplash -nodesktop -minimize -r test_batch -logfile logfile
> 
> No such luck when I try the same with a remote session.  The thing
> just hangs there until I interrupt it with CTRL-C.
> 
> Is there any way around this?  Matlab is a Windows application and
> always opens a window when executed.  That "-minimize" in the
> command-line  just hides the obvious.
> 
> Thanks in advance for your help
> 
> 
> 
> 
> --
> Geraldo Veiga 
> 
> --
> Problem reports:   http://cygwin.com/problems.html
> FAQ:   http://cygwin.com/faq/
> Documentation: http://cygwin.com/docs.html
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> 



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



Re: DBD-DB2-1.78 driver for Perl V5.10 under CYGWIN 1.7.4

2010-04-17 Thread Reini Urban

ERIC HO schrieb:

The attached script file was provided to me by T.Allsopp and it works.

> His email to cygwin somehow never delivered.

Of course shell script attachments can easily be deleted.

Please send that to Praveen upstream so that more users can benefit from 
that. http://search.cpan.org/dist/DBD-DB2/


The bugtracker is at
  https://rt.cpan.org/Public/Dist/Display.html?Name=DBD-DB2

He needs only the 5.10 part to strip -Wl,--export-all-symbols

--- Makefile.PL.orig2008-07-01 14:35:53.356596500 +1200
+++ Makefile.PL 2008-07-01 14:39:09.480356700 +1200
@@ -134,8 +134,14 @@
   }
 }
   }
-
-  $sysliblist = "-L$DB2LIB -ldb2";
+
+  if ($os eq 'cygwin') {
+$sysliblist = "-L$DB2LIB -ldb2cli -ldb2api";
+$opts{LDDLFLAGS} = $Config{lddlflags};
+$opts{LDDLFLAGS} =~ s/-Wl,--export-all-symbols //;
+  } else {
+$sysliblist = "-L$DB2LIB -ldb2";
+  }

--
Reini Urban
http://phpwiki.org/  http://murbreak.at/

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



Re: Running a Matlab script remotely via ssh

2010-04-17 Thread Larry Hall (Cygwin)

On 4/17/2010 2:17 PM, Jeremy Bopp wrote:

On 4/17/2010 1:04 PM, Geraldo Veiga wrote:

I have Cygwin installed in a Vista/64 system with sshd enabled.  I
would like to login remotely via ssh and run a script written in
Matlab.
Directly from the DOS command line this is possible:

matlab -nosplash -nodesktop -minimize -r test_batch -logfile logfile

No such luck when I try the same with a remote session.  The thing
just hangs there until I interrupt it with CTRL-C.

Is there any way around this?  Matlab is a Windows application and
always opens a window when executed.  That "-minimize" in the
command-line  just hides the obvious.

Thanks in advance for your help


Since it's a Windows-native build which needs to open a window, running
it remotely won't be an option unless you give the sshd service the
right to interact with the desktop.


And of course MS removed that feature in Vista so...

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


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



Re: cron error can't switch user context

2010-04-17 Thread Cyrille Lefevre


Le 17/04/2010 01:43, Tom Schutter a écrit :

On Fri 2010-04-16 17:06, Cyrille Lefevre wrote:

Le 16/04/2010 20:42, Tom Schutter a écrit :


http://www.cygwin.com/acronyms/#PCYMTWLL


I have number of machines running Windows2003 and Cygwin 1.7.5.  On most cron 
works.  But on one (lemon) it does not.  It appears that on lemon cron cannot 
switch the user context.

Cronevents on lemon shows:

2010/04/15 17:19:01 [SYSTEM] /usr/sbin/cron: PID 656: (tschutter) CMD 
(/usr/bin/python /cygdrive/f/production-sync/production-sync.py)
2010/04/15 17:19:01 [SYSTEM] /usr/sbin/cron: PID 656: (CRON) error (can't 
switch user context)

/var/log/cron.log is empty on all machines.


let's configure syslogd from inetutils to have some logs :
syslogd-config --yes


I don't have a syslogd-config.  Ok.  So I installed inetutils.  Now I have a 
syslogd-config which I have just run.  And I have started syslogd.
After setting up syslogd, I still see an empty /var/log/cron.log and 
/var/log/messages.


did you restart cron ?
here is my log for an * * * * * date >> /tmp/date.log entry :
Apr 17 12:20:40 MV0213 /usr/sbin/cron: PID 2668: (CRON) STARTUP (V5.0)
Apr 17 12:20:41 MV0213 cron: PID 3364: `cron' service started
Apr 17 12:21:01 MV0213 /usr/sbin/cron: PID 3064: (root) CMD (date >> 
/tmp/date.log)



you may need to configure sshd before to have the right permissions
on /var/empty, etc. (ssh-host-config --yes --user "${CYGSERVER_USER}"
--pwd "${CYGSERVER_PASS}" where CYGSERVER_USER=cyg_server and
CYGSERVER_PASS=whatever you want)


I am not sure what sshd has to do with cron.


IFAIK, if you configure cron w/o configure ssh first, cron-diagnose will 
break.


> In my case sshd cannot run as the cygserver user because it must be a 
domain user.


under 2K3, I'm running sshd w/ a local cyg_server account + lsa + passwd 
-R w/o problems whatever the passwordless account is local admin or not 
or domain lambda user. not tried using a domain admin since I don't have 
access to a domain admin account. however, a local admin is sufficient 
to stop/start services, etc. so, a domain admin isn't required...



PS : well, I prefer the legacy one than the ng one...

PS2: IMHO, linux^Wcygwin cron(^W^Wlinux) sucks bcoz it doesn't report on
tasks return codes as a true unix does... (i.e.:<   root 1331 c Tue Feb
   2 17:32:36 MET 2010 rc=1)


The cron daemon is running as SYSTEM on all machines.


2K3 may need to be running under cyg_server ?


Why?  I have not seen any doc stating that.


to configure cron, I use :

cron-config<<  EOF
yes

no
no
no
${CYGSERVER_PASS}
${CYGSERVER_PASS}
no
EOF

PS : doesn't support csih yet :-(


Your yes and no responses do not match what cron-config asks me:

lemon:/$ cron-config
Do you want to install the cron daemon as a service? (yes/no) yes
Enter the value of CYGWIN for the daemon: [ ]

You must decide under what account the cron daemon will run.
If you are the only user on this machine, the daemon can run as yourself.
This gives access to all network drives but only allows you as user.
To run multiple users, cron must change user context without knowing
   the passwords. There are three methods to do that, as explained in
   http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-nopasswd1
If all the cron users have executed "passwd -R" (see man passwd),
   which provides access to network drives, or if you are using the
   cyglsa package, then cron should run under the local system account.
Otherwise you need to have or to create a privileged account.
   This script will help you do so.
Do you want the cron daemon to run as yourself? (yes/no) no

Were the passwords of all cron users saved with "passwd -R", or
are you using the cyglsa package ? (yes/no) yes


try to answer no, here, then, you will be asked for cyg_server 
password... and may still use passwd -R :-)



The cron daemon will run as SYSTEM.

Running cron_diagnose ...
... no problem found.

Do you want to start the cron daemon as a service now? (yes/no) yes
OK. The cron daemon is now running.


well, the last no is because I prefer to launch the service myself :-)



lemon:/$

It appears that cron-config decides to run cron under the SYSTEM account 
because I indicated that I was using cyglsa.


cyglsa is running on all machines.


did you reboot after configuring cyglsa ?


cygserver is not running on any machine.


2K3 may need cygserver as well as passwd -D?


s/-D/-R/ sorry


If I do a "passwd -R", cron will work.  But I don't want to do a "passwd -R".  
I am forced to change my password every 60 days.  Then I would have to go to every cygwin box and 
change the password there as well.


don't know how to make things work w/o passwd -R, sorry.

however, an "ssh net user user passwd" is not so hard to do :-)
alternative, if using a local account is "net user user /expire:no"



Regards,

Cyrille Lefevre
--
mailto:cyrille.lefevre-li...@laposte.net



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

Re: ./ns command not WORKING AT ALL!!!

2010-04-17 Thread Dave Korn
On 17/04/2010 21:01, Christopher Faylor wrote:
> On Sat, Apr 17, 2010 at 01:08:35PM -0500, Jeremy Bopp wrote:
>> On 4/17/2010 12:42 PM, novice_246 wrote:
>>> Christopher Faylor wrote:
 Nothing above points to this being related to Cygwin.  Could you elaborate
 on why you think this is something that could be handled by this mailing
 list?

 On Fri, Apr 16, 2010 at 05:35:32PM +0200, d.sastre.medina wrote:
> Hello,
>
> A quick google search points to this:
 Yes.  I was actually attempting a "teach someone to fish" exercise here.
 But I should know that that trick never works here.
>>> FRIG WANNA!!! I JUST ASK FOR A LITTLE HELP AND WANNA GETTING ON LIKE A BUNCH
>>> OF PUSSYHOLES!!
>> Damn!  I think you made cgf cry with that one!
> 
> Jeremy, you know me so well.
> 
> I need to stop typing now and go eat a box of chocolates to console
> myself.
> 
> Sniff.


  Meanwhile, I'll teach *your* dog to play the piano!

cheers,
  DaveK

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



Re: ./ns command not WORKING AT ALL!!!

2010-04-17 Thread Dave Korn
On 17/04/2010 18:42, novice_246 wrote:
> 
> FRIG WANNA!!! I JUST ASK FOR A LITTLE HELP AND WANNA GETTING ON LIKE A BUNCH
> OF PUSSYHOLES!!

  Yes, but you're being an idiot, so this is what you get.  Enjoy!



  OK, let's spell it out for you step by step:

1:  You got a program off your tutors at college.
2:  It didn't work.
3:  You come and ask us, a completely different bunch of people who've never
met you or the tutors you got this program from, if we know what's up with it?

  Of course we don't, how could we?  Magic?

cheers,
  DaveK


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



Re: bash loop using mintty

2010-04-17 Thread Andy Koppe
Jeremy Bopp wrote:
> On 4/17/2010 3:31 PM, ERIC HO wrote:
>> I  just tested it under xterm and bash loops as well with shift F12.
>
> I just reproduced this problem with a simpler test case.  Enter vi
> editing mode under bash and then type ESC-;.  That is, press the escape
> key and then hit the semicolon key.  I'm not sure why offhand, but the
> semicolon while in vi-movement-mode causes bash to spin out.

When you say spin out, do you mean it's fully loading a core? That
would obviously be a bug, but I don't see that. For me, both with
ESC-; and Shift-F12 it's just sitting there waiting for more input,
which to me looks like normal operation because I do know that the
escape character at the start of both of those takes vi into command
mode and I've got no idea what either ';' or '[24;2~' might mean in
command mode. In both cases, pressing Enter a couple of time produces
a new prompt.

Andy

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



Re: Running a Matlab script remotely via ssh

2010-04-17 Thread Geraldo Veiga
Thanks for the follow-ups.  It turns out that I tried the same
experiment on another Vista installation (32bit this time around) and
it run Matab scripts via ssh without a hitch. Officially the
command-line should look like this:

matlab -nodesktop -r test_batch

In practice the option "-nodesktop"  was not necessary.  Now, I am
still not sure what the problem with the other system might be.  Maybe
 Vista 64bit is complaining about something else, maybe some firewall
issue, maybe a service configuration.  I will only have physical
access to this system on Monday for further testing.

Of course, the real lesson here is that you shouldn't attempt this
stuff on Windows, especially not on Vista.

On Sat, Apr 17, 2010 at 5:58 PM, Matthew B. Smith
 wrote:
> I'm pretty sure you cannot use a window.  I think matlab has another cmd
> line argument such as -batch to run w/out windows?
>
> mbs
>
> On Sat, 2010-04-17 at 15:04 -0300, Geraldo Veiga wrote:
>> I have Cygwin installed in a Vista/64 system with sshd enabled.  I
>> would like to login remotely via ssh and run a script written in
>> Matlab.
>> Directly from the DOS command line this is possible:
>>
>> matlab -nosplash -nodesktop -minimize -r test_batch -logfile logfile
>>
>> No such luck when I try the same with a remote session.  The thing
>> just hangs there until I interrupt it with CTRL-C.
>>
>> Is there any way around this?  Matlab is a Windows application and
>> always opens a window when executed.  That "-minimize" in the
>> command-line  just hides the obvious.
>>
>> Thanks in advance for your help

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



Re: bash/readline spinout in vi command mode

2010-04-17 Thread Jeremy Bopp
Changed the subject to protect the innocent...

Andy Koppe wrote:
> Jeremy Bopp wrote:
>> On 4/17/2010 3:31 PM, ERIC HO wrote:
>>> I  just tested it under xterm and bash loops as well with shift F12.
>> I just reproduced this problem with a simpler test case.  Enter vi
>> editing mode under bash and then type ESC-;.  That is, press the escape
>> key and then hit the semicolon key.  I'm not sure why offhand, but the
>> semicolon while in vi-movement-mode causes bash to spin out.
> 
> When you say spin out, do you mean it's fully loading a core? That
> would obviously be a bug, but I don't see that. For me, both with
> ESC-; and Shift-F12 it's just sitting there waiting for more input,
> which to me looks like normal operation because I do know that the
> escape character at the start of both of those takes vi into command
> mode and I've got no idea what either ';' or '[24;2~' might mean in
> command mode. In both cases, pressing Enter a couple of time produces
> a new prompt.

Yes, it fully loads a core.  What's strange is that if I hit ESC-F
before the first time I hit ESC-; in a new shell session the problem is
avoided.  From what I read at http://linux.die.net/man/3/readline, the
key binding for both F and ; in command mode should be vi-char-search,
so I'm not sure what the difference is between the two bindings.

I get the same behavior under a Windows terminal running bash as well.
I repeated all the tests both with and without my .inputrc file, minimal
as it is, and got the same results every time.

On a whim I also tried this in irb, which is the only other program I
frequently use which I know uses libreadline, but I could not reproduce
the problem.

If there is any other information I can provide, let me know what it is.
 My system is a fairly vanilla XP installation which I updated to the
latest packages earlier today.

-Jeremy

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



Re: ./ns command not WORKING AT ALL!!!

2010-04-17 Thread Christopher Faylor
On Sun, Apr 18, 2010 at 02:00:21AM +0100, Dave Korn wrote:
>Meanwhile, I'll teach *your* dog to play the piano!

Thanks.  I appreciate the help as I get through this emotional period.

cgf

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