Bug: cp fails to treat foo as foo.exe (1.5.5-1)

2003-10-08 Thread librik
SUMMARY:
In the latest version of Cygwin (1.5.5-1) the cp command has stopped
aliasing .exe files (e.g. foo.exe) to their .exe-less counterparts (e.g.
foo).  An odd error message is printed instead.  This is documented to
work.  (cf. http://cygwin.com/cygwin-ug-net/using-specialnames.html )
This feature worked correctly in earlier versions of Cygwin, e.g. 1.3.22-1.

HOW TO REPRODUCE:
   Download, install, and start Cygwin 1.5.5-1.
 (My system: Windows XP SP1.  DOS-type newlines selected in Setup.
  Default shell is bash.)
   Execute the following commands:
  mkdir foo
  touch foo/bar.exe
  cp foo/bar bar
   See the error message:
  cp: 'foo/bar' and 'bar' are the same file

WHAT IS EXPECTED:
   bar.exe should be copied to the current directory.
   (This is what happens in Cygwin 1.3.22-1.)

Hope you can get this fixed for the next release.

Thanks,

- David Librik
[EMAIL PROTECTED]

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



Re: cygwin on 486 running NT3.51!

2003-10-08 Thread robert w hall
Thanks for this reply
Sorry for delay in acknowledging
(It was in my win4lin-win95 system which got corrupted!).
Bob

In message <[EMAIL PROTECTED]>, Igor
Pechtchanski <[EMAIL PROTECTED]> writes
>On Mon, 15 Sep 2003, robert w hall wrote:
>
>> Does current cygwin work
>> on a 486 (Intel DX4-75) running NT3.51?
>> Bob
>> (Sorry, broken thread)
>
>AFAIK, Cygwin should work on NT 3.51 (with, possibly, some other things
>installed, e.g. IE5), though it's not regularly tested on this OS.  As for
>using a 486, I believe I saw some packages explicitly require Pentium and
>higher in their configure flags.  You'll just have to test and see.
>Unless someone (CGF?) steps in with a statement that pre-Pentium
>architectures aren't supported by Cygwin, please report any errors you get
>to this list.  Otherwise, you're pretty much on your own.
>   Igor

-- 
robert w hall

--
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: Unsubscription doesn't work

2003-10-08 Thread Hannu E K Nevalainen
> From: Christopher Faylor
> Sent: Wednesday, October 08, 2003 3:09 AM

> On Tue, Oct 07, 2003 at 06:05:15PM -0700, Shankar Unni wrote:
> >Christopher Faylor wrote:
> >>Cast your eyes to the bottom of this message where unsubscribe
> >>information is given.
> >
> >Ah, something seems to be broken in that regard - what happened to the
> >list-generated signature (or postscript) with all that info?
> >--
> >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/
>
> What *are* you talking about?
>

FYI:

Dunno if this is related...
I see SOME messages that doesn't have that -^ tail. In general they have
some kind of attachment. e.g:

http://www.cygwin.com/ml/cygwin/2003-10/msg00364.html


/Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E
-- UTC+01, DST -> UTC+02  --
--END OF MESSAGE--


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



Is a function actually inlined?

2003-10-08 Thread Alex Vinokur

Windows 2000 Professional
CYGWIN_NT-5.0 1.5.4(0.94/3/2)
GNU gcc version 3.3.1 (cygming special)
GNU nm 2.14.90 20030901
GNU objdump 2.14.90 20030901
===


How can one know if a function requested to be inlined is actually inlined?

Here is an example.

Are the foo2() and foo3() functions actually inlined?

== 1. C++ code : File t.cpp : BEGIN ==

struct Foo
{
  void foo1();
  void foo2() {} // requested to be inlined
  void foo3();
};
void Foo::foo1() {}
inline void Foo::foo3() {} // requested to be inlined

int main()
{
Foo ins;
  ins.foo1();
  ins.foo2();
  ins.foo3();
  return 0;
}

== 1. C++ code : File t.cpp : END 


== 2. Compilation : BEGIN ==

$ g++ -save-temps t.cpp

== 2. Compilation : END 



== 3. Analysis of the t.s file : BEGIN ==

$ grep foo t.s

.globl __ZN3Foo4foo1Ev
 .def __ZN3Foo4foo1Ev; .scl 2; .type 32; .endef
__ZN3Foo4foo1Ev:
 call __ZN3Foo4foo1Ev
 call __ZN3Foo4foo2Ev
 call __ZN3Foo4foo3Ev
 .section .text$_ZN3Foo4foo2Ev,"x"
.globl __ZN3Foo4foo2Ev
 .def __ZN3Foo4foo2Ev; .scl 2; .type 32; .endef
__ZN3Foo4foo2Ev:
 .section .text$_ZN3Foo4foo3Ev,"x"
.globl __ZN3Foo4foo3Ev
 .def __ZN3Foo4foo3Ev; .scl 2; .type 32; .endef
__ZN3Foo4foo3Ev:
 .def __ZN3Foo4foo3Ev; .scl 3; .type 32; .endef
 .def __ZN3Foo4foo2Ev; .scl 3; .type 32; .endef

== 3. Analysis of the t.s file  : END 



== 4. Use of the nm utility : BEGIN ==

$ nm -C t.o

 b .bss
 d .data
 t .text
 t .text$_ZN3Foo4foo2Ev
 t .text$_ZN3Foo4foo3Ev
 T Foo::foo1()
 T Foo::foo2()
 T Foo::foo3()
 U __main
 U _alloca
0006 T main

== 4. Use of the nm utility : END 




== 5. Use of the objdump utility : BEGIN ==

$ objdump -CS t.o | grep foo

 :
  2a: e8 d1 ff ff ffcall   0 
Disassembly of section .text$_ZN3Foo4foo2Ev:
 :
Disassembly of section .text$_ZN3Foo4foo3Ev:
 :



$ objdump -CS t.o | grep foo

  1a: e8 00 00 00 00call   1f 
  1f: e8 00 00 00 00call   24 
  2a: e8 d1 ff ff ffcall   0 
  35: e8 00 00 00 00call   3a 
  40: e8 00 00 00 00call   45 

== 5. Use of the objdump utility : END 


   =
   Alex Vinokur
 mailto:[EMAIL PROTECTED]
 http://mathforum.org/library/view/10978.html
   =








--
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: Is a function actually inlined?

2003-10-08 Thread Lapo Luchini
Alex Vinokur wrote:

== 2. Compilation : BEGIN ==

$ g++ -save-temps t.cpp

== 2. Compilation : END 
 

I think you must use smoe level of optimization to get inlines:

from "man gcc":

  -fno-inline
  Don't pay attention to the inline keyword.  Normally this 
option is
  used to keep the compiler from expanding any functions inline.
  Note that if you are not optimizing, no functions can be expanded
  inline.

  -finline-functions
  Integrate all simple functions into their callers.  The compiler
  heuristically decides which functions are simple enough to be 
worth
  integrating in this way.

  If all calls to a given function are integrated, and the function
  is declared static, then the function is normally not output as
  assembler code in its own right.
  Enabled at level -O3.

--
Lapo 'Raist' Luchini
[EMAIL PROTECTED] (PGP & X.509 keys available)
http://www.lapo.it (ICQ UIN: 529796)


--
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: Is a function actually inlined?

2003-10-08 Thread Corinna Vinschen
On Wed, Oct 08, 2003 at 11:19:27AM +0200, Alex Vinokur wrote:
> How can one know if a function requested to be inlined is actually inlined?

A look into the assembler output generated by gcc/g++ will show you.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

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



Re: 1.5.4-1: Problem with XEmacs, fonts, and subprocesses.

2003-10-08 Thread Henry S. Thompson
Igor Pechtchanski <[EMAIL PROTECTED]> writes:



> Hmm.  I was going to point you to
> , but it
> seems the page is temporarily unavailable.  You can still take a
> look at the Google cache version at
> 
> or the one in the Internet Archive at
> ,
> though.

Yeah, that's where I got the idea for the code I posted -- since it
was a) not obviously still available from the author and b) much more
sophisticated than I required, I posted the simplified version.  For
the full deal, it's certainly the right thing.

As another poster pointed out, this is just a workaround, the main
goal is figuring out how to help the xemacs developers fix this in
their cygwin build . . .

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

--
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: ash-20031007-1

2003-10-08 Thread Corinna Vinschen
I've updated the version of ash to 20031007-1.

This version now uses access(2) to find out if a command given with
absolute path is executable.  That should solve issues with setup.exe,
where some of the scripts in /etc/postinstall are not executed.


To update your installation, click on the "Install Cygwin now" link on
the http://cygwin.com/ web page.  This downloads setup.exe to your system.  

If you have questions or comments, please send them to the Cygwin
mailing list at: [EMAIL PROTECTED] .  I would appreciate it if you would
use this mailing list rather than emailing me directly.  This includes
ideas and comments about the setup utility or Cygwin in general.

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

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

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

[EMAIL PROTECTED]

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

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

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

I implore you to READ this information before sending email about how
you "tried everything" to unsubscribe.  In 100% of the cases where
people were unable to unsubscribe, the problem was that they hadn't
actually read and comprehended the unsubscribe instructions.

If you need to unsubscribe from cygwin-announce or any other mailing
list, reading the instructions at the above URL is guaranteed to
provide you with the info that you need.

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.


--
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: Is a function actually inlined?

2003-10-08 Thread Gareth Pearce

I'd consider this off topic for this mailing list ...

But in the most recent gcc's -Winline will give warnings whenever an inline
request is not followed.  This flag exists in a multitude of gcc versions,
but only started working correctly recently.  (I don't remember which
version offhand...)

Regards,
Gareth Pearce
> 
> 
> How can one know if a function requested to be inlined is actually
> inlined?
> 

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



How to use a windows COM server dll ?

2003-10-08 Thread Juergen . Meyer
Is it possible to call API methods of a COM server dll that has been
created with Visual Studio from Cygwin?
If yes, what are the steps to be performed  ?
Which files are needed or to be created and how ? (header files, libs,
etc.)

Juergen.



--
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: emacs -nw control-c mapped to control-g

2003-10-08 Thread Joe Buehler
Terrence Brannon wrote:

When I open emacs via "emacs -nw" in a cygwin bash shell, it maps 
control-c to control-g for some reason...
You probably don't have "tty" included in your CYGWIN environment variable.
--
Joe Buehler


--
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 use a windows COM server dll ?

2003-10-08 Thread Igor Pechtchanski
On Wed, 8 Oct 2003 [EMAIL PROTECTED] wrote:

> Is it possible to call API methods of a COM server dll that has been
> created with Visual Studio from Cygwin?
> If yes, what are the steps to be performed  ?
> Which files are needed or to be created and how ? (header files, libs,
> etc.)
>
> Juergen.

If it's a C++ DLL, there are some issues with name mangling, IIRC.
Otherwise, you simply declare the functions as you normally would and
supply a "-lCOM" flag to the linker (provided your DLL is named "COM.dll";
you may also need to add a "-L" flag pointing to the DLL's directory).

In a more complex case, I believe you can use "dlltool" to create an
import lib (COM.dll.a).  Read up on "dlltool" for details, and see, e.g.,
Cygwin source code for some examples.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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



I miss g++ -z muldefs option

2003-10-08 Thread cls oooooo
Hello,

I miss that option.

On Solaris it works with CC and g++ well.

I'm using gcc version 3.2 20020927 (prerelease) on cygwin.

Is this option left off by intention or is this an error?

Claudius



Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005

--
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: telnet, ftp unknown service

2003-10-08 Thread vdu
Hi,

I noticed that cygwin telnet works when I specify the port to use in the
command line like this :
telnet  23.
So I presumed it was a problem with my "services" file, I took the one of a
colleague (where cygwin telnet works correctly) but it's still the same.
Please, any help is welcome, I am desperate.

Vincent Dutat.

"Corinna Vinschen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Thu, Oct 02, 2003 at 02:19:36PM +0200, V D wrote:
> > here is the result of strace on a telnet, if you need specifically on
ftp
> > just let me know.
>
> Well, the strace is a bit confusing.  The error returned from
> WinSocks getservbyname function is 11004.  The meaning is according
> to `net helpmsg':
>
>   "The requested name is valid and was found in the database, but it
> does not have the correct associated data being resolved for."
>
> a message, I don't quite understand.  I tried if it could be a binary
> vs. textmode issue but Winsock reads the services file in both variations
> equally well, at least on my XP system.
>
> Please check your services file.  Is it somehow corrupted?
>
> Corinna
>
> -- 
> Corinna Vinschen  Please, send mails regarding Cygwin to
> Cygwin Developermailto:[EMAIL PROTECTED]
> Red Hat, Inc.
>




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



Lost and Found: cygpcre-0.dll

2003-10-08 Thread McVitty, Andrew
I just installed cygwin using setup from the website, but when I tried to
use 'less', it complained about finding the above dll.  Copying cygpcre.dll
to cygpcre-0.dll seems to solve the problem. Perhaps there is some problem
in the packaging.

Andy

--
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: Lost and Found: cygpcre-0.dll

2003-10-08 Thread Habermann, David (DA)
I also noticed a similar error recently when doing a fresh install of only the base 
items plus OpenSSH.  Adding cygpcre to the install list cleared the problem.

Dave Habermann

-Original Message-
From: McVitty, Andrew [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 08, 2003 11:08 AM
To: '[EMAIL PROTECTED]'
Subject: Lost and Found: cygpcre-0.dll 


I just installed cygwin using setup from the website, but when I tried to use 'less', 
it complained about finding the above dll.  Copying cygpcre.dll to cygpcre-0.dll seems 
to solve the problem. Perhaps there is some problem in the packaging.

Andy

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

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



Re: Lost and Found: cygpcre-0.dll

2003-10-08 Thread Christopher Faylor
On Wed, Oct 08, 2003 at 04:07:39PM +0100, McVitty, Andrew wrote:
>I just installed cygwin using setup from the website, but when I tried to
>use 'less', it complained about finding the above dll.  Copying cygpcre.dll
>to cygpcre-0.dll seems to solve the problem. Perhaps there is some problem
>in the packaging.

A quick perusal of http://cygwin.com/packages/ shows that the cygpcre-0.dll
file is located in the libpcre0 package.

I've just verified that this package is pulled in by default when you
install less via setup.exe (Install From Internet option).  Copying
cygpcre.dll to cygpcre-0.dll is not the correct solution.

--
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: Is a function actually inlined?

2003-10-08 Thread Alex Vinokur

"Corinna Vinschen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> On Wed, Oct 08, 2003 at 11:19:27AM +0200, Alex Vinokur wrote:
> > How can one know if a function requested to be inlined is actually inlined?
>
> A look into the assembler output generated by gcc/g++ will show you.
>

How can one conclude if a function is actually inlined on the basis working with  the 
nm and objdump utilities?
For instance, are 'the foo2() and foo3() function from my original posting' actually 
inlined?

   =
   Alex Vinokur
 mailto:[EMAIL PROTECTED]
 http://mathforum.org/library/view/10978.html
   =







--
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: telnet, ftp unknown service

2003-10-08 Thread Corinna Vinschen
On Wed, Oct 08, 2003 at 05:03:43PM +0200, vdu wrote:
> Hi,
> 
> I noticed that cygwin telnet works when I specify the port to use in the
> command line like this :
> telnet  23.
> So I presumed it was a problem with my "services" file, I took the one of a
> colleague (where cygwin telnet works correctly) but it's still the same.
> Please, any help is welcome, I am desperate.

I'm sorry but I can't help.  I have no clue why Winsock on your machine
returns that error.  Just to be sure, you did use and change the services
file in ${windir}/system32/drivers/etc?  And did you check if that file
is readable for Everyone?

Corinna

> "Corinna Vinschen" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > On Thu, Oct 02, 2003 at 02:19:36PM +0200, V D wrote:
> > > here is the result of strace on a telnet, if you need specifically on
> ftp
> > > just let me know.
> >
> > Well, the strace is a bit confusing.  The error returned from
> > WinSocks getservbyname function is 11004.  The meaning is according
> > to `net helpmsg':
> >
> >   "The requested name is valid and was found in the database, but it
> > does not have the correct associated data being resolved for."
> >
> > a message, I don't quite understand.  I tried if it could be a binary
> > vs. textmode issue but Winsock reads the services file in both variations
> > equally well, at least on my XP system.
> >
> > Please check your services file.  Is it somehow corrupted?
> >
> > Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
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: Is a function actually inlined?

2003-10-08 Thread Igor Pechtchanski
On Wed, 8 Oct 2003, Alex Vinokur wrote:

> "Corinna Vinschen" wrote in message news:[EMAIL PROTECTED]
> > On Wed, Oct 08, 2003 at 11:19:27AM +0200, Alex Vinokur wrote:
> > > How can one know if a function requested to be inlined is actually
> > > inlined?
> >
> > A look into the assembler output generated by gcc/g++ will show you.
>
> How can one conclude if a function is actually inlined on the basis
> working with the nm and objdump utilities? For instance, are 'the foo2()
> and foo3() function from my original posting' actually inlined?

The general rule of thumb is: if there's a call to a function, it's not
inlined.

> $ grep foo t.s
>
> .globl __ZN3Foo4foo1Ev
>  .def __ZN3Foo4foo1Ev; .scl 2; .type 32; .endef
> __ZN3Foo4foo1Ev:
>  call __ZN3Foo4foo1Ev
>  call __ZN3Foo4foo2Ev
>  call __ZN3Foo4foo3Ev
   
FWIW, it doesn't look like they are inlined.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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



setup hangs during postinstall

2003-10-08 Thread Steve Kelem
I'm trying to update to the latest cygwin (1.5.5-1). Setup install a lot 
of things, said I had to reboot, and then proceeded with the postinstall 
step.
Setup is stuck, with the window saying:
Progress
 This page displays the progress of the download or installation.
RUnning...
No package
/etc/postinstall/XFree86-bin-icons.sh

When I run that file manually, it completes.

Also, there are a LOT of files in /etc/postinstall.  Can they be 
deleted? Should they be deleted automatically?

Steve Kelem

% cd /etc/postinstall
% ls -l
total 1413
-rwxr-xr-x1 kelemNone   59 Oct  6 18:22 XFree86-xserv.sh*
-rwxr-xr-x1 kelemNone  218 Oct  4 15:55 XFree86-prog.sh*
-rwxr-xr-x1 kelemNone 2688 Sep 30 09:22 
postinstall-lilypond.sh.done*
-rwxr-xr-x1 kelemNone  101 Sep 29 09:31 
XFree86-bin-icons.sh*
-rw-r--r--1 kelemNone  1351680 Sep 25 09:43 
gcc-mingw-3.3.1-20030804-1.tar
-rwxr-xr-x1 kelemNone  766 Sep 25 09:43 gcc-mingw.sh.done*
-rwxr-xr-x1 kelemNone 1205 Sep 20 14:57 
libdb4.1-devel.sh.done*
-rwxr-xr-x1 kelemNone 6708 Sep 19 06:41 iu-config.sh.done*
-rwxr-xr-x1 kelemNone 2730 Sep 18 12:30 post-texmf.sh*
-rw-r--r--1 kelemNone   55 Sep 18 08:53 tidy.sh.done
-rwxr-xr-x1 kelemNone  329 Sep  6 13:18 pinfo.sh.done*
-rwxr-xr-x1 kelemNone   10 Sep  5 12:25 cgoban.sh.done*
-rwxr-xr-x1 kelemNone 1393 Sep  4 10:51 
cygwin-doc-postinstall.sh.done*
-rwxr-xr-x1 kelemNone   59 Sep  3 16:56 
XFree86-xserv.sh.done*
-rwxr-xr-x1 kelemNone  345 Sep  3 14:21 update-info-dir.sh*
-rwxr-xr-x1 kelemNone  345 Sep  3 14:21 
update-info-dir.sh.done*
-rwxr-xr-x1 kelemNone  114 Sep  3 08:34 gsl.sh.done*
-rwxr-xr-x1 kelemNone 4013 Sep  2 18:09 sysvinit.sh.done*
-rwxr-xr-x1 kelemNone  267 Aug 29 04:59 
post-lilypond.sh.done*
-rwxr-xr-x1 kelemNone  261 Aug 12 13:36 cron.sh.done*
-rwxr-xr-x1 kelemNone  166 Aug 12 12:56 robots.sh.done*
-rwxr-xr-x1 kelemNone  266 Aug 12 10:05 
base-files-profile.sh.done*
-rwxr-xr-x1 kelemNone  101 Aug 11 10:21 
XFree86-bin-icons.sh.done*
-rwxr-xr-x1 kelemNone  218 Aug  3 18:14 
XFree86-prog.sh.done*
-rwxr-xr-x1 kelemNone  222 Aug  2 12:36 terminfo.sh.done*
-rwxr-xr-x1 kelemNone  140 Aug  1 11:24 gnugo.sh.done*
-rwxr-xr-x1 kelemNone  619 Jul 31 21:42 
XFree86-fscl.sh.done*
-rwxr-xr-x1 kelemNone  619 Jul 31 21:42 
XFree86-f100.sh.done*
-rwxr-xr-x1 kelemNone  766 Jul 31 21:38 XFree86-lib.sh.done*
-rwxr-xr-x1 kelemNone  619 Jul  8 18:33 
XFree86-fenc.sh.done*
-rwxr-xr-x1 kelemNone  619 Jul  8 18:33 
XFree86-fnts.sh.done*
-rwxr-xr-x1 kelemNone  144 Jun 13 13:11 
automake-devel.sh.done*
-rwxr-xr-x1 kelemNone  150 May 21 04:45 gnupg.sh.done*
-rwxr-xr-x1 kelemNone  163 May  2 11:57 splint.sh.done*
-rwxr-xr-x1 kelemNone   60 May  2 04:46 rpm.sh.done*
-rwxr-xr-x1 kelemNone  155 Apr 23 23:32 cvs.sh.done*
-rwxr-xr-x1 kelemNone  143 Apr 15 20:59 
libtool-devel.sh.done*
-rwxr-xr-x1 kelemNone  523 Apr 10 00:55 apache-php.sh.done*
-rwxr-xr-x1 kelemNone  849 Apr  5  2003 
base-files-mketc.sh.done*
-rwxr-xr-x1 kelemNone  141 Mar 22  2003 
libgdbm-devel.sh.done*
-rwxr-xr-x1 kelemNone  217 Mar 13  2003 grace.sh.done*
-rwxr-xr-x1 kelemNone   87 Mar  5  2003 tcsh.sh.done*
-rwxr-xr-x1 kelemNone  188 Feb 28  2003 passwd-grp.sh.done*
-rwxr-xr-x1 kelemNone  299 Dec 17  2002 wget.sh.done*
-rwxr-xr-x1 kelemNone 5784 Dec 16  2002 emacs.sh.done*
-rwxr-xr-x1 kelemNone  160 Dec  5  2002 
autoconf-devel.sh.done*
-rwxr-xr-x1 kelemNone 2775 Nov 11  2002 initscripts.sh.done*
-rwxr-xr-x1 kelemNone  173 Oct 10  2002 readline.sh.done*
-rwxr-xr-x1 kelemNone  276 Oct  3  2002 profile.sh.done*
-rwxr-xr-x1 kelemNone  144 Sep 19  2002 
gettext-devel.sh.done*
-rwxr-xr-x1 kelemNone  324 Aug 25  2002 enscript.sh.done*
-rwxr-xr-x1 kelemNone   88 Jul 30  2002 ncftp.sh.done*
-rwxr-xr-x1 kelemNone 2250 Jul 22  2002 
libpng12-devel.sh.done*
-rwxr-xr-x1 kelemNone 2250 Jul 22  2002 
libpng10-devel.sh.done*
-rwxr-xr-x1 kelemNone  434 Jul 16  2002 
squid-postinstall.sh.done*
-rwxr-xr-x1 kelemNone  244 Jul 12  2002 cygutils.sh.done*
-rwxr-xr-x1 kelemNone  219 May 16  2002 indent.sh.done*
-rwxr-xr-x1 kelemNone  289 May 10  2002 apache.sh.done*
-rwxr-xr-x1 kelemNone

Re: Is a function actually inlined?

2003-10-08 Thread Alex Vinokur

"Igor Pechtchanski" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> On Wed, 8 Oct 2003, Alex Vinokur wrote:
>
> > "Corinna Vinschen" wrote in message news:[EMAIL PROTECTED]
> > > On Wed, Oct 08, 2003 at 11:19:27AM +0200, Alex Vinokur wrote:
> > > > How can one know if a function requested to be inlined is actually
> > > > inlined?
> > >
> > > A look into the assembler output generated by gcc/g++ will show you.
> >
> > How can one conclude if a function is actually inlined on the basis
> > working with the nm and objdump utilities? For instance, are 'the foo2()
> > and foo3() function from my original posting' actually inlined?
>
> The general rule of thumb is: if there's a call to a function, it's not
> inlined.
>
> > $ grep foo t.s
> >
> > .globl __ZN3Foo4foo1Ev
> >  .def __ZN3Foo4foo1Ev; .scl 2; .type 32; .endef
> > __ZN3Foo4foo1Ev:
> >  call __ZN3Foo4foo1Ev
> >  call __ZN3Foo4foo2Ev
> >  call __ZN3Foo4foo3Ev
>
> FWIW, it doesn't look like they are inlined.

On the other hand we don't see
* call foo2()
  and
* call foo3()
here :

$ objdump -CS t.o | grep foo

  1a: e8 00 00 00 00call   1f 
  1f: e8 00 00 00 00call   24 
  2a: e8 d1 ff ff ffcall   0 
  35: e8 00 00 00 00call   3a 
  40: e8 00 00 00 00call   45 

   =
   Alex Vinokur
 mailto:[EMAIL PROTECTED]
 http://mathforum.org/library/view/10978.html
   =






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



Re: setup hangs during postinstall

2003-10-08 Thread Igor Pechtchanski
On Wed, 8 Oct 2003, Steve Kelem wrote:

> I'm trying to update to the latest cygwin (1.5.5-1). Setup install a lot
> of things, said I had to reboot, and then proceeded with the postinstall
> step.
> Setup is stuck, with the window saying:
> Progress
>   This page displays the progress of the download or installation.
> RUnning...
> No package
> /etc/postinstall/XFree86-bin-icons.sh

This is a known bug (as a search of the recent archives would have shown).
People are investigating.  As a short term workaround, you can "mv
/etc/postinstal/XFree86-bin-icons.sh{,.done}" and rerun setup.

> When I run that file manually, it completes.
>
> Also, there are a LOT of files in /etc/postinstall.  Can they be
> deleted? Should they be deleted automatically?
>
> Steve Kelem

They could be, but why?  Besides, they don't take up much space (I think
the total is about 100k, except for the gcc-mingw tarball).  So don't
worry about them...
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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



Re: setup hangs during postinstall

2003-10-08 Thread Christopher Faylor
On Wed, Oct 08, 2003 at 12:49:44PM -0400, Igor Pechtchanski wrote:
>This is a known bug (as a search of the recent archives would have
>shown).  People are investigating.  As a short term workaround, you can
>"mv /etc/postinstal/XFree86-bin-icons.sh{,.done}" and rerun setup.

I sure wish I could duplicate this bug...

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: setup hangs during postinstall

2003-10-08 Thread Igor Pechtchanski
On Wed, 8 Oct 2003, Christopher Faylor wrote:

> On Wed, Oct 08, 2003 at 12:49:44PM -0400, Igor Pechtchanski wrote:
> >This is a known bug (as a search of the recent archives would have
> >shown).  People are investigating.  As a short term workaround, you can
> >"mv /etc/postinstal/XFree86-bin-icons.sh{,.done}" and rerun setup.
>
> I sure wish I could duplicate this bug...
>
> cgf

FWIW, so do I.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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: Is a function actually inlined?

2003-10-08 Thread Igor Pechtchanski
On Wed, 8 Oct 2003, Alex Vinokur wrote:

> "Igor Pechtchanski" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> > On Wed, 8 Oct 2003, Alex Vinokur wrote:
> >
> > > "Corinna Vinschen" wrote in message news:[EMAIL PROTECTED]
> > > > On Wed, Oct 08, 2003 at 11:19:27AM +0200, Alex Vinokur wrote:
> > > > > How can one know if a function requested to be inlined is actually
> > > > > inlined?
> > > >
> > > > A look into the assembler output generated by gcc/g++ will show you.
> > >
> > > How can one conclude if a function is actually inlined on the basis
> > > working with the nm and objdump utilities? For instance, are 'the foo2()
> > > and foo3() function from my original posting' actually inlined?
> >
> > The general rule of thumb is: if there's a call to a function, it's not
> > inlined.
> >
> > > $ grep foo t.s
> > >
> > > .globl __ZN3Foo4foo1Ev
> > >  .def __ZN3Foo4foo1Ev; .scl 2; .type 32; .endef
> > > __ZN3Foo4foo1Ev:
> > >  call __ZN3Foo4foo1Ev
> > >  call __ZN3Foo4foo2Ev
> > >  call __ZN3Foo4foo3Ev
> >
> > FWIW, it doesn't look like they are inlined.
>
> On the other hand we don't see
> * call foo2()
>   and
> * call foo3()
> here :
>
> $ objdump -CS t.o | grep foo
   ^^^
s/foo/call/?

>   1a: e8 00 00 00 00call   1f 
>   1f: e8 00 00 00 00call   24 
>   2a: e8 d1 ff ff ffcall   0 
>   35: e8 00 00 00 00call   3a 
>   40: e8 00 00 00 00call   45 

Yes, apparently the .s file is not the final assembly output -- some
transformations do happen between that and the object file.  So, look at
the output of objdump and see if there are calls to those functions.

One thing to note is that in gcc (as in many other compilers) inlining can
happen at different levels.  What you're probably seeing here, IMO, is a
peephole optimization that inlines any empty functions, rather than gcc
considering the 'inline' keyword.

So, to answer your original question, I don't think the 'inline' keyword
influenced the final binary, but the functions did get inlined by some
other mechanism.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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



Domain Users

2003-10-08 Thread Boris Mayer-St-Onge
Recently, we have upgraded our version of cygwin from 1.3.12-2 to 
1.5.5-1.  Since that, we have a problem with domain users.

Cygwin is installed locally on each computer by the local administrator 
and it is used by domain users.  If we open a bash shell, we have the 
following messages:

bash: cannot create temp file for here document: Permission denied
Your group is currently "mkpasswd".  This indicates that
the /etc/passwd (ans possibly /etc/group) files should be rebuilt.
See the man pages for mkpasswd and mkgroup then, for example, run
mkpasswd -l [-d] > /etc/passwd
mkgroup -l [-d] > /etc/group
Note that the -d switch is necessary for domain users.
If we add "Domain Users" in the /etc/group file and one domain user in 
the /etc/passwd, this user can then use cygwin correctly (but we still 
have the message concerning the temp file.  Any hints?).

The problem is that we have several hundren of users and some of them 
are added and deleted each week.  Is there an other solution that adding 
all the users in the /etc/passwd file?

Boris

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


Re: setup hangs during postinstall

2003-10-08 Thread Brian Ford
Christopher Faylor wrote:
>On Wed, Oct 08, 2003 at 12:49:44PM -0400, Igor Pechtchanski wrote:
>>This is a known bug (as a search of the recent archives would have
>>shown).  People are investigating.  As a short term workaround, you can
>>"mv /etc/postinstal/XFree86-bin-icons.sh{,.done}" and rerun setup.
>
>I sure wish I could duplicate this bug...
>
Well, I can.

I've got an XP box running a current CVS compiled cygwin DLL,
a current CVS compiled cygpath, and a just downloaded setup stuck
reinstalling XFree86-bin-icons.  I attached gdb to cygpath and got the
following.

It looks to me like the stack is corrupted, but I'm probably just being
naive.  I included all three thread backtraces just in case anyone can
see anything.  Let me know if have any better idea about how to track this
down.

(gdb) info threads
  3 thread 1920.0x4f0  0x77f75a59 in ntdll!DbgUiConnectToDbg ()
   from /cygdrive/c/WINDOWS/System32/ntdll.dll
  2 thread 1920.0x6e4  0x7ffe0304 in ?? ()
* 1 thread 1920.0x760  0x7ffe0304 in ?? ()
(gdb) thread 1
[Switching to thread 1 (thread 1920.0x760)]#0  0x7ffe0304 in ?? ()
(gdb) bt
#0  0x7ffe0304 in ?? ()
#1  0x77f5c524 in ntdll!ZwWaitForMultipleObjects ()
   from /cygdrive/c/WINDOWS/System32/ntdll.dll
#2  0x77e75ee0 in WaitForMultipleObjectsEx ()
   from /cygdrive/c/WINDOWS/system32/kernel32.dll
#3  0x0003 in ?? ()
#4  0x0022e13c in ?? ()
#5  0x0001 in ?? ()
(gdb) thread 2
[Switching to thread 2 (thread 1920.0x6e4)]#0  0x7ffe0304 in ?? ()
(gdb) bt
#0  0x7ffe0304 in ?? ()
#1  0x77f5bfb4 in ntdll!ZwReadFile ()
   from /cygdrive/c/WINDOWS/System32/ntdll.dll
#2  0x77e7abbd in ReadFile () from /cygdrive/c/WINDOWS/system32/kernel32.dll
#3  0x0768 in ?? ()
(gdb) thread 3
[Switching to thread 3 (thread 1920.0x4f0)]#0  0x77f75a59 in ntdll!DbgUiConnectToDbg 
() from /cygdrive/c/WINDOWS/System32/ntdll.dll
(gdb) bt
#0  0x77f75a59 in ntdll!DbgUiConnectToDbg ()
   from /cygdrive/c/WINDOWS/System32/ntdll.dll
#1  0x77f5f31f in ntdll!KiUserCallbackDispatcher ()
   from /cygdrive/c/WINDOWS/System32/ntdll.dll
#2  0x0005 in ?? ()
#3  0x0004 in ?? ()
#4  0x0001 in ?? ()
#5  0x003fffd0 in ?? ()
#6  0x85e0d020 in ?? ()
#7  0x in ?? ()
#8  0x77fa88f0 in wcstombs () from /cygdrive/c/WINDOWS/System32/ntdll.dll
(gdb)

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

Cygwin Win95/NT Configuration Diagnostics

Current System Time: Wed Oct 08 12:26:15 2003



Windows XP Professional Ver 5.1 Build 2600 Service Pack 1



Path:   .

C:\cygwin\usr\local\bin

C:\cygwin\bin

C:\cygwin\bin

c:\Program Files\Datacube\MaxImaging Suite\Vll

c:\Program Files\Datacube\MaxImaging Suite\Vll\Bin

c:\WINDOWS\system32

c:\WINDOWS

c:\WINDOWS\System32\Wbem

c:\program files\Multigen-Paradigm\Creator

C:\cygwin\bin

c:\Program Files\ATI Technologies\ATI Control Panel

c:\Program Files\ATI Technologies\Fire GL 3D Studio Max

c:\Program Files\ATI Technologies\Fire GL Control Panel

C:\cygwin\usr\X11R6\bin

\\eos\ford\v9wintest\tap

C:\cygwin\vss\ems\bin

C:\cygwin\home\ford\vsslib



Output from C:\cygwin\bin\id.exe (nontsec)

UID: 1004(ford) GID: 545(Users)

545(Users)



Output from C:\cygwin\bin\id.exe (ntsec)

UID: 1004(ford) GID: 545(Users)

513(None)544(Administrators)  

545(Users)



SysDir: C:\WINDOWS\System32

WinDir: C:\WINDOWS



CYGWIN = `tty ntsec'

HOME = `C:\cygwin\home\ford'

MAKE_MODE = `unix'

PWD = `/home/ford'

USER = `ford'



ALLUSERSPROFILE = `C:\Documents and Settings\All Users'

COMMONPROGRAMFILES = `C:\Program Files\Common Files'

COMPUTERNAME = `SYBILXPC'

COMSPEC = `C:\WINDOWS\system32\cmd.exe'

CUST = `/vss/ems/env8/common'

CVSROOT = `:pserver:[EMAIL PROTECTED]:/home/vsslib/CVS'

CVS_RSH = `/bin/ssh'

EMS = `/vss/ems'

ENV_PATH = 
`/home/ford/env:/cygdrive/d/commercial/helicopter/models:/cygdrive/d/commercial/demo:/cygdrive/d/commercial/europe_env:/cygdrive/d/commercial/japan_env:/cygdrive/d/commercial/asia_env:/cygdrive/d/commercial/north_amer_env:/cygdrive/d/commercial/south_amer_env:/cygdrive/d/commercial/models:/cygdrive/d/commercial/test_align:/cygdrive/d/commercial/helicopter:/cygdrive/d/commercial/common'

HOMEDRIVE = `C:'

HOMEPATH = `\cygwin\home\ford'

HOSTNAME = `sybilxpc'

JOY_DEV = `winjoy'

LOGONSERVER = `\\SYBILXPC'

MANPATH = `:/usr/ssl/man'

MPI_INSTALL_DEFAULT = `C:\Program Files\Multigen-Paradigm2.6'

MPI_INSTALL_RESOURCE_DEFAULT = `C:\Program Files\Multigen-Paradigm2.6'

NUMBER_OF_PROCESSORS = `4'

OLDPWD = `/home/ford'

ORIG_CDPATH = `.:/usr/local/bin:/usr/bin:/bin:/cygdrive/c/Program 
Files/Datacube/MaxImaging Suite/Vll:/cygdrive/c/Program Files/Datacube/MaxImaging 
Suite/Vll/Bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/program
 files/Multigen-Paradigm/Creator:/u

Re: Domain Users

2003-10-08 Thread Igor Pechtchanski
On Wed, 8 Oct 2003, Boris Mayer-St-Onge wrote:

> Recently, we have upgraded our version of cygwin from 1.3.12-2 to
> 1.5.5-1.  Since that, we have a problem with domain users.
>
> Cygwin is installed locally on each computer by the local administrator
> and it is used by domain users.  If we open a bash shell, we have the
> following messages:
>
> bash: cannot create temp file for here document: Permission denied

At a guess, this is because you have TEMP set to some directory that
domain users cannot access.  You could add a "TEMP=/tmp" at the top of
/etc/profile, and see if it helps.  Oh, and make sure /tmp on every
computer is mode 01777, so that it *is* writeable by everyone.

> Your group is currently "mkpasswd".  This indicates that
> the /etc/passwd (ans possibly /etc/group) files should be rebuilt.
> See the man pages for mkpasswd and mkgroup then, for example, run
> mkpasswd -l [-d] > /etc/passwd
> mkgroup -l [-d] > /etc/group
> Note that the -d switch is necessary for domain users.
>
> If we add "Domain Users" in the /etc/group file and one domain user in
> the /etc/passwd, this user can then use cygwin correctly (but we still
> have the message concerning the temp file.  Any hints?).

See above.

> The problem is that we have several hundren of users and some of them
> are added and deleted each week.  Is there an other solution that adding
> all the users in the /etc/passwd file?
>
> Boris

Unfortunately, the SID of the user should be in /etc/passwd for the user
to have full use of Cygwin's services, etc.  One possible solution in your
situation is to keep one centralized user database on a shared drive and
mount it as /etc/passwd on each machine (and similarly for groups).  That
way, when you add and remove users, you will only have to change one file.
The UIDs for the standard accounts (i.e., Administrator{,s}, SYSTEM, etc)
are usually pretty standard, at least on NT-based OSs, but I'm not too
sure about the SIDs, so you might have some problems there...  Also, be
aware that security attributes on shared drives are controlled by the
"smbntsec" setting in the CYGWIN environment variable, rather than
"ntsec".
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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



Re: setup hangs during postinstall

2003-10-08 Thread Christopher Faylor
On Wed, Oct 08, 2003 at 12:57:11PM -0400, Igor Pechtchanski wrote:
>On Wed, 8 Oct 2003, Christopher Faylor wrote:
>>On Wed, Oct 08, 2003 at 12:49:44PM -0400, Igor Pechtchanski wrote:
>>>This is a known bug (as a search of the recent archives would have
>>>shown).  People are investigating.  As a short term workaround, you can
>>>"mv /etc/postinstal/XFree86-bin-icons.sh{,.done}" and rerun setup.
>>
>>I sure wish I could duplicate this bug...
>
>FWIW, so do I.

Have we ever gotten a 'ps -ef' when setup.exe is hung?  It would be nice
to know if it is sh or bash that is having problems or cygpath itself.

I can't find one of these in the archives but I could easily have missed
it.

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/



cygpath hang - using gdb

2003-10-08 Thread Hannu E K Nevalainen
> I will be investigating the problem in every way that anyone can
> think of as time permits. No promises though, as usual.
> I'll have to learn bits and pieces of cvs and gdb for starters -
> I'll do my best.

$ MODE=ironic rant

 "I'll be back" - is this a general salute nowadays? ;-P

You're about to see me trying to use gdb for the first time. Say after me
please: "YES, WE LOVE IT!" ...  Ahh... I didn't hear you ;-)

$ MODE=serious

Looking at "sample use" in "info gdb" I see things that looks fairly
straight forward and familiar. Now when I try "gdb --pid=" -
when cygpath has hung - I end up with a situation that I don't recognise
from that sample.

A couple of "s" commands and the gdb session ends up having no "(gdb)"
prompt. I get the impression that cygpath has stopped somewhere in a system
DLL, and debugging fails in there. Killing cygpath makes the prompt return.

In hope that it will tell SOMETHING I have copied two sessions into the
remainder of this message.

 I'll be persuing this a bit more, but that might take some time.
Please *DO* point out facts for me if you see anything useful.


$ pwd
/bin

$ g++ -O0 -g3 -o cygpath cygpath.cc

$ objdump -g cygpath.exe | wc -l
  18485

$ cat /etc/postinstall/t3.sh
#!/bin/bash -x

TOPFOLDER="`cygpath -A -P`/Cygwin-XFree86"
echo $TOPFOLDER

$ cygstart -- /install/setup.exe --mno-md5

"Running /etc/postinstall/t3.sh" at 99% 

$ ps
  PIDPPIDPGID WINPID  TTY  UIDSTIME COMMAND
  576   1 576   1988  con  500 10:15:50 /usr/bin/rxvt
I1100 57611003040  500 10:15:50 /usr/bin/bash
  360   1 360   2016  con  500 14:19:55 /usr/bin/rxvt
 2340 3602340   20282  500 14:19:55 /usr/bin/bash
I277623402776   27362  500 14:34:39 /usr/bin/info
  672   1 672820  con  500 15:18:15 /usr/bin/rxvt
 2796 6722796   19521  500 15:18:15 /usr/bin/bash
 2816   12816   2816  con  500 15:29:50 /usr/bin/sh
I 61228162816612  con  500 15:29:50 /usr/bin/bash
 2828 6122816   2828  con  500 15:29:51 /usr/bin/cygpath
  7322796 732   27401  500 15:29:59 /usr/bin/ps

$ gdb --pid=2828
GNU gdb 2003-09-20-cvs (cygwin-special)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-cygwin".
Attaching to process 2828
[Switching to thread 2828.0x7d8]
(gdb) bt
#0  0x77fa144c in ntdll!DbgUiConnectToDbg () from
/cygdrive/f/WINNT/system32/NTDLL.DLL
#1  0x7c50dfdb in KERNEL32!DebugActiveProcess () from
/cygdrive/f/WINNT/system32/KERNEL32.DLL
#2  0x7c4e987c in SetThreadExecutionState () from
/cygdrive/f/WINNT/system32/KERNEL32.DLL
--

Using s, n, f, file, p or list from here seems to be of no use. Any advice?

--
(gdb) s
Single stepping until exit from function ntdll!DbgUiConnectToDbg,
which has no line number information.
0x7c50dfdb in KERNEL32!DebugActiveProcess () from
/cygdrive/f/WINNT/system32/KERNEL32.DLL
(gdb) list
No symbol table is loaded.  Use the "file" command.
(gdb) f
#0  0x7c50dfdb in KERNEL32!DebugActiveProcess () from
/cygdrive/f/WINNT/system32/KERNEL32.DLL
(gdb) s
Single stepping until exit from function KERNEL32!DebugActiveProcess,
which has no line number information.
-- no more prompt here --

>From another bash:
$ ps
  PIDPPIDPGID WINPID  TTY  UIDSTIME COMMAND
...
 2828 6122816   2828  con  500 15:29:51 /usr/bin/cygpath
 2012279620125521  500 15:30:10 /usr/bin/gdb
 284411002844   27400  500 15:47:40 /usr/bin/ps

$ kill -9 2012

$ ps
  PIDPPIDPGID WINPID  TTY  UIDSTIME COMMAND
...
 2828 6122816   1552  con  500 15:47:51 
 2768110027683920  500 15:47:58 /usr/bin/ps

$ kill -9 2828

$ ps
  PIDPPIDPGID WINPID  TTY  UIDSTIME COMMAND
  576   1 576   1988  con  500 10:15:50 /usr/bin/rxvt
 1100 57611003040  500 10:15:50 /usr/bin/bash
  360   1 360   2016  con  500 14:19:55 /usr/bin/rxvt
 2340 3602340   20282  500 14:19:55 /usr/bin/bash
I277623402776   27362  500 14:34:39 /usr/bin/info
 281611002816   18240  500 15:48:09 /usr/bin/ps

$


-- YET ANOTHER SESSION --
Does this tell anything at all?

(I was trying to find out anything useful about the situation)

(gdb) info source
Current source file is cygpath.cc
Compilation directory is /bin/
Located in /usr/bin/cygpath.cc
Contains 769 lines.
Source language is c++.
Compiled with stabs debugging format.
Does not include preprocessor macro info.
(gdb) attach 107

Re: setup hangs during postinstall

2003-10-08 Thread Brian Ford
Christopher Faylor wrote:

>Have we ever gotten a 'ps -ef' when setup.exe is hung?  It would be nice
>to know if it is sh or bash that is having problems or cygpath itself.
>
>I can't find one of these in the archives but I could easily have missed
>it.
>
I don't understand how that will tell you what is hung, but here you go.
I am pretty sure it is cygpath.

[EMAIL PROTECTED] ~
$ ps -ef
 UID PIDPPID TTY STIME COMMAND
  SYSTEM1588   1   ?  12:14:19 /usr/sbin/inetd
  SYSTEM16401588   ?  12:14:19 /usr/sbin/inetd
ford1336   1   0  12:15:41 /usr/bin/sh
ford14761336   0  12:15:41 /usr/bin/sh
ford11681476   0  12:15:41 /usr/bin/bash
ford17601168   0  12:15:41 /usr/bin/bash
ford19201760   0  12:15:41 /usr/bin/cygpath
ford1876   1   1  12:15:50 /usr/bin/rxvt
ford20321876   2  12:15:50 /usr/bin/bash
ford10242032   2  12:16:07 /usr/bin/gdb
ford2012   1   3  12:58:12 /usr/bin/rxvt
ford18442012   4  12:58:12 /usr/bin/bash
ford10681844   4  12:58:15 /usr/bin/ps

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

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



Re: setup hangs during postinstall

2003-10-08 Thread Igor Pechtchanski
On Wed, 8 Oct 2003, Christopher Faylor wrote:

> On Wed, Oct 08, 2003 at 12:57:11PM -0400, Igor Pechtchanski wrote:
> >On Wed, 8 Oct 2003, Christopher Faylor wrote:
> >>On Wed, Oct 08, 2003 at 12:49:44PM -0400, Igor Pechtchanski wrote:
> >>>This is a known bug (as a search of the recent archives would have
> >>>shown).  People are investigating.  As a short term workaround, you can
> >>>"mv /etc/postinstal/XFree86-bin-icons.sh{,.done}" and rerun setup.
> >>
> >>I sure wish I could duplicate this bug...
> >
> >FWIW, so do I.
>
> Have we ever gotten a 'ps -ef' when setup.exe is hung?  It would be nice
> to know if it is sh or bash that is having problems or cygpath itself.
>
> I can't find one of these in the archives but I could easily have missed
> it.
>
> cgf

IIRC, it was the cygpath process itself.  When cygpath was killed, the
postinstall could continue.  See
.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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



RE: setup hangs during postinstall

2003-10-08 Thread Hannu E K Nevalainen
> From: Christopher Faylor
> Sent: Wednesday, October 08, 2003 7:57 PM
> To: [EMAIL PROTECTED]
> Subject: Re: setup hangs during postinstall
>
>
> On Wed, Oct 08, 2003 at 12:57:11PM -0400, Igor Pechtchanski wrote:
> >On Wed, 8 Oct 2003, Christopher Faylor wrote:
> >>On Wed, Oct 08, 2003 at 12:49:44PM -0400, Igor Pechtchanski wrote:
> >>>This is a known bug (as a search of the recent archives would have
> >>>shown).  People are investigating.  As a short term workaround, you can
> >>>"mv /etc/postinstal/XFree86-bin-icons.sh{,.done}" and rerun setup.
> >>
> >>I sure wish I could duplicate this bug...
> >
> >FWIW, so do I.
>
> Have we ever gotten a 'ps -ef' when setup.exe is hung?  It would be nice
> to know if it is sh or bash that is having problems or cygpath itself.
>
> I can't find one of these in the archives but I could easily have missed
> it.
>
> cgf

Hmm... what is that supposed to tell?

$ ps
  PIDPPIDPGID WINPID  TTY  UIDSTIME COMMAND
  908   1 908   2636  con  500 17:09:34 /usr/bin/rxvt
I 332 908 332   20560  500 17:09:34 /usr/bin/bash
  640   1 640   2036  con  500 18:28:20 /usr/bin/rxvt
 2416 6402416   25282  500 18:28:20 /usr/bin/bash
 2008   12008   2008  con  500 20:15:04 /usr/bin/sh
I 32020082008320  con  500 20:15:05 /usr/bin/bash
 2212 3202008   2212  con  500 20:15:05 /usr/bin/cygpath
 198824161988   21162  500 20:15:19 /usr/bin/ps

$ ps -ef
 UID PIDPPID TTY STIME COMMAND
   Hannu 908   1 con  17:09:34 /usr/bin/rxvt
   Hannu 332 908   0  17:09:34 /usr/bin/bash
   Hannu 640   1 con  18:28:20 /usr/bin/rxvt
   Hannu2416 640   2  18:28:20 /usr/bin/bash
   Hannu2008   1 con  20:15:04 /usr/bin/sh
   Hannu 3202008 con  20:15:05 /usr/bin/bash
   Hannu2212 320 con  20:15:05 /usr/bin/cygpath
   Hannu2404 332   0  20:15:30 /usr/bin/gdb
   Hannu21162416   2  20:17:44 /usr/bin/ps

$

/Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E
-- UTC+01, DST -> UTC+02  --
--END OF MESSAGE--


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



Re: setup hangs during postinstall

2003-10-08 Thread Christopher Faylor
On Wed, Oct 08, 2003 at 12:27:22PM -0500, Brian Ford wrote:
>Christopher Faylor wrote:
>>On Wed, Oct 08, 2003 at 12:49:44PM -0400, Igor Pechtchanski wrote:
>>>This is a known bug (as a search of the recent archives would have
>>>shown).  People are investigating.  As a short term workaround, you can
>>>"mv /etc/postinstal/XFree86-bin-icons.sh{,.done}" and rerun setup.
>>
>>I sure wish I could duplicate this bug...
>>
>Well, I can.
>
>I've got an XP box running a current CVS compiled cygwin DLL,
>a current CVS compiled cygpath, and a just downloaded setup stuck
>reinstalling XFree86-bin-icons.  I attached gdb to cygpath and got the
>following.
>
>It looks to me like the stack is corrupted, but I'm probably just being
>naive.

This is unfortunately a standard stack for a frame-pointerless function
(probably *WaitForMultipleWindowsEx).  The laborious way to find the
caller is to do something like a:

x/200x $esp

and then look for 0x6100 addresses in the output, decoding them with
something like:

l *0x61041234

There will be some garbage on the stack so some 0x6100 addresses will
not be useful.

That's the only way I know of to deal with this.  If gcc produced dwarf2
output, we could use the CFI to get more accurate information about the
stack frame but that's not going to happen anytime soon.

>I included all three thread backtraces just in case anyone can see
>anything.  Let me know if have any better idea about how to track this
>down.

The trace from thread 2 is what I would expect.  Thread 1 is obviously waiting
for something but I don't know what without more stack info.

cgf

>(gdb) info threads
>  3 thread 1920.0x4f0  0x77f75a59 in ntdll!DbgUiConnectToDbg ()
>   from /cygdrive/c/WINDOWS/System32/ntdll.dll
>  2 thread 1920.0x6e4  0x7ffe0304 in ?? ()
>* 1 thread 1920.0x760  0x7ffe0304 in ?? ()
>(gdb) thread 1
>[Switching to thread 1 (thread 1920.0x760)]#0  0x7ffe0304 in ?? ()
>(gdb) bt
>#0  0x7ffe0304 in ?? ()
>#1  0x77f5c524 in ntdll!ZwWaitForMultipleObjects ()
>   from /cygdrive/c/WINDOWS/System32/ntdll.dll
>#2  0x77e75ee0 in WaitForMultipleObjectsEx ()
>   from /cygdrive/c/WINDOWS/system32/kernel32.dll
>#3  0x0003 in ?? ()
>#4  0x0022e13c in ?? ()
>#5  0x0001 in ?? ()
>(gdb) thread 2
>[Switching to thread 2 (thread 1920.0x6e4)]#0  0x7ffe0304 in ?? ()
>(gdb) bt
>#0  0x7ffe0304 in ?? ()
>#1  0x77f5bfb4 in ntdll!ZwReadFile ()
>   from /cygdrive/c/WINDOWS/System32/ntdll.dll
>#2  0x77e7abbd in ReadFile () from /cygdrive/c/WINDOWS/system32/kernel32.dll
>#3  0x0768 in ?? ()
>(gdb) thread 3
>[Switching to thread 3 (thread 1920.0x4f0)]#0  0x77f75a59 in ntdll!DbgUiConnectToDbg 
>() from /cygdrive/c/WINDOWS/System32/ntdll.dll
>(gdb) bt
>#0  0x77f75a59 in ntdll!DbgUiConnectToDbg ()
>   from /cygdrive/c/WINDOWS/System32/ntdll.dll
>#1  0x77f5f31f in ntdll!KiUserCallbackDispatcher ()
>   from /cygdrive/c/WINDOWS/System32/ntdll.dll
>#2  0x0005 in ?? ()
>#3  0x0004 in ?? ()
>#4  0x0001 in ?? ()
>#5  0x003fffd0 in ?? ()
>#6  0x85e0d020 in ?? ()
>#7  0x in ?? ()
>#8  0x77fa88f0 in wcstombs () from /cygdrive/c/WINDOWS/System32/ntdll.dll
>(gdb)

--
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: Unsubscription doesn't work

2003-10-08 Thread Shankar Unni
Shankar Unni wrote:

> Ah, something seems to be broken in that regard - what happened to the
> list-generated signature (or postscript) with all that info?

Looks like messages posted to the newsgroup gmane.os.cygwin via NNTP
don't get the signature added. I suspect that messages _mailed_ to the
mailing list do get this signature (testing this by mailing this
response to the mailing list)..



--
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: cygpath hang - using gdb

2003-10-08 Thread Christopher Faylor
On Wed, Oct 08, 2003 at 08:00:21PM +0200, Hannu E K Nevalainen wrote:
>> I will be investigating the problem in every way that anyone can
>> think of as time permits. No promises though, as usual.
>> I'll have to learn bits and pieces of cvs and gdb for starters -
>> I'll do my best.
>
>$ MODE=ironic rant
>
> "I'll be back" - is this a general salute nowadays? ;-P
>
>You're about to see me trying to use gdb for the first time. Say after me
>please: "YES, WE LOVE IT!" ...  Ahh... I didn't hear you ;-)
>
>$ MODE=serious
>
>Looking at "sample use" in "info gdb" I see things that looks fairly
>straight forward and familiar. Now when I try "gdb --pid=" -
>when cygpath has hung - I end up with a situation that I don't recognise
>from that sample.
>
>A couple of "s" commands and the gdb session ends up having no "(gdb)"
>prompt. I get the impression that cygpath has stopped somewhere in a system
>DLL, and debugging fails in there. Killing cygpath makes the prompt return.

No, you've stepped into the part that is hanging, so gdb is waiting patiently
for it to return.

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/



Where is rsh and telnet executables

2003-10-08 Thread Ian Botham
I did try searching the archives and the official faq first but didn't 
find an answer to my question.

Where are the rsh and telnet clients for cygwin?  In my previous 
installation I believe they existed but since I have moved to this new 
machine, I can't find it anywhere on the setup.exe installation list.



--
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] CMake-1.6.7-1

2003-10-08 Thread William A. Hoffman
CMake 1.8.1-1 is now available on Cygwin mirrors.

This is a major release from 1.6.7 to 1.8.1.

Changes from 1.8.0 to 1.8.1:

Added initial support for MinGW builds on Windows. Fixed a couple bugs in the
ctest program. Some fixes to the FindThreads and FindwxWindows modules. A fix
to the Custom Command dependency code. Better error reporting for ctest and
loaded commands.

Changes from 1.6.7 to 1.8:

The custom commands have been rearchitected to use a more understandable
signature. The old signature should still work. Ctest has been enhanced and
can produce testing dashboards compatible with Dart in many cases. A new FILE
command has been added that supports reading, writing, and globing of
files. A new help target is created for all Makefiles so you can do nmake
help (or make help) Command line options (-D) for cmake no longer require the
type of the argument. The on-line help for cmake has been significantly
improved. Run cmake -help for more information. Support for windows paths and
filenames that include &. Support for files with multiple "." in them for
nmake. More Modules report results to CMakeOutput.log and CMakeError.log. And
of course a number of minor bug fixes and enhancements.


See www.cmake.org for more information.

Bill Hoffman 
Cygwin CMake maintainer 



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



RE: setup hangs during postinstall

2003-10-08 Thread Hannu E K Nevalainen
> From: Christopher Faylor

> On Wed, Oct 08, 2003 at 12:27:22PM -0500, Brian Ford wrote:
> >Christopher Faylor wrote:
> >>On Wed, Oct 08, 2003 at 12:49:44PM -0400, Igor Pechtchanski wrote:
> >>>This is a known bug (as a search of the recent archives would have
> >>>shown).  People are investigating.  As a short term workaround, you can
> >>>"mv /etc/postinstal/XFree86-bin-icons.sh{,.done}" and rerun setup.
> >>
> >>I sure wish I could duplicate this bug...
> >>
> >Well, I can.
> >
> >I've got an XP box running a current CVS compiled cygwin DLL,
> >a current CVS compiled cygpath, and a just downloaded setup stuck
> >reinstalling XFree86-bin-icons.  I attached gdb to cygpath and got the
> >following.
> >
> >It looks to me like the stack is corrupted, but I'm probably just being
> >naive.
>
> This is unfortunately a standard stack for a frame-pointerless function
> (probably *WaitForMultipleWindowsEx).  The laborious way to find the
> caller is to do something like a:
>
> x/200x $esp
>
> and then look for 0x6100 addresses in the output, decoding them with
> something like:
>
> l *0x61041234
>
> There will be some garbage on the stack so some 0x6100 addresses will
> not be useful.
>
> That's the only way I know of to deal with this.  If gcc produced dwarf2
> output, we could use the CFI to get more accurate information about the
> stack frame but that's not going to happen anytime soon.

 This is how it looks for me, when I try to follow the description above...
HTH (not really expecting it to) :-I

This is W2K adv server, SP4+ as I've told before... last and latest of all
cygwin packages - and setup2.416-1  (updated this evening from rcn.net)

/Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E
-- UTC+01, DST -> UTC+02  --


$ gdb cygpath
GNU gdb 2003-09-20-cvs (cygwin-special)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...
(gdb) att  2212
Attaching to program `/usr/bin/cygpath.exe', process 2212
[Switching to thread 2212.0x9b0]
(gdb) l
501 cygpath (cygwin) %.*s\n\
502 Path Conversion Utility\n\
503 Copyright 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.\n\
504 Compiled on %s\n\
505 ", len, v, __DATE__);
506 }
507
508 int
509 main (int argc, char **argv)
510 {
(gdb) bt
#0  0x77fa144c in ntdll!DbgUiConnectToDbg () from
/cygdrive/f/WINNT/system32/NTDLL.DLL
#1  0x7c50dfdb in KERNEL32!DebugActiveProcess () from
/cygdrive/f/WINNT/system32/KERNEL32.DLL
#2  0x7c4e987c in SetThreadExecutionState () from
/cygdrive/f/WINNT/system32/KERNEL32.DLL
(gdb) f 0
#0  0x77fa144c in ntdll!DbgUiConnectToDbg () from
/cygdrive/f/WINNT/system32/NTDLL.DLL
(gdb) n
Single stepping until exit from function ntdll!DbgUiConnectToDbg,
which has no line number information.
0x7c50dfdb in KERNEL32!DebugActiveProcess () from
/cygdrive/f/WINNT/system32/KERNEL32.DLL
(gdb) l
511   int c, o = 0;
512   int options_from_file_flag;
513   char *filename;
514
515   prog_name = strrchr (argv[0], '/');
516   if (prog_name == NULL)
517 prog_name = strrchr (argv[0], '\\');
518   if (prog_name == NULL)
519 prog_name = argv[0];
520   else
(gdb) x/200x $esp
0xb6ffac:   0x77f98191  0x  0x00b6ffec  0x7c4e987c
0xb6ffbc:   0x  0x03d4fcbc  0x77f98191  0x
0xb6ffcc:   0x7ffdc000  0x03d4fccc  0x00b6ffc0  0x03d4fccc
0xb6ffdc:   0x  0x7c4ff0b4  0x7c4ed360  0x
0xb6ffec:   0x  0x  0x7c50dfb2  0x
0xb6fffc:   0x  Cannot access memory at address 0xb7
(gdb) f 1
#1  0x7c4e987c in SetThreadExecutionState () from
/cygdrive/f/WINNT/system32/KERNEL32.DLL
(gdb) x/200x $esp
0xb6ffbc:   0x  0x03d4fcbc  0x77f98191  0x
0xb6ffcc:   0x7ffdc000  0x03d4fccc  0x00b6ffc0  0x03d4fccc
0xb6ffdc:   0x  0x7c4ff0b4  0x7c4ed360  0x
0xb6ffec:   0x  0x  0x7c50dfb2  0x
0xb6fffc:   0x  Cannot access memory at address 0xb7
(gdb) f 2
#0  0x in ?? () from
(gdb) f
#0  0x in ?? () from
(gdb) f 0
#0  0x7c50dfdb in KERNEL32!DebugActiveProcess () from
/cygdrive/f/WINNT/system32/KERNEL32.DLL
(gdb) x/200x $esp
0xb6ffac:   0x77f98191  0x  0x00b6ffec  0x7c4e987c
0xb6ffbc:   0x  0x03d4fcbc  0x77f98191  0x
0xb6ffcc:   0x7ffdc000  0x03d4fccc  0x00b6ffc0  0x03d4fccc
0xb6ffdc:   0x  0x7c4ff0b4  0x7c4ed360  0x
0xb6ffec:   0x  0x  0x7c50dfb2  0x
0xb6fffc:   0x

[ANNOUNCEMENT] CMake-1.8.1-1

2003-10-08 Thread William A. Hoffman
CMake 1.8.1-1 is now available on Cygwin mirrors.

This is a major release from 1.6.7 to 1.8.1.

Changes from 1.8.0 to 1.8.1:

Added initial support for MinGW builds on Windows. Fixed a couple bugs in the
ctest program. Some fixes to the FindThreads and FindwxWindows modules. A fix
to the Custom Command dependency code. Better error reporting for ctest and
loaded commands.

Changes from 1.6.7 to 1.8:

The custom commands have been rearchitected to use a more understandable
signature. The old signature should still work. Ctest has been enhanced and
can produce testing dashboards compatible with Dart in many cases. A new FILE
command has been added that supports reading, writing, and globing of
files. A new help target is created for all Makefiles so you can do nmake
help (or make help) Command line options (-D) for cmake no longer require the
type of the argument. The on-line help for cmake has been significantly
improved. Run cmake -help for more information. Support for windows paths and
filenames that include &. Support for files with multiple "." in them for
nmake. More Modules report results to CMakeOutput.log and CMakeError.log. And
of course a number of minor bug fixes and enhancements.


See www.cmake.org for more information.

Bill Hoffman 
Cygwin CMake maintainer 



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



RE: setup hangs during postinstall

2003-10-08 Thread Igor Pechtchanski
On Wed, 8 Oct 2003, Hannu E K Nevalainen wrote:

> > From: Christopher Faylor
>
> > On Wed, Oct 08, 2003 at 12:27:22PM -0500, Brian Ford wrote:
> > >Christopher Faylor wrote:
> > >>On Wed, Oct 08, 2003 at 12:49:44PM -0400, Igor Pechtchanski wrote:
> > >>>This is a known bug (as a search of the recent archives would have
> > >>>shown).  People are investigating.  As a short term workaround, you can
> > >>>"mv /etc/postinstal/XFree86-bin-icons.sh{,.done}" and rerun setup.
> > >>
> > >>I sure wish I could duplicate this bug...
> > >>
> > >Well, I can.
> > >
> > >I've got an XP box running a current CVS compiled cygwin DLL,
> > >a current CVS compiled cygpath, and a just downloaded setup stuck
> > >reinstalling XFree86-bin-icons.  I attached gdb to cygpath and got the
> > >following.
> > >
> > >It looks to me like the stack is corrupted, but I'm probably just being
> > >naive.
> >
> > This is unfortunately a standard stack for a frame-pointerless function
> > (probably *WaitForMultipleWindowsEx).  The laborious way to find the
> > caller is to do something like a:
> >
> > x/200x $esp
> >
> > and then look for 0x6100 addresses in the output, decoding them with
> > something like:
> >
> > l *0x61041234
> >
> > There will be some garbage on the stack so some 0x6100 addresses will
> > not be useful.
> >
> > That's the only way I know of to deal with this.  If gcc produced dwarf2
> > output, we could use the CFI to get more accurate information about the
> > stack frame but that's not going to happen anytime soon.
>
>  This is how it looks for me, when I try to follow the description above...
> HTH (not really expecting it to) :-I
>
> This is W2K adv server, SP4+ as I've told before... last and latest of all
> cygwin packages - and setup2.416-1  (updated this evening from rcn.net)

Hannu,

Can you attach to a hanging cygpath process with strace and post the
output?
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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: cygpath hang - using gdb

2003-10-08 Thread Hannu E K Nevalainen

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf
> Of Christopher Faylor
> Sent: Wednesday, October 08, 2003 8:37 PM
> To: [EMAIL PROTECTED]
> Subject: Re: cygpath hang - using gdb
>
>
> On Wed, Oct 08, 2003 at 08:00:21PM +0200, Hannu E K Nevalainen wrote:
> >> I will be investigating the problem in every way that anyone can
> >> think of as time permits. No promises though, as usual.
> >> I'll have to learn bits and pieces of cvs and gdb for starters -
> >> I'll do my best.
> >
> >$ MODE=ironic rant
> >
> > "I'll be back" - is this a general salute nowadays? ;-P
> >
> >You're about to see me trying to use gdb for the first time. Say after me
> >please: "YES, WE LOVE IT!" ...  Ahh... I didn't hear you ;-)
> >
> >$ MODE=serious
> >
> >Looking at "sample use" in "info gdb" I see things that looks fairly
> >straight forward and familiar. Now when I try "gdb --pid=" -
> >when cygpath has hung - I end up with a situation that I don't recognise
> >from that sample.
> >
> >A couple of "s" commands and the gdb session ends up having no "(gdb)"
> >prompt. I get the impression that cygpath has stopped somewhere
> in a system
> >DLL, and debugging fails in there. Killing cygpath makes the
> prompt return.
>
> No, you've stepped into the part that is hanging, so gdb is
> waiting patiently
> for it to return.
>
> cgf

Ok. Got that.
Now; Any ideas how to work further on this?
Set breakpoints at "random" places in cygpath?

I've been persuing a display of source to get a grip on what and where
things are happening, but that seems to be totally over my head at the
moment.

Probable cause: I don't know a single thing about Windows nor Cygwin
internals - and I'm seeing nothing but those parts of memory.

/Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E
-- UTC+01, DST -> UTC+02  --
--END OF MESSAGE--


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



Re: Where is rsh and telnet executables

2003-10-08 Thread Igor Pechtchanski
On Wed, 8 Oct 2003, Ian Botham wrote:

> I did try searching the archives and the official faq first but didn't
> find an answer to my question.
>
> Where are the rsh and telnet clients for cygwin?  In my previous
> installation I believe they existed but since I have moved to this new
> machine, I can't find it anywhere on the setup.exe installation list.

Use the Cygwin package search page at  and
search for "bin/(rsh|telnet)( |.exe)".
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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: Where is rsh and telnet executables

2003-10-08 Thread Andrew DeFaria
Ian Botham wrote:

I did try searching the archives and the official faq first but didn't 
find an answer to my question.

Where are the rsh and telnet clients for cygwin?  In my previous 
installation I believe they existed but since I have moved to this new 
machine, I can't find it anywhere on the setup.exe installation list. 
inetutils
--
If at first you don't succeed, skydiving is not for you.


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


Re: setup hangs during postinstall

2003-10-08 Thread Christopher Faylor
On Wed, Oct 08, 2003 at 08:47:05PM +0200, Hannu E K Nevalainen wrote:
>(gdb) l *0x610885a3
>No source file for address 0x610885a3.

In other words, you are not running with a debugging version of
cygwin1.dll so there are no debugging symbols available.

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: cygpath hang - using gdb

2003-10-08 Thread Christopher Faylor
On Wed, Oct 08, 2003 at 08:53:45PM +0200, Hannu E K Nevalainen wrote:
>
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf
>> Of Christopher Faylor
>> Sent: Wednesday, October 08, 2003 8:37 PM
>> To: [EMAIL PROTECTED]
>> Subject: Re: cygpath hang - using gdb
>>
>>
>> On Wed, Oct 08, 2003 at 08:00:21PM +0200, Hannu E K Nevalainen wrote:
>> >> I will be investigating the problem in every way that anyone can
>> >> think of as time permits. No promises though, as usual.
>> >> I'll have to learn bits and pieces of cvs and gdb for starters -
>> >> I'll do my best.
>> >
>> >$ MODE=ironic rant
>> >
>> > "I'll be back" - is this a general salute nowadays? ;-P
>> >
>> >You're about to see me trying to use gdb for the first time. Say after me
>> >please: "YES, WE LOVE IT!" ...  Ahh... I didn't hear you ;-)
>> >
>> >$ MODE=serious
>> >
>> >Looking at "sample use" in "info gdb" I see things that looks fairly
>> >straight forward and familiar. Now when I try "gdb --pid=" -
>> >when cygpath has hung - I end up with a situation that I don't recognise
>> >from that sample.
>> >
>> >A couple of "s" commands and the gdb session ends up having no "(gdb)"
>> >prompt. I get the impression that cygpath has stopped somewhere
>> in a system
>> >DLL, and debugging fails in there. Killing cygpath makes the
>> prompt return.
>>
>> No, you've stepped into the part that is hanging, so gdb is
>> waiting patiently
>> for it to return.
>>
>> cgf
>
>Ok. Got that.
>Now; Any ideas how to work further on this?
>Set breakpoints at "random" places in cygpath?

Build a cygwin1.dll with --enable-debugging, install it, build cygpath.exe,
install it.  "set CYGWIN_DEBUG=cygpath" at the command prompt before running
setup.exe.  That will pop up a debugger when cygpath is run before main is
hit.

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: setup hangs during postinstall

2003-10-08 Thread Brian Ford
Christopher Faylor wrote:
>Brian Ford wrote:
>>It looks to me like the stack is corrupted, but I'm probably just being
>>naive.
>
>This is unfortunately a standard stack for a frame-pointerless function
>(probably *WaitForMultipleWindowsEx).  The laborious way to find the
>caller is to do something like a:
>
>x/200x $esp
>
>and then look for 0x6100 addresses in the output, decoding them with
>something like:
>
>l *0x61041234
>
>There will be some garbage on the stack so some 0x6100 addresses will
>not be useful.
>
Ok.  Thanks.

The hand decoded trace (The same one as before.  I still had gdb up.) is
below.

>That's the only way I know of to deal with this.  If gcc produced dwarf2
>output, we could use the CFI to get more accurate information about the
>stack frame but that's not going to happen anytime soon.
>
Was that a hint for me :).  Getting gcc to product dwarf2 output is easy.
Getting the resulting executable to run with the dwarf2 sections is the
hard part.  It (dwarf2) needs a section relative relocation in gas/ld/bfd
like I said before.  Know anyone who wants to help? :D

>>I included all three thread backtraces just in case anyone can see
>>anything.  Let me know if have any better idea about how to track this
>>down.
>
>The trace from thread 2 is what I would expect.  Thread 1 is obviously
>waiting for something but I don't know what without more stack info.
>

I'll do thread 3 too if you think it is relevent.

(gdb) info threads
  3 thread 1920.0x4f0  0x77f75a59 in ntdll!DbgUiConnectToDbg ()
   from /cygdrive/c/WINDOWS/System32/ntdll.dll
  2 thread 1920.0x6e4  0x7ffe0304 in ?? ()
* 1 thread 1920.0x760  0x7ffe0304 in ?? ()
(gdb) thread 1
[Switching to thread 1 (thread 1920.0x760)]#0  0x7ffe0304 in ?? ()
(gdb) bt
#0  0x7ffe0304 in ?? ()
#1  0x77f5c524 in ntdll!ZwWaitForMultipleObjects ()
   from /cygdrive/c/WINDOWS/System32/ntdll.dll
#2  0x77e75ee0 in WaitForMultipleObjectsEx ()
   from /cygdrive/c/WINDOWS/system32/kernel32.dll
#3  0x610901e9 in muto::acquire(unsigned long) 
(../../../../cygwin/winsup/cygwin/sync.cc:75)
#4  0x6108b587 is in WFMO (../../../../cygwin/winsup/cygwin/sigproc.cc:1248)
#5  0x61090410 is in close_all_files() (../../../../cygwin/winsup/cygwin/syscalls.cc:10
#6  0x6108d81f is in spawn_guts(char const*, char const* const*, char const* const*, 
int) (../../../../cygwin/winsup/cygwin/spawn.cc:847)
#7  0x6108c830 is in do_cleanup(void*) (../../../../cygwin/winsup/cygwin/spawn.cc:336)
(gdb) thread 2
[Switching to thread 2 (thread 1920.0x6e4)]#0  0x7ffe0304 in ?? ()
(gdb) bt
#0  0x7ffe0304 in ?? ()
#1  0x77f5bfb4 in ntdll!ZwReadFile ()
   from /cygdrive/c/WINDOWS/System32/ntdll.dll
#2  0x77e7abbd in ReadFile () from /cygdrive/c/WINDOWS/system32/kernel32.dll
#3  0x6108ad36 is in wait_sig(void*) (../../../../cygwin/winsup/cygwin/sigproc.cc:1089)
#4  0x610a0ddb is in pthread_key::set(void const*) 
(../../../../cygwin/winsup/cygwin/thread.cc:1384)
#5  0x61002d00 is in cygthread::stub(void*) 
(../../../../cygwin/winsup/cygwin/cygthread.cc:32)
#6  0x61024a70 is in handle_exceptions 
(../../../../cygwin/winsup/cygwin/exceptions.cc:420)
#7  0x61002d00 is in cygthread::stub(void*) 
(../../../../cygwin/winsup/cygwin/cygthread.cc:32)
(gdb) thread 3
[Switching to thread 3 (thread 1920.0x4f0)]#0  0x77f75a59 in ntdll!DbgUiConnectToDbg 
() from /cygdrive/c/WINDOWS/System32/ntdll.dll
(gdb) bt
#0  0x77f75a59 in ntdll!DbgUiConnectToDbg ()
   from /cygdrive/c/WINDOWS/System32/ntdll.dll
#1  0x77f5f31f in ntdll!KiUserCallbackDispatcher ()
   from /cygdrive/c/WINDOWS/System32/ntdll.dll
#2  0x0005 in ?? ()
#3  0x0004 in ?? ()
#4  0x0001 in ?? ()
#5  0x003fffd0 in ?? ()
#6  0x85e0d020 in ?? ()
#7  0x in ?? ()
#8  0x77fa88f0 in wcstombs () from /cygdrive/c/WINDOWS/System32/ntdll.dll
(gdb)

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

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



Re: setup hangs during postinstall

2003-10-08 Thread Don Koch
> > Have we ever gotten a 'ps -ef' when setup.exe is hung?  It would be nice
> > to know if it is sh or bash that is having problems or cygpath itself.
> >
> > I can't find one of these in the archives but I could easily have missed
> > it.
> >
> > cgf
> 
> Hmm... what is that supposed to tell?
> 
> $ ps
>   PIDPPIDPGID WINPID  TTY  UIDSTIME COMMAND
>   908   1 908   2636  con  500 17:09:34 /usr/bin/rxvt
> I 332 908 332   20560  500 17:09:34 /usr/bin/bash
>   640   1 640   2036  con  500 18:28:20 /usr/bin/rxvt
>  2416 6402416   25282  500 18:28:20 /usr/bin/bash
>  2008   12008   2008  con  500 20:15:04 /usr/bin/sh
> I 32020082008320  con  500 20:15:05 /usr/bin/bash
>  2212 3202008   2212  con  500 20:15:05 /usr/bin/cygpath
>  198824161988   21162  500 20:15:19 /usr/bin/ps
> 
> $ ps -ef
>  UID PIDPPID TTY STIME COMMAND
>Hannu 908   1 con  17:09:34 /usr/bin/rxvt
>Hannu 332 908   0  17:09:34 /usr/bin/bash
>Hannu 640   1 con  18:28:20 /usr/bin/rxvt
>Hannu2416 640   2  18:28:20 /usr/bin/bash
>Hannu2008   1 con  20:15:04 /usr/bin/sh
>Hannu 3202008 con  20:15:05 /usr/bin/bash
>Hannu2212 320 con  20:15:05 /usr/bin/cygpath
>Hannu2404 332   0  20:15:30 /usr/bin/gdb
>Hannu21162416   2  20:17:44 /usr/bin/ps
> 
> $

Just out of curiosity, does it hang if no other cygwin programs are running
at the time you run setup?

-- 
Don Koch
[EMAIL PROTECTED]

Not speaking for Cognex Corporation.



--
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: Where is rsh and telnet executables

2003-10-08 Thread Ian Botham
Andrew DeFaria wrote:

Where are the rsh and telnet clients for cygwin?  In my previous 
installation I believe they existed but since I have moved to this new 
machine, I can't find it anywhere on the setup.exe installation list. 


inetutils
I had inetutils installed but these utils weren't showing up. I did a 
reinstall of this package and now everything is there. I guess something 
was corrupted.

Thanks for your help.

- Ian



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


RE: setup hangs during postinstall

2003-10-08 Thread Hannu E K Nevalainen
> From: Christopher Faylor
> Sent: Wednesday, October 08, 2003 9:00 PM

> On Wed, Oct 08, 2003 at 08:47:05PM +0200, Hannu E K Nevalainen wrote:
> >(gdb) l *0x610885a3
> >No source file for address 0x610885a3.
> 
> In other words, you are not running with a debugging version of
> cygwin1.dll so there are no debugging symbols available.
> 
> cgf

Argh... Yes.
I have hope that Brian Ford can help in a better way. :-7

/Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E
-- UTC+01, DST -> UTC+02  --
--END OF MESSAGE-- 

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



RE: setup hangs during postinstall

2003-10-08 Thread Hannu E K Nevalainen

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf
> Of Don Koch
> Sent: Wednesday, October 08, 2003 9:16 PM
> To: [EMAIL PROTECTED]
> Subject: Re: setup hangs during postinstall
>
>
> > > Have we ever gotten a 'ps -ef' when setup.exe is hung?  It
> would be nice
> > > to know if it is sh or bash that is having problems or cygpath itself.
> > >
> > > I can't find one of these in the archives but I could easily
> have missed
> > > it.
> > >
> > > cgf
> >
> > Hmm... what is that supposed to tell?
> >
> > $ ps
> >   PIDPPIDPGID WINPID  TTY  UIDSTIME COMMAND
> >   908   1 908   2636  con  500 17:09:34 /usr/bin/rxvt
> > I 332 908 332   20560  500 17:09:34 /usr/bin/bash
> >   640   1 640   2036  con  500 18:28:20 /usr/bin/rxvt
> >  2416 6402416   25282  500 18:28:20 /usr/bin/bash
> >  2008   12008   2008  con  500 20:15:04 /usr/bin/sh
> > I 32020082008320  con  500 20:15:05 /usr/bin/bash
> >  2212 3202008   2212  con  500 20:15:05 /usr/bin/cygpath
> >  198824161988   21162  500 20:15:19 /usr/bin/ps
> >
> > $ ps -ef
> >  UID PIDPPID TTY STIME COMMAND
> >Hannu 908   1 con  17:09:34 /usr/bin/rxvt
> >Hannu 332 908   0  17:09:34 /usr/bin/bash
> >Hannu 640   1 con  18:28:20 /usr/bin/rxvt
> >Hannu2416 640   2  18:28:20 /usr/bin/bash
> >Hannu2008   1 con  20:15:04 /usr/bin/sh
> >Hannu 3202008 con  20:15:05 /usr/bin/bash
> >Hannu2212 320 con  20:15:05 /usr/bin/cygpath
> >Hannu2404 332   0  20:15:30 /usr/bin/gdb
> >Hannu21162416   2  20:17:44 /usr/bin/ps
> >
> > $
>
> Just out of curiosity, does it hang if no other cygwin programs
> are running
> at the time you run setup?

 Yes.

 The other processes are there for my convinience only, to make
"effective"(ironic tone) debugging. ;-P

/Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E
-- UTC+01, DST -> UTC+02  --
--END OF MESSAGE--


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



RE: cygpath hang - using gdb

2003-10-08 Thread Hannu E K Nevalainen
> From: Christopher Faylor
> Sent: Wednesday, October 08, 2003 9:02 PM

> No, you've stepped into the part that is hanging, so gdb is
> >> waiting patiently
> >> for it to return.
> >>
> >> cgf
> >
> >Ok. Got that.
> >Now; Any ideas how to work further on this?
> >Set breakpoints at "random" places in cygpath?
>
> Build a cygwin1.dll with --enable-debugging, install it, build
> cygpath.exe,
> install it.  "set CYGWIN_DEBUG=cygpath" at the command prompt
> before running
> setup.exe.  That will pop up a debugger when cygpath is run before main is
> hit.
>
> cgf

Alrigth. As time eludes me this evening (soon 22:00 local time), I'll have a
shot at that tomorrow. If Brian Ford doesn't get at it before me, he seems
to have that running already.

/Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E
-- UTC+01, DST -> UTC+02  --
--END OF MESSAGE--


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



Logon failure: unknown user name or bad password

2003-10-08 Thread shimsha rao
I am using windows 2000 professional. It has one
global account and 2
local accounts. Recently, I changed my global
account's password.
Since then, I am facing problem in running the
following commands in
cygwin:

$ mkgroup -d
NetGroupEnum() failed with 1326
$ mkpasswd -d
mkpasswd: [1326] Logon failure: unknown user name or
bad password.

It used to work properly before changing the password.
What is causing
this problem? I can access network computes.

thanks,
shimsha



Yahoo! India Matrimony: Find your partner online.
Go to http://yahoo.shaadi.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: setup hangs during postinstall

2003-10-08 Thread Hannu E K Nevalainen
> From: Igor Pechtchanski
> Sent: Wednesday, October 08, 2003 8:51 PM

> On Wed, 8 Oct 2003, Hannu E K Nevalainen wrote:

> >  This is how it looks for me, when I try to follow the
> description above...
> > HTH (not really expecting it to) :-I
> >
> > This is W2K adv server, SP4+ as I've told before... last and
> latest of all
> > cygwin packages - and setup2.416-1  (updated this evening from rcn.net)
>
> Hannu,
>
> Can you attach to a hanging cygpath process with strace and post the
> output?
>   Igor

Probably, I'll do that tomorrow if you don't mind - assuming you still think
its wortwhile then... I'll check email at least once before I try it.

/Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E
-- UTC+01, DST -> UTC+02  --
--END OF MESSAGE--


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



make install does nothing

2003-10-08 Thread Joost Kraaijeveld
I have this makefile with the following target (the maMakefile is from
MICO 2.3.10):

...
install:
for i in $(INSTALLDIRS); do $(MAKE) -C $$i install || exit 1;
done
if test -f doc/doc.ps; then \
$(IDIRCMD) $(SHARED_INSTDIR)/doc/mico; \
$(IMANCMD) doc/doc.ps
$(SHARED_INSTDIR)/doc/mico/manual.ps; \
fi
-ldconfig
...

If I do "make install", make responds with "make: 'install' is up to
date. If I rename the target to "install1" it works as expected. Am I
missing something and is this behaviour by design?

Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
email: [EMAIL PROTECTED]
web: www.askesis.nl 


 


smime.p7s
Description: S/MIME cryptographic signature


Re: Perl, the GMP library, and the Math::BigInt::GMP module

2003-10-08 Thread Gerrit P. Haase
Hallo Peter,

Am Mittwoch, 8. Oktober 2003 um 07:50 schriebst du:

> I have installed the latest versions of Perl and the GMP library,
> and want to install the Math::BigInt::GMP Perl module which makes
> use of this GMP library, but I can't make them play together.

> There is a complaint "No library found for -lgmp", but I know the
> library is installed.  I can also see the files:

>$ find /usr/lib /usr/local/lib -type f | grep -i gmp
>/usr/lib/libgmp.dll.a
>/usr/lib/libgmp.la
>/usr/lib/w32api/libigmpagnt.a

This ia a problem with MakeMaker.  It just looks for .a libraries and
doesn't see the .dll.a import library,  I thought it was fixed, which
version of perl are you using?

As a workaround try creating a symlink libgmp.dll.a libgmp.a or create
an empty libgmp.a in /usr/lib.

> Below are the results from my attempt.  What am I doing wrong?
> What must I do to get it working?
[...]


Gerrit
-- 
=^..^=


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



Perl Tk in Cygwin (using X)

2003-10-08 Thread Charles Plager
Hello,
	I'm not sure if this is a cygwin problem or a Tk problem.  I am trying 
to build Tk under cygwin.  I did this successfully 5 months ago, but it 
doesn't work anymore.

1) Is there a fix/work around to this problem?
2) Is there a place to just download the Tk X binaries for cygwin? Or, 
can comebody tell me how to use my binaries on another cygwin install?

Thanks,
  Charles
What I did:
unix> perl -MCPAN -e shell
CPAN> get Tk
CPAN> exit
unix> cd .cpan/build/Tk804.025/
unix> perl Makefile.PL x
unix> make
Things start compiling nicely until below.

Note 1: This happens both on my computer and a "brand new" install of 
cygwin.
Note 2: Again, I successsfully build Tk with my computer almost 1/2 a 
year ago.  I haven't uninstalled any libraries.

---Error Message---

gcc -c  -I.. -I/usr/X11R6/include -I. -Ibitmaps -I/usr/X11R6/include 
-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -DUSEIMPORTLIB -O3 
-DVERSION=\"804.025\" -DXS_VERSION=\"804.025\" 
"-I/usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE"  -U_WIN32 -Wall 
-Wno-implicit-int -Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__ 
tixDiITxt.c
In file included from tixDef.h:23,
 from tixDiITxt.c:20:
default.h:21:29: tkWinDefault.h: No such file or directory
tixDiITxt.c:141: error: `NORMAL_BG' undeclared here (not in a function)
tixDiITxt.c:141: error: initializer element is not constant
tixDiITxt.c:141: error: (near initialization for 
`imageTextStyleConfigSpecs[10].defValue')
tixDiITxt.c:143: error: initializer element is not constant
tixDiITxt.c:143: error: (near initialization for 
`imageTextStyleConfigSpecs[10]')
tixDiITxt.c:145: error: `WHITE' undeclared here (not in a function)
tixDiITxt.c:145: error: initializer element is not constant
tixDiITxt.c:145: error: (near initialization for 
`imageTextStyleConfigSpecs[11].defValue')
tixDiITxt.c:147: error: initializer element is not constant
tixDiITxt.c:147: error: (near initialization for 
`imageTextStyleConfigSpecs[11]')
tixDiITxt.c:149: error: `BLACK' undeclared here (not in a function)
tixDiITxt.c:149: error: initializer element is not constant
tixDiITxt.c:149: error: (near initialization for 
`imageTextStyleConfigSpecs[12].defValue')
tixDiITxt.c:151: error: initializer element is not constant
tixDiITxt.c:151: error: (near initialization for 
`imageTextStyleConfigSpecs[12]')
tixDiITxt.c:153: error: `BLACK' undeclared here (not in a function)
tixDiITxt.c:153: error: initializer element is not constant
tixDiITxt.c:153: error: (near initialization for 
`imageTextStyleConfigSpecs[13].defValue')
tixDiITxt.c:155: error: initializer element is not constant
tixDiITxt.c:155: error: (near initialization for 
`imageTextStyleConfigSpecs[13]')
tixDiITxt.c:157: error: `ACTIVE_BG' undeclared here (not in a function)
tixDiITxt.c:157: error: initializer element is not constant
tixDiITxt.c:157: error: (near initialization for 
`imageTextStyleConfigSpecs[14].defValue')
tixDiITxt.c:159: error: initializer element is not constant
tixDiITxt.c:159: error: (near initialization for 
`imageTextStyleConfigSpecs[14]')
tixDiITxt.c:161: error: `BLACK' undeclared here (not in a function)
tixDiITxt.c:161: error: initializer element is not constant
tixDiITxt.c:161: error: (near initialization for 
`imageTextStyleConfigSpecs[15].defValue')
tixDiITxt.c:163: error: initializer element is not constant
tixDiITxt.c:163: error: (near initialization for 
`imageTextStyleConfigSpecs[15]')
tixDiITxt.c:165: error: `BLACK' undeclared here (not in a function)
tixDiITxt.c:165: error: initializer element is not constant
tixDiITxt.c:165: error: (near initialization for 
`imageTextStyleConfigSpecs[16].defValue')
tixDiITxt.c:167: error: initializer element is not constant
tixDiITxt.c:167: error: (near initialization for 
`imageTextStyleConfigSpecs[16]')
tixDiITxt.c:169: error: `WHITE' undeclared here (not in a function)
tixDiITxt.c:169: error: initializer element is not constant
tixDiITxt.c:169: error: (near initialization for 
`imageTextStyleConfigSpecs[17].defValue')
tixDiITxt.c:171: error: initializer element is not constant
tixDiITxt.c:171: error: (near initialization for 
`imageTextStyleConfigSpecs[17]')
tixDiITxt.c:173: error: `SELECT_BG' undeclared here (not in a function)
tixDiITxt.c:173: error: initializer element is not constant
tixDiITxt.c:173: error: (near initialization for 
`imageTextStyleConfigSpecs[18].defValue')
tixDiITxt.c:175: error: initializer element is not constant
tixDiITxt.c:175: error: (near initialization for 
`imageTextStyleConfigSpecs[18]')
tixDiITxt.c:177: error: `BLACK' undeclared here (not in a function)
tixDiITxt.c:177: error: initializer element is not constant
tixDiITxt.c:177: error: (near initialization for 
`imageTextStyleConfigSpecs[19].defValue')
tixDiITxt.c:179: error: initializer element is not constant
tixDiITxt.c:179: error: (near initialization for 
`imageTextStyleConfigSpecs[19]')
tixDiITxt.c:181: error: `BLACK' undeclared here (not in a function)
tixDiITxt.c:181: error: initia

RE: setup hangs during postinstall

2003-10-08 Thread Brian Ford
Igor Pechtchanski wrote:
> Can you attach to a hanging cygpath process with strace and post the
> output?
>
I would, but:

http://www.cygwin.com/ml/cygwin/2003-10/msg00114.html

I had limited success debugging this with an older Cygwin CVS built DLL
(probably around 1.5.3).  It showed an error accessing the pinfo (SEGV).
Sorry, no more detail right now.

My current CVS compiled Cygwin DLL causes this in gdb which makes
debugging this pretty impossible for me:

$ gdb ./strace
GNU gdb 2003-09-20-cvs (cygwin-special)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...
(gdb) b main
Breakpoint 1 at 0x403780: file ../../../../cygwin/winsup/utils/strace.cc, line 900.
(gdb) r -p 1816
Starting program: /home/ford/strace.exe -p 1816
Error creating process /home/ford/strace.exe, (error 5)

(gdb) quit

[EMAIL PROTECTED] ~
$ net helpmsg 5

Access is denied.

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

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



MC - big pause

2003-10-08 Thread John King


It's version 4.6.0 (sorry about reduncant postings, if any)

jk



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


Re: setup hangs during postinstall

2003-10-08 Thread Robert Collins
On Thu, 2003-10-09 at 02:57, Igor Pechtchanski wrote:

> FWIW, so do I.
>   Igor

Ditto.

Rob
-- 
GPG key available at: .


signature.asc
Description: This is a digitally signed message part


Re: 1.5.5: strace -p broken?

2003-10-08 Thread Igor Pechtchanski
On Thu, 2 Oct 2003, Brian Ford wrote:

> I have tried strace -p cygpid on a number of processes with no luck.  It
> just hangs for a few seconds and exits.  Am I doing something wrong?
>
> [EMAIL PROTECTED] ~
> $ sleep 100&
> [4] 374
>
> [EMAIL PROTECTED] ~
> $ strace -p 374
>
> [EMAIL PROTECTED] ~
> $ echo $?
> 5
>
> Thanks.

Hmm, yes -- in my case I'm getting a segfault, so it's apparently broken.
If I have time later this week, I'll build a debugging version of strace
to see what's going on here.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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: make install does nothing

2003-10-08 Thread Igor Pechtchanski
On Wed, 8 Oct 2003, Joost Kraaijeveld wrote:

> I have this makefile with the following target (the maMakefile is from
> MICO 2.3.10):
>
> ...
> install:
> for i in $(INSTALLDIRS); do $(MAKE) -C $$i install || exit 1;
> done
> if test -f doc/doc.ps; then \
> $(IDIRCMD) $(SHARED_INSTDIR)/doc/mico; \
> $(IMANCMD) doc/doc.ps
> $(SHARED_INSTDIR)/doc/mico/manual.ps; \
> fi
> -ldconfig
> ...
>
> If I do "make install", make responds with "make: 'install' is up to
> date. If I rename the target to "install1" it works as expected. Am I
> missing something and is this behaviour by design?
>
> Joost Kraaijeveld

Do you have a directory or a file called "install" or "INSTALL"?  If so,
make thinks that that's the target you need to make, and reports it as
up-to-date.  You can do one of two things: change the Makefile to add a
".PHONY: install" (a good thing to do in any case), or add
"check_case:strict" to your CYGWIN environment variable (won't work if
"install" is an actual file/directory).
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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



Re: 1.5.5: strace -p broken?

2003-10-08 Thread Brian Ford
On Wed, 8 Oct 2003, Igor Pechtchanski wrote:

> On Thu, 2 Oct 2003, Brian Ford wrote:
>
> > I have tried strace -p cygpid on a number of processes with no luck.  It
> > just hangs for a few seconds and exits.  Am I doing something wrong?
> >
> > [EMAIL PROTECTED] ~
> > $ sleep 100&
> > [4] 374
> >
> > [EMAIL PROTECTED] ~
> > $ strace -p 374
> >
> > [EMAIL PROTECTED] ~
> > $ echo $?
> > 5
> >
> > Thanks.
>
> Hmm, yes -- in my case I'm getting a segfault, so it's apparently broken.
> If I have time later this week, I'll build a debugging version of strace
> to see what's going on here.
>   Igor
>
I'm pretty sure that the segfault happens when accessing the pinfo, I just
don't have a stack trace handy.  I think it was under
cygwin_internal(CW_CYGWINPID_TO_WINDOWSPID) or the like (I'm going from
memory here).

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

--
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: make install does nothing

2003-10-08 Thread Joost Kraaijeveld
> Do you have a directory or a file called "install" or 
> "INSTALL"?  If so,
> make thinks that that's the target you need to make, and reports it as
> up-to-date.  You can do one of two things: change the 
> Makefile to add a
> ".PHONY: install" (a good thing to do in any case), or add
> "check_case:strict" to your CYGWIN environment variable (won't work if
> "install" is an actual file/directory).
Aha, yep, an INSTALL file. I will try the check_case:strict. 

Thanks 

Joost


smime.p7s
Description: S/MIME cryptographic signature


Re: Domain Users

2003-10-08 Thread Boris Mayer-St-Onge
bash: cannot create temp file for here document: Permission denied
At a guess, this is because you have TEMP set to some directory that
domain users cannot access.  You could add a "TEMP=/tmp" at the top of
/etc/profile, and see if it helps.  Oh, and make sure /tmp on every
computer is mode 01777, so that it *is* writeable by everyone.
The TEMP variable is set, and is %USERPROFILE%\Local Settings\Temp. The 
directory exist and user have write access (but not everyone, I will do 
test with that).

Your group is currently "mkpasswd".  This indicates that
the /etc/passwd (ans possibly /etc/group) files should be rebuilt.
See the man pages for mkpasswd and mkgroup then, for example, run
mkpasswd -l [-d] > /etc/passwd
mkgroup -l [-d] > /etc/group
Note that the -d switch is necessary for domain users.
The problem is that we have several hundren of users and some of them
are added and deleted each week.  Is there an other solution that adding
all the users in the /etc/passwd file?
Unfortunately, the SID of the user should be in /etc/passwd for the user
to have full use of Cygwin's services, etc.  One possible solution in your
situation is to keep one centralized user database on a shared drive and
mount it as /etc/passwd on each machine (and similarly for groups).  That
way, when you add and remove users, you will only have to change one file.
The UIDs for the standard accounts (i.e., Administrator{,s}, SYSTEM, etc)
are usually pretty standard, at least on NT-based OSs, but I'm not too
sure about the SIDs, so you might have some problems there...  Also, be
aware that security attributes on shared drives are controlled by the
"smbntsec" setting in the CYGWIN environment variable, rather than
"ntsec".
Thanks for the answer.  I will check what I can do.  Two more questions:

1- From what I understand, this problem occur only since version 1.5.x 
of cygwin.  Is that right?

2- Is it possible to install a older version of cygwin (we have all the 
file of version 1.3.22-1 except the setup.exe).  When we try to install 
cygwin with the setup.exe from the web page and with the files from a 
local directory, we have errors.  Is it possible to have an older 
version of setup.exe?

Boris

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


Re: setup hangs during postinstall

2003-10-08 Thread Christopher Faylor
On Wed, Oct 08, 2003 at 03:26:29PM -0500, Brian Ford wrote:
>Igor Pechtchanski wrote:
>> Can you attach to a hanging cygpath process with strace and post the
>> output?
>>
>I would, but:
>
>http://www.cygwin.com/ml/cygwin/2003-10/msg00114.html
>
>I had limited success debugging this with an older Cygwin CVS built DLL
>(probably around 1.5.3).  It showed an error accessing the pinfo (SEGV).
>Sorry, no more detail right now.

I fixed it in cvs.

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: Perl Tk in Cygwin (using X)

2003-10-08 Thread Greg Matheson
On Wed, 08 Oct 2003, Charles Plager wrote:

> Hello,
>   I'm not sure if this is a cygwin problem or a Tk problem.  I am trying 
> to build Tk under cygwin.  I did this successfully 5 months ago, but it 
> doesn't work anymore.

Was it the same version of Tk?

> ---Error Message---
> 
> gcc -c  -I.. -I/usr/X11R6/include -I. -Ibitmaps -I/usr/X11R6/include 
> -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -DUSEIMPORTLIB -O3 
> -DVERSION=\"804.025\" -DXS_VERSION=\"804.025\" 
> "-I/usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE"  -U_WIN32 -Wall 
> -Wno-implicit-int -Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__ 
> tixDiITxt.c
> In file included from tixDef.h:23,
>   from tixDiITxt.c:20:
> default.h:21:29: tkWinDefault.h: No such file or directory

Does this mean it thinks it is on Win32, rather than Unix? Why
wouldn't the file be part of the distribution?

-- 
Greg Matheson, Taiwan

--
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: Domain Users

2003-10-08 Thread Pierre A. Humblet
On Wed, Oct 08, 2003 at 04:55:18PM -0400, Boris Mayer-St-Onge wrote:
> 
> 1- From what I understand, this problem occur only since version 1.5.x 
> of cygwin.  Is that right?

Yes, but see below.
 
> 2- Is it possible to install a older version of cygwin (we have all the 
> file of version 1.3.22-1 except the setup.exe).  When we try to install 
> cygwin with the setup.exe from the web page and with the files from a 
> local directory, we have errors.  Is it possible to have an older 
> version of setup.exe?

The message is not produced by cygwin itself by by the /etc/profile
script, which you can easily edit to remove the section of code that
checks the group name. It's just a warning, nothing bad will happen as
long as you don't try to use features (e.g. chown and various services)
that require a complete /etc/passwd. I would recommend doing that rather
than trying to go back in time.

Pierre

--
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: messed up user permissions from w2k terminal session

2003-10-08 Thread Pierre A. Humblet
On Fri, Oct 03, 2003 at 04:48:43PM -0400, James D Below wrote:
> HI everyone,
> 
> I'm not sure how I did it but I messed up my user permissions or local 
> policy settings.  Now whenever I run any cygwin app (bash.exe, wc.exe, 
> rxvt.exe) from a w2k terminal session and logged in as a user, I see the 
> following error:
> 
>   CreateFileMapping, Win32 error 5.  Terminating.
> 
> I'm running Windows 2000 SP4 and CYGWIN = binmode tty ntsec

This problem has now been explained with James' help and this message
is to close the thread.
It turns out that on some recent Windows systems a special privilege,
"create global objects", is required to run Cygwin 1.5.X from
a terminal session. It can be given to users with the "editrights.exe"
utility.

Pierre
  

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



problem with tcsh-6.12.00-7.tar.bz2

2003-10-08 Thread Andrew Grimm
This package includes /etc/csh.login which has the line:

set TERM=cygwin

This should instead read:

set term=cygwin

which will set the shell variable term and the environment variable TERM
correctly when tcsh is used as the base shell for the Cygwin shell window.

-Andy


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



Re: setup hangs during postinstall

2003-10-08 Thread Christopher Faylor
On Wed, Oct 08, 2003 at 02:12:34PM -0500, Brian Ford wrote:
>The hand decoded trace (The same one as before.  I still had gdb up.)
>is below.

Wow, that was a lot of work.  Thanks for doing this.

>>That's the only way I know of to deal with this.  If gcc produced dwarf2
>>output, we could use the CFI to get more accurate information about the
>>stack frame but that's not going to happen anytime soon.
>>
>Was that a hint for me :).

Not really.  I actually started typing the above and got a few sentences
in when something tickled my memory that you were working on this.

>Getting gcc to product dwarf2 output is easy.  Getting the resulting
>executable to run with the dwarf2 sections is the hard part.  It
>(dwarf2) needs a section relative relocation in gas/ld/bfd like I said
>before.  Know anyone who wants to help?  :D

Unfortunately, not.  I've been asking various people to do this for years.

>>>I included all three thread backtraces just in case anyone can see
>>>anything.  Let me know if have any better idea about how to track this
>>>down.
>>
>>The trace from thread 2 is what I would expect.  Thread 1 is obviously
>>waiting for something but I don't know what without more stack info.
>>
>
>I'll do thread 3 too if you think it is relevent.
>
>(gdb) info threads
>  3 thread 1920.0x4f0  0x77f75a59 in ntdll!DbgUiConnectToDbg ()
>   from /cygdrive/c/WINDOWS/System32/ntdll.dll
>  2 thread 1920.0x6e4  0x7ffe0304 in ?? ()
>* 1 thread 1920.0x760  0x7ffe0304 in ?? ()
>(gdb) thread 1
>[Switching to thread 1 (thread 1920.0x760)]#0  0x7ffe0304 in ?? ()
>(gdb) bt
>#0  0x7ffe0304 in ?? ()
>#1  0x77f5c524 in ntdll!ZwWaitForMultipleObjects ()
>   from /cygdrive/c/WINDOWS/System32/ntdll.dll
>#2  0x77e75ee0 in WaitForMultipleObjectsEx ()
>   from /cygdrive/c/WINDOWS/system32/kernel32.dll
>#3  0x610901e9 in muto::acquire(unsigned long) 
>(../../../../cygwin/winsup/cygwin/sync.cc:75)
>#4  0x6108b587 is in WFMO (../../../../cygwin/winsup/cygwin/sigproc.cc:1248)
>#5  0x61090410 is in close_all_files() 
>(../../../../cygwin/winsup/cygwin/syscalls.cc:10
>#6  0x6108d81f is in spawn_guts(char const*, char const* const*, char const* const*, 
>int) (../../../../cygwin/winsup/cygwin/spawn.cc:847)
>#7  0x6108c830 is in do_cleanup(void*) (../../../../cygwin/winsup/cygwin/spawn.cc:336)
>(gdb) thread 2

So, if I can believe this trace, it looks like cygwin is hanging waiting for
a lock while exiting.  I don't see how it's possible to be waiting for
a lock unless cygpath was a multi-threaded app or if the signal thread
grabbed the lock and didn't give it up, neither of which should be the
case.

So, color me puzzled.  I will continue to ponder this, though.  I haven't
had a shower yet.  That's where most of my inspiration hits me...

...Well, it's close to the shower, anyway...

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: Perl Tk in Cygwin (using X)

2003-10-08 Thread Charles Plager
On Wed, 08 Oct 2003, Charles Plager wrote:

Hello,
	I'm not sure if this is a cygwin problem or a Tk problem.  I am trying 
to build Tk under cygwin.  I did this successfully 5 months ago, but it 
doesn't work anymore.
Was it the same version of Tk?
Apparently not.  The version that worked is 800.024 and the version that 
didn't work is 804.025.


---Error Message---

gcc -c  -I.. -I/usr/X11R6/include -I. -Ibitmaps -I/usr/X11R6/include 
-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -DUSEIMPORTLIB -O3 
-DVERSION=\"804.025\" -DXS_VERSION=\"804.025\" 
"-I/usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE"  -U_WIN32 -Wall 
-Wno-implicit-int -Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__ 
tixDiITxt.c
In file included from tixDef.h:23,
  from tixDiITxt.c:20:
default.h:21:29: tkWinDefault.h: No such file or directory
Does this mean it thinks it is on Win32, rather than Unix? Why
wouldn't the file be part of the distribution?
According to the README.cygwin, " perl Makefile.PL x" is "supposed" to 
set it up to be compiled for X11.  Whether it really does or not, I 
don't know.

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


Opening *.bz2 files

2003-10-08 Thread Alex Vinokur
Opening *.bz2 files

Is there any utility in Cygwin which opens *.bz2 files?

   =
   Alex Vinokur
 mailto:[EMAIL PROTECTED]
 http://mathforum.org/library/view/10978.html
   =





--
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: Opening *.bz2 files

2003-10-08 Thread Robert McNulty Junior
Bunzip2.exe

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Alex Vinokur
Sent: Wednesday, October 08, 2003 11:03 PM
To: [EMAIL PROTECTED]
Subject: Opening *.bz2 files

Opening *.bz2 files

Is there any utility in Cygwin which opens *.bz2 files?

   =
   Alex Vinokur
 mailto:[EMAIL PROTECTED]
 http://mathforum.org/library/view/10978.html
   =





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




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



Re: Redistributing cygwin1.dll on a site turns out to be a bad idea

2003-10-08 Thread Frédéric L. W. Meunier
BTW, if you want to see who's distributing cygwin1.dll without
the respective sources, doing this search will return a lot of
results :-)

Anyway, the first link (redistributing cygwin1.dll) is a nice
thread about it, which I suggest for all people distributing
the DLL.

I'm killing my (this) thread.

On Wed, 8 Oct 2003, Frédéric L. W. Meunier wrote:

> mainly because one of my pages is the 10° result of a search
> for download+cygwin1.dll on Google.

-- 
How to contact me - http://www.pervalidus.net/contact.html

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



*** CreateFileMapping, Win32 error 5. Terminating.

2003-10-08 Thread Dylan Cuthbert
Hi there,
(B
(BI updated Cygwin yesterday and now I get this error whenever I try to do
(B*anything* with cygwin:
(B
(Bd:\cygwin\bin\bash.exe: *** CreateFileMapping, Win32 error 5.  Terminating.
(B
(BWhat's odd is this doesn't happen immediately, it happens after a cron task
(Bthat uses rsync to make backups to an rsync server has run.  I think it
(Bprobably has more to do with the cron daemon than rsync but god knows what
(Bthe problem is.
(B
(BI've checked other messages on this subject and they seem to refer to file
(Bpermissions etc. but my entire cygwin directory tree is accessible to any
(Bvalid user on my machine and ls -l shows all permissions as rwx.
(B
(BDoes someone have any clues as disabling my auto backups isn't a good
(Bsolution? :-)
(B
(B-
(BQ-Games, Dylan Cuthbert.
(Bhttp://www.q-games.com
(B
(B
(B
(B--
(BUnsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
(BProblem reports:   http://cygwin.com/problems.html
(BDocumentation: http://cygwin.com/docs.html
(BFAQ:   http://cygwin.com/faq/

Re: setup hangs during postinstall

2003-10-08 Thread Norbert Schulze
Christopher Faylor wrote:


> So, if I can believe this trace, it looks like cygwin is hanging waiting
for
> a lock while exiting.  I don't see how it's possible to be waiting for
> a lock unless cygpath was a multi-threaded app or if the signal thread
> grabbed the lock and didn't give it up, neither of which should be the
> case.

When setup hangs there is a log file
C:\cygwin\var\log\setup.log.postinstallXa00716:

  8 [main] bash 2316 sync_with_child: WaitForMultipleObjects timed out
/usr/X11R6/bin/XFree86-bin-icons.sh: fork: Resource temporarily unavailable
  6 [main] bash 3728 sync_with_child: WaitForMultipleObjects timed out
/usr/X11R6/bin/XFree86-bin-icons.sh: fork: Resource temporarily unavailable
  8 [main] bash 2580 sync_with_child: WaitForMultipleObjects timed out
/usr/X11R6/bin/XFree86-bin-icons.sh: fork: Resource temporarily unavailable

Regards
  Norbert Schulze



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