Re: Re: Why bash failed to match this pattern?

2009-06-04 Thread Mark J. Reed
On Fri, Jun 5, 2009 at 2:35 AM, Pan ruochen
> But some bash does match the pattern:

It's possible that the behavior has changed between bash versions, but
the behavior is not Cygwin-specific.  3.2.17 on OS X also suppresses
metacharacters with quotation marks, and the documentation indicates
that this is the expected behavior. See

http://www.gnu.org/software/bash/manual/bashref.html#Conditional-Constructs

Under [[...]],  third paragraph: "An additional binary operator, ‘=~’,
is available [...] Any part of the pattern may be quoted to force it
to be matched as a string."




> $bash --version
> GNU bash, version 3.2.33(1)-release (i386-redhat-linux-gnu)
> Copyright (C) 2007 Free Software Foundation, Inc.
>
> Maybe some settings affect bash's behaviour.
>
> PRC
>



-- 
Mark J. Reed 

--
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: Re: Why bash failed to match this pattern?

2009-06-04 Thread Pan ruochen
But some bash does match the pattern:

$bash --version
GNU bash, version 3.2.33(1)-release (i386-redhat-linux-gnu)
Copyright (C) 2007 Free Software Foundation, Inc.

Maybe some settings affect bash's behaviour.

PRC

--
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: Why bash failed to match this pattern?

2009-06-04 Thread Mark J. Reed
On Fri, Jun 5, 2009 at 1:10 AM, Pan ruochen wrote:
> Hi All,
>
> My current version of bash on cygwin failed to match this pattern:
> ***
> target=ar
> if [[ "$target" =~ '^a' ]]; then
>    echo Matched
> else
>    echo Unmatched
> fi

Not a Cygwin question.; that fails in any bash.  The quotes suppress
the special meaning of ^ and make it try to match literally.  Lose
them:

if [[ "$target" =~ ^a ]]; then
...


-- 
Mark J. Reed 

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



grep -f option is not working in release of grep (2.5.3-1) - cygcheck.out file attached

2009-06-04 Thread Tulasi Ram
I have tried by using below command. It didn’t work.

$ grep -E -v -f "C:\Log\FindDeploymentErrors_Exclude.txt"
CM_Setup2.log | grep -E -f "C:\Log\FindDeploymentErrors_Error.txt" -n
1>"C:\Log\cc.txt"

Pattern file( FindDeploymentErrors_Error.txt)is below..

A member could not be added
Access is denied
cacl: object
Cannot add rows to
Error:
ERROR:
Error from
Error occurred while loading document
is not recognized as an external command
is not recognized as an internal or external command
Usage:
recognized

If I use above command to search patterns in  CM_Setup2.log, the
output file cc.txt is showing only last pattern( recognized) search
results.
It seems it is overwriting one pattern results with next pattern
results and finally shows the last pattern.
I need the all pattern search results in same file i.e., cc.txt.

Attached is the cygcheck.out file FYI

Thanks,
Tulasiram


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: grep -f option is not working in release of grep (2.5.3-1)

2009-06-04 Thread Tulasi Ram
I have tried by using below command. It didn’t work.

$ grep -E -v -f "C:\Log\FindDeploymentErrors_Exclude.txt"
CM_Setup2.log | grep -E -f "C:\Log\FindDeploymentErrors_Error.txt" -n
1>"C:\Log\cc.txt"

Pattern file( FindDeploymentErrors_Error.txt)is below..

A member could not be added
Access is denied
cacl: object
Cannot add rows to
Error:
ERROR:
Error from
Error occurred while loading document
is not recognized as an external command
is not recognized as an internal or external command
Usage:
recognized

If I use above command to search patterns in  CM_Setup2.log, the
output file cc.txt is showing only last pattern( recognized) search
results.
It seems it is overwriting one pattern results with next pattern
results and finally shows the last pattern.
I need the all pattern search results in same file i.e., cc.txt.

Attached is the cygcheck.out file FYI

Thanks,
Tulasiram


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/

Why bash failed to match this pattern?

2009-06-04 Thread Pan ruochen
Hi All,

My current version of bash on cygwin failed to match this pattern:
***
target=ar
if [[ "$target" =~ '^a' ]]; then
echo Matched
else
echo Unmatched
fi
***

$bash --version
GNU bash, version 3.2.48(21)-release (i686-pc-cygwin)
Copyright (C) 2007 Free Software Foundation, Inc.

The older version of bash can match the same pattern before I upgrade cygwin.
What is the possible reason?

PRC
Jun 5, 2009

--
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] gmp-4.3.1-1 for cygwin-1.7

2009-06-04 Thread David Billinghurst
On Fri, Jun 5, 2009 at 1:03 PM, Dave Korn wrote:
> Yaakov (Cygwin/X) wrote:
>> On 04/06/2009 21:22, David Billinghurst wrote:
>>> As the gmp and mpfr maintainer, can I do anything to fix this?
>>
>> Are you able to reproduce this?  I see you built these with gcc4 but
>> with a static libgcc; maybe adding -shared-libgcc would help?
>
>  This is the same problem we experienced with file-5.0.whatever-it-was just a
> little while ago.  There is an old bug in ld thst emits relocs that shouldn't
> be there when compiling a DLL; these relocs then end up getting turned into
> invalid addresses by rebase, which has no reason to believe there's anything
> incorrect about them and probably nothing it could do even if it did.
>
>  If you build with fresh binutils from CVS head, the created DLL doesn't have
> the problematic reloc.  We're rushing out a new binutils release just as soon
> as PR977 can be resolved.

I'll try this tonight.  I have a recent CVS binutils on a machine at home.

--
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] [1.5] Updated: {gettext/gettext-devel/libgettextpo0/libintl8/libasprintf0}-0.17-3

2009-06-04 Thread Yaakov (Cygwin/X)

On 02/04/2009 19:29, Charles Wilson wrote:

I like it. You're basically using the AUTOPOINT variable itself as the
"out of band" communication mechanism.  I've got a build running now;
but it will be a while before the test suite finishes up and I've dotted
all the i's for a new release.


Looks good to me; cygport 0.9.6 will depend on it.


Yaakov

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



Upcoming cygport release

2009-06-04 Thread Yaakov (Cygwin/X)
I'm just about ready to make a cygport release for 1.7 (assuming I 
manage to get perl to fork() for autotools).


Here is a summary of the changes so far:

http://cygwin-ports.svn.sourceforge.net/viewvc/cygwin-ports/cygport/trunk/NEWS?r1=6016&r2=6685&view=patch

If you reported any bugs for which I haven't acknowledged committing a 
patch, please let me know ASAP.



Yaakov

--
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] gmp-4.3.1-1 for cygwin-1.7

2009-06-04 Thread Dave Korn
Yaakov (Cygwin/X) wrote:
> On 04/06/2009 21:22, David Billinghurst wrote:
>> As the gmp and mpfr maintainer, can I do anything to fix this?
> 
> Are you able to reproduce this?  I see you built these with gcc4 but
> with a static libgcc; maybe adding -shared-libgcc would help?

  This is the same problem we experienced with file-5.0.whatever-it-was just a
little while ago.  There is an old bug in ld thst emits relocs that shouldn't
be there when compiling a DLL; these relocs then end up getting turned into
invalid addresses by rebase, which has no reason to believe there's anything
incorrect about them and probably nothing it could do even if it did.

  If you build with fresh binutils from CVS head, the created DLL doesn't have
the problematic reloc.  We're rushing out a new binutils release just as soon
as PR977 can be resolved.

cheers,
  DaveK


--
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] gmp-4.3.1-1 for cygwin-1.7

2009-06-04 Thread Yaakov (Cygwin/X)

On 04/06/2009 21:22, David Billinghurst wrote:

As the gmp and mpfr maintainer, can I do anything to fix this?


Are you able to reproduce this?  I see you built these with gcc4 but 
with a static libgcc; maybe adding -shared-libgcc would help?



Yaakov

--
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] gmp-4.3.1-1 for cygwin-1.7

2009-06-04 Thread David Billinghurst
On Fri, Jun 5, 2009 at 12:11 PM, Yaakov  wrote:
>
> On 23/05/2009 20:08, David Billinghurst wrote:
>>
>> Version 4.3.1-1 of gmp, libgmp3, libgmpxx4 and libgmp-devel for
>> cygwin-1.7 have been uploaded.
>
> The current versions of libgmp3 and libmpfr1 for 1.7 cause gcc (namely cc1, 
> cc1plus, and friends) to segfault
> if they are rebased.  Replacing the DLLs from the tarballs fixes the problem.

As the gmp and mpfr maintainer, can I do anything to fix this?

    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: [ANNOUNCEMENT] gmp-4.3.1-1 for cygwin-1.7

2009-06-04 Thread Yaakov (Cygwin/X)

On 23/05/2009 20:08, David Billinghurst wrote:

Version 4.3.1-1 of gmp, libgmp3, libgmpxx4 and libgmp-devel for
cygwin-1.7 have been uploaded.


The current versions of libgmp3 and libmpfr1 for 1.7 cause gcc (namely 
cc1, cc1plus, and friends) to segfault if they are rebased.  Replacing 
the DLLs from the tarballs fixes the problem.



Yaakov

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



GCC --enable-auto-import problem

2009-06-04 Thread Huang Bambo
In cygwin 1.7:

1. download db-4.7.25 from oracle at
http://www.oracle.com/database/berkeley-db/index.html (havn't tested
on other version)
2. configure like : ../dist/configure --prefix=/home/Bambo/db-for-1.7
--enable-cxx --enable-pthread_api
3. make, it will take you a few minutes
4. write a program like :
#include 

int main( void )
{
       Db db( NULL, 0 );
       return 0;
}

5.compile like :g++ -o t test.cpp -L/home/Bambo/db-for-1.7/lib
-ldb_cxx -I/home/Bambo/db-for-1.7/include
will compile and link ok with information:
Info: resolving typeinfo for std::exception by linking to
__imp___ZTISt9exception (auto-import)
/usr/lib/gcc/i686-pc-cygwin/4.3.2/../../../../i686-pc-cygwin/bin/ld:
warning: auto-importing has been activated without
--enable-auto-import specified on the command line.
This should work unless it involves constant data structures
referencing symbols from auto-imported DLLs.

and the file t.exe can't run, direct run in windows command shell will
report "can't load" with error code 0x0005.
( use:"ldd t.exe" to find dlls used by the file will hung ldd)

6.compile like:g++ -o t test.cpp -L/home/Bambo/db-for-1.7/lib -ldb_cxx
-I/home/Bambo/db-for-1.7/include -Wl,--enable-auto-import
Then everything goes fine.
ldd t.exe will report:

$ ldd t.exe
       ntdll.dll => /cygdrive/c/WINDOWS/system32/ntdll.dll (0x7c92)
       kernel32.dll => /cygdrive/c/WINDOWS/system32/kernel32.dll (0x7c80)
       cygwin1.dll => /usr/bin/cygwin1.dll (0x6100)
       ADVAPI32.DLL => /cygdrive/c/WINDOWS/system32/ADVAPI32.DLL (0x77da)
       RPCRT4.dll => /cygdrive/c/WINDOWS/system32/RPCRT4.dll (0x77e5)
       Secur32.dll => /cygdrive/c/WINDOWS/system32/Secur32.dll (0x77fc)
       cyggcc_s-1.dll => /usr/bin/cyggcc_s-1.dll (0x67f0)
       cygstdc++-6.dll => /usr/bin/cygstdc++-6.dll (0x6c48)


Who can tell me why??? Everything goes fine under cygwin 1.5 with
gcc3(gcc4 not tested), even
without "-Wl,--enable-auto-import"

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



GCC --enable-auto-import problem

2009-06-04 Thread Huang Bambo
1. download db-4.7.25 from oracle at
http://www.oracle.com/database/berkeley-db/index.html (havn't tested
on other version)
2. configure like : ../dist/configure --prefix=/home/Bambo/db-for-1.7
--enable-cxx --enable-pthread_api
3. make, it will take you a few minutes
4. write a program like :
#include 

int main( void )
{
       Db db( NULL, 0 );
       return 0;
}

5.compile like :g++ -o t test.cpp -L/home/Bambo/db-for-1.7/lib
-ldb_cxx -I/home/Bambo/db-for-1.7/include
will compile and link ok with information:
Info: resolving typeinfo for std::exception by linking to
__imp___ZTISt9exception (auto-import)
/usr/lib/gcc/i686-pc-cygwin/4.3.2/../../../../i686-pc-cygwin/bin/ld:
warning: auto-importing has been activated without
--enable-auto-import specified on the command line.
This should work unless it involves constant data structures
referencing symbols from auto-imported DLLs.

and the file t.exe can't run, direct run in windows command shell will
report "can't load" with error code 0x0005.
( use:"ldd t.exe" to find dlls used by the file will hung ldd)

6.compile like:g++ -o t test.cpp -L/home/Bambo/db-for-1.7/lib -ldb_cxx
-I/home/Bambo/db-for-1.7/include -Wl,--enable-auto-import
Then everything goes fine.
ldd t.exe will report:

$ ldd t.exe
       ntdll.dll => /cygdrive/c/WINDOWS/system32/ntdll.dll (0x7c92)
       kernel32.dll => /cygdrive/c/WINDOWS/system32/kernel32.dll (0x7c80)
       cygwin1.dll => /usr/bin/cygwin1.dll (0x6100)
       ADVAPI32.DLL => /cygdrive/c/WINDOWS/system32/ADVAPI32.DLL (0x77da)
       RPCRT4.dll => /cygdrive/c/WINDOWS/system32/RPCRT4.dll (0x77e5)
       Secur32.dll => /cygdrive/c/WINDOWS/system32/Secur32.dll (0x77fc)
       cyggcc_s-1.dll => /usr/bin/cyggcc_s-1.dll (0x67f0)
       cygstdc++-6.dll => /usr/bin/cygstdc++-6.dll (0x6c48)


Who can tell me why??? Everything goes fine under cygwin 1.5 with gcc
3,( gcc4 in cygwin 1.5 not tested), even
without "-Wl,--enable-auto-import"

--
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: ASLR sometimes stops working on Vista with 1.7? [was: Re: Cygwin 1.7 release (was ...)]

2009-06-04 Thread Yaakov (Cygwin/X)

On 04/06/2009 14:28, Yaakov (Cygwin/X) wrote:

I'm having similar problems with Avast 4.8 Home Edition on Windows 7 RC
x64 with cygwin-1.7. I never had a problem with this A/V on XP with 1.5
or 1.7. This continues even after rebaseall and peflagsall. I have yet
to try removing Avast.


OK, I've uninstalled Avast, disabled Windows Firewall and Defender, ran 
rebaseall and peflagsall (tried ASLR on and off), and I still the same 
errors.  I can't even bootstrap cygport now, it's so bad.



Yaakov

--
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: FAQ 4.46, applications interfere with subversion or not?

2009-06-04 Thread David Rothenberger

On 6/3/2009 8:37 AM, David Rothenberger wrote:

On 6/3/2009 8:20 AM, masc wrote:

When using cygwin's cvs2svn with subversion (1.6.2 r37639) while running
Avira AntiVir (http://www.avira.com/en/pages/index.php), svnadmin is 
failing

sporadically due to permission failure moving files.


The subversion code base has some hacks to retry various file operations 
to work around this issue. These hacks are enabled for a Windows build 
but not for Cygwin. I've attempted to port these hacks to Cygwin, but I 
may have missed an error code or three, thus not retrying some errors 
that should be retried.


I just uploaded a new version of Subversion for 1.5 with a fix for the 
retry patch. I had missed a case when moving files.


Are you using Cygwin 1.5 or 1.7? I have disabled this hack in the 1.7 
build because I was hoping 1.7's more robust file renaming and deleting 
code would come to the rescue.


It turns out that these problems still occur with 1.7, although less 
frequently, so I've also released new Subversion packages for 1.7 with 
the updated retry patch added.


--
David Rothenberger    daver...@acm.org

QOTD:
All I want is a little more than I'll ever get.


--
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: {subversion,subversion-apache2,subversion-devel,subversion-perl,subversion-python,subversion-ruby}-1.6.2-3

2009-06-04 Thread David Rothenberger
A new version of subversion is now available for download.

CYGWIN NEWS:

This version fixes the local patch to retry failing filesystem
operations to also retry failing move operations. This is necessary
to address problems due to other Windows components hold files or
directories open (e.g., virus scanners).

NEWS:
=
This is a new upstream release. See CHANGES (URL below) for more
information.

IMPORTANT: This release will silently upgrade your Subversion
working copies to the 1.6 format, rendering them unusable with
previous major versions of Subversion.

Please see the release notes

  http://subversion.tigris.org/svn_1.6_releasenotes.html

for more details about the changes in Subversion.

See

  http://svn.collab.net/viewvc/svn/tags/1.6.2/CHANGES

for more details about the changes in 1.6.2.

DESCRIPTION:

Subversion is a version control system designed to be a compelling
successor to CVS.

Please see

  http://svnbook.red-bean.com/en/1.5/index.html

for the latest official release of the Subversion Book, covering 1.5
or

  http://svnbook.red-bean.com/en/nightly/index.html

for the WIP version of the book covering 1.6.

DOWNLOAD:
=
Note that downloads from sourceware.org (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://cygwin.com/lists.html

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

-- 
David Rothenberger    daver...@acm.org



--
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] [1.7] Updated: {subversion,subversion-apache2,subversion-devel,subversion-perl,subversion-python,subversion-ruby}-1.6.2-4

2009-06-04 Thread David Rothenberger
A new version of subversion is now available for download. This
version is built for Cygwin 1.7.

CYGWIN NEWS:

I've restored the local patch to retry failing filesystem
operations, which a fix to also retry failing moves. This is
necessary to address problems due to other Windows components hold
files or directories open (e.g., virus scanners).

There were two test failures with Cygwin 1.7. One was related to
packing an FSFS filesystem. The other problem was that tests hung
using the serf HTTP library. This package still includes support for
serf, but if you encounter problems, please switch to the neon
library.

NEWS:
=
This is a new upstream release. See CHANGES (URL below) for more
information.

IMPORTANT: This release will silently upgrade your Subversion
working copies to the 1.6 format, rendering them unusable with
previous major versions of Subversion.

Please see the release notes

  http://subversion.tigris.org/svn_1.6_releasenotes.html

for more details about the changes in Subversion.

See

  http://svn.collab.net/viewvc/svn/tags/1.6.2/CHANGES

for more details about the changes in 1.6.2.

DESCRIPTION:

Subversion is a version control system designed to be a compelling
successor to CVS.

Please see

  http://svnbook.red-bean.com/en/1.5/index.html

for the latest official release of the Subversion Book, covering 1.5
or

  http://svnbook.red-bean.com/en/nightly/index.html

for the WIP version of the book covering 1.6.

DOWNLOAD:
=
Note that downloads from sourceware.org (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://cygwin.com/lists.html

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

-- 
David Rothenberger    daver...@acm.org



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



AltGr troubles (was: Re: Suggestion for terminal package maintainers)

2009-06-04 Thread Andy Koppe
Back to the cygwin list, since this is getting off-topic for cygwin-apps.

2009/6/3 Ken Brown:
> On 6/3/2009 10:32 AM, Corinna Vinschen wrote:
 On non-English keyboards, the right Alt key is called AltGr and returns
 the modifiers Left-Control/Right-Alt.
>>>
>>> So maybe the answer is that Left-Control+Left-Alt and
>>>  Right-Control+Right-Alt should each be interpreted as Control+Alt.  Someone
>>> deliberately trying to enter Control+Alt+some-other-key is not  likely to
>>> use different hands for Control and Alt.
>>
>> Wrong, imho.  If the non-modifier key is on the right side of the
>> keyboard, many users tend to press left-ctrl/right-alt/non-mod-key.
>> Trust me.  We had kind of the same discussion 10 or so years ago.
>
> OK.  I'm not interested in repeating an old discussion.  But it does seem
> that the release of 1.7 is a good time to decide whether the cygwin console
> is emulating linux or xterm or something else and then make this happen as
> much as possible.
>
> FWIW, I just tried Andy's echokeys program in xterm and in mintty
> [with Ctrl+Alt+A combinations].
> In xterm the output is \x81 with all four combinations of left/right.

That's with the "Meta sends Escape" option off, where Meta sets the
highest bit of the character instead of prefixing it with escape. That
only works with plain old 7-bit ASCII though.


> In mintty, the output is ^[^A with three of the four combinations,
> and nothing in the fourth.  The one that generates nothing
> is left-ctrl/right-alt (corresponding to AltGr).

Consider it a bug. I tried to do something too clever with AltGr in
mintty-0.3, but it didn't really make sense, so I gave up on it for
0.4. (Partly because afaik, the Win32 interface doesn't even give you
a way to find out whether a keyboard layout actually has an AltGr
key.)

So MinTTY is now back to standard AltGr == Ctrl + Alt behaviour. It
first tries the Windows keyboard layout, and if that comes back
empty-handed, it sends the Ctrl+Alt-modified keycode such as ^[^A. If
the keyboard layout does have an AltGr keycode, you can use
Ctrl+Shift+A instead to get the ^[^A code anyway. That's non-standard
though, and not exactly obvious.

One approach that would make some sense is to not consult the keyboard
layout for Ctrl+LeftAlt combinations (since the AltGr key is always on
the right). Trouble is, some people do use that to get AltGr codes for
keys on the right-hand side of the keyboard.

Michael Kaplan, Microsoft internationalisation expert and author of
the MS Keyboard Layout Creator utility, has had a long-running feud
with the MS Office team about this whole sorry topic, e.g.:

http://blogs.msdn.com/michkap/archive/2006/04/17/577196.aspx

Xwin, however, does manage to treat AltGr as a completely independent
modifier key, so I had a look how it does that. Turns out it's got a
rather interesting hack that ignores LeftCtrl key messages if they're
followed by a RightAlt message with the same timestamp. That doesn't
seem to be entirely reliable though, according to this post earlier
today:

http://www.cygwin.com/ml/cygwin-xfree/2009-06/msg1.html

Advice on what to do about this whole problem welcome.

Andy


ps: The latest MinTTY 0.4 "release candidate" can be found at
http://mintty.googlecode.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: ASLR sometimes stops working on Vista with 1.7? [was: Re: Cygwin 1.7 release (was ...)]

2009-06-04 Thread Yaakov (Cygwin/X)

On 04/06/2009 11:09, Charles Wilson wrote:

Well, you can never be SURE. I'd be surprised tho. I use AVG 8.5, which
doesn't cause any problems on my cygwin-1.5 installation under Vista,
nor on XP. Nobody has ever reported it as a BLODA before, AFAICT.  It
does do on-access scanning, which means it hooks in to the file-access
machinery just like other BLODAs (although I've turned that off for my
cygwin-1.7 and -1.5 trees, not that doing THAT would make any difference
to a true BLODA).  What I can't figure out is, if AVG were at fault, why
it would always "attack" my cygwin-1.7 tree, but never interfere with my
cygwin-1.5 tree on the same disk.  I can even run automake from a
cygwin-1.7 shell and watch it die, and immediately run automake from a
cygwin-1.5 shell in the same directory and it succeeds...so if it's a
BLODA, it's got a jones for cygwin-1.7.


I'm having similar problems with Avast 4.8 Home Edition on Windows 7 RC 
x64 with cygwin-1.7.  I never had a problem with this A/V on XP with 1.5 
or 1.7.  This continues even after rebaseall and peflagsall.  I have yet 
to try removing Avast.



In any event, since the remap problem happens in violation of everything
MS says ASLR is supposed to do, I blame Vista (or maybe
possible-BLODA-interfering-with-ASLR directly, not with cygwin itself).
I can inspect the new (randomized) base addresses of the ASLR-marked
DLLs after each reboot by looking at running processes using the
sysinternals process viewer.  They are (a) random and (b)
non-overlapping. But when the "*** failed to remap" occurs, I can
inspect the hung process and sure enough, foo.dll is loaded in some
strange place in memory that is NOT where ASLR promised to put it (and
there is no obvious conflicting DLL loaded where foo.dll was supposed to
go).


Leave it to MS to mess us up again...


Yaakov

--
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 SSH Multiple Users

2009-06-04 Thread Larry Hall (Cygwin)

Holikar, Sachin (ext) wrote:

Hello,

Thanks for the info Corinna but ultimately we aint able to start the service 
somehow. And only way to start is to start with the user mac using 
/usr/sbin/sshd.
But then no other user can connect via ssh to this machine. The work around we 
provided was copiying the ssh public keys of the user say admin and then
connecting from remote machine using ssh -l mac winxp and then admin gets the ssh access as mac. 
But now the requirement is to be able to login as different users to this machine and we are stuck up. Really confused what went wrong.

Any hint will be much appreciated.


Once you've started "sshd.exe" from the command line as come non-privileged
user (and this includes the Administrator account or members of that group
in this context), you won't be able to start "sshd.exe" as another user
(even as "SYSTEM" on XP) without changing the ownership of many files
that "sshd.exe" uses/needs.  See the email archives and/or the contents of
'ssh-host-config' for details.  Also, it is quite expected that "sshd.exe"
running as a non-privileged user cannot switch users with public key
authentication.  That's why "ssh-host-config" sets up "sshd.exe" to run
under the privileged "SYSTEM" account on XP.  If you don't want to do this
for some reason, you should read the openssh readme in
'/usr/share/doc/Cygwin' for the required privileges of the user running
"sshd.exe" that would permit this.  Of course, doing this really puts you
in the realm of "you know what you're doing" so you may not get allot of
willing responses from queries to this list with problems you have if you
go this route. ;-)

Good luck,

--
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: How to change the file mode to link?

2009-06-04 Thread Larry Hall (Cygwin)

Buchbinder, Barry (NIH/NIAID) [E] wrote:

Peng Yu wrote on Wednesday, June 03, 2009 10:17 PM:


On Wed, Jun 3, 2009 at 4:45 PM, Mark Geisert  wrote:

Peng Yu writes:

Is there such a cygwin command to extract the link from a windows
link.

Did you not see Barry's response on this thread?

I missed it before I sent this message. Sorry.


One more thing that you should be aware of:
  - The filename of a Windows shortcut is of the form .
  - The filename of a symbolic linkis of the form .
So if you create the link in the same directory as the shortcut,
you will clobber the shortcut.


This is, of course, true by default with the current Cygwin release (1.5).
In the next (1.7), the default changes so there is no worry of clobbering
the Windows shortcut with "ln -s".

Everybody likes a little trivia, right? ;-)

--
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: side effects after installing gcc-3.4.4.999

2009-06-04 Thread Greg Chicares
On 2009-06-04 16:05Z, Dave Korn wrote:
> enovack wrote:
[using gcc in eclipse; problem not solved by invoking 'gcc-3.exe']
>> It's just a pain since this used to work on my old laptop, which had a
>> previous version of cygwin installed.
> 
>   Sorry about that.  Primarily the goal of cygwin is to provide a linux-like
> environment and linux-like behaviour, and from that point of view the ability
> to switch the system default compiler was something that was a deficiency
> while it was missing.  We don't go out of our way to break other usages such
> as an external win32 app trying to launch a cygwin app from a non-cygwin
> environment, but we can't always make everything compatible with win32 at the
> expense of linux compatability.

Is there any reason not to recommend MinGW in this case,
since the OP's later followup says she just wants another
"compiler in addition to the Visual C one"?

--
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: grep -f option is not working in release of grep (2.5.3-1)

2009-06-04 Thread Christopher Faylor
On Thu, Jun 04, 2009 at 12:13:08PM -0400, Buchbinder, Barry (NIH/NIAID) [E] 
wrote:
>Tulasi Ram wrote on Thursday, June 04, 2009 3:04 AM:
>> In the latest release of grep (2.5.3-1), the -f option (read search
>> patters from a file) is not working for me. I have tried to search by
>> providing pattern file. 
>> 
>> I have tried by using below command. It didn?t work.
>> 
>> grep -F -B 10 -A 0 -f FindDeploymentErrors_Error.txt CM_Setup2.log
>
>If your patterns end with "$" to anchor to the end of a line, and one
>file has DOS/Windows line endings (\r\n) while the other has unix line
>endings (\n), the patterns will not match.
>
>See what the following says.
>$ file DeploymentErrors_Error.txt CM_Setup2.log

That wouldn't precisely be an issue when using the -F option:

-F, --fixed-strings
Interpret PATTERN as a list of fixed strings, separated by newlines,
any of which is to be matched.  (-F is specified by POSIX.)

However, it is a good point nonetheless since, if the .txt file contains
\r\n line endings the \r may be interpreted incorrectly.

cgf

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



RE: ssh from linux randomly hangs

2009-06-04 Thread Karl M

> Subject: ssh from linux randomly hangs
> From: ekingen
> Date: Thu, 4 Jun 2009 12:28:42 -0400
>
> Excuse me if this is a repeat question, I can't find it on internet .
> Sometimes ssh from suse linux to cygwin hangs, usually first time in the
> morning, I need to kill client ssh then all day it works fine. cygwin ssh
> version is 5.1p1-10 . linux site is :
> # uname -a
> Linux ssoadm1 2.6.16.21-0.8-bigsmp #1 SMP Mon Jul 3 18:25:39 UTC 2006 i686
> i686 i386 GNU/Linux
> # ssh -v
> OpenSSH_4.2p1, OpenSSL 0.9.8a 11 Oct 2005
>
Hi All...

I have seen the same thing between two windows XP machines. Always the first ssh
connection after a long period of no ssh activity would hang and subsequent ssh
connections would be fine. From my experience the problem was associated with 
the
server host, not the client host. I was always running the same Cygwin version 
and
OpenSSH version on both machines when it happened.

It seemed to be more frequent on some (slower? older?) XP laptops. Whenever I 
had
time to debug it, it worked fine, so I never did more than the tests in this 
thread. The
technology to detect that is impressive :-)

After significant use, I have not seen this problem with Cygwin 1.7 (on XP) and 
I have
not seen this problem with (newer? faster? Vista?) machines.

Thanks,

...Karl

_
Insert movie times and more without leaving Hotmail®. 
http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009

--
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 to run GNU Emacs from Windows icon

2009-06-04 Thread Ken Brown

On 6/4/2009 12:10 PM, David Karr wrote:

On 6/2/2009 7:18 AM, Ken Brown wrote:

On 6/2/2009 5:30 AM, Marc Girod wrote:

I can also start a Cygwin window, and run GNU emacs there (with a -nw
option).
It starts, although doesn't work well. The keyboard bindings are weird
for a
start (e.g. C-x C-c gives in fact C-x C-g, which forces you to exit
with M-x
kill-emacs).
I'm sure this was discussed already.

You need to have 'tty' in your CYGWIN environment variable in order to
prevent this from happening.  But even then, you'll find that many
keystrokes don't work as expected.  If you want to run emacs in a
terminal (rather than under X), you'll get much better results with
mintty or rxvt.

But none of this addresses the OP's original problem:


emacs: Terminal type cygwin is not defined.

My guess is that this is a terminfo issue.  Try installing the terminfo0
package.


Getting back to this, I already have terminfo0 installed.


In that case, I don't know why emacs isn't recognizing the cygwin 
terminal type.  It does for me.  But I don't think it's worth investing 
a lot of time in debugging this, since, as I said before, emacs doesn't 
work well in the Cygwin console anyway.


A better option would be to make a shortcut that runs mintty or rxvt 
with a command to start emacs.  Even better, since you already have an X 
server running, you could use something like the following (which is the 
way I usually start emacs when I have an X server running):


$ cat bin/startemacs.bat
@echo off
SET DISPLAY=127.0.0.1:0.0
SET CYGWIN_ROOT=\cygwin-1.7
SET RUN=%CYGWIN_ROOT%\bin\run
SET PATH=%CYGWIN_ROOT%\bin;%PATH%
%RUN% bash -l -c /usr/bin/emacs&

The target of my windows shortcut is then

  D:\cygwin-1.7\bin\run.exe D:\cygwin-1.7\home\kbrown\bin\startemacs.bat

Ken

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



ssh from linux randomly hangs

2009-06-04 Thread Can Ekingen
Excuse me if this is a repeat question, I can't find it on internet . 
Sometimes ssh from suse linux to cygwin hangs, usually first time in the 
morning, I need to kill client ssh then all day it works fine. cygwin ssh 
version is 5.1p1-10 . linux site is :
# uname -a
Linux ssoadm1 2.6.16.21-0.8-bigsmp #1 SMP Mon Jul 3 18:25:39 UTC 2006 i686 
i686 i386 GNU/Linux
# ssh -v
OpenSSH_4.2p1, OpenSSL 0.9.8a 11 Oct 2005

I debugged both sites , last lines of output on linux site :

debug3: remaining preferred: 
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
iadministra...@secap301-c1's password: 
debug3: packet_send2: adding 48 (len 67 padlen 13 extra_pad 64)
debug2: we sent a password packet, wait for reply
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug1: Entering interactive session.


on cygwin site , last lines of sshd :

debug2: input_userauth_request: try method password
debug3: mm_auth_password entering
debug3: mm_request_send entering: type 10
debug3: mm_auth_password: waiting for MONITOR_ANS_AUTHPASSWORD
debug3: mm_request_receive_expect entering: type 11
debug3: monitor_read: checking request 10
debug3: mm_request_receive entering
debug3: mm_answer_authpassword: sending result 1
debug3: mm_request_send entering: type 11
Accepted password for iadministrator from 157.150.190.9 port 35627 ssh2
debug3: mm_auth_password: user authenticated
debug1: monitor_child_preauth: iadministrator has been authenticated by 
privileg
ed process
debug3: mm_get_keystate: Waiting for new keys
debug3: mm_send_keystate: Sending new keys: 0x1001c6f0 0x1001b0c0
debug3: mm_request_receive_expect entering: type 24
debug3: mm_newkeys_to_blob: converting 0x1001c6f0
debug3: mm_request_receive entering
debug3: mm_newkeys_to_blob: converting 0x1001b0c0
debug3: mm_send_keystate: New keys have been sent
debug3: mm_send_keystate: Sending compression state
debug3: mm_request_send entering: type 24
debug3: mm_send_keystate: Finished sending state
debug3: mm_newkeys_from_blob: 0x1001f178(118)
debug2: mac_setup: found hmac-md5
debug3: mm_get_keystate: Waiting for second key
debug3: mm_newkeys_from_blob: 0x10020268(118)
debug2: mac_setup: found hmac-md5
debug3: mm_get_keystate: Getting compression state
debug3: mm_get_keystate: Getting Network I/O buffers
debug3: mm_share_sync: Share sync
debug3: mm_share_sync: Share sync end

< ... waits here long time... >

debug2: set_newkeys: mode 0
debug2: set_newkeys: mode 1
debug1: Entering interactive session for SSH2.
debug2: fd 4 setting O_NONBLOCK
debug2: fd 5 setting O_NONBLOCK
debug1: server_init_dispatch_20
Read error from remote host 157.150.190.9: Connection reset by peer
debug1: do_cleanup 

--
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: side effects after installing gcc-3.4.4.999

2009-06-04 Thread enovack

Thanks for the quick response Dave.

I understand about the primary use of Cygwin.  I also like to use it to test
code through the GNU compiler in addition to the Visual C one. Since I also
use Eclipse for Java, it's convenient to use it for C++ as well for this
type of testing.

I'll look to see if the Eclipse CDT folks have an answer.

Best,
Eileen


Dave Korn-6 wrote:
> 
> enovack wrote:
> 
>> It's just a pain since this used to work on my old laptop, which had a
>> previous version of cygwin installed.
> 
>   Sorry about that.  Primarily the goal of cygwin is to provide a
> linux-like
> environment and linux-like behaviour, and from that point of view the
> ability
> to switch the system default compiler was something that was a deficiency
> while it was missing.  We don't go out of our way to break other usages
> such
> as an external win32 app trying to launch a cygwin app from a non-cygwin
> environment, but we can't always make everything compatible with win32 at
> the
> expense of linux compatability.  I am surprised you're having problems
> though,
> as with /bin in the windows PATH and invoking the particular compiler by
> name
> it should all "just work".  (Yeah... famous last words!)
> 
>   It might also be possible to use "cygstart" as a wrapper to launch the
> plain
> "gcc" shortcut and even take advantage of the "alternatives" wrapper from
> within your applications, although I can't promise.
> 
>> Best,
>> Eileen
>> 
>> 
>> Dave Korn-6 wrote:
> 
>   Hey!  I just got .so versioned! :-)
> 
> cheers,
>   DaveK
> 
> 
> --
> 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/side-effects-after-installing-gcc-3.4.4.999-tp22282325p23873433.html
Sent from the Cygwin list 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: grep -f option is not working in release of grep (2.5.3-1)

2009-06-04 Thread Buchbinder, Barry (NIH/NIAID) [E]
Tulasi Ram wrote on Thursday, June 04, 2009 3:04 AM:
> In the latest release of grep (2.5.3-1), the -f option (read search
> patters from a file) is not working for me. I have tried to search by
> providing pattern file. 
> 
> I have tried by using below command. It didn’t work.
> 
> grep -F -B 10 -A 0 -f FindDeploymentErrors_Error.txt CM_Setup2.log

If your patterns end with "$" to anchor to the end of a line, and one
file has DOS/Windows line endings (\r\n) while the other has unix line
endings (\n), the patterns will not match.

See what the following says.
$ file DeploymentErrors_Error.txt CM_Setup2.log

- Barry
  Disclaimer: Statements made herein are not made on behalf of NIAID.


--
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 to run GNU Emacs from Windows icon

2009-06-04 Thread David Karr
> -Original Message-
> From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf
> Of Ken Brown
> Sent: Tuesday, June 02, 2009 4:52 AM
> To: cygwin@cygwin.com
> Subject: Re: How to run GNU Emacs from Windows icon
> 
> On 6/2/2009 7:18 AM, Ken Brown wrote:
> > On 6/2/2009 5:30 AM, Marc Girod wrote:
> >> I can also start a Cygwin window, and run GNU emacs there (with a -nw
> >> option).
> >> It starts, although doesn't work well. The keyboard bindings are weird
> >> for a
> >> start (e.g. C-x C-c gives in fact C-x C-g, which forces you to exit
> >> with M-x
> >> kill-emacs).
> >> I'm sure this was discussed already.
> >
> > You need to have 'tty' in your CYGWIN environment variable in order to
> > prevent this from happening.  But even then, you'll find that many
> > keystrokes don't work as expected.  If you want to run emacs in a
> > terminal (rather than under X), you'll get much better results with
> > mintty or rxvt.
> 
> But none of this addresses the OP's original problem:
> 
> > emacs: Terminal type cygwin is not defined.
> 
> My guess is that this is a terminfo issue.  Try installing the terminfo0
> package.

Getting back to this, I already have terminfo0 installed.

I tried Marc Girod's emacs.bat script from an earlier reply, but it doesn't
work for me because I already have an X server running.  What I really need
is something that gives me a regular separate Windows decorated frame, with
Emacs running inside.  I get that out of the box with XEmacs, but some
things work a little better in GNU Emacs, so I'm trying to get that working.


--
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: UAC .manifest files

2009-06-04 Thread Dave Korn
Yaakov (Cygwin/X) wrote:
> On 04/06/2009 08:19, Charles Wilson wrote:
>> Spiro Trikaliotis wrote:
>>
>>> - let my.manifest be the manifest file
>>> - Generate a .rc file with the line:
>>>1 RT_MANIFEST "my.manifest"
>>> - Let the resource compiler handle the .rc file, and let windres merge
>>>the info into the executable.
>>
>> Sounds like a job for automake, not gcc.  I don't see anything here
>> http://autoconf-archive.cryp.to/macros-by-category.html#AUTOMAKE yet,
>> tho.
> 
> I concur; this is not within the realm of gcc to handle by itself.
> 
> There are a number of GTK+ packages which include windres .rc files, but
> it takes all sorts of automake hacking to do it (all within an
> AM_CONDITIONAL, of course).  

  Sounds like a job for libtool, not automake. :)

cheers,
  DaveK


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



ASLR sometimes stops working on Vista with 1.7? [was: Re: Cygwin 1.7 release (was ...)]

2009-06-04 Thread Charles Wilson
(please direct replies to the main cygwin list; I can't set reply-to on
this web interface...)

For context, see the bottom of this post:
http://cygwin.com/ml/cygwin-apps/2009-06/msg00048.html

Corinna wrote:
> I never, ever saw a problem like this on my Vista/2K8 test VMs.  Nor on
> the W7 VMs.  Are you really sure this isn't some BLODA problem?

Well, you can never be SURE. I'd be surprised tho. I use AVG 8.5, which
doesn't cause any problems on my cygwin-1.5 installation under Vista,
nor on XP. Nobody has ever reported it as a BLODA before, AFAICT.  It
does do on-access scanning, which means it hooks in to the file-access
machinery just like other BLODAs (although I've turned that off for my
cygwin-1.7 and -1.5 trees, not that doing THAT would make any difference
to a true BLODA).  What I can't figure out is, if AVG were at fault, why
it would always "attack" my cygwin-1.7 tree, but never interfere with my
cygwin-1.5 tree on the same disk.  I can even run automake from a
cygwin-1.7 shell and watch it die, and immediately run automake from a
cygwin-1.5 shell in the same directory and it succeeds...so if it's a
BLODA, it's got a jones for cygwin-1.7.

I'll check the following AGAIN when I get home...
http://cygwin.com/ml/cygwin-apps/2008-04/msg00307.html

In any event, since the remap problem happens in violation of everything
MS says ASLR is supposed to do, I blame Vista (or maybe
possible-BLODA-interfering-with-ASLR directly, not with cygwin itself).
I can inspect the new (randomized) base addresses of the ASLR-marked
DLLs after each reboot by looking at running processes using the
sysinternals process viewer.  They are (a) random and (b)
non-overlapping. But when the "*** failed to remap" occurs, I can
inspect the hung process and sure enough, foo.dll is loaded in some
strange place in memory that is NOT where ASLR promised to put it (and
there is no obvious conflicting DLL loaded where foo.dll was supposed to
go).

--
Chuck

--
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: side effects after installing gcc-3.4.4.999

2009-06-04 Thread Dave Korn
enovack wrote:

> It's just a pain since this used to work on my old laptop, which had a
> previous version of cygwin installed.

  Sorry about that.  Primarily the goal of cygwin is to provide a linux-like
environment and linux-like behaviour, and from that point of view the ability
to switch the system default compiler was something that was a deficiency
while it was missing.  We don't go out of our way to break other usages such
as an external win32 app trying to launch a cygwin app from a non-cygwin
environment, but we can't always make everything compatible with win32 at the
expense of linux compatability.  I am surprised you're having problems though,
as with /bin in the windows PATH and invoking the particular compiler by name
it should all "just work".  (Yeah... famous last words!)

  It might also be possible to use "cygstart" as a wrapper to launch the plain
"gcc" shortcut and even take advantage of the "alternatives" wrapper from
within your applications, although I can't promise.

> Best,
> Eileen
> 
> 
> Dave Korn-6 wrote:

  Hey!  I just got .so versioned! :-)

cheers,
  DaveK


--
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: grep -f option is not working in release of grep (2.5.3-1)

2009-06-04 Thread Christopher Faylor
On Thu, Jun 04, 2009 at 12:03:49AM -0700, Tulasi Ram wrote:
>Hi
>
>In the latest release of grep (2.5.3-1), the -f option
>(read search patters from a file) is not working for me.
>I have tried to search by providing pattern file.
>
>I have tried by using below command. It didn?t work.
>
>grep -F -B 10 -A 0 -f FindDeploymentErrors_Error.txt CM_Setup2.log
>
>Please let me know if any alternate method

You need to provide 1) cygcheck output as mentioned here:

http://cygwin.com/problems.html

and 2) an actual test case which demonstrates the problem.

cgf

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



Re: Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?

2009-06-04 Thread Yaakov (Cygwin/X)

On 04/06/2009 03:21, Marc Girod wrote:

Indeed...
I am using the cygwin version, and it is 0.15-1.
I can look into the option of building from sources...


I'm just taking over libssh2, and it will be updated to 1.0 very soon.


Yaakov

--
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: UAC .manifest files

2009-06-04 Thread Yaakov (Cygwin/X)

On 04/06/2009 08:19, Charles Wilson wrote:

Spiro Trikaliotis wrote:


- let my.manifest be the manifest file
- Generate a .rc file with the line:
   1 RT_MANIFEST "my.manifest"
- Let the resource compiler handle the .rc file, and let windres merge
   the info into the executable.


Sounds like a job for automake, not gcc.  I don't see anything here
http://autoconf-archive.cryp.to/macros-by-category.html#AUTOMAKE yet, tho.


I concur; this is not within the realm of gcc to handle by itself.

There are a number of GTK+ packages which include windres .rc files, but 
it takes all sorts of automake hacking to do it (all within an 
AM_CONDITIONAL, of course).  As for packages which don't use autotools, 
good luck.  Either way, we don't want to go that route.



Yaakov

--
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.7][BUG] MOJIBAKE title bar

2009-06-04 Thread Corinna Vinschen
On Jun  4 22:24, IWAMURO Motonori wrote:
> Hi.
> 
> The title bar is MOJIBAKE when the following 'wintitle.sh' works on
> command prompt in the UTF-8 environment (for example:
> LANG=ja_JP.UTF-8).
> 
> http://vmi.jp/tmp/wintitle.sh
> 
> http://vmi.jp/tmp/01good-mintty.png is the good result on MinTTY.
> http://vmi.jp/tmp/02bad-cmd.png is the bad result on command prompt.

Thanks for the report.  Should be fixed in CVS now.


Corinna

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

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



Re: side effects after installing gcc-3.4.4.999

2009-06-04 Thread enovack

Actually, I thought of that just after I hit send on my last post. :-(

I then tried doing just that on Netbeans 6.5.1, and that fixed the issue.

On Eclipse it did not. Or at least not yet. I have not been able to
configure Eclipse 3.4 CDT plug-in to recognize the complete Cygwin
environment. I did get it to actually build the app, but it has issues
running and debugging. 

So, still experimenting.

It's just a pain since this used to work on my old laptop, which had a
previous version of cygwin installed.

Best,
Eileen


Dave Korn-6 wrote:
> 
> enovack wrote:
> 
>> I'm having a similar issue with trying to get the GNU g++ and gcc
>> compiler's
>> to work with Eclipse and Netbeans. Both report that the file is not valid
>> or
>> not found when compiling a C or C++ file.
>> 
>> I have just downloaded the latest production release of Cygwin and
>> installed
>> the complete dev environment. I'm running 64 bit Vista SP2. I have the
>> cygwin\bin path added to my DOS path.
>> 
>> Has anyone gotten the latest Cygwin to work with Netbeans or Eclipse? 
>> 
>> I was able to get older version of Cygwin to work with both Netbeans and
>> Eclipse in the past just by setting up the DOS path to include
>> C:\cygwin\bin. Now I see that the gcc.exe and g++.exe are links, which I
>> now
>> assume are not working properly in a DOS environment. Which of course is
>> needed by both Eclipse and Netbeans.
> 
>   I don't use either of those, but you should be able to configure them to
> just directly invoked gcc-3.exe or gcc-4.exe, thereby bypassing the link
> altogether, shouldn't you?
> 
> cheers,
>   DaveK
> 
> 
> --
> 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/side-effects-after-installing-gcc-3.4.4.999-tp22282325p23871582.html
Sent from the Cygwin list 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: side effects after installing gcc-3.4.4.999

2009-06-04 Thread Dave Korn
enovack wrote:

> I'm having a similar issue with trying to get the GNU g++ and gcc compiler's
> to work with Eclipse and Netbeans. Both report that the file is not valid or
> not found when compiling a C or C++ file.
> 
> I have just downloaded the latest production release of Cygwin and installed
> the complete dev environment. I'm running 64 bit Vista SP2. I have the
> cygwin\bin path added to my DOS path.
> 
> Has anyone gotten the latest Cygwin to work with Netbeans or Eclipse? 
> 
> I was able to get older version of Cygwin to work with both Netbeans and
> Eclipse in the past just by setting up the DOS path to include
> C:\cygwin\bin. Now I see that the gcc.exe and g++.exe are links, which I now
> assume are not working properly in a DOS environment. Which of course is
> needed by both Eclipse and Netbeans.

  I don't use either of those, but you should be able to configure them to
just directly invoked gcc-3.exe or gcc-4.exe, thereby bypassing the link
altogether, shouldn't you?

cheers,
  DaveK


--
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 to change the file mode to link?

2009-06-04 Thread Buchbinder, Barry (NIH/NIAID) [E]
Peng Yu wrote on Wednesday, June 03, 2009 10:17 PM:

> On Wed, Jun 3, 2009 at 4:45 PM, Mark Geisert  wrote:
>> Peng Yu writes:
>>> Is there such a cygwin command to extract the link from a windows
>>> link.
>> 
>> Did you not see Barry's response on this thread?
> 
> I missed it before I sent this message. Sorry.

One more thing that you should be aware of:
  - The filename of a Windows shortcut is of the form .
  - The filename of a symbolic linkis of the form .
So if you create the link in the same directory as the shortcut,
you will clobber the shortcut.

- Barry
  Disclaimer: Statements made herein are not made on behalf of NIAID.

--
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: side effects after installing gcc-3.4.4.999

2009-06-04 Thread enovack

I have not seen this mentioned in this list. Please forgive me if I just
missed it somewhere. 

I'm having a similar issue with trying to get the GNU g++ and gcc compiler's
to work with Eclipse and Netbeans. Both report that the file is not valid or
not found when compiling a C or C++ file.

I have just downloaded the latest production release of Cygwin and installed
the complete dev environment. I'm running 64 bit Vista SP2. I have the
cygwin\bin path added to my DOS path.

Has anyone gotten the latest Cygwin to work with Netbeans or Eclipse? 

I was able to get older version of Cygwin to work with both Netbeans and
Eclipse in the past just by setting up the DOS path to include
C:\cygwin\bin. Now I see that the gcc.exe and g++.exe are links, which I now
assume are not working properly in a DOS environment. Which of course is
needed by both Eclipse and Netbeans.

Best,
Eileen


Dave Korn-6 wrote:
> 
> Akakima wrote:
> 
>> But, i have installed 1.7 yesterday evening.
>> 
>> I created shortcuts to dir.exe, ls.exe, uname.exe and users.exe to see
>> if gcc was the only program impacted.
>> 
>> No change. After the program has done his job, cmd is waiting for input,
>> without displaying its prompt.
>> 
>> So i think now cmd.exe is causing the behaviour. 
> 
>   Thank you for testing this for us.  When I have spare time, I'll try
> some
> experiments in 1.7 and see if I can pin down what's going wrong, but it
> may or
> may not lead to anything; I don't want to raise false hopes.
> 
> cheers,
>   DaveK
> 
> 
> --
> 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/side-effects-after-installing-gcc-3.4.4.999-tp22282325p23870621.html
Sent from the Cygwin list 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/



[1.7][BUG] MOJIBAKE title bar

2009-06-04 Thread IWAMURO Motonori
Hi.

The title bar is MOJIBAKE when the following 'wintitle.sh' works on
command prompt in the UTF-8 environment (for example:
LANG=ja_JP.UTF-8).

http://vmi.jp/tmp/wintitle.sh

http://vmi.jp/tmp/01good-mintty.png is the good result on MinTTY.
http://vmi.jp/tmp/02bad-cmd.png is the bad result on command prompt.

Thanks.
--
IWAMURO Motnori 

--
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: UAC .manifest files

2009-06-04 Thread Charles Wilson
Spiro Trikaliotis wrote:

> - let my.manifest be the manifest file
> - Generate a .rc file with the line:
>   1 RT_MANIFEST "my.manifest"
> - Let the resource compiler handle the .rc file, and let windres merge
>   the info into the executable.

Sounds like a job for automake, not gcc.  I don't see anything here
http://autoconf-archive.cryp.to/macros-by-category.html#AUTOMAKE yet, tho.

--
Chuck


--
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: expr error

2009-06-04 Thread Marc Girod


Marc Girod wrote:
> 
> $ nm /usr/bin/expr
> nm: /usr/bin/expr: no symbols
> 
This may explain that:

libssh2-1.1> rebase -b 0x7000 -v /usr/bin/expr
/usr/bin/expr: skipped because not rebaseable

tmp> expr a : '\(a\)'
Segmentation fault (core dumped)
tmp> gdb /usr/bin/expr a : '\(a\)'
Excess command line arguments ignored. (: ...)
GNU gdb 6.8.0.20080328-cvs (cygwin-special)
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later

This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...
(no debugging symbols found)
/tmp/a: No such file or directory.
(gdb) bt
No stack.
(gdb) q

Marc
-- 
View this message in context: 
http://www.nabble.com/expr-error-tp23583036p23869194.html
Sent from the Cygwin list 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: UAC .manifest files

2009-06-04 Thread Spiro Trikaliotis
Hello,

* On Thu, Jun 04, 2009 at 10:25:51AM +0200 Corinna Vinschen wrote:
 
>   And, no, I have no idea how to generate inline manifests :}

Taking from a project (Note: I did not write the code in the first
place, so I might be missing the gory details):


- let my.manifest be the manifest file
  
(http://vice-emu.svn.sourceforge.net/viewvc/vice-emu/trunk/vice/src/arch/win32/vice.manifest?revision=20487&view=markup)

- Generate a .rc file with the line:
  1 RT_MANIFEST "my.manifest"

  (lines 69ff from
  
http://vice-emu.svn.sourceforge.net/viewvc/vice-emu/trunk/vice/src/arch/win32/res.rc?revision=20736&view=markup)

- Let the resource compiler handle the .rc file, and let windres merge
  the info into the executable.

  (lines 432ff from
  
http://vice-emu.svn.sourceforge.net/viewvc/vice-emu/trunk/vice/src/arch/win32/Makefile.am?revision=20930&view=markup


Regards,
Spiro.

-- 
Spiro R. Trikaliotis  http://opencbm.sf.net/
http://www.trikaliotis.net/ http://www.viceteam.org/

--
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: expr error

2009-06-04 Thread Marc Girod


Xima Lenik wrote:
> 
> Yes, I've rebased. After extracted cyggmp-3.dll from libgmp3-4.3, it's 
> ok now.
> 
Sorry, my expr still keeps dumping core. E.g.:

./configure: line 142:  3840 Segmentation fault  (core dumped) expr a :
'\(a\)' > /dev/null 2>&1

I have run ./rebaseall (and .peflagsall) after every single install.
How did you get your symbol list?

$ type nm
nm is hashed (/usr/bin/nm)
$ cygcheck -f /usr/bin/expr
coreutils-7.0-2
$ cygcheck -c coreutils
Cygwin Package Information
Package  VersionStatus
coreutils7.0-2  OK
$ nm /usr/bin/expr
nm: /usr/bin/expr: no symbols

Marc

-- 
View this message in context: 
http://www.nabble.com/expr-error-tp23583036p23868090.html
Sent from the Cygwin list 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: Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?

2009-06-04 Thread Marc Girod


Marc Girod wrote:
> 
> My make test fails however:
> 
> Test Summary Report
> ---
> t/00_Pari.t(Wstat: 65280 Tests: 30 Failed: 0)
>   Non-zero exit status: 255
>   Parse errors: Bad plan.  You planned 546 tests but ran 30.
> ...
> 
If I run this first test alone, I reproducibly get it to fail after test 30:

Math-Pari-2.010801> perl "-Iblib/lib" "-Iblib/arch" t/00_Pari.t
1..546
ok 1
...
ok 30
panic: PARI narg value not attached at t/00_Pari.t line 97.
(in cleanup) panic: PARI narg value not attached during global 
destruction.

If I run it under the debugger, giving a 'continue', the error,
as it seems as reproducible, is after test 33:

Math-Pari-2.010801> make testdb TEST_FILE=t/00_Pari.t
...
/usr/bin/perl.exe -d "-Iblib/lib" "-Iblib/arch" t/00_Pari.t

Loading DB routines from perl5db.pl version 1.3
Editor support available.

Enter h or `h h' for help, or `man perldebug' for more help.

main::(t/00_Pari.t:7):  $test = 0;
  DB<1> c
1..546
ok 1
...
ok 33
panic: PARI narg value not attached at t/00_Pari.t line 106.
 at t/00_Pari.t line 106
Debugged program terminated.  Use q to quit or R to restart,
  use o inhibit_exit to avoid stopping after program termination,
  h q, h R or h o to get additional info.  
  DB<1> q
make: *** [testdb_dynamic] Error 255


If I continue to test 33, then step a bit, and continue,
I get all the tests to pass:

Math-Pari-2.010801> perl -d "-Iblib/lib" "-Iblib/arch" t/00_Pari.t

Loading DB routines from perl5db.pl version 1.3
Editor support available.

Enter h or `h h' for help, or `man perldebug' for more help.

main::(t/00_Pari.t:7):  $test = 0;
  DB<1> c 104
1..546
ok 1
...
ok 33
main::(t/00_Pari.t:104):$g=(new Math::Pari "[1,2;3,2]")**-1;
  DB<2> s
Math::Pari::new(blib/lib/Math/Pari.pm:1030):
1030: shift;
  DB<2> r
scalar context return from Math::Pari::new: 0  Math::Pari=ARRAY(0x1e66378)
   0  Math::Pari=SCALAR(0x1e7ffe8)
  -> 2136213336
   1  Math::Pari=SCALAR(0x1e813d8)
  -> 2136213324
1  Math::Pari=ARRAY(0x1e7f868)
   0  Math::Pari=SCALAR(0x1e7ff40)
  -> 2136213300
   1  Math::Pari=SCALAR(0x1e81408)
  -> 2136213288
main::(t/00_Pari.t:106):test($g == $gg);# 34
  DB<2> c
ok 34
...
# `-100' ==> Perl `-100' ==>
Math::Pari `-9.99E21'
ok 546
Debugged program terminated.  Use q to quit or R to restart,
  use o inhibit_exit to avoid stopping after program termination,
  h q, h R or h o to get additional info.  
  DB<2> q


I guess this kind of behaviour means: bloda interference?
What can I do?

Marc
-- 
View this message in context: 
http://www.nabble.com/Re%3A-Re%3A-Trying-to-install-CPAN-Math%3A%3AGMP.-Can-libgmp3-provide--libgmp--tp23850368p23867903.html
Sent from the Cygwin list 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: Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?

2009-06-04 Thread Marc Girod


Reini Urban wrote:
> 
> Since Math::Pari does not work, you need Math::GMP, right.
> But with this and selecting IDEA and Crypt::RSA
> I successfully ran all Net-SSH-Perl-1.34 tests.
> 
> BTW: for reference the pari error:
> gcc-4 -c  -I ../pari-2.1.7/src -I../pari-2.1.7/src/headers 
> -I../pari-2.1.7/src/graph -I. -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ 
> -fno-strict-aliasing -pipe -fstack-protector -DUSEIMPORTLIB -O3 
> -DVERSION=\"\" -DXS_VERSION=\"\"  -Derr=pari_err -DASMINLINE 
> -DGCC_INLINE -DDYNAMIC_PLOTTING -o mp.o ../pari-2.1.7/src/kernel/none/mp.c
> {standard input}: Assembler messages:
> {standard input}:4825: Error: suffix or operands invalid for `div'
> make[1]: *** [mp.o] Error 1
> make[1]: Leaving directory 
> `/cygdrive/f/cygwin/home/rurban/.cpan/build/Math-Pari-2.010801-Qx0008/libPARI'
> 
I am sorry, but I don't quite follow you.
I could build Math::Pari...
I did it with the default gcc:

Math-Pari-2.010801> gcc --version
gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

My make test fails however:

Test Summary Report
---
t/00_Pari.t(Wstat: 65280 Tests: 30 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 546 tests but ran 30.
t/55_elliptic.t (Wstat: 2304 Tests: 3 Failed: 0)
  Non-zero exit status: 9
  Parse errors: Bad plan.  You planned 46 tests but ran 3.
t/55_graph.t   (Wstat: 512 Tests: 16 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 28 tests but ran 16.
t/55_linear.t  (Wstat: 2304 Tests: 6 Failed: 0)
  Non-zero exit status: 9
  Parse errors: Bad plan.  You planned 105 tests but ran 6.
t/55_nfields.t (Wstat: 2304 Tests: 16 Failed: 2)
  Failed tests:  5-6
  Non-zero exit status: 9
  Parse errors: Bad plan.  You planned 161 tests but ran 16.
t/55_number.t  (Wstat: 2304 Tests: 8 Failed: 0)
  Non-zero exit status: 9
  Parse errors: Bad plan.  You planned 83 tests but ran 8.
t/55_ploth.t   (Wstat: 512 Tests: 22 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 34 tests but ran 22.
Files=15, Tests=343, 37 wallclock secs ( 0.19 usr  0.09 sys + 19.34 cusr 
9.44 csys = 29.06 CPU)
Result: FAIL
Failed 7/15 test programs. 2/343 subtests failed.
make: *** [test_dynamic] Error 255


Er... in fact, I can see now that I installed it.
I shall remove it now.

Marc
-- 
View this message in context: 
http://www.nabble.com/Re%3A-Re%3A-Trying-to-install-CPAN-Math%3A%3AGMP.-Can-libgmp3-provide--libgmp--tp23850368p23867664.html
Sent from the Cygwin list 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: of and oc

2009-06-04 Thread Corinna Vinschen
On Jun  4 11:40, Haojun Bao wrote:
> cygstart is so useful that I want type less keys:
> 
> alias of=cygstart #on cygwin-1.5
> 
> or:
> 
> function of ()
> {
> if which "$1" > /dev/null 2>&1; then
> if [[ "$1" == of ]]; then
> local file=`which cygstart`;
> else
> local file="`which \"$1\"`";
> fi;
> shift;
> cygstart "$file" "$@";
> else
> cygstart "$@";
> fi
> } #on cygwin-1.7, because we must specify full path now
> 
> oc is my name for `open containing folder', and I peeked into source of
> Firefox to write it:
> 
> function oc ()
> {
> cygstart `which explorer.exe` /n,/select,\""`cygpath -alw \"$1\"`"\"
> }
> 
> It won't work for non-ascii file names though, as a Chinese, I feel
> a bit sorry for that

Did you read http://cygwin.com/1.7/cygwin-ug-net/setup-locale.html?
Does it help?  I assume that cygstart itself isn't yet locale-aware.
This is all quite new.  Give us package maintainers a bit of time.


Corinna

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

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



Re: UAC .manifest files

2009-06-04 Thread Corinna Vinschen
On Jun  3 19:25, Yaakov S wrote:
> Some additional googling revealed that you also mentioned that the  
> manifests need to be executable[2].
>
> The attached patch is what I have in mind.  It won't apply to SVN trunk  
> yet due to other uncommitted patches in the queue, but I need to fix  
> that soon to get a long-overdue release out the door.  Anything else  
> that I may not be aware of before I commit this?

At a first glance that looks good.  I'm not aware of anything else
besides of the executable bit.

Btw., in the long run it would be cool if gcc would be able to generate
executables with inline manifests using just a command line option.
First of all, we would get rid of the extra manifest files, and second,
copying such an executable to another dir wouldn't show surprising
results.  And, no, I have no idea how to generate inline manifests :}


Corinna

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

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



Re: Re: Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?

2009-06-04 Thread Marc Girod


Sisyphus wrote:
> 
> Without checking, I think it's just that the version of libssh2 is too old
> for Net-SSH2-0.20.
> Net-SSH2-0.20 should build against libssh2 versions 0.19 and 1.0. What
> version of the library do you have ? You should be able to build
> libssh2-1.0 from source, if the binary being distributed by cygwin is too
> old ... it's just a question of how many  different roads you want to
> investigate, and how far down those different roads you're prepared to
> travel :-)
> 
Indeed...
I am using the cygwin version, and it is 0.15-1.
I can look into the option of building from sources...
Marc
-- 
View this message in context: 
http://www.nabble.com/Re%3A-Re%3A-Trying-to-install-CPAN-Math%3A%3AGMP.-Can-libgmp3-provide--libgmp--tp23850368p23865726.html
Sent from the Cygwin list 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: Tool equivelent for rundll32.exe "user32.dll,LockWorkStation"

2009-06-04 Thread Corinna Vinschen
On Jun  3 16:39, Jason Pyeron wrote:
> Is there a tool like shutdown, etc to lock the workstation or should I stick
> with rundll32.exe "user32.dll,LockWorkStation"?

Stick with it.  A Cygwin tool could do nothing above that.  If you
really want a Cygwin tool, just write your own:

#include 
#define WINVER 0x0500
#include 

int main ()
{
  if (!LockWorkStation ())
{
  fprintf (stderr,
   "%s: Can't lock workstation.  Win32 error code %lu\n",
GetLastError ());
  return 1;
}
  return 0;
}


Corinna

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

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



[Xwin 1.7]: copy from rxvt-x to windows application does not work

2009-06-04 Thread Frédéric Bron
Hi,

If I run rxvt-x (1.5 or 1.7) with Xwin (1.7), when I select something
in the terminal output and then type Ctrl-V in any Windows
application, this does not work. Some application say that the
clipboard is like corrupted. Sometimes, if I type Ctrl-V several
times, after a while, the text is pasted.

If I use Xwin 1.5 or rxvt-native it works fine (with rxvt version
either 1.5 or 1.7).

Any clue for that?

Frédéric

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



grep -f option is not working in release of grep (2.5.3-1)

2009-06-04 Thread Tulasi Ram
Hi

In the latest release of grep (2.5.3-1), the -f option
(read search patters from a file) is not working for me.
I have tried to search by providing pattern file.

I have tried by using below command. It didn’t work.

grep -F -B 10 -A 0 -f FindDeploymentErrors_Error.txt CM_Setup2.log

Please let me know if any alternate method

Thanks.
Tulasiram Kommuri

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