Normal/expected behavior or should I submit a cygdump?

2009-09-15 Thread Linda Walsh
when I create my password and group files with mkpasswd and mkgroup,
they put me in a group "513" -- and call it group 'None'.  Yet I am
 in Users, and Admins -- and have no group none listed in my group list.

However, I've just recently noticed that 513 is the end of the well known
SID (RID?) builtin for Domain Users -- and my machine is attached to
a domain (though cygwin doesn't seem to be able to read them for some
reason (likely some server misconfiguration)...but.  But if it is known
that '513' is associated with Domain Users, why does cygwin put in 'None'?

Is this just my machine or is this expected/normal behavior??

I'll submit a dump if it is just me...(a cygcheck dump, that is...)...

-l

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



Cygwin 1.7/1.5 C99 conformance (GCC, libc)

2009-09-15 Thread Matthias Andree

Greetings,

I recently figured that ctrio (from sourceforge.net) fails to link (GCC  
3.4.4 here).


Reason is that ctrio checks the __STDC_VERSION__ for C99 support, which  
there is, and assumes that the implementation were a hosted one (as  
opposed to a freestanding one) and uses powl() without further checks.


Now, Cygwin 1.5 and 1.7 appear to lack long double library support in  
libc/libm -- which is required for a hosted C99 implementation however,  
but not for a freestanding C99 implementation.


Trying to solve this, I found another Cygwin issue: GCC 3.4.4 sets  
__STDC_HOSTED__ to 1 by default (that's a GCC factory default).


I propose that this gets overridden to 0 in Cygwin-ported GCC compilers  
until the library support for a C99-conforming full hosted implementation  
is in place, so that applications can safely check


#if __STDC_HOSTED__ - 0 > 0
/* assume hosted C99 implementation, i. e. with powl() capable libc/libm */
/* ... */
#endif

Thanks.

Best regards

--
Matthias Andree

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



SSH subsystems

2009-09-15 Thread Girish Sadhani
Hello All,

I am using Cygwin to host SSH server on my windows machine. I want to
define a subsystem, this subsystem will be invoked by a script (not
thru shell) running on a remote machine.

I have configured the subsystem in the sshd_config as follows:

Subsystem   mysubsytem  /usr/sbin/invokescript

Invokescript is a shell script which in turn invokes a TCL script.

My question is : Is the 'stdin' and 'stdout' same for the shell script
and the TCL script ?

Any pointers will be helpful.

Thanks & Regards,
Girish.

--
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: emacs installed but won't run

2009-09-15 Thread Ken Brown

On 9/15/2009 12:24 AM, Charles Blair wrote:

(1) Although "info emacs" works, C-h does not
provide any help


This has been fixed in cygwin 1.7.  If you want to stick with cygwin 
1.5, try the F1 function key for help whenever C-h doesn't work.  Or run 
emacs under X.



(2) C-x C-c does not exit emacs, although
M-x-save-buffers-and-exit does


This happens if you run emacs in the cygwin console, unless your CYGWIN 
environment variable contains tty.  But even then, many key strokes 
won't work as expected.  You're better off using a different terminal 
(e.g., mintty or rxvt) or running emacs under X.


Ken

--
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: Normal/expected behavior or should I submit a cygdump?

2009-09-15 Thread Larry Hall (Cygwin)

On 09/15/2009 04:47 AM, Linda Walsh wrote:

when I create my password and group files with mkpasswd and mkgroup,
they put me in a group "513" -- and call it group 'None'.  Yet I am
  in Users, and Admins -- and have no group none listed in my group list.


513/None shows up in my '/etc/group' file.  Try running 'mkgroup -l -d'.


However, I've just recently noticed that 513 is the end of the well known
SID (RID?) builtin for Domain Users -- and my machine is attached to
a domain (though cygwin doesn't seem to be able to read them for some
reason (likely some server misconfiguration)...but.  But if it is known
that '513' is associated with Domain Users, why does cygwin put in 'None'?


10513 is "Domain Users".

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



setup.exe: How specify web proxy by command line parameters

2009-09-15 Thread Dr. Christoph Gille
Hi all,

I am developing a computer program
http://www.bioinformatics.org/strap/ which uses Cygwin.  Cygwin
is installed automatically by the program. The user does not need
to interact with setup.exe.  This is done by downloading and
starting setup.exe programmatically, with some command line options.

My problem: I need to specify the Web-proxy.  I have looked for
command line parameters, environment variables, registry
entries and files, but have not found anything.

How can I programmatically specify the Web proxy for invocation of setup.exe?

There had been discussion on this previously:

http://www.nabble.com/-Patch--Proxy-command-line-argument-td14989738.html
http://www.mail-archive.com/cygwin@cygwin.com/msg35204.html

Many thanks for your help

Christoph


--
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: setup.exe: How specify web proxy by command line parameters

2009-09-15 Thread Larry Hall (Cygwin)

On 09/15/2009 11:00 AM, Dr. Christoph Gille wrote:

Hi all,

I am developing a computer program
http://www.bioinformatics.org/strap/ which uses Cygwin.  Cygwin
is installed automatically by the program. The user does not need
to interact with setup.exe.  This is done by downloading and
starting setup.exe programmatically, with some command line options.

My problem: I need to specify the Web-proxy.  I have looked for
command line parameters, environment variables, registry
entries and files, but have not found anything.

How can I programmatically specify the Web proxy for invocation of setup.exe?

There had been discussion on this previously:

http://www.nabble.com/-Patch--Proxy-command-line-argument-td14989738.html
http://www.mail-archive.com/cygwin@cygwin.com/msg35204.html


Sounds like you want Cygwin 1.7's setup.exe -> 


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



getting installed dpkg

2009-09-15 Thread alonso lizaola
is any way to install dpk on cygwin 1.5

--
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: getting installed dpkg

2009-09-15 Thread Larry Hall (Cygwin)

On 09/15/2009 11:23 AM, alonso lizaola wrote:

is any way to install dpk on cygwin 1.5




Nothing pre-packaged, no.

--
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: setup.exe: How specify web proxy by command line parameters

2009-09-15 Thread Dr. Christoph Gille
Hi Larry,

>> http://www.bioinformatics.org/strap/ which uses Cygwin.  Cygwin
>> My problem: I need to specify the Web-proxy.
> Sounds like you want Cygwin 1.7's setup.exe -> 
> 
Yes, that is what I need. It is great!
There is also the text search field that I missed so many years!
Why is it not yet the default setup.exe?

I would prefere a stable URL without the version number in the URL, something 
like
http://cygwin.com/setup-current.exe
Otherwise my program would need to probe several URLs with increasing version 
number.

Using this improved setup.exe there would be only one user interaction left:
The user needs to mark the closest mirror.
I do not think that this could be done automatically at the moment or what do 
you think?

Many thanks again
Christoph



--
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: setup.exe: How specify web proxy by command line parameters

2009-09-15 Thread Charles Wilson
Dr. Christoph Gille wrote:
>> Sounds like you want Cygwin 1.7's setup.exe -> 
>> 
> Yes, that is what I need. It is great!
> There is also the text search field that I missed so many years!
> Why is it not yet the default setup.exe?

Because it will install the beta version of cygwin, cygwin-1.7.  Once
cygwin-1.7(.1) is officially released, then setup-1.7 will become the
default -- and lose the version number.  But not until then.

--
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: setup.exe: How specify web proxy by command line parameters

2009-09-15 Thread Larry Hall (Cygwin)

On 09/15/2009 12:28 PM, Dr. Christoph Gille wrote:

Hi Larry,


http://www.bioinformatics.org/strap/ which uses Cygwin.  Cygwin
My problem: I need to specify the Web-proxy.

Sounds like you want Cygwin 1.7's setup.exe ->  


Yes, that is what I need. It is great!
There is also the text search field that I missed so many years!
Why is it not yet the default setup.exe?


It will be when 1.7 is released.  That will happen "soon".


I would prefere a stable URL without the version number in the URL, something 
like
http://cygwin.com/setup-current.exe
Otherwise my program would need to probe several URLs with increasing
version number.


When 1.7 is released, the "setup-1.7.exe" link will become 


as Chuck said.


Using this improved setup.exe there would be only one user interaction
left: The user needs to mark the closest mirror. I do not think that this
could be done automatically at the moment or what
do you think?


Closest mirror?  I'm not sure what you mean by this.  'setup.exe' does not 
require
this as a setting.  Actually, there is no such concept.  You need to specify 
a mirror

to work with but you can do that with '-s'.

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



256-color screen: test reports?

2009-09-15 Thread Andrew Schulman
Anyone who's been trying out the 256-color support in the current test
release of screen, please let me know how that's working for you.  Please
report what terminal you're using (Cygwin, xterm, rxvt, MinTTY, PuTTYcyg,
others?), whether you're able to get 256 colors, and whether there are any
new visual glitches, with and without 256 colors.

I want to move the test release into current, but before I do that I want
to gather some test reports, so I can tell people what to expect with 256
colors in different terminals.

If you want to try out the test release, then run setup.exe, and in the row
for screen, click on the value in the "New" column until it says 4.0.3-3
(for Cygwin 1.5) or 4.0.3-4 (for Cygwin 1.7).  Then hit Next to proceed
with the installation.  With one of those versions installed, you can try
out the 256-color support by invoking screen as

TERM=xterm-256color screen -T screen-256color

if your terminal is xterm, MinTTY, or PuTTYcyg; or use TERM=rxvt-256color
if your terminal is rxvt.  Then from inside screen, run

/usr/share/screen/256colors.pl

and read the explanation at the bottom to determine how many colors your
terminal supports.  Then please post your report here.

Thanks,
Andrew.

--
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: Strange tar error with --format=ustar: value 4294967295 out of gid_t range 0..2097151

2009-09-15 Thread Judy Anderson
Evidence suggests I or someone else ran mkgroup and mkpasswd when I first got 
this machine.  The date on /etc/group is right for that.  /etc/passwd has stuff 
that includes me and other obviously-machine-generated info.

Emacs is not bothering its little head about cygwin, though; I'm launching it 
outside the cygwin environment.  I just tried launching it from a cygwin shell, 
I then get a group'd file.  The first file was created by an emacs launched 
from bash.  The second file was created by an emacs launched from the start 
menu:

e:\yduJ>ls -l foo.txt
ls -l foo.txt
-rwxr-x---+ 1 janderson mkgroup-l-d 34178 Sep 15 17:22 foo.txt

e:\yduJ>ls -l foo.htm
ls -l foo.htm
-rwx--+ 1 janderson  3561 Sep 15 17:33 foo.htm

The ??? file will be barfed on by tar --format=ustar.  Sadly, I'd like to use 
the start menu...  But maybe I can figure out how to make a shortcut that calls 
bash to launch emacs.   Thanks for the pointer.

-Original Message-
From: Lee [mailto:ler...@gmail.com] 
Sent: Monday, September 14, 2009 1:09 PM
To: cygwin@cygwin.com
Subject: Re: Strange tar error with --format=ustar: value 4294967295 out of 
gid_t range 0..2097151

On 9/14/09, Judy Anderson wrote:
   .. snip ..
> Except on my usual development machine, where I get the error:
>
> E:\yduJ> c:\cygwin\bin\tar cf foo.tar --format=ustar foo
> /usr/bin/tar: value 4294967295 out of gid_t range 0..2097151
> /usr/bin/tar: Exiting with failure status due to previous errors
>
> It works FINE on the official build machine, just not MINE.  So I reran
> Cygwin setup and reinstalled and rebooted.  No help.

Did you run mkpasswd and mkgroup on your machine?

i think an unknown user or group gets an id of 4294967295

Lee

--
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: Strange tar error with --format=ustar: value 4294967295 out of gid_t range 0..2097151

2009-09-15 Thread Mark J. Reed
On Tue, Sep 15, 2009 at 5:34 PM, Judy Anderson wrote:
> Emacs is not bothering its little head about cygwin, though; I'm launching it 
> outside
>  the cygwin environment.

Then that's a completely separate emacs installation.  You should be
able to run the Cygwin one by just creating a shortcut to
c:\cygwin\bin\emacs-nox.exe or c:\cygwin\bin\emacs-x11.exe...

-- 
Mark J. Reed 

--
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: [1.7] Invalid UTF8 while creating a file -> cannot delete?

2009-09-15 Thread Lapo Luchini
Andy Koppe wrote:
> Hmm, we've lost the \xDF somewhere, and I'd guess it was when the
> filename got translated to UTF-16 in fopen(), which would explain what
> you're seeing

More data: it's not simply "the last character", is something more
complex than that.

% cat t.c
int main() {
fopen("a-\xF6\xE4\xFC\xDF", "w"); //ISO-8859-1
fopen("b-\xF6\xE4\xFC\xDFz", "w");
fopen("c-\xF6\xE4\xFC\xDFzz", "w");
fopen("d-\xF6\xE4\xFC\xDFzzz", "w");
fopen("e-\xF6\xE4\xFC\xDF\xF6\xE4\xFC\xDF", "w");
return 0;
}
% gcc -o t t.c
% ./t
% find .
.
./a-???
./b-???
./c-???
./d-???
./e-???
./t.c
./t.exe

It seems that once one "high bit set" byte is encountered, everything
past the last of them (itself included) is lost.

Also, I can confirm this works too:
% rm a-$'\366'$'\344'$'\374'$'\337'
but also this, since last one doesn't count:
% rm a-$'\366'$'\344'$'\374'$'\336'
BTW: I didn't know about that kind of escaping, but zsh auto-completed
that for me (excluding the last character, of course)

-- 
Lapo Luchini - http://lapo.it/


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



lseek() returning Invalid Argument

2009-09-15 Thread gballey
I'm getting an Invalid argument error from lseek(), but I can eliminate 
the error by preceding the lseek() statement with a particular printf() 
statement.


Configuration:
cygwin1.dll v1005.25.0.0
gcc v3.4.4
Windows XP SP3

Below is a short test program that illustrates the problem. As 
presented, the 2nd perror() statement is executed and prints the Invalid 
argument message (errno is 0). Removing the // from the printf() 
statement will cause the error to magically disappear.


I've tried substituting variations of printf() and sprintf() statements, 
as well as replacing the statement with a sleep(1) call, but at this 
point the only way to avoid the error is with the printf() statement shown.


Anyone got an idea of what is going on here?

Thanks.

/* begin test.c */

#include 
#include 

static int mmfile ;

main(argc,argv)
int argc;
char *argv[];
{

if ((mmfile = open("test.img", O_RDWR | O_CREAT, 0666)) == -1)
{
perror("open() error - ") ;
exit(1) ;
}

//	printf("mmfile=%d, length=%ld, where_at=%d\n", mmfile, 0x1L, 
SEEK_SET) ;


if (lseek(mmfile, 0x1L, SEEK_SET) == -1)
{
perror("lseek() error - ") ;
close(mmfile) ;
exit(1) ;
}
close(mmfile) ;
printf("ended successfully\n") ;
exit(0) ;
}
/* end test.c */


--
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: lseek() returning Invalid Argument

2009-09-15 Thread Eric Blake
gballey  ace-co.com> writes:

> Anyone got an idea of what is going on here?

Yep.


Oh, you wanted to know what your bug is?

> 
> Thanks.
> 
> /* begin test.c */
> 
> #include 
> #include 

Oops - no #include .  lseek takes 64-bit type arguments, but without 
a declaration from the correct header, the compiler assumes it takes int 
arguments.  Try compiling with -Wall.

-- 
Eric Blake




--
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: lseek() returning Invalid Argument

2009-09-15 Thread gballey

Eric Blake wrote:

gballey  ace-co.com> writes:


Anyone got an idea of what is going on here?


Yep.


Oh, you wanted to know what your bug is?


Thanks.

/* begin test.c */

#include 
#include 


Oops - no #include .  lseek takes 64-bit type arguments, but without 
a declaration from the correct header, the compiler assumes it takes int 
arguments.  Try compiling with -Wall.




Yep, adding the header fixed it. I'm porting some apps that originated 
in Xenix years back, and that header wasn't included. I'm more 
accustomed to coding in languages with stronger type checking, and 
incorrectly assumed that when the compiler didn't complain, the types 
were OK.


I appreciate your assistance.

-Gordon


--
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] [1.7] mpclib-0.7-1

2009-09-15 Thread David Billinghurst

mpclib-0.7-1 has been released for cygwin 1.7.

PACKAGE DESCRIPTION
===

Homepage: http://www.multiprecision.org/mpc
Download: http://www.multiprecision.org/index.php?prog=mpc&page=download
License: Gnu Lesser General Public License, version 2.1 or later

MPC is a C library for the arithmetic of complex numbers with 
arbitrarily high precision and correct rounding of the result. It is 
built upon and follows the same principles as MPFR.


MPC is a prerequisite for gcc-4.5. See:
 - http://gcc.gnu.org/ml/gcc-patches/2009-03/msg00671.html
 - http://gcc.gnu.org/ml/gcc-patches/2009-03/msg00804.html

INSTALL OR UPGRADE NOTES


Upstream bumped the shared library version number.  I chose not to bump 
the DLL version as from limited testing it appears to binary compatible 
with mpclib-0.6-1.


Version 0.7, "Campanula uniflora", released in September 2009, comes 
with the following new features:

* New functions: mpc_pow, mpc_set_nan, mpc_swap
* Bug fixes:
  o log: along branch cut
  o norm: infinite loop in case of overflow
  o ui_div, div, fr_div: handling of division by 0
and  infinities following the example code of
the C99 standard
  o compilation with g++
* Makefile.vc updated (thanks to Mickael Gastineau)
* Minimal gmp version is 4.2
* Changed MPC_SET_X_Y macro
* Functions mpc_random and mpc_random2 removed


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