Re: tcsetattr ()

2003-10-29 Thread Martin Farnik
> On Fri, 24 Oct 2003, Martin Farnik wrote:
> 
> > Brian Ford wrote:
> > >Incidentally, I am working on a trivial cleanup patch to fix:
> > >
> > >http://www.cygwin.com/ml/cygwin/2003-10/msg00708.html
> > >
> > >I just haven't had time to test it thoroughly yet.  I have no idea about
> > >this person's second "random hang" problem.  It wasn't very eloquently
> > >described.
> >
> > It is a good news that you are working on patch to fix it.
> > It is very easy to test it.
> >
> Want to test it for me?

Yes.Of course.

> 
> Do you know how to compile and test the cygwin1.dll if I send you the
> patch, or would you prefer a binary?

I never compile cygwin so I would prefer a binary. But you can send me source code too 
and I will  try compile it.

> 
> Can you test it on multiple OSes?
I can test it on Windows 98, Windows 2000 SP2.

> 
> > I think that this random hangs problem is closely connected to problem
> > above (with full serial buffer).
> >
> I haven't seen anything like this myself, but the devices I talk to don't
> just stream continually that often.

If I can help you with this random staff I do that, but I don't know how to get the 
point where the program hangs(windows say program isn't responding).
If you can send me some tips how to get this information t will try it.

Thanks 
Martin Farnik


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



iconv.h?

2003-10-29 Thread Thomas L Roche
I'm trying to build 'nd'

http://www.gohome.org/nd/

a CLI for WebDAV needed to run a related WebDAV client under Emacs.
I have latest libxml2 (2.5.11-1) from cygwin. But when I try to build,
I get

> [EMAIL PROTECTED] ~/emacs/eldav-0.7.2/nd-0.7.2
> $ ./configure
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking for gcc... gcc
> checking for C compiler default output... a.exe
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables... .exe
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ANSI C... none needed
> checking for style of include used by make... GNU
> checking dependency style of gcc... gcc3
> checking for a BSD-compatible install... /usr/bin/install -c
> checking for xml2-config... /usr/bin/xml2-config
> checking how to run the C preprocessor... gcc -E
> checking for egrep... grep -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking parser.h usability... no
> checking parser.h presence... no
> checking for parser.h... no
> checking for ANSI C header files... (cached) yes
> checking errno.h usability... yes
> checking errno.h presence... yes
> checking for errno.h... yes
> checking fcntl.h usability... yes
> checking fcntl.h presence... yes
> checking for fcntl.h... yes
> checking for stdlib.h... (cached) yes
> checking for string.h... (cached) yes
> checking for unistd.h... (cached) yes
> checking for an ANSI C-conforming const... yes
> checking for vprintf... no
> checking for getpass... no
> checking for memset... no
> checking for strchr... no
> checking for strerror... no
> checking for strncasecmp... no
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating config.h
> config.status: executing depfiles commands 

> [EMAIL PROTECTED] ~/emacs/eldav-0.7.2/nd-0.7.2
> $ make
> make  all-am
> make[1]: Entering directory `/v/tlroche/emacs/eldav-0.7.2/nd-0.7.2'
> source='nd.c' object='nd.o' libtool=no \
> depfile='.deps/nd.Po' tmpdepfile='.deps/nd.TPo' \
> depmode=gcc3 /bin/bash ./depcomp \
> gcc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include/libxml2  -g -O2 -c 
`test -f 'nd.c' || echo './'`nd.c
> In file included from /usr/include/libxml2/libxml/parser.h:655,
>  from /usr/include/libxml2/libxml/globals.h:16,
>  from /usr/include/libxml2/libxml/threads.h:31,
>  from /usr/include/libxml2/libxml/xmlmemory.h:188,
>  from nd.c:20:
> /usr/include/libxml2/libxml/encoding.h:27:19: iconv.h: No such file or 
directory
> In file included from /usr/include/libxml2/libxml/parser.h:655,
>  from /usr/include/libxml2/libxml/globals.h:16,
>  from /usr/include/libxml2/libxml/threads.h:31,
>  from /usr/include/libxml2/libxml/xmlmemory.h:188,
>  from nd.c:20:
> /usr/include/libxml2/libxml/encoding.h:132: error: parse error before 
"iconv_t"
> /usr/include/libxml2/libxml/encoding.h:132: warning: no semicolon at end 
of struct or union
> /usr/include/libxml2/libxml/encoding.h:133: warning: data definition has 
no type or storage class
> make[1]: *** [nd.o] Error 1
> make[1]: Leaving directory `/v/tlroche/emacs/eldav-0.7.2/nd-0.7.2'
> make: *** [all] Error 2

Where/how I can get iconv.h? Feel free to post to me directly,
as well as the 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: cygcheck & executable files of other compilers

2003-10-29 Thread Alex Vinokur

"Roman Belenov" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> "Alex Vinokur" <[EMAIL PROTECTED]> writes:
>
> >   1. How can the cygcheck utility know about DLLs in the Digital
> >   Mars executable file?
>
> All DLLs used by a Win32 executable are listed in the executable.
>
[snip]

Thanks.

We can see that through the strings utility :

$ strings foo.exe | grep -i ".dll"
cygwin1.dll
KERNEL32.dll

$ cygcheck foo.exe
Found: .\foo.exe
foo.exe
  C:\cygwin\bin\cygwin1.dll
C:\WINNT\System32\KERNEL32.dll
  C:\WINNT\System32\NTDLL.DLL

$ cygcheck -v foo.exe
Found: .\foo.exe
foo.exe - os=4.0 img=1.0 sys=4.0
  C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
"cygwin1.dll" v0.0 ts=2003/9/13 6:09
C:\WINNT\System32\KERNEL32.dll - os=5.0 img=5.0 sys=4.0
  "KERNEL32.dll" v0.0 ts=2000/11/22 7:50
  C:\WINNT\System32\NTDLL.DLL - os=5.0 img=5.0 sys=4.0
"ntdll.dll" v0.0 ts=2000/11/22 8:32
  C:\WINNT\System32\KERNEL32.dll (already done)


Regards,
 =
   Alex Vinokur
 mailto:[EMAIL PROTECTED]
 http://mathforum.org/library/view/10978.html
 news://news.gmane.org/gmane.comp.lang.c++.perfometer
   =









--
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: launching a windows program remotely using ssh

2003-10-29 Thread Larry Hall
At 04:39 PM 10/27/2003, Rob S.i.k.l.o.s. you wrote:
>From: "Larry Hall" <[EMAIL PROTECTED]>
>
>> At 02:33 PM 10/27/2003, Rob S.i.k.l.o.s. you wrote:
>> >Hello,
>> >
>> >I have an ssh (cygwin) server running on a windows 2000 machine, and I
>want
>> >to start a windows program on this machine using a remote command.
>> >
>> >My problem is that I can't get the window of the program to display
>> >anywhere.
>> >
>> >For example:
>> >I run something like "ssh [EMAIL PROTECTED] /c/winnt/system32/notepad.exe"
>> >
>> >When I ran this command, I was expecting to see a notepad window open on
>> >"computer", but none appeared.  Is there any way to accomplish this?
>> >The process *did* start, because it was listed in the task manager.
>>
>> See the "--interactive" flag of cygrunsrv.  You need to install ssh (or
>> any service) with this if you want the service to interact with the
>> "desktop"
>
>right - that totally works.  Thanks a lot.
>
>Now, is there any way of having sshd run being able to interact with the
>desktop, but without having an empty console window hanging around?
>
>I guess that was probably the point of not allowing sshd to interact with
>the desktop in the first place, huh?


Right. ;-)

Since it's a console program, if you allow it to interact with the 
desktop, it's going to create a console for itself.  I suppose you
could fiddle with running 'cygstart' or 'run' to try to get it to hide
the console.  That's without fiddling with sshd code that is.  I haven't
really investigated any of these options but it's just my way of saying
that it is quite possible to get a console program to hide the console
window.  See CreateProcess()/STARTUPINFO documentation for the details on 
the internals.



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


--
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: Does Cygwin have a 2GB Memory/RAM limit ?

2003-10-29 Thread Tim Prince
On Wednesday 29 October 2003 19:38, 
Dan_Nazario/ACIM/[EMAIL PROTECTED] wrote:
> I am running a Java application (Java version 1.4.x).
>
>
So this thread has nothing to do with cygwin?
-- 
Tim Prince

--
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: Does Cygwin have a 2GB Memory/RAM limit ?

2003-10-29 Thread Dan_Nazario/ACIM/americancentury




I am running a Java application (Java version 1.4.x).

I try to allocate a JVM with anything much larger than 1.6GB and it fails.
So I started to look at memory (1.6GB is no problem for Java to allocate
providing everything else is working OK).

Two of the places I looked (see below) are the top command and vmstat.
Both of which reported 2GB of RAM available despite my having set max
memory size to 4GB.

Based on that observation, I assumed that cygwin has a built in memory
limit of 2GB.
I'm wondering if anyone has seen this before, or has an environment (RAM >
2GB) where they could do a quick test to see if setting the max memory to >
2GB(see html link below)  reports only 2GB available.

I've checked the FAQ, searched the news groups, googled 'till I can't
google no more ;-).  Can't find any reference to this.

Thanks for any help.

Dan Nazario





   
   
   
   
"Timothy C 
   
Prince"To:   [EMAIL PROTECTED] 
 
<[EMAIL PROTECTED]cc:   [EMAIL PROTECTED]  
  
box.com>   Subject:  Re: Does Cygwin have a 2GB 
Memory/RAM limit ?
   
   
Sent by:   
   
[EMAIL PROTECTED]  
 
gwin.com   
   
   
   
   
   
10/29/2003 
   
06:29 PM   
   
   
   
   
   
   
   
   
   
   
   




I don't think you've defined your problem well enough to answer.  Are you
running a single thread gcc program which mallocs memory until it fails?
If you have multiple CPUs and run multiple threads or multiple instances of
your program, you might be able to use more of the memory.

-Original Message-
From: Dan_Nazario/ACIM/[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Date: Wed, 29 Oct 2003 17:40:02 -0600
Subject: Does Cygwin have a 2GB Memory/RAM limit ?

I am trying to run cygwin on a Windows 2003 server with 8GB of ram.

I have set the registry key to inform cygwin the max memory should be 4096
(4GB).  Checking the registry - I see the value is set to 4096.
(see: http://www.cygwin.com/cygwin-ug-net/setup-maxmem.html)
In spite of this, all indications are that it does not see more than 2GB
(2097151K) of RAM.  (top and vmstat output)

Can anyone else confirm this - that memory above 2GB is not visible to
cygwin.  Any known work-arounds?

Thanks in advance.

Dan Nazario

P.S.   Cygwin uname info is: CYGWIN_NT-5.2 **server name **
1.5.3(0.90/3/2) 2003-09-01 13:15 i686 unknown unknown Cygwin

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



Tim Prince

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

Re: Segmentation Fault of ssh3.7.1 with cygwin1.5.5-1 in W95

2003-10-29 Thread Pierre A. Humblet
At 03:05 PM 10/29/2003 -0400, Rodrigo Medina wrote:
>
>Corinna wrote:
>
>>Works for me on 98.  I don't have a 95 system for testing.  Do you
>>have more than one cygwin1.dll in the path?  Please send cygcheck
>>output according to http://cygwin.com/problems.html
>
>Corinna:
>
>This is the first time that cygwin is installed in this machine. In any case
>with FIND only C:\cygwin\bin\cygwin1.dll appears.

I observed a ssh crash on Win95 too, but only after running ssh-host-config
It went away after deleting the two ssh 22/ lines in c:\windows\services
They don't seem to end with CRNL.

I am not equipped to do serious debugging on my Win95 machine, strace shows
nothing of interest, the stackdump points to cygwin_getservbyname
and dup_ent.

~: cat ssh.exe.stackdump 
Exception: STATUS_ACCESS_VIOLATION at eip=610DF651
eax= ebx=00530740 ecx= edx=0053 esi=0010 edi=0053
ebp=0085F678 esp=0085F674 program=\\WORLDNET\C\SSH.EXE
cs=0137 ds=013F es=013F fs=4227 gs= ss=013F
Stack trace:
Frame Function  Args
0085F678  610DF651  (0053, 7E2E3D84, 0032, )
0085F6C8  61060914  (, 00530732, 0002, A2038AB0)
0085F718  6106215A  (0040B221, 0040B225, F48CC23C, C59AB5C7)
0085FBB8  0040B5EE  (616966CC, 00438FD0, , 0002)

~: addr2line -e /bin/cygwin1.dll -f 0x610DF651
??
../../../../../../src/newlib/libc/machine/i386/strlen.S:27
~: addr2line -e /bin/cygwin1.dll -f 0x61060914
_Z7dup_entPvS_11struct_type
/eroot/obj/i586-pc-cygwin/winsup/cygwin/../../../../src/winsup/cygwin/net.cc
:387
~: addr2line -e /bin/cygwin1.dll -f 0x6106215A
cygwin_getservbyname
/eroot/obj/i586-pc-cygwin/winsup/cygwin/../../../../src/winsup/cygwin/net.cc
:954

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: Configuring mail for cygwin

2003-10-29 Thread Eduardo Chappa
On Wed, 29 Oct 2003, Gary Nielson wrote:

:) I am running Windows XP and recently loaded cygwin. I am looking for an
:) easy way to download mail from my ISP account so that I can read my
:) mail in pine. How can I do this? Can someone point me to information on
:) how to set this up? Any help appreciated. Thanks.

Besides using fetchmail, there's a feature in Pine called "maildrop",
which offers you the same functionality, all within Pine. There's
information on configuring maildrops from the release notes (press M R in
Pine). I alo have information on configuring maildrops in my web page, if
for some reason you need extra help.

-- 
Eduardo
http://www.math.washington.edu/~chappa/pine/

--
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: Configuring mail for cygwin

2003-10-29 Thread Lou Losee
* Gary Nielson <[EMAIL PROTECTED]> [2003-10-29 19:15]:
> Hi,
> 
> I am running Windows XP and recently loaded cygwin. I am looking for an easy
> way to download mail from my ISP account so that I can read my mail in pine.
> How can I do this? Can someone point me to information on how to set this
> up? Any help appreciated. Thanks.
> 
Take a look at fetchmail.

Lou

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

2003-10-29 Thread Prabhanjan Kambadur

I have a strange problem. I have a server listening on a unix stream
socket. However, accept() fails everytime with ECONNABORTED.  This problem
occurs when I run these programs under normal "cygwin" terminal.

However, when I run the very same programs under "xterm" everything works
fine. Is there any documentation for this problem?

I am running the latest cygwin version on windows XP professional.

Anju.

This too shall pass ..

--
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: Does Cygwin have a 2GB Memory/RAM limit ?

2003-10-29 Thread Timothy C Prince
I don't think you've defined your problem well enough to answer.  Are you running a 
single thread gcc program which mallocs memory until it fails?  If you have multiple 
CPUs and run multiple threads or multiple instances of your program, you might be able 
to use more of the memory.

-Original Message-
From: Dan_Nazario/ACIM/[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Date: Wed, 29 Oct 2003 17:40:02 -0600
Subject: Does Cygwin have a 2GB Memory/RAM limit ?

I am trying to run cygwin on a Windows 2003 server with 8GB of ram.

I have set the registry key to inform cygwin the max memory should be 4096 
(4GB).  Checking the registry - I see the value is set to 4096.
(see: http://www.cygwin.com/cygwin-ug-net/setup-maxmem.html)
In spite of this, all indications are that it does not see more than 2GB 
(2097151K) of RAM.  (top and vmstat output)

Can anyone else confirm this - that memory above 2GB is not visible to 
cygwin.  Any known work-arounds?

Thanks in advance.

Dan Nazario

P.S.   Cygwin uname info is: CYGWIN_NT-5.2 **server name **
1.5.3(0.90/3/2) 2003-09-01 13:15 i686 unknown unknown Cygwin

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



Tim Prince

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



Configuring mail for cygwin

2003-10-29 Thread Gary Nielson
Hi,

I am running Windows XP and recently loaded cygwin. I am looking for an easy
way to download mail from my ISP account so that I can read my mail in pine.
How can I do this? Can someone point me to information on how to set this
up? Any help appreciated. Thanks.



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



Does Cygwin have a 2GB Memory/RAM limit ?

2003-10-29 Thread Dan_Nazario/ACIM/americancentury
I am trying to run cygwin on a Windows 2003 server with 8GB of ram.

I have set the registry key to inform cygwin the max memory should be 4096 
(4GB).  Checking the registry - I see the value is set to 4096.
(see: http://www.cygwin.com/cygwin-ug-net/setup-maxmem.html)
In spite of this, all indications are that it does not see more than 2GB 
(2097151K) of RAM.  (top and vmstat output)

Can anyone else confirm this - that memory above 2GB is not visible to 
cygwin.  Any known work-arounds?

Thanks in advance.

Dan Nazario

P.S.   Cygwin uname info is: CYGWIN_NT-5.2 **server name ** 
1.5.3(0.90/3/2) 2003-09-01 13:15 i686 unknown unknown Cygwin

--
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.exe aborts "Install from Local Directory" II part

2003-10-29 Thread Juan Diaz Naveas
Hello,

As an addition to the message from yesterday (see below), I downloaded
the setup-2.418.exe file from www.cygwin.com/setup-snapshots and I get
this time the following message:

---
Microsoft Visual C++ Runtime Library
---

Runtime Error!

Program c:\Documents and Settings\Administrator\My Documents\My Download
Files\cygwin\setup-2.418.exe

abnormal program termination
---



On the othe hand the content of both the setup.log and the
setup.log.full are identical and were not changed since yesterday:

2003/10/28 16:01:08 Starting cygwin install, version 2.416
2003/10/28 16:01:08 Current Directory: c:\Documents and
Settings\Administrator\My Documents\My Download Files\cygwin
2003/10/28 16:01:08 Changing gid to Users
2003/10/28 16:01:08 Could not open service McShield for query, start and
stop. McAfee may not be installed, or we don't have access.
2003/10/28 16:01:24 Ending cygwin install

Any help woudl be appreciated

Juan


Juan Diaz Naveas wrote:
> 
> Hello,
> 
> After downloading the installations files, I was trying to install
> cygwin using "Install from Local Directory" . But when setup was already
> running I realized that I forgott to change the name of the target
> directory. So I killed setup.exe with the help of the windows 2000 task
> manager.
> 
> After that, I have been unable to rerun completely the setup procedure.
> When I run setup it asks all the rutinary questions, but when it starts
> with "Checking MD5 for aspell" it crashes and it doesn't continue the
> installation.
> 
> I erased the target directory c:\cygwin and restarted the procedure but
> it failed too. I logged on in windows 2000 as another user and run setup
> with the same unsuccesful results. I erased all possible temporary
> files.
> 
> I am feeling that maybe windows 2000 automatically sends now a kill
> signal to setup.exe whenever it runs (since that first time, when I
> killed it by hand).
> 
> I installed some months ago cygwin succesfully on the same computer
> (Compaq Evo N160). So I am really lost about the present situation.
> 
> Any help would be really appreciated.
> 
> Juan
>

--
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: Segmentation Fault of ssh3.7.1 with cygwin1.5.5-1 in W95

2003-10-29 Thread Rodrigo Medina

Corinna wrote:

>Works for me on 98.  I don't have a 95 system for testing.  Do you
>have more than one cygwin1.dll in the path?  Please send cygcheck
>output according to http://cygwin.com/problems.html

Corinna:

This is the first time that cygwin is installed in this machine. In any case
with FIND only C:\cygwin\bin\cygwin1.dll appears.

The output of 'cygcheck -v ssh' is:

Found: C:\cygwin\bin\ssh.exe
C:/cygwin/bin/ssh.exe - os=4.0 img=1.0 sys=4.0
  C:\cygwin\bin\cygcrypto-0.9.7.dll - os=4.0 img=1.0 sys=4.0
"cygcrypto-0.9.7.dll" v0.0 ts=2003/9/30 12:49
C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
  "cygwin1.dll" v0.0 ts=2003/9/20 16:31
  C:\WINDOWS\SYSTEM\KERNEL32.dll - os=1.0 img=1.9 sys=4.0
"KERNEL32.dll" v0.0 ts=1996/8/10 1:21
C:\WINDOWS\SYSTEM\KERNEL32.dll (already done)
  C:\cygwin\bin\cygwin1.dll (already done)
  C:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
"cygz.dll" v0.0 ts=2003/8/9 2:28
C:\cygwin\bin\cygwin1.dll (already done)
C:\WINDOWS\SYSTEM\KERNEL32.dll (already done)
  C:\WINDOWS\SYSTEM\KERNEL32.dll (already done)
  C:\cygwin\bin\cygwin1.dll (already done)
...
...
  C:\cygwin\bin\cygwin1.dll (already done)


The output of 'cygcheck -s -v' is:


Cygwin Win95/NT Configuration Diagnostics
Current System Time: Wed Oct 29 14:29:37 2003

Windows 95 Ver 4.0 Build  

Path:   C:\cygwin\bin
C:\cygwin\usr\local\bin
.
c:\MSDEV\BIN
c:\WINDOWS
c:\WINDOWS\COMMAND
c:\GT
c:\GT
c:\ARCHIV~1\BORLAND\CBUILD~1\BIN
c:\TEXMF\MIKTEX\BIN

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 664(Rodrigo) GID: 544(all)
544(all)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 664(Rodrigo) GID: 544(all)
544(all)

SysDir: C:\WINDOWS\SYSTEM
WinDir: C:\WINDOWS

HOME = `C:\cygwin\home\Rodrigo'
PWD = `/home/Rodrigo'

BLASTER = `A220 I5 D1 H5 T5'
CMDLINE = `rxvt -cr green --colorUL blue --colorBD red -e bash -l -i'
COLORFGBG = `0;default;15'
COLORTERM = `rxvt-xpm'
COMSPEC = `C:\WINDOWS\COMMAND.COM'
DISPLAY = `:0'
HOMEDRIVE = `C:'
HOMEPATH = `\cygwin\home\Rodrigo'
INCLUDE = `C:\MSDEV\INCLUDE;""'
LESSCHARSET = `latin1'
LIB = `C:\MSDEV\LIB;""'
OLDPWD = `/usr/bin'
PROMPT = `$p$g'
SHLVL = `1'
TEMP = `c:\WINDOWS\TEMP'
TERM = `xterm'
TMP = `c:\WINDOWS\TEMP'
WINBOOTDIR = `C:\WINDOWS'
WINDIR = `C:\WINDOWS'
WINDOWID = `10036976'
_ = `/bin/cygcheck'

Use `-r' to scan registry

a:  fd   N/AN/A
c:  hd  FAT32   3084Mb  54% CPUN   
d:  cd   N/AN/A

C:\cygwin  /  system  binmode
C:\cygwin/bin  /usr/bin   system  binmode
C:\cygwin/lib  /usr/lib   system  binmode
.  /cygdrive  system  binmode,cygdrive

Found: C:\cygwin\bin\awk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Found: C:\cygwin\bin\cpp.exe
Found: C:\cygwin\bin\find.exe
Found: c:\WINDOWS\COMMAND\find.exe
Warning: C:\cygwin\bin\find.exe hides c:\WINDOWS\COMMAND\find.exe
Found: C:\cygwin\bin\gcc.exe
Found: C:\cygwin\bin\gdb.exe
Found: C:\cygwin\bin\grep.exe
Found: c:\ARCHIV~1\BORLAND\CBUILD~1\BIN\grep.exe
Warning: C:\cygwin\bin\grep.exe hides c:\ARCHIV~1\BORLAND\CBUILD~1\BIN\grep.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: c:\ARCHIV~1\BORLAND\CBUILD~1\BIN\make.exe
Found: C:\cygwin\bin\mv.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe

  802k 2003/09/15 C:\cygwin\bin\cygaspell-15.dll - os=4.0 img=1.0 sys=4.0
  "cygaspell-15.dll" v0.0 ts=2003/9/15 8:32
   19k 2003/03/22 C:\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0
  "cyggdbm.dll" v0.0 ts=2002/2/19 23:05
   28k 2003/07/20 C:\cygwin\bin\cyggdbm-3.dll - os=4.0 img=1.0 sys=4.0
  "cyggdbm-3.dll" v0.0 ts=2003/7/20 3:58
   15k 2003/07/20 C:\cygwin\bin\cyggdbm_compat-3.dll - os=4.0 img=1.0 sys=4.0
  "cyggdbm_compat-3.dll" v0.0 ts=2003/7/20 4:00
   30k 2003/08/11 C:\cygwin\bin\cyggdbm-4.dll - os=4.0 img=1.0 sys=4.0
  "cyggdbm-4.dll" v0.0 ts=2003/8/10 22:12
   15k 2003/08/11 C:\cygwin\bin\cyggdbm_compat-4.dll - os=4.0 img=1.0 sys=4.0
  "cyggdbm_compat-4.dll" v0.0 ts=2003/8/10 22:13
   12k 2003/08/10 C:\cygwin\bin\cyggettextpo-0.dll - os=4.0 img=1.0 sys=4.0
  "cyggettextpo-0.dll" v0.0 ts=2003/8/10 18:11
   69k 2003/08/10 C:\cygwin\bin\cyggettextlib-0-12-1.dll - os=4.0 img=1.0 sys=4.0
  "cyggettextlib-0-12-1.dll" v0.0 ts=2003/8/10 18:10
  134k 2003/08/10 C:\cygwin\bin\cyggettextsrc-0-12-1.dll - os=4.0 img=1.0 sys=4.0
  "cyggettextsrc-0-12-1.dll" v0.0 ts=2003/8/10 18:10
  958k 2003/08/10 C:\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
  "cygiconv-2.dll" v0.0 ts=2003/8/10 16:57
   22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll - os=4.0 img=1.0 sys=4.0
  "cygintl-1.dll" v0.0 ts=2001/12/13 5:28
   37k 2003/08/10 C:\cyg

Re: Launching cygwin from cd

2003-10-29 Thread fergus
There has been quite a lot on this earlier in the year. (Try searching on
"portable", maybe.) I routinely use a CD containing everything but X
applications, but it would be easy to make one that has them, lacking
something else instead. I've got a 1GB USB stick that would accommodate even
more, but I guess that nowadays something approaching 1.5 GB or more would
be needed to accommodate the whole of Cygwin in a convenient portable
manner.

The real complication in using a portable CD version lies in protecting the
host machine from the temporary intrusion of a CD-mounted Cygwin. Of course,
if the host machine and its owner have never heard of Cygwin, and do not
care about it, this is not an issue. If the case is otherwise, then one
needs to take care in any CD-based session that the host version is properly
un-mounted, the CD-version mounted, used then un-mounted, followed by a
proper re-mount of the host version.

It sounds from what you say that these considerations will not apply. So the
main requirement is to build your Cygwin tree so that it contains all you
want. (All the .exe's, all the .dll's, ...) This can be achieved through
trial and error (try rxvt.exe, whoops! it turns out to need libW11.dll, ...)
or by installing a tailored Cygwin using setup.exe, and copying that to CD.

The only question of significance that remains is what to do with the files
/etc/profile, /etc/passwd, /etc/group, ~/.bash_profile, ~/.bashrc; and what
command you use to start the whole thing off when the CD is inserted in its
drive.

An answer that works is: delete the first 4, put the line

unset HISTFILE

plus anything else you want (aliases, etc) in ~/.bashrc =
/home/whatever/.bashrc (this stops bash trying to write a history file to an
unwriteable CD) and start the whole thing off with a .bat file containing

@h:\bin\mount -bfu h:/ /
@h:\bin\mount -bfu h:/bin /usr/bin
@h:\bin\mount -bfu h:/lib /usr/lib
@h:\bin\bash -rcfile /.init

where h: is your CD drive letter and where the file /.init (which is on the
CD) contains the lines

export SHELL=/bin/bash
export HOME=/home/whatever
export PATH=~/bin:/usr/local/bin:/usr/bin:/bin:
export TMPDIR=c:/tmp

(The 4th line is there because I found that for one of my applications I
needed earlier to have created a directory c:\tmp on the host HD, and then
set TMPDIR to match. So, sorry, this recipe is not foolproof for all
applications, because they might have different minor requirements,
depending how they are built. But at least it provides a starting point. And
the one I am talking about was a non-Cygwin-supplied invader: Cygwin is so
tightly constructed that there may be no annoying outstanding requirements
of this type. I also have ~ = /home/user as a conveniently bland HOME name
that so far hasn't caused any problems, but you might prefer some different
/home/whatever as indicated above.)

Hope this helps. It might do as something to start off with, and if you can
use a write-able drive rather than burning experimental CDs as you develop
your portable version, so much the better. (Easier.)

Fergus



--
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: help me

2003-10-29 Thread Larry Hall
At 11:37 AM 10/29/2003, Habib Ndadouh you wrote:
> Hello 
>How are u? Just i have one problim about instal cygwin because when i run 
> setup.exe to install a news packages but not run and a browser tel me that is error 
> and i don't know why? pls help me for install a new packages ... THANKS 


We need more and better information about your problem before someone here
can try to help.  Please see  which will
describe the details of the information this list needs.


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


--
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: Updated: gawk-3.1.3-4

2003-10-29 Thread Eugene I. Shih
I saw it.

Eugene

-- 
 Eugene I. Shih  ::  [EMAIL PROTECTED]  ::  MIT, CSAIL, NMS


On Wed, 29 Oct 2003, Corinna Vinschen wrote:

> I've updated the version of GNU awk to 3.1.3-4.
>
> This is a bugfix.  Due to an unfortunate definition of INTMAX_MIN
> in stdint.h (which will be fixed by an upcoming Cygwin release)
> gawk potentially misprinted negative integer values in calls to
> printf/sprintf.  This release is a mere rebuild using the fixed
> INTMAX_MIN definition.
>
>
> To update your installation, click on the "Install Cygwin now" link on
> the http://cygwin.com/ web page.  This downloads setup.exe to your
> system.  Then, run setup and answer all of the questions.
>
> If you have general questions or comments, please send them to the
> Cygwin mailing list at: "cygwin at cygwin dot com".  I would appreciate
> it if you would use this mailing list rather than emailing me directly.
>
>   *** 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.
>
>

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



help me

2003-10-29 Thread Habib Ndadouh
 Hello 
How are u? Just i have one problim about instal cygwin because when i run 
setup.exe to install a news packages but not run and a browser tel me that is error 
and i don't know why? pls help me for install a new packages ... THANKS 
-- 
__
Check out the latest SMS services @ http://www.linuxmail.org 
This allows you to send and receive SMS through your mailbox.


Powered by Outblaze

--
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: Q: cygwin setup problems

2003-10-29 Thread Larry Hall
At 11:07 AM 10/29/2003, [EMAIL PROTECTED] you wrote:

>When I run setup.exe to install new packages the process hangs when
>copying the files into the file system. The reason is that setup creates
>all directories and files as write protected (dr--r--r--) and then fails
>to fill the newly created directory with files (because of the write
>protection).
>
>What is the problem?
>
>My platform is Windows 2000 with NTFS file system. I use CYGWIN=ntsec.
>After installing the initial cygwin packages I noticed that all files
>had protection rwxrwxrwx. I changed that of course and now all files are
>instead created r--r--r--. Why? Please help!


It's a Windows thing.  By default, children of a parent automatically
inherit the permissions of the parent.  You can change that of course but 
your previous attempts at "fiddling" with the install tree didn't fare 
very well so I wouldn't recommend you do more experimentation here (unless
you plan to live with the consequences and/or find the solutions to the 
problems you cause).  The two options that I think will work the best for 
you is to simply change the permissions globally to add write and execute 
permissions where appropriate or to simply remove your current 
installation and reinstall, making sure that the directory under which 
you're installing Cygwin has reasonably open permissions.



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


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



Q: cygwin setup problems

2003-10-29 Thread enok

When I run setup.exe to install new packages the process hangs when
copying the files into the file system. The reason is that setup creates
all directories and files as write protected (dr--r--r--) and then fails
to fill the newly created directory with files (because of the write
protection).

What is the problem?

My platform is Windows 2000 with NTFS file system. I use CYGWIN=ntsec.
After installing the initial cygwin packages I noticed that all files
had protection rwxrwxrwx. I changed that of course and now all files are
instead created r--r--r--. Why? Please help!

regards
/Oskar

/*  Oskar Enoksson, Linkoping, Sweden  */

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



sshd and SSH sentinel don't get along

2003-10-29 Thread e-bone
I'm just posting this as an update.

A while back I was whining about my sshd giving some sort of "entry
point" error upon loading.

Well, I checked my cygwin version as recommended and that was all fine
and dandy.

On a whim I removed SSH Sentinel (an IPSec client for windows), and
everything worked fine after that.

Note, SSH Sentinel is really a misnomer (it is NOT a ssh client or
server) , but rather an IPSec client.

Everything worked after that ... dont know why ... but i'm happy.

cheers,
e

--
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: Gawk printf problem with negative numbers

2003-10-29 Thread Corinna Vinschen
On Wed, Oct 29, 2003 at 09:42:21AM -0500, Ken Shaffer wrote:
> The setup thinks I'm up to date. Is there a specific mirror I need to try?

No.  Just wait.

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: Shell keyword 'time' and gcc -mno-cygwin

2003-10-29 Thread Christopher Faylor
On Wed, Oct 29, 2003 at 02:02:59PM +0200, Alex Vinokur wrote:
>===
>Windows 2000 Professional
>CYGWIN_NT-5.0 1.5.4(0.94/3/2)
>gcc version 3.3.1 (cygming special)
>===
>
>I compiled some program with Cygwin and Mingw32 interfaces.
>
>$ g++ fib.cpp -o fib_cyg
>
>$ g++ fib.cpp -mno-cygwin -o fib_nmg
>
>$ time -p fib_cyg th 1 > zzz
>real 0.48
>user 0.44
>sys 0.03
>
>$ time -p fib_nmg th 1 > zzz
>real 0.39
>user 0.02
>sys 0.04
>
>
>We can see that user-time-used for executable file with Mingw32 interface is nearly 
>equal 0.
>It seems that that is not in line with the reality.
>
>Any explanation?

Beyond the obvious?  Cygwin programs fill out the structures needed to
calculate run time.  Native windows programs don't.

PTC.

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: Gawk printf problem with negative numbers

2003-10-29 Thread Ken Shaffer
The setup thinks I'm up to date. Is there a specific mirror I need to try?

--
Ken Shaffer
Staff Software Engineer
770-236-3421
[EMAIL PROTECTED]

I've uploaded a new gawk package.  The definition of INTMAX_MIN
has been fixed in current CVS.

Thanks for the report.

Corinna

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



 - - - - - - -  Appended by Scientific-Atlanta, Inc.  - - - - - - -  
This e-mail and any attachments may contain information which is confidential, 
proprietary, privileged or otherwise protected by law. The information is solely 
intended for the named addressee (or a person responsible for delivering it to the 
addressee). If you are not the intended recipient of this message, you are not 
authorized to read, print, retain, copy or disseminate this message or any part of it. 
If you have received this e-mail in error, please notify the sender immediately by 
return e-mail and delete it from your computer.


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



Cant get list of download sites

2003-10-29 Thread adrian
... says the setup program, which is funny because Im using a simple ISDN connection 
from an NT box which worked well enough to get me that far. I tried "Direct 
Connection" and "IE5 settings" but there is no proxy. I also tried stopping the 
firewall. Is the an explanation, solution or workaround, like just downloading the 
whole thing by hand or telling setup.exe on the command line which mirror to use?

A possible explanation is that I just got called a spambot for trying to read the 
manual, which I didnt take personally, at least, not to  the extent of mentioning 
words my mother wouldn't, but consoled myself with the explanation that IE could look 
like a spambot, especially after I'd switched off the friewall.

Thanks in advance for any help, especially if you also CC it to adrian at 
stone-age-software dot com.

Ad.

--
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: Launching cygwin from cd

2003-10-29 Thread Hannu E K Nevalainen
> From: Mailer
> Sent: Wednesday, October 29, 2003 1:40 PM

> Hi,
>
> I'm a newbie cygwin user, and in general about windows, 'cause
> most of time (99,99~) play with linux.
>
> Can anyone give me directions about how to install and execute
> cygwin (however only for launching postgresql) directly from a cd ?
>
> I've to prepare a demo cd for an application that needs postgresql.

"CD launcing" has been discussed thoroughly on the list. A big part of the
solution is to use /bin/mount with -m and -A flags.

You better google on "site:cygwin.com +cygwin +cd" or some such (Err... this
was a lame attempt on that search criteria, I know) than rely on me
remembering details.

/Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E
-- printf("LocalTime: UTC+%02d\n",(DST)? 1:2); --
--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: bash /usr/bin/ls invalid argument

2003-10-29 Thread Hannu E K Nevalainen
> From: Nicolas BUONOMO
> Sent: Wednesday, October 29, 2003 9:52 AM

> Hello,
>
> Hannu E K Nevalainen a écrit :
>
> >>From: Jared Ingersoll
> >>Sent: Monday, October 27, 2003 8:55 PM
> >
> > 
> >
> > There is a 32KB length limit on the command line. This is
> imposed on us by
> > the underlying "OS" - i.e. not likely to change.
> >
> >
> > To check how long your command line would be, try something like this:
> >
> > $ find -type f -name 'send.log.*' |
> > (
> >   read f;
> >   cc=-1;
> >   echo "";
> >   while [ ! -z "$f" ];do
> > cc=$(( 1 + $cc + $( echo "$f" | wc -c) ));
> > echo -e "\e[F$cc\e[K";read f;
> >   done;
> >   echo -e "\e[F$cc chars"
> > )
> >
> > Remember to add the length of e.g. "ls -l " (note space).
> >
> > If this gives a number larger than...
> >
> > $ echo $(( ( 1 << 15 ) -1 ))
> > 32767
> >
> > ... then you're "outta luck".
> >
>
> I try your command on a Microsoft XP pro and I win
>
> [EMAIL PROTECTED] ~ s=1
>   $ find -type f -name '*' | (   read f;   cc=-1;   echo "";   while
> [ ! -z "$f" ]; do cc=$(( 1 + $cc + $( echo "$f" | wc -c) ));
>   echo -e "\e[F$cc\e[K";read f;   done;   echo -e "\e[F$cc chars"; )
> 1789980 chars
>
> Where is the problem?
>

 =-) there is no problem with _my_ command. It was to show _when_ there is a
problem - and what the problem consists of.

 Try "ls -l *" in the same directory as you did your test in. That will give
you an error message, due to the limit mentioned earlier in this thread.

/Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E
-- printf("LocalTime: UTC+%02d\n",(DST)? 1:2); --
--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/



Launching cygwin from cd

2003-10-29 Thread Mailer
Hi,

I'm a newbie cygwin user, and in general about windows, 'cause
most of time (99,99~) play with linux.

Can anyone give me directions about how to install and execute
cygwin (however only for launching postgresql) directly from a cd ?

I've to prepare a demo cd for an application that needs postgresql.

Thanks in advance

Lucio



--
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: cygcheck & executable files of other compilers

2003-10-29 Thread Roman Belenov
"Alex Vinokur" <[EMAIL PROTECTED]> writes:

>   1. How can the cygcheck utility know about DLLs in the Digital
>   Mars executable file?

All DLLs used by a Win32 executable are listed in the executable.

>   2. Why doesn't the cygcheck utility know about DLLs in the DJGPP
>   executable file?

DJGPP is a DOS compiler that produces DOS executables that can not use
DLLs (at least using standard implicit loading), so there is nothing
to report in this case.

-- 
With regards, Roman.


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



cygcheck & executable files of other compilers

2003-10-29 Thread Alex Vinokur
===
Windows 2000 Professional
CYGWIN_NT-5.0 1.5.4(0.94/3/2)
cygcheck version 1.38
===


I applied the cygcheck utility to executable files which have been created
  with using other compilers (not gcc cygming special).

First. Digital Mars C/C++ Compiler.
$ cygcheck a.exe
Found: .\a.exe
a.exe
  C:\WINNT\System32\KERNEL32.DLL
C:\WINNT\System32\NTDLL.DLL
  C:\WINNT\System32\USER32.DLL
C:\WINNT\System32\GDI32.DLL

Second. GNU gpp compiler (DJGPP).
$ cygcheck a.exe
Found: .\a.exe
a.exe


Questions.
  1. How can the cygcheck utility know about DLLs in the Digital Mars executable file?
  2. Why doesn't the cygcheck utility know about DLLs in the DJGPP executable file?


--
 =
   Alex Vinokur
 mailto:[EMAIL PROTECTED]
 http://mathforum.org/library/view/10978.html
 news://news.gmane.org/gmane.comp.lang.c++.perfometer
   =






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



Shell keyword 'time' and gcc -mno-cygwin

2003-10-29 Thread Alex Vinokur
===
Windows 2000 Professional
CYGWIN_NT-5.0 1.5.4(0.94/3/2)
gcc version 3.3.1 (cygming special)
===

I compiled some program with Cygwin and Mingw32 interfaces.

$ g++ fib.cpp -o fib_cyg

$ g++ fib.cpp -mno-cygwin -o fib_nmg

$ time -p fib_cyg th 1 > zzz
real 0.48
user 0.44
sys 0.03

$ time -p fib_nmg th 1 > zzz
real 0.39
user 0.02
sys 0.04


We can see that user-time-used for executable file with Mingw32 interface is nearly 
equal 0.
It seems that that is not in line with the reality.

Any explanation?

P.S. I think the problem doesn't depend on the specific program.
 Nevertheless the attachment contains the fib.cpp file.


--
 =
   Alex Vinokur
 mailto:[EMAIL PROTECTED]
 http://mathforum.org/library/view/10978.html
 news://news.gmane.org/gmane.comp.lang.c++.perfometer
   =




begin 666 fib.cpp
M+R\@(R,C(R,C(R,C(R,C(R,C(R,C(R,C(R,C(R,C(R,C(R,C(R,C(R,C(R,C
M([EMAIL PROTECTED],[EMAIL PROTECTED]<'5T:6YG('9E"!6:6YO:W5R#0HO+R!H='1P.B\O=7 N=&\O86QE>'9N#0HO+R C(R,C
M(R,C(R,C(R,C(R,C(R,C(R,C(R,C(R,C(R,C(R,C(R,C(R,C(R,C#0H-"B-I
M;F-L=61E(#QS=&1L:6(N:#X-"B-I;F-L=61E(#QA2D@("@H>"D@/B H>2D@/R H
M>"[EMAIL PROTECTED] H>2DI#0HC9&5F:6YE($%34T525"AX*0T*+R\@(V1E9FEN92!!4U-%
M4E0H>"D@(" @87-S97)T*'@I#0H-"@T*(V1E9FEN92!-05A?54Y)5%]604Q5
M12 @*%5,3TY'7TU!6" ^/B R*0T*(V1E9FEN92!"05-%,2 @,3 -"B-D969I
M;[EMAIL PROTECTED](@(#$P,# P,# P,# @(" O+R!"05-%,2 J*B [EMAIL PROTECTED] Q
M*0T*#0HC:[EMAIL PROTECTED])!4T4R(#X]($U!6%]53DE47U9!3%5%*0T*(V5R7!E9&5F('5NPT*9G)I96YD(&]S
M=')E86TF(&]P97)A=&]R/[EMAIL PROTECTED]&]S=')E86TF(&]S+"!C;VYS="!":6=);G0F
M(&ENF4@/2!-05A?5D%,[EMAIL PROTECTED]&)I9S%?:2YU;FETF4H;6%X7W-I>F4I.PT*(" @(" @8FEG,E]I+G5N:71S7RYR
M97-I>F4H;6%X7W-I>F4I.PT*(" @(" @=6YI='-?+G)E2 H*2D[
M#0H@(&9OPT*("!P[EMAIL PROTECTED]"D[#0H-
M"B @9F]R("AU:6YT(&D@/2!C=7)?PT*(" @('-W:71C:" H:2D-"B @("![#0H@(" @("!C87-E(# @[EMAIL PROTECTED](" @
M(" @("!F:6)S7RYP=7-H7V)[EMAIL PROTECTED])I9TEN="@P*2D[#0H@(" @(" @(&)R
M96%K.PT*#0H@(" @("!C87-E([EMAIL PROTECTED]@T*(" @(" @("!I9B H9FEBPT*;W-TPT*("!I9B H87)G8R \
M(#,I(')E='5R;B!S=')I;FPT*(" @
M('5S86=E("AAR -"B @("!&:6)O;[EMAIL PROTECTED](" @(&9I
M8BYS:&]W7V%L;%]N=6UB97)S*"D[( T*("!]#0H-"B @:[EMAIL PROTECTED]&]P=&EO;B ]
M/2!42%]&24(I(" @#0H@('[EMAIL PROTECTED]@(" @1FEB;VYA8V-I(&9I8BA.*3L-"B @
M("!F:6(N%]R86YD7V9I8B ]
M("AA%]R86YD7V9I
@8BD[#0H@('T-"@T*("!R971Uhttp://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: pthread problem with latest cygwin dll snapshot

2003-10-29 Thread Arash Partow
Hi Thomas,

I'll try doing as you have suggested, I'll rebuild the dll and see how
things turn out from there.
One thing I forgot to mention in my previous e- mail, was that when you run
multiple instances of ThreadTest, when they start crashing, the Error
Windows that pop-up all have the same "referenced memory" location. I just
thought this is rather strange.
1 thing though, did you try piping the stdout to tee? I found that doing
that was a sure way of crashing it.
Anywayz thanx heaps for the help so-far I'll get back to you after I get
the building done.


Regards

Arash Partow



__
Be one who knows what they don't know,
Instead of being one who knows not what they don't know,
Thinking they know everything about all things.
http://www.partow.net



Hi Arash,

i downloaded TaskInfo, installed it on a 2,5 GHz P4 W2000 box, tried free 
RAM (slow and fast) and your Test did not crash. I rebuilded the cygwin DLL 
while your test was running, still no crash.

If you are interested to dig a little deeper download the snapshot source 
and build your own dll.

The steps are:

1. Download cygwin-src-20031028.tar.bz2
2. Create a directory /usr/src/cygwin. Go to that directory.
3. Untar the source tarball (tar -xpjvf cygwin-src-20031028.tar.bz2)
4. Create a directory named BUILD.
5. Goto BUILD
6. set CFLAGS, CXXFLAGS and LDFLAGS to '-g' (export CFLAGS='-g'; export 
CXXFLAGS='-g'; export LDFLAGS='-g')
7. configure (../cygwin-snapshot-20031028-1/configure --prefix=/usr)
8. make

There is no need for a make install, just copy new-cygwin1.dll from 
i686-pc-cygwin/winsup/cygwin into your /cygwin/bin directory as cygwin1.dll 
after you have terminated all cygwin programs.

If you see a crash in the cygwin dll you can use addr2line to get the 
source line (addr2line -e /bin/cygwin1.dll "address", for example addr2line 
-e /bin/cygwin1.dll 0x61061756).

If you want to debug the dll you might want to set the CFLAGS and CXXFLAGS 
to '-O0 -g' before you configure. To set breakpoints in the cygwin DLL 
start 'gdb TestThread', set a breakpoint at main and start your app. After 
it stops at main you can set breakpoints at functions in the cygwin dll (b 
pthread_create for example).

Good luck.

Thomas

Arash Partow wrote:
Greetings to Thomas and all others involved in cygwin pthreads
implementation,
I made the changes that you advised, however the ThreadTest still crashes,
I also put some text to standard out when the result of pthread_create is
not equal to 0, the text does not show which leads to believe me the
problem does not occur there.
I also made modification to the garbage collector not to add the dead
thread to the thread list, rather just delete it immediately and also to
bark an error to the standard out which never gets displayed, hence 
further
proving that the problem is somewhere else.

There is no deterministic way to make it crash, just that it will
eventually crash in a very short period of time, if some other things are
done on the system. I wonder if you have tried downloading the shareware
version of the TaskInfo program I use, during its trial period everything
is enabled so you will be able to do the Free RAM (fast/slow) and also
maybe you can do something like play an mpeg in the background, and maybe
use the winsock by doing something on the net. One very unusual yet
interesting thing I noticed whilst running the ThreadTest, was that a 
split
second before it crashes, TaskInfo reports a huge amount of memory being
acquired by ThreadTest, by huge I mean around 100mb+ the amount is never
the same, but I've never seen it go below 100Mb, I'm sure there is
something wrong happening for something like that to be occur. the only
problem is I can't figure out whether the memory is being requested by the
cygwin layer on behalf of ThreadTest or by the cygwin layer for its own
purpose. I can be sure that no where in the ThreadTest do I acquire 100MB+
of memory from the OS.

Another thing i've noticed about the test crashing, is that even though 
its
a console app, windows barks an error, via an error window with the title
"ThreadTest.exe - Application Error", in the body of the window it says:
The instruction at "some mem address" refrenced memory at "some mem 
address".
The memory could not be "read".

But the strange thing is that even after this error window appears the
ThreadTest seems to run for some time still, you can see threads being
created, but after a certain amount of time that too stops. When you try 
to
close the error window down, another pops up under it, I think there is an
error window for each thread that stuffed up. But as before, GDB still 
says
the last call before the crash was to the cygwin1.dll. I've done my 
testing
with both debug on and off and different levels of optimization, in all 
the
cases they produce the same outcome.

All you need to do is be doing something and it will crash the more 
intense
the processing of the other tasks 

[ANNOUNCEMENT] Updated: gawk-3.1.3-4

2003-10-29 Thread Corinna Vinschen
I've updated the version of GNU awk to 3.1.3-4.

This is a bugfix.  Due to an unfortunate definition of INTMAX_MIN
in stdint.h (which will be fixed by an upcoming Cygwin release)
gawk potentially misprinted negative integer values in calls to
printf/sprintf.  This release is a mere rebuild using the fixed
INTMAX_MIN definition.


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

If you have general questions or comments, please send them to the
Cygwin mailing list at: "cygwin at cygwin dot com".  I would appreciate
it if you would use this mailing list rather than emailing me directly. 

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

-- 
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: pthread problem with latest cygwin dll snapshot

2003-10-29 Thread Thomas Pfaff
Hi Arash,

i downloaded TaskInfo, installed it on a 2,5 GHz P4 W2000 box, tried 
free RAM (slow and fast) and your Test did not crash. I rebuilded the 
cygwin DLL while your test was running, still no crash.

If you are interested to dig a little deeper download the snapshot 
source and build your own dll.

The steps are:

1. Download cygwin-src-20031028.tar.bz2
2. Create a directory /usr/src/cygwin. Go to that directory.
3. Untar the source tarball (tar -xpjvf cygwin-src-20031028.tar.bz2)
4. Create a directory named BUILD.
5. Goto BUILD
6. set CFLAGS, CXXFLAGS and LDFLAGS to '-g' (export CFLAGS='-g'; export 
CXXFLAGS='-g'; export LDFLAGS='-g')
7. configure (../cygwin-snapshot-20031028-1/configure --prefix=/usr)
8. make

There is no need for a make install, just copy new-cygwin1.dll from 
i686-pc-cygwin/winsup/cygwin into your /cygwin/bin directory as 
cygwin1.dll after you have terminated all cygwin programs.

If you see a crash in the cygwin dll you can use addr2line to get the 
source line (addr2line -e /bin/cygwin1.dll "address", for example 
addr2line -e /bin/cygwin1.dll 0x61061756).

If you want to debug the dll you might want to set the CFLAGS and 
CXXFLAGS to '-O0 -g' before you configure. To set breakpoints in the 
cygwin DLL start 'gdb TestThread', set a breakpoint at main and start 
your app. After it stops at main you can set breakpoints at functions in 
the cygwin dll (b pthread_create for example).

Good luck.

Thomas

Arash Partow wrote:
Greetings to Thomas and all others involved in cygwin pthreads
implementation,
I made the changes that you advised, however the ThreadTest still crashes,
I also put some text to standard out when the result of pthread_create is
not equal to 0, the text does not show which leads to believe me the
problem does not occur there.
I also made modification to the garbage collector not to add the dead
thread to the thread list, rather just delete it immediately and also to
bark an error to the standard out which never gets displayed, hence further
proving that the problem is somewhere else.
There is no deterministic way to make it crash, just that it will
eventually crash in a very short period of time, if some other things are
done on the system. I wonder if you have tried downloading the shareware
version of the TaskInfo program I use, during its trial period everything
is enabled so you will be able to do the Free RAM (fast/slow) and also
maybe you can do something like play an mpeg in the background, and maybe
use the winsock by doing something on the net. One very unusual yet
interesting thing I noticed whilst running the ThreadTest, was that a split
second before it crashes, TaskInfo reports a huge amount of memory being
acquired by ThreadTest, by huge I mean around 100mb+ the amount is never
the same, but I've never seen it go below 100Mb, I'm sure there is
something wrong happening for something like that to be occur. the only
problem is I can't figure out whether the memory is being requested by the
cygwin layer on behalf of ThreadTest or by the cygwin layer for its own
purpose. I can be sure that no where in the ThreadTest do I acquire 100MB+
of memory from the OS.
Another thing i've noticed about the test crashing, is that even though its
a console app, windows barks an error, via an error window with the title
"ThreadTest.exe - Application Error", in the body of the window it says:
The instruction at "some mem address" refrenced memory at "some mem 
address".
The memory could not be "read".

But the strange thing is that even after this error window appears the
ThreadTest seems to run for some time still, you can see threads being
created, but after a certain amount of time that too stops. When you try to
close the error window down, another pops up under it, I think there is an
error window for each thread that stuffed up. But as before, GDB still says
the last call before the crash was to the cygwin1.dll. I've done my testing
with both debug on and off and different levels of optimization, in all the
cases they produce the same outcome.
All you need to do is be doing something and it will crash the more intense
the processing of the other tasks the more quickly the ThreadTest will
crash.
I've tried some other combinations for running the ThreadTest, in one
instance I ran 30 instances of the test and saw that "sometimes" when 1 of
them crashed other instances would also crash, this lead me to believe that
only 1 instance of cygwin dll is ever loaded into memory and that apps
using it look for one in the memory first before deciding whether or not
they should be loading the cygwin1.dll, One theory I came up with was that
the other instances that were crashing were in someway sequentially related
to the first instance that crashed meaning that either the instance that
crashed and instances that were executed prior to it crashed, or that the
instance and instances executed after it crashed, this theory turned out to
be false, when I copied the ThreadTest a

Re: Gawk printf problem with negative numbers

2003-10-29 Thread Corinna Vinschen
On Tue, Oct 28, 2003 at 05:28:23PM -0500, [EMAIL PROTECTED] wrote:
Content-Description: Mail message body
> I expected the output of a negative 1234 in hex to look like 0xfb2e:
>  
> > echo |gawk '{n = -1234; printf("0x%x\n",n+0)}'
> 0x-1234
> 
> > gawk --version
> GNU Awk 3.1.3
>  
> running under cygwin for the PC.
> 
> I believe the INTMAX_MIN mentioned in an earlier thread has something to do with it.

Correct.  I've uploaded a new gawk package.  The definition of INTMAX_MIN
has been fixed in current CVS.

Thanks for the report.

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: bash /usr/bin/ls invalid argument

2003-10-29 Thread Nicolas BUONOMO
Hello,

Hannu E K Nevalainen a écrit :

From: Jared Ingersoll
Sent: Monday, October 27, 2003 8:55 PM


There is a 32KB length limit on the command line. This is imposed on us by
the underlying "OS" - i.e. not likely to change.
To check how long your command line would be, try something like this:

$ find -type f -name 'send.log.*' |
(
  read f;
  cc=-1;
  echo "";
  while [ ! -z "$f" ];do
cc=$(( 1 + $cc + $( echo "$f" | wc -c) ));
echo -e "\e[F$cc\e[K";read f;
  done;
  echo -e "\e[F$cc chars"
)
Remember to add the length of e.g. "ls -l " (note space).

If this gives a number larger than...

$ echo $(( ( 1 << 15 ) -1 ))
32767
... then you're "outta luck".

I try your command on a Microsoft XP pro and I win

[EMAIL PROTECTED] ~ s=1
 $ find -type f -name '*' | (   read f;   cc=-1;   echo "";   while
[ ! -z "$f" ]; do cc=$(( 1 + $cc + $( echo "$f" | wc -c) ));
 echo -e "\e[F$cc\e[K";read f;   done;   echo -e "\e[F$cc chars"; )
1789980 chars
Where is the problem?

bye

/Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E
-- printf("Timezone: %s\n", (DST)?"UTC+02":"UTC+01"); --
--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: Segmentation Fault of ssh3.7.1 with cygwin1.5.5-1 in W95.

2003-10-29 Thread Corinna Vinschen
On Tue, Oct 28, 2003 at 03:01:16PM -0400, Rodrigo Medina wrote:
> Hello!
> I have been using cygwin 1.3.22 in a W95 machine with no problems.
> I am now installing cygwin 1.5.5 in another W95 machine. I get the
> following crash:
> 
> bash-2.05b$ ssh -l rmedina pion
> Segmentation fault (core dumped)
> bash-2.05b$ 
> [...]

Works for me on 98.  I don't have a 95 system for testing.  Do you
have more than one cygwin1.dll in the path?  Please send cygcheck
output according to http://cygwin.com/problems.html

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/