Re: CMake 1.4.7-1

2002-12-13 Thread Pavel Tsekov
On Thu, 12 Dec 2002, William A. Hoffman wrote:

 There has been a minor release of the official cmake 1.4.7.
 This is a minor release from 1.4.6 to 1.4.7, it fixes a few minor
 problems.  (a bug in the depend output and per file compile flags
 were fixed.)

Uploaded. I've removed the 1.4.5-1 package files.




Re: xkbcomp.exe segfaults

2002-12-13 Thread Alexander Skwar
Alexander Gottwald wrote:


Compile xkbcomp from sources and run it in gdb. 

I've now built a debug build of XFree86 4.2.0.  How do I run xkbcomp.exe 
in gdb?  I tried:

gdb /etc/X11/xkb/xkbcomp.exe -xkm -m de /etc/X11/xkb/keymap/xfree86 
/tmp/de.xkm

But when I then click on the run icon (or press R), I get the Open 
File dialog.  When I run 'gdb /etc/X11/xkb/xkbcomp.exe', I can push the 
Run icon just fine.  I then see, that a window pops up but closes right 
away.

Hmm

I now tried to start 'gdb /etc/X11/xkb/xkbcomp.exe'.  Then I opened the 
Console and entered run -xkm -m de /etc/X11/xkb/keymap/xfree86 
/tmp/de.xkm.  I now get this output in the Console window:

Starting program: /etc/X11/xkb/xkbcomp.exe -xkm -m de 
/etc/X11/xkb/keymap/xfree86 /tmp/de.xkm

Program received signal SIGSEGV, Segmentation fault.
0x0040f93e in _size_of_stack_reserve__ ()
Single stepping until exit from function _size_of_stack_reserve__,
which has no line number information.
0x77fa4db3 in _libuser32_a_iname ()

(gdb) backtrace
#0  0x77fa4db3 in _libuser32_a_iname ()
#1  0x0022efe8 in ?? ()
#2  0x0040d768 in _size_of_stack_reserve__ ()
#3  0x00404bf2 in _size_of_stack_reserve__ ()
#4  0x610072e8 in _size_of_stack_reserve__ ()
#5  0x610075cd in _size_of_stack_reserve__ ()
#6  0x0044c6c2 in _size_of_stack_reserve__ ()
#7  0x0040103c in _size_of_stack_reserve__ ()
#8  0x77e614c7 in _libuser32_a_iname ()

Should I do something else?

Thanks,

Alexander Skwar
--
How to quote: http://learn.to/quote (german) http://quote.6x.to (en)
Homepage: http://www.iso-top.biz  |  Jabber: [EMAIL PROTECTED]
   iso-top.biz - Die günstige Art an Linux Distributionen zu kommen



Re: xkbcomp.exe segfaults

2002-12-13 Thread Alexander Skwar
Alexander Skwar wrote:


I've now built a debug build of XFree86 4.2.0.  How do I run xkbcomp.exe 
in gdb?  I tried:

When I select /etc/X11/xkb/xkbcomp.exe in the Load New Executable 
dialog I get when I press Run, gdb prints:

This executable has no debugging information.

Any ideas, about why this is so?

Alexander Skwar
--
How to quote: http://learn.to/quote (german) http://quote.6x.to (en)
Homepage: http://www.iso-top.biz  |  Jabber: [EMAIL PROTECTED]
   iso-top.biz - Die günstige Art an Linux Distributionen zu kommen



Re: xkbcomp.exe segfaults

2002-12-13 Thread Alexander Skwar
Alexander Skwar wrote:

Alexander Skwar wrote:



I've now built a debug build of XFree86 4.2.0.  How do I run xkbcomp.exe 
in gdb?  I tried:


When I select /etc/X11/xkb/xkbcomp.exe in the Load New Executable 
dialog I get when I press Run, gdb prints:

Before you ask - before I did make install, I did:

mv /etc/X11 /etc/X11-from-Cygwin
mv /usr/X11R6 /usr/X11R6-from-Cygwin

So /etc/X11 and /usr/X11R6 have been created by make install.  Also, 
when I run the new /usr/X11R6/bin/xkbcomp.exe, I right away get a crash 
dialog from Windows.  When I run /usr/X11R6-from-Cygwin/bin/xkbcomp.exe, 
I get this in the bash window:

$ /usr/X11R6-from-Cygwin/bin/xkbcomp.exe
Error:No input file specified

Strange...

Alexander Skwar
--
How to quote: http://learn.to/quote (german) http://quote.6x.to (en)
Homepage: http://www.iso-top.biz  |  Jabber: [EMAIL PROTECTED]
   iso-top.biz - Die günstige Art an Linux Distributionen zu kommen



Xwinclip

2002-12-13 Thread Salah Zerrougui
Hi,

I download Xwinclip Test06 according to instructions,
put start start xwinclip.exe in the batch file after
start Xwin ..
Now when i select some text and cut it, i get 
SelectionNotify CompoundText in the Xwinclip (Dos
windows) but when i go to Windows Notepad i cannot
paste it (grayed).
Did someone have the same problem or am'i missing
something.

Thanks in advance for any help,

Salah.


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



Re: xkbcomp.exe segfaults

2002-12-13 Thread Alexander Gottwald
Alexander Skwar wrote:

 I now tried to start 'gdb /etc/X11/xkb/xkbcomp.exe'.  Then I opened the 
 Console and entered run -xkm -m de /etc/X11/xkb/keymap/xfree86 
 /tmp/de.xkm.  I now get this output in the Console window:
 
 Starting program: /etc/X11/xkb/xkbcomp.exe -xkm -m de 
 /etc/X11/xkb/keymap/xfree86 /tmp/de.xkm
 
 Program received signal SIGSEGV, Segmentation fault.
 0x0040f93e in _size_of_stack_reserve__ ()
 Single stepping until exit from function _size_of_stack_reserve__,
 which has no line number information.
 0x77fa4db3 in _libuser32_a_iname ()

the cygwin dll seems to produce some internal segfaults. Maybe this is one.
If you get a segfault, just get the backtrace and then continue (c). If
It was the one from xkbcomp the program will then fail to continue.

You can also go to the xc/programs/xkbcomp and check if xkbcomp was compiled
with the -g option. This turns on debug symbols. If it's not, you can simply
add this option to CFLAGS and LDFALGS in the Makefile and run 
$ make clean includes depend xkbcomp 
in the directory to rebuild only xkbcomp with debug symbols.

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723




Re: Xwinclip

2002-12-13 Thread Keith D. Tyler
Salah Zerrougui was recently quoted as saying...
 I download Xwinclip Test06 according to instructions,
 put start start xwinclip.exe in the batch file after
 start Xwin ..
 Now when i select some text and cut it, i get 
 SelectionNotify CompoundText in the Xwinclip (Dos
 windows) but when i go to Windows Notepad i cannot
 paste it (grayed).

I believe when that happens, it also means that Xwinclip has died, and you need to
restart it.

I had this happen a lot to me and I reverted to Test05 release and have had less
(but not zero) problems.

I'm guessing international character sets can cause Xwinclip more headaches.

==
Keith D. Tyler[EMAIL PROTECTED]
Federal Way, WA  http://www.keithtyler.com
--
   If Tyrrany and Oppresion come to this land,
  it will be under the guise of fighting a foreign enemy.
   - James Madison, U.S. President 1809-1817
==



Re: XDMCP on Windows 95

2002-12-13 Thread Alexander Gottwald
J S wrote:
 
 With DHCP, you can actually get the IP address by looking in:
 
 [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\DHCP]
 [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\DHCP\DhcpInfo00]

On my win95 host only the DhcpInfo and OptionInfo keys exist. But it seems
that the IPAddress is stored in DhcpInfo. So i only have to find a mapping
Interface-DhcpEntry and the switch that toggles the DHCP use in windows.

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723




Re: crashed with Norton Scan

2002-12-13 Thread Jerome Moreau
Hi,

I have and XP system and just tried editing the group file you mention with
Textpad and Word but it opens without rebooting on my machine. Scanning it
with Norton also works... You can tell what versions you have of cygwin by
running :

cygcheck -c

Really sorry about the empty post I just sent : I meant to reply only to
Ronald.. I'll be more careful in the future.

Jerome.

- Original Message -
From: Ron Brinton [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, December 13, 2002 1:51 PM
Subject: crashed with Norton Scan


 We have a problem with crashing machines. We are
 running Windows 2000 on a variety of machines. With
 Cygwin running, when out Corp. edition of Norton scans
 comes to C:\Cygwin\etc\group file, the systems
 reboots. I have found that even if I open that file in
 Word, the systems reboots.

 We were also having the same problem with
 C:/cygwin/etc/mime.conf , but with the particular
 install options this files does not exist.

 Have there been other reports of this problem?
 What install options install the
 C:/cygwin/etc/mime.conf   C:\Cygwin\etc\group files?
 How can I avoid this problem?
 How can I tell what version of Cygwin and Xfree86 I am
 running?

 Thanks -Ron


 =
 Ronald S. Brinton   York International Corp.
 [EMAIL PROTECTED] www.York.com
 CAD Support Specialist  P.O. Box 1592-231A
 (717) 771-7847 Fax 771-7297 York, PA 17405-1592 USA
 God answers knee-mail

 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.yahoo.com




Re: crashed with Norton Scan

2002-12-13 Thread Ron Brinton
Jerome, 

Thanks for the reply. 

Just verifing that you had cygwin running durring your
test. When I say running, I had a server_start script
that gives me a window to log into my unix box just
like I was doing so from the unix keyboard... starts
Solaris...




--- Jerome Moreau [EMAIL PROTECTED] wrote:
 Hi,
 
 I have and XP system and just tried editing the
 group file you mention with
 Textpad and Word but it opens without rebooting on
 my machine. Scanning it
 with Norton also works... You can tell what versions
 you have of cygwin by
 running :
 
 cygcheck -c
 
 Really sorry about the empty post I just sent : I
 meant to reply only to
 Ronald.. I'll be more careful in the future.
 
 Jerome.
 
 - Original Message -
 From: Ron Brinton [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, December 13, 2002 1:51 PM
 Subject: crashed with Norton Scan
 
 
  We have a problem with crashing machines. We are
  running Windows 2000 on a variety of machines.
 With
  Cygwin running, when out Corp. edition of Norton
 scans
  comes to C:\Cygwin\etc\group file, the systems
  reboots. I have found that even if I open that
 file in
  Word, the systems reboots.
 
  We were also having the same problem with
  C:/cygwin/etc/mime.conf , but with the particular
  install options this files does not exist.
 
  Have there been other reports of this problem?
  What install options install the
  C:/cygwin/etc/mime.conf   C:\Cygwin\etc\group
 files?
  How can I avoid this problem?
  How can I tell what version of Cygwin and Xfree86
 I am
  running?
 
  Thanks -Ron
 
 
  =
  Ronald S. Brinton   York International
 Corp.
  [EMAIL PROTECTED] www.York.com
  CAD Support Specialist  P.O. Box 1592-231A
  (717) 771-7847 Fax 771-7297 York, PA
 17405-1592 USA
  God answers knee-mail
 
  __
  Do you Yahoo!?
  Yahoo! Mail Plus - Powerful. Affordable. Sign up
 now.
  http://mailplus.yahoo.com
 


=
Ronald S. Brinton   York International Corp.
[EMAIL PROTECTED] www.York.com
CAD Support Specialist  P.O. Box 1592-231A
(717) 771-7847 Fax 771-7297 York, PA 17405-1592 USA
God answers knee-mail

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



Re: Windows Manager

2002-12-13 Thread Cary Jamison
I believe Harold was referring to the first part of your question, only.

To use a remote font server, use -fp.  An example is in the FAQ (though not obvious to 
find) -

http://xfree86.cygwin.com/docs/faq/cygwin-xfree-faq.html#q-solaris-fonts

Cary


Harold L Hunt II [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]...
 Martin,
 
 You cannot.  Not yet, at least.
 
 We are getting closer to having this feature.  Follow the mailing list 
 or the announcement mailing list for notification of when a release is 
 made.
 
 Harold
 
 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]]On Behalf Of Martín De Marchi
 Sent: Thursday, December 12, 2002 1:20 PM
 To: [EMAIL PROTECTED]
 Subject: Windows Manager
 
 
 Hello!
 
 For default, when I execute the startxwin.bat file, the twm windows 
 manager is loaded... How I can configure X to use the windows of my
 Windows system?
 I have any problems of fonts visualisation...
 How I can configure X so that use the server of
 fonts of the remote system?
 
 Thanks! Martín.
 
 



winsup/cygwin pipe.cc

2002-12-13 Thread cgf
CVSROOT:/cvs/uberbaum
Module name:winsup
Changes by: [EMAIL PROTECTED]  2002-12-13 21:10:19

Modified files:
cygwin : pipe.cc 

Log message:
add FIXME

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/pipe.cc.diff?cvsroot=uberbaumr1=1.42r2=1.43




winsup/cygwin ChangeLog pipe.cc

2002-12-13 Thread cgf
CVSROOT:/cvs/uberbaum
Module name:winsup
Changes by: [EMAIL PROTECTED]  2002-12-13 21:44:06

Modified files:
cygwin : ChangeLog pipe.cc 

Log message:
* pipe.cc (make_pipe): Set fork fixup flag for read pipe.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/ChangeLog.diff?cvsroot=uberbaumr1=1.1635r2=1.1636
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/pipe.cc.diff?cvsroot=uberbaumr1=1.43r2=1.44




Re: Small security patches

2002-12-13 Thread Corinna Vinschen
On Thu, Dec 12, 2002 at 11:34:02AM -0500, Pierre A. Humblet wrote:
 Christopher Faylor wrote:
  
  Actually, if you can get away without using a
  constructor that would be best.  Constructors are a noticeable part of
  cygwin's startup cost.
 
 - Is there a C++ way to initialize a constant class and have it in the .text 
   section, as const int i = 1; would be?
 - If not, I can get the desired effect by using gcc Asm Labels, like
   int foo asm (myfoo) = 2;
   Would that be acceptable in Cygwin?

What about this idea:

Add a static method init() called from .  Init() checks if it has been
called already before and returns immendiately if so.  Otherwise it
initializes the external objects.  

Shouldn't that be sufficient?

I created a patch (ignoring your patch so far) and it seem to work fine:

* dcrt0.cc (dll_crt0_1): Call well known SID initializer function.
* sec_helper.cc: Don't use constructor for well known SIDs.
(cygsid::init): New static method initializing well known SIDs.
* security.cc (class cygsid): Add static members for initializing
well known SIDs.

Index: dcrt0.cc
===
RCS file: /cvs/src/src/winsup/cygwin/dcrt0.cc,v
retrieving revision 1.165
diff -u -p -r1.165 dcrt0.cc
--- dcrt0.cc29 Nov 2002 07:05:25 -  1.165
+++ dcrt0.cc13 Dec 2002 11:48:05 -
@@ -549,6 +549,9 @@ dll_crt0_1 ()
   /* Initialize SIGSEGV handling, etc. */
   init_exceptions (cygwin_except_entry);
 
+  /* Init global well known SID objects */
+  cygsid::init ();
+
   /* Set the os_being_run global. */
   wincap.init ();
   check_sanity_and_sync (user_data);
Index: sec_helper.cc
===
RCS file: /cvs/src/src/winsup/cygwin/sec_helper.cc,v
retrieving revision 1.30
diff -u -p -r1.30 sec_helper.cc
--- sec_helper.cc   10 Dec 2002 12:43:49 -  1.30
+++ sec_helper.cc   13 Dec 2002 11:48:05 -
@@ -48,18 +48,40 @@ SID_IDENTIFIER_AUTHORITY sid_auth[] = {
{SECURITY_NT_AUTHORITY}
 };
 
-cygsid well_known_null_sid (S-1-0-0);
-cygsid well_known_world_sid (S-1-1-0);
-cygsid well_known_local_sid (S-1-2-0);
-cygsid well_known_creator_owner_sid (S-1-3-0);
-cygsid well_known_dialup_sid (S-1-5-1);
-cygsid well_known_network_sid (S-1-5-2);
-cygsid well_known_batch_sid (S-1-5-3);
-cygsid well_known_interactive_sid (S-1-5-4);
-cygsid well_known_service_sid (S-1-5-6);
-cygsid well_known_authenticated_users_sid (S-1-5-11);
-cygsid well_known_system_sid (S-1-5-18);
-cygsid well_known_admins_sid (S-1-5-32-544);
+cygsid well_known_null_sid;
+cygsid well_known_world_sid;
+cygsid well_known_local_sid;
+cygsid well_known_creator_owner_sid;
+cygsid well_known_dialup_sid;
+cygsid well_known_network_sid;
+cygsid well_known_batch_sid;
+cygsid well_known_interactive_sid;
+cygsid well_known_service_sid;
+cygsid well_known_authenticated_users_sid;
+cygsid well_known_system_sid;
+cygsid well_known_admins_sid;
+
+int cygsid::initialized = 0;
+
+void
+cygsid::init ()
+{
+  if (initialized)
+return;
+  well_known_null_sid = S-1-0-0;
+  well_known_world_sid = S-1-1-0;
+  well_known_local_sid = S-1-2-0;
+  well_known_creator_owner_sid = S-1-3-0;
+  well_known_dialup_sid = S-1-5-1;
+  well_known_network_sid = S-1-5-2;
+  well_known_batch_sid = S-1-5-3;
+  well_known_interactive_sid = S-1-5-4;
+  well_known_service_sid = S-1-5-6;
+  well_known_authenticated_users_sid = S-1-5-11;
+  well_known_system_sid = S-1-5-18;
+  well_known_admins_sid = S-1-5-32-544;
+  initialized = 1;
+}
 
 char *
 cygsid::string (char *nsidstr) const
Index: security.h
===
RCS file: /cvs/src/src/winsup/cygwin/security.h,v
retrieving revision 1.35
diff -u -p -r1.35 security.h
--- security.h  10 Dec 2002 12:43:49 -  1.35
+++ security.h  13 Dec 2002 11:48:05 -
@@ -23,6 +23,7 @@ details. */
 class cygsid {
   PSID psid;
   char sbuf[MAX_SID_LEN];
+  static int initialized;
 
   const PSID getfromstr (const char *nsidstr);
   PSID get_sid (DWORD s, DWORD cnt, DWORD *r);
@@ -40,6 +41,7 @@ class cygsid {
 }
 
 public:
+  static void init();
   inline operator const PSID () { return psid; }
 
   inline const PSID operator= (cygsid nsid)


Corinna

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



Re: Small security patches

2002-12-13 Thread Pierre A. Humblet
Corinna Vinschen wrote:
 
 On Thu, Dec 12, 2002 at 11:34:02AM -0500, Pierre A. Humblet wrote:
  Christopher Faylor wrote:
  
   Actually, if you can get away without using a
   constructor that would be best.  Constructors are a noticeable part of
   cygwin's startup cost.

 What about this idea:
 
 Add a static method init() called from .  Init() checks if it has been
 called already before and returns immendiately if so.  Otherwise it
 initializes the external objects.
 
 Shouldn't that be sufficient?

That looks great. Can that be generalized? There must be other
modules inside Cygwin that also need to initialize constant structures.
Could all of these initializers be called from some central place, if needed,
rather than having everybody maintain a separate isinitialized variable and
add lines in the middle of dll_crt0_1 ()?
In fact we may not even need a central isinitialized variable if the
centralized routine is skipped only in case of forks.

Pierre



Re: Small security patches

2002-12-13 Thread Pierre A. Humblet

Corinna,

Until the initialization issue is settled, here is a patch covering
only the internationalization of security.cc
It should go in the next cygwin, and I always prefer when there
is a sufficiently long bake time.

Pierre

2002/12/13  Pierre Humblet  [EMAIL PROTECTED]

* security.cc (get_user_local_groups): Use LookupAccountSid to find the
local equivalent of BUILTIN.


Index: security.cc
===
RCS file: /cvs/src/src/winsup/cygwin/security.cc,v
retrieving revision 1.128
diff -u -p -r1.128 security.cc
--- security.cc 10 Dec 2002 12:43:49 -  1.128
+++ security.cc 13 Dec 2002 02:35:32 -
@@ -389,16 +389,19 @@ get_user_local_groups (cygsidlist grp_l
   return FALSE;
 }
 
-  char bgroup[sizeof (BUILTIN\\) + GNLEN] = BUILTIN\\;
+  char bgroup[INTERNET_MAX_HOST_NAME_LENGTH + GNLEN + 2];
   char lgroup[INTERNET_MAX_HOST_NAME_LENGTH + GNLEN + 2];
-  const DWORD blen = sizeof (BUILTIN\\) - 1;
-  DWORD llen = INTERNET_MAX_HOST_NAME_LENGTH + 1;
-  if (!GetComputerNameA (lgroup, llen))
+  DWORD blen, llen;
+  SID_NAME_USE use;
+
+  blen = llen = INTERNET_MAX_HOST_NAME_LENGTH + 1;
+  if (!LookupAccountSid (NULL, well_known_admins_sid, lgroup, llen, bgroup, blen, 
+use)
+  || !GetComputerNameA (lgroup, (llen = INTERNET_MAX_HOST_NAME_LENGTH + 1)))
 {
   __seterrno ();
   return FALSE;
 }
-  lgroup[llen++] = '\\';
+  bgroup[blen++] = lgroup[llen++] = '\\';
 
   for (DWORD i = 0; i  cnt; ++i)
 if (is_group_member (buf[i].lgrpi0_name, pusersid, grp_list))
@@ -407,8 +410,8 @@ get_user_local_groups (cygsidlist grp_l
DWORD glen = sizeof (gsid);
char domain[INTERNET_MAX_HOST_NAME_LENGTH + 1];
DWORD dlen = sizeof (domain);
-   SID_NAME_USE use = SidTypeInvalid;
 
+   use = SidTypeInvalid;
sys_wcstombs (bgroup + blen, buf[i].lgrpi0_name, GNLEN + 1);
if (!LookupAccountName (NULL, bgroup, gsid, glen, domain, dlen, use))
  {



Re: Small security patches

2002-12-13 Thread Christopher Faylor
On Fri, Dec 13, 2002 at 09:51:58AM -0500, Pierre A. Humblet wrote:
Corinna Vinschen wrote:
 
 On Thu, Dec 12, 2002 at 11:34:02AM -0500, Pierre A. Humblet wrote:
  Christopher Faylor wrote:
  
   Actually, if you can get away without using a
   constructor that would be best.  Constructors are a noticeable part of
   cygwin's startup cost.

 What about this idea:
 
 Add a static method init() called from .  Init() checks if it has been
 called already before and returns immendiately if so.  Otherwise it
 initializes the external objects.
 
 Shouldn't that be sufficient?

That looks great. Can that be generalized? There must be other
modules inside Cygwin that also need to initialize constant structures.
Could all of these initializers be called from some central place, if needed,
rather than having everybody maintain a separate isinitialized variable and
add lines in the middle of dll_crt0_1 ()?

That's what dll_crt0_1 is for.  You're going to have to call the functions
from someplace and dll_crt0_1 is designed for that.

To answer your question, yes, you can tell if you've been either forked
or execed.  Rather than maintain an initialized variable, you can always
check that.

cgf



RE: The application failed to initialize properly (0xc0000022) -- cause and cure

2002-12-13 Thread Gary R. Van Sickle
[snip]

 However, I *had* installed those DLLs by using Cygwin's
 unzip to unpack a ZIP file.  I then noticed that if I simply did
 chmod +x *.dll on those DLLs, the problem went away.


I get a similar problem on XP, but with wget.  Again a chmod +x takes care of
it, which is good, since XP Home Edition HAS NO UI TO CHANGE FILE SECURITY.[1]

[1] NO, I AM NOT KIDDING.

--
Gary R. Van Sickle
Brewer.  Patriot.



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Info - cygwin articel in german linux magazine

2002-12-13 Thread Ralf Habacker
Hi all,

today I've found an interesting article about cygwin, cygwin/xfree and relating
topics in a german magazine.

See http://www.linux-magazin.de/Artikel/ausgabe/2002/12/cygwin/cygwin.html for
further informations.

Regards
Ralf


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: memory checker tools under cygwin

2002-12-13 Thread Ralf Habacker
 hi folks, I am looking for a memory checker such as mpatrol running
 under cygwin 
 Any one ever tried to run mpatrol under cygwin (or others)?

No, but perhaps memwatch library could help you. 

See http://sourceforge.net/project/showfiles.php?group_id=27249

Ralf Habacker
KDE on cygwin 


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: problems with CPAN and cygwin 1.3.12

2002-12-13 Thread Gerrit P. Haase
Hallo JoNO,

Please keep replies on the list!

 Is the perl-5.8.0 you use from the original Cygwin
 netrelease mirrors or did you compile it yourself?

 Yes, it's the perl-5.8.0 from the original Cygwin
 release. (precompiled ver.)

Ok. Mine too:

$ perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:

[...]

Characteristics of this binary (from libperl):
  Compile-time options: MULTIPLICITY USE_64_BIT_INT USE_LARGE_FILES 
PERL_IMPLICIT_CONTEXT
  Built under cygwin
  Compiled at Jul 24 2002 18:47:09
  %ENV:
CYGWIN=ntsec binmode tty nowinsymlinks
  @INC:
/usr/lib/perl5/5.8.0/cygwin-multi-64int
/usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
.

$ cygcheck -c cygwin
Cygwin Package Information
Package Version 
cygwin  1.3.17-1

$ perl -e 'use CPAN;print $CPAN::VERSION'
1.61

$ perl -e 'use ExtUtils::MakeMaker; print $ExtUtils::MakeMaker::VERSION;'
6.03

$ PERLIO=perlio
$ export PERLIO

$ perl -MCPAN -eshell

cpan shell -- CPAN exploration and modules installation (v1.61)
ReadLine support enabled

cpan install HTML::TableExtract

[..bla..]

Checking if your kit is complete...
Looks good
Writing Makefile for HTML-TableExtract
cp lib/HTML/TableExtract.pm blib/lib/HTML/TableExtract.pm
Manifying blib/man3/HTML.TableExtract.3pm
  /bin/make  -- OK
Running make test
/bin/perl.exe -Iblib/lib -Iblib/arch test.pl
1..22
ok  1 (load)
ok  2 (by bulk with lineage check)
ok  3 (by count)
ok  4 (by depth)
ok  5 (by header)
ok  6 (by depth and count)
ok  7 (by depth and count, subtable scoop)
ok  8 (by header with span correction)
ok  9 (by header with column mapping)
ok 10 (by depth to chain depth)
ok 11 (by depth to chain depth, retain global)
ok 12 (by count to chain count)
ok 13 (by count to chain count, retain global)
ok 14 (by header to chain header)
ok 15 (by header to chain header, retain global)
ok 16 (by depth to chain depth with depth waypoint, retain global)
ok 17 (by count to chain count with count waypoint, retain global)
ok 18 (by header to chain header with header waypoint, retain global)
ok 19 (by count to chain count with count waypoint, non-elastic, retain global)
ok 20 (by header to chain header with header waypoint, non-elastic, retain global)
ok 21 (by header to chain header with header waypoint, retain all waypoints)
ok 22 (by depth to count, header waypoint)
  /bin/make test -- OK
Running make install
Installing /usr/lib/perl5/site_perl/5.8.0/HTML/TableExtract.pm
Installing /usr/man/man3/HTML.TableExtract.3pm
Writing 
/usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int/auto/HTML-TableExtract/.packlist
Appending installation info to /usr/lib/perl5/5.8.0/cygwin-multi-64int/perllocal.pod
  /bin/make install UNINST=1 -- OK

cpan 


No problems here, works for me(tm).


Gerrit
-- 
=^..^=


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Changing to another user in cygwin -- login?

2002-12-13 Thread Jason Tishler
Andre,

On Fri, Dec 13, 2002 at 08:57:27AM +0200, Andre Truter wrote:
 Now I want to run the createdb, etc scritps as user postgres to create
 a new database.

What about using the --username option?

$ id
uid=19695(jt) gid=10513(Domain Users)...
$ psql -l
psql: FATAL:  user jt does not exist
$ psql -l --username postgres
List of databases
...

 I have tried 'login postgres' from a bash shell, but this is the result:
 $ login postgres
 Password:
 Login incorrect
 login:

Search the archives to understand why the above does not work.
 
 I also followed all the instructions in the postgres readme.
  ^^^

Really?  What about the following:

[2] The $ prompt indicates running as the postgres user.  Log in
as postgres or use ssh to emulate Unix's su command.
 ^^

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




autoconf's AC_CHECK_FUNCS([strtol])

2002-12-13 Thread Lapo Luchini
...says the function isn't there, but there it is.

This is in config.log, is this 'normal' and/or a 'known problem'?


configure:15213: checking for strtol
configure:15250: g++ -o conftest.exe -g -O2  -L/usr/local/lib/ 
conftest.cc -lexp
at  5
configure:15228: declaration of C function `char strtol()' conflicts with
/usr/include/stdlib.h:99: previous declaration `long int strtol(const 
char*,
   char**, int)' here
configure:15253: $? = 1
configure: failed program was:
#line 15218 configure
#include confdefs.h
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char strtol (); below.  */
#include assert.h
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern C
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strtol ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS.  Some functions are actually named
something starting with __ and the normal name is an alias.  */
#if defined (__stub_strtol) || defined (__stub___strtol)
choke me
#else
f = strtol;
#endif

  ;
  return 0;
}
configure:15269: result: no

--
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
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Emacs: completion of buffer names ignores case

2002-12-13 Thread Joe Buehler
Eric Hanchrow wrote:


Possible completions are:
*Shell Command Output* *shell*

Now, I can understand that Emacs would ignore case when completing
file names on Windows, since Windows itself doesn't distinguish file
names by case.  But since Emacs does distinguish buffer names by case,
I expect it, when completing buffer names, to ignore a buffer whose
name differs in case from what I've typed.

Is this a bug?


Undoubtedly -- I made some patches to the LISP source in 21.2-9
to attempt to get the proper case-insensitivity changes for Cygwin.

Let me look and see what I can find.

Joe Buehler




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




[SCRIPT] Windows system dll function addresses

2002-12-13 Thread Joe Buehler
Sometimes it is useful to be able to tell what Windows
DLL functions are at the top of a stack trace in gdb
(not everyone can remember functions by address instead
of name).

Here is a perl script to dump a sorted list of symbol
addresses from the dlls on a Windows system.  You need
dumpbin to run this.  Only tested on Windows NT --
dumpbin may have different output on other versions, in
which case this may break.

Oh, one thing -- I have a mount point named /sys that is the
directory where the dlls reside.  I think I made that myself.
You will have to substitute whatever the appropriate path is
on your machine.

Joe Buehler

#!/usr/bin/perl
#
# dump symbols and absolute address from Windows system dlls
#
# You need dumpbin for this to work.
# You also need to change /sys to whatever is appropriate.
#

opendir(SYSDIR, /sys);
while ($dll = readdir(SYSDIR)) {
	next unless $dll =~ /[.]dll$/io;
	next unless -f /sys/$dll;
	open(DUMPBIN, qq{ cd /sys  dumpbin /headers /exports $dll | });
	while (DUMPBIN) {
		s/\r*\n//o;
		next if /^\s*$/o;
		if (/^\s*(\S+)\s+image\s+base\s*$/io) {
			$image_base_address = hex $1;
		} elsif (/^\s+ordinal\s+hint\s+RVA\s+name\s*$/io .. /^\S/o) {
			next if /^\s+ordinal\s+hint\s+RVA\s+name\s*$/io;
			next if /^\S/io;
			next unless ($ordinal, $hint, $RVA, $name) = /^\s+(\S+)\s+(\S+)\s+(\S+)\s+(.+)$/o;
			$RVA = hex $RVA;
			push(@out, sprintf(0x%08x %16s %s\n, $image_base_address + $RVA, $dll, $name));
		}
	}
	close(DUMPBIN);
}
closedir(SYSDIR);

print sort @out;




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: pipe improvements in snapshot

2002-12-13 Thread Pavel Holejsovsky
[EMAIL PROTECTED] wrote:

Christopher Faylor wrote:

On Thu, Dec 12, 2002 at 07:32:16AM -0500, Norman Vine wrote:

Any 'tips' as to how to best debug this appreciated 

- Attach to the hung process with gdb and see where it is hung.

- Provide cygcheck output.

- Run under strace and see if you can infer where hangs or problems
 are occurring.


The hung process (sed) is actually not hung, but connected to stdin 
instead of file. The root cause is that when config.status is processed 
by bash, then sometimes `` construct forgets all output, causing 
different generated file names to be empty, thus connecting sed to stdin 
instead of some file. Following command line reproduces the bug for me:

while true; do test `echo foo` = foo || echo failed; done

When this command is run inside bash, then failed lines appear quite 
regularly. The bug is reproducible only with /bin/bash, /bin/sh works 
reliably.

Pavel

P.S. I'm leaving today, I won't answer emails till January 6th, sorry..


Cygwin Win95/NT Configuration Diagnostics
Current System Time: Fri Dec 13 15:44:58 2002

Windows XP Professional Ver 5.1 Build 2600 Service Pack 1

Path:   f:\cygwin\usr\local\bin
f:\cygwin\bin
f:\cygwin\usr\X11R6\bin
c:\cygwin-mounts\opt\gnome2\bin
f:\bin
f:\Program Files\Microsoft Platform SDK\Bin
f:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin
f:\Program Files\Microsoft Visual Studio\Common\Tools
f:\Program Files\Wise for Windows Installer
f:\Program Files\Microsoft Visual Studio\VC98\bin
f:\jdk1.3.1\bin
f:\MetaDeveloper\hcarc\bin
f:\src\psuite\main\src\buildengine
f:\bin

SysDir: F:\WINDOWS\System32
WinDir: F:\WINDOWS

CYGWIN = `nowinsymlinks tty error_start=f:\cygwin\bin\dumper.exe'
HOME = `c:\cygwin-mounts\home\pholejs'
MAKE_MODE = `unix'
PWD = `/home/pholejs/gnome/dbg/glib-2.1.4'
USER = `pholejs'

ALLUSERSPROFILE = `F:\Documents and Settings\All Users'
APPDATA = `F:\Documents and Settings\PHolejs\Application Data'
BASEMAKE = `F:\Program Files\Microsoft Platform SDK\Include\BKOffice.Mak'
BASHRC_INITED = `BASHRC_INITED'
BKOFFICE = `F:\Program Files\Microsoft Platform SDK\.'
CLASSPATH = 
`f:\Gemplus\GemXpresso.rad3\lib\gse\gse_gxp211_pk.jar;f:\Gemplus\GemXpresso.rad3\lib\cryptix-gemxpresso.jar;f:\Gemplus\GemXpresso.rad3\lib\cryptix-jce-api.jar'
CLIENTNAME = `Console'
COMMONPROGRAMFILES = `F:\Program Files\Common Files'
COMPUTERNAME = `PRGPC009'
COMSPEC = `F:\WINDOWS\system32\cmd.exe'
DISPLAY = `:0.0'
DXSDKROOT = `F:\Program Files\Microsoft Platform SDK\.'
EDITOR = `nano'
HOMEDRIVE = `F:'
HOMEPATH = `\Documents and Settings\PHolejs'
IMNINST = `help'
IMNINSTSRV = `F:\IMNnq_NT'
INCLUDE = `F:\Program Files\Microsoft Platform SDK\Include;F:\Program Files\Microsoft 
Platform SDK\Src\WTL\Include;F:\Program Files\Microsoft Visual 
Studio\VC98\atl\include;F:\Program Files\Microsoft Visual 
Studio\VC98\mfc\include;F:\Program Files\Microsoft Visual Studio\VC98\include'
INETSDK = `F:\Program Files\Microsoft Platform SDK\.'
JAVA_HOME = `F:\jdk1.3.1'
JC21_HOME = `C:\Store\Chipcards\javacard\jc211'
JDKHOME = `F:\jdk1.3.1'
LIB = `F:\Program Files\Intel\Compiler50\ia32\lib;F:\Program Files\Microsoft Platform 
SDK\Lib;F:\Program Files\Microsoft Visual Studio\VC98\mfc\lib;F:\Program 
Files\Microsoft Visual Studio\VC98\lib'
LOGNAME = `pholejs'
LOGONSERVER = `\\PRGOP01'
LS_COLORS = 
`no=00:fi=00:di=01;34:ln=01;36:pi=47;33:so=01;35:bd=47;32;01:cd=47;32;01:or=47;31;01:ex=01;31:*.tar=31:*.tgz=31:*.taz=31:*.zip=31:*.z=31:*.Z=31:*.gz=31:*.bz2=31:*.rpm=31:*.jpg=01;35:*.png=01;35:*.gif=01;35:*.bmp=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.mpg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:'
MANPATH = `:/usr/ssl/man'
MSDEVDIR = `F:\Program Files\Microsoft Visual Studio\Common\MSDev98;F:\Program 
Files\Debugging Tools for Windows'
MSSDK = `F:\Program Files\Microsoft Platform SDK\.'
MSTOOLS = `F:\Program Files\Microsoft Platform SDK\.'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/home/pholejs'
OS = `Windows_NT'
P4CLIENT = `pholejs_ws'
P4PASSWD = `A265487F2507F223620AD918A903B2E9'
P4PORT = `prgop01:1666'
P4USER = `pholejs'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 4 Stepping 4, AuthenticAMD'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0404'
PROGRAMFILES = `F:\Program Files'
PS1 = `\w:'
SESSIONNAME = `Console'
SGML_CATALOG_FILES = 
`./catalog:/usr/local/lib/sgml/dtd/dsssl/catalog:/usr/local/lib/sgml/dtd/html/catalog:/usr/local/lib/sgml/dtd/docbook41/docbook.cat:/usr/local/lib/sgml/stylesheets/docbook/catalog:/usr/share/xml/dtd/docbook412/docbook.cat'
SHLVL = `3'
SYSTEMDRIVE = `F:'
SYSTEMROOT = `F:\WINDOWS'
TEMP = `f:\cygwin\tmp'
TERM = `xterm'
TEXMF = `{/usr/share/lilypond/1.6.5,/usr/share/texmf}'
TMP = `f:\cygwin\tmp'
USERDNSDOMAIN = `PRGOP.PRA.ST.COM'
USERDOMAIN = `PRGOP'
USERNAME = `PHolejs'
USERPROFILE = `F:\Documents and 

Re: autoconf's AC_CHECK_FUNCS([strtol])

2002-12-13 Thread Igor Pechtchanski
I've had a similar problem once, and the reason was a missing (unrelated)
library, so the program compiled but didn't link.  Hope this helps.
Igor

On Fri, 13 Dec 2002, Lapo Luchini wrote:

 ...says the function isn't there, but there it is.

 This is in config.log, is this 'normal' and/or a 'known problem'?

  configure:15213: checking for strtol
  configure:15250: g++ -o conftest.exe -g -O2  -L/usr/local/lib/
  conftest.cc -lexp
  at  5
  configure:15228: declaration of C function `char strtol()' conflicts with
  /usr/include/stdlib.h:99: previous declaration `long int strtol(const
  char*,
 char**, int)' here
  configure:15253: $? = 1
  configure: failed program was:
  #line 15218 configure
  #include confdefs.h
  /* System header to define __stub macros and hopefully few prototypes,
  which can conflict with char strtol (); below.  */
  #include assert.h
  /* Override any gcc2 internal prototype to avoid an error.  */
  #ifdef __cplusplus
  extern C
  #endif
  /* We use char because int might match the return type of a gcc2
 builtin and then its argument prototype would still apply.  */
  char strtol ();
  char (*f) ();
 
  int
  main ()
  {
  /* The GNU C library defines this for functions which it implements
  to always fail with ENOSYS.  Some functions are actually named
  something starting with __ and the normal name is an alias.  */
  #if defined (__stub_strtol) || defined (__stub___strtol)
  choke me
  #else
  f = strtol;
  #endif
 
;
return 0;
  }
  configure:15269: result: no

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

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Emacs: completion of buffer names ignores case

2002-12-13 Thread Joe Buehler
Eric,

While looking at this, I tried it -- and I have no problem on
my machine.  Would you run

emacs --no-site-file --no-init-file

and see if you still have the problem?  Also, what version
of windows are you running?

Joe Buehler




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Emacs: completion of buffer names ignores case

2002-12-13 Thread Joe Buehler
Eric,

I think you have completion-ignore-case set to t in your emacs.
It is not set in mine.  Fire it up with the no-init args I posted
previously and see if it is still set.

Joe Buehler




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Some inquiries about cygwin?

2002-12-13 Thread Christopher Faylor
On Fri, Dec 13, 2002 at 02:21:49PM +0800, [EMAIL PROTECTED] wrote:
1. Can I install and use RedHat's RPM in Cygwin in order to install others
packages like uClinux?

Not easily.  Cygwin doesn't use RPMs.  Cygwin is just a UNIX emulation.  It
won't run linux software.  You build any tools you need for a cross-compilation
environment.

2. Can I install uClinux in Cygwin to cross-compile it?

Not easily.

3. Can I install cross-compiler like GNU toolchain for ARM7 (like Lineo's
product) in Cygwin?

You probably would have to build your own cross-compiler.

cgf
--
Please do not send me personal email with cygwin questions or observations.
Use the resources at http://cygwin.com/ .

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Info - cygwin articel in german linux magazine

2002-12-13 Thread Christopher Faylor
On Fri, Dec 13, 2002 at 10:28:43AM +0100, Ralf Habacker wrote:
Hi all,

today I've found an interesting article about cygwin, cygwin/xfree and relating
topics in a german magazine.

See http://www.linux-magazin.de/Artikel/ausgabe/2002/12/cygwin/cygwin.html for
further informations.

Interesting.  The history is a little garbled (Steve Chamberlain didn't name
the project Cygwin and there was no magical decision made in 1999 to do
anything) but it's always nice to get exposure.

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: [SCRIPT] Windows system dll function addresses

2002-12-13 Thread Christopher Faylor
On Fri, Dec 13, 2002 at 09:16:58AM -0500, Joe Buehler wrote:
Sometimes it is useful to be able to tell what Windows
DLL functions are at the top of a stack trace in gdb
(not everyone can remember functions by address instead
of name).

Here is a perl script to dump a sorted list of symbol
addresses from the dlls on a Windows system.  You need
dumpbin to run this.  Only tested on Windows NT --
dumpbin may have different output on other versions, in
which case this may break.

Oh, one thing -- I have a mount point named /sys that is the
directory where the dlls reside.  I think I made that myself.
You will have to substitute whatever the appropriate path is
on your machine.

Hey, this is cool.  I've always wanted something like this!

Thanks for providing it.

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: [SCRIPT] Windows system dll function addresses

2002-12-13 Thread Elfyn McBratney
Cool this is exactly what I need to debug something I've written. I had a gui app that 
did this but it was *very* slow...

Thanks for sharing ;)

Elfyn
[EMAIL PROTECTED]


--- Joe Buehler [EMAIL PROTECTED] wrote:
Sometimes it is useful to be able to tell what Windows
DLL functions are at the top of a stack trace in gdb
(not everyone can remember functions by address instead
of name).

Here is a perl script to dump a sorted list of symbol
addresses from the dlls on a Windows system.  You need
dumpbin to run this.  Only tested on Windows NT --
dumpbin may have different output on other versions, in
which case this may break.

Oh, one thing -- I have a mount point named /sys that is the
directory where the dlls reside.  I think I made that myself.
You will have to substitute whatever the appropriate path is
on your machine.

Joe Buehler

#!/usr/bin/perl
#
# dump symbols and absolute address from Windows system dlls
#
# You need dumpbin for this to work.
# You also need to change /sys to whatever is appropriate.
#

opendir(SYSDIR, /sys);
while ($dll = readdir(SYSDIR)) {
   next unless $dll =~ /[.]dll$/io;
   next unless -f /sys/$dll;
   open(DUMPBIN, qq{ cd /sys  dumpbin /headers /exports $dll | });
   while (DUMPBIN) {
   s/\r*\n//o;
   next if /^\s*$/o;
   if (/^\s*(\S+)\s+image\s+base\s*$/io) {
   $image_base_address = hex $1;
   } elsif (/^\s+ordinal\s+hint\s+RVA\s+name\s*$/io .. /^\S/o) {
   next if /^\s+ordinal\s+hint\s+RVA\s+name\s*$/io;
   next if /^\S/io;
   next unless ($ordinal, $hint, $RVA, $name) = 
/^\s+(\S+)\s+(\S+)\s+(\S+)\s+(.+)$/o;
   $RVA = hex $RVA;
   push(@out, sprintf(0x%08x %16s %s\n, $image_base_address + 
$RVA, $dll, $name));
   }
   }
   close(DUMPBIN);
}
closedir(SYSDIR);

print sort @out;




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/

_
www.smokeJet.com - Free UK Internet Services

_
Select your own custom email address for FREE! Get [EMAIL PROTECTED] w/No Ads, 6MB, 
POP  more! http://www.everyone.net/selectmail?campaign=tag

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




open_osfhandle() ?

2002-12-13 Thread Allen Leung
Hi,

   The function open_osfhandle (or _open_osfhandle), 
which maps a windows HANDLE into a file descriptor, 
seems to be missing in Cygwin.  Is there a way to achieve the 
same effect?

thanks,
Allen

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: open_osfhandle() ?

2002-12-13 Thread Corinna Vinschen
On Fri, Dec 13, 2002 at 11:12:34AM -0500, Allen Leung wrote:
 Hi,
 
The function open_osfhandle (or _open_osfhandle), 
 which maps a windows HANDLE into a file descriptor, 
 seems to be missing in Cygwin.  Is there a way to achieve the 
 same effect?

#include io.h

return get_osfhandle();

Corinna

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

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: [SCRIPT] Windows system dll function addresses

2002-12-13 Thread Randall R Schulz
Joe,

You forgot to put some indication of your authorship into the header 
comments. I added a simple Author: Joe Buehler line when I copied the 
code to a file.

I also wanted to add a URL referencing the message on the Cygwin mailing 
list archive, so I went to the archives, found the message and added this 
URL, http://cygwin.com/ml/cygwin/2002-12/msg00721.html to the header 
comments.


But this made me wonder if there was a mechanism akin to SCCS / RCS / CVS 
keywords that would allow one to put some sort of signal string into an 
email message and have it be replaced by the list server with the URL of 
the archive page for that message? Or perhaps the list server could add to 
each message a header with that URL?

I know nothing of the list server and archive building software used, so 
perhaps neither of these things are feasible, but it might be nice idea, if 
it were easily enough done.

Randall Schulz
Mountain View, CA USA


At 06:16 2002-12-13, Joe Buehler wrote:
Sometimes it is useful to be able to tell what Windows
DLL functions are at the top of a stack trace in gdb
(not everyone can remember functions by address instead
of name).

Here is a perl script to dump a sorted list of symbol
addresses from the dlls on a Windows system.  You need
dumpbin to run this.  Only tested on Windows NT --
dumpbin may have different output on other versions, in
which case this may break.

Oh, one thing -- I have a mount point named /sys that is the
directory where the dlls reside.  I think I made that myself.
You will have to substitute whatever the appropriate path is
on your machine.

Joe Buehler

#!/usr/bin/perl
#
# dump symbols and absolute address from Windows system dlls
#
# ...



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




How do I build GCC 3.2-3 or is it broken ?

2002-12-13 Thread Aaron Gray
Hello,

I have tried to rebuild GCC 3.2-3 it builds the execs but unfortunately it
bombs out making some of the libraries.

I may have mised something but I am not sure. How do I build CygWin GCC
3.2-3 ?
I have installed CygWin then changed to the 'i686-pc-cygwin' directory then
done a 'make'.

Have I missed any configuration steps, or is GCC's library broken ?

===
It looks like the following file is broken :-

libstdc++-v3/libsupc++/pure.cc

~~~
/usr/i686-pc-cygwin/gcc/xgcc -shared-libgcc -B/usr/i686-pc-cygwin/gcc/ -nost
dinc
++ -L/usr/i686-pc-cygwin/i686-pc-cygwin/libstdc++-v3/src -L/usr/i686-pc-cygw
in/i
686-pc-cygwin/libstdc++-v3/src/.libs -B/usr/local/i686-pc-cygwin/bin/ -B/usr
/loc
al/i686-pc-cygwin/lib/ -isystem
/usr/local/i686-pc-cygwin/include -I../../../../
src/gcc-3.2-3/libstdc++-v3/../gcc -I../../../../src/gcc-3.2-3/libstdc++-v3/.
./in
clude -I/usr/i686-pc-cygwin/i686-pc-cygwin/libstdc++-v3/include/i686-pc-cygw
in -
I/usr/i686-pc-cygwin/i686-pc-cygwin/libstdc++-v3/include -I../../../../src/g
cc-3
.2-3/libstdc++-v3/libsupc++ -g -O2 -fno-implicit-templates -Wall -Wno-format
 -W
-Wwrite-strings -Winline -fdiagnostics-show-location=once -ffunction-section
s -f
data-sections -g -c
../../../../src/gcc-3.2-3/libstdc++-v3/libsupc++/pure.cc -o
pure.o

cc1plus: warning: -ffunction-sections may affect debugging on some targets
In file included from /usr/include/unistd.h:8,
 from
../../../../src/gcc-3.2-3/libstdc++-v3/libsupc++/pure.cc:3
4:
../../../../src/gcc-3.2-3/include/getopt.h:115: declaration of C function
`int
   getopt()' conflicts with
/usr/include/sys/unistd.h:125: previous declaration `int getopt(int, char*
   const*, const char*)' here

make[3]: *** [pure.lo] Error 1
make[3]: Leaving directory
`/usr/i686-pc-cygwin/i686-pc-cygwin/libstdc++-v3/libs
upc++'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/i686-pc-cygwin/i686-pc-cygwin/libstdc++-v3'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/usr/i686-pc-cygwin/i686-pc-cygwin/libstdc++-v3'
make: *** [all-target-libstdc++-v3] Error 2
~~~

Hope you can help, many thanks in advance,

Aaron Gray



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Cygwin Network Programming Problem

2002-12-13 Thread Parker, Ron
I have taken what looks to be a common network programming sample from the
Internet and compiled it on Cygwin.  Upon reaching 'accept' for the second
time I receive the following output:

accept: No children

I have spent a few days perusing the Net and have found no solution to this
problem.  If you compile and run the following source, you can telnet to
port 3490 and get back, Hello, world!.  When you telnet a second time, the
error shows up.

#include stdio.h
#include stdlib.h
#include unistd.h
#include errno.h
#include string.h
#include sys/types.h
#include sys/socket.h
#include netinet/in.h
#include arpa/inet.h
#include sys/wait.h
#include signal.h

#define MYPORT 3490

#define BACKLOG 10

void sigchld_handler(int s)
{
while(wait(NULL)  0);
}

int main(void)
{
int sockfd, new_fd;
struct sockaddr_in my_addr;
struct sockaddr_in their_addr;
int sin_size;
struct sigaction sa;
int yes=1;

if ((sockfd = socket(AF_INET, SOCK_STREAM, 0)) == -1) {
perror(socket);
exit(1);
}

my_addr.sin_family = AF_INET;
my_addr.sin_port = htons(MYPORT);
my_addr.sin_addr.s_addr = INADDR_ANY;
memset((my_addr.sin_zero), '\0', 8);

if (bind(sockfd, (struct sockaddr *)my_addr, sizeof(struct sockaddr))
== -1) {
perror(bind);
exit(1);
}

if (listen(sockfd, BACKLOG) == -1) {
perror(listen);
exit(1);
}

sa.sa_handler = sigchld_handler;
sigemptyset(sa.sa_mask);
sa.sa_flags = SA_RESTART;
if (sigaction(SIGCHLD, sa, NULL) == -1) {
perror(sigaction);
exit(1);
}

while(1) {
sin_size = sizeof(struct sockaddr_in);
if ((new_fd = accept(sockfd, (struct sockaddr *)their_addr,
sin_size)) == -1) {
perror(accept);
continue;
}
printf(server: got connection from
%s\n,inet_ntoa(their_addr.sin_addr));
if (!fork()) {
close(sockfd);
if (send(new_fd, Hello, world!\n, 14, 0) == -1)
perror(send);
close(new_fd);
exit(0);
}
close(new_fd);
}

return 0;
}

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Suggested addition to the FAQ

2002-12-13 Thread Charles Lindahl
Hello: 

I have a quick suggested addition to the FAQ: 

FAQ #: 

Q: How do I determine the packages and version numbers I have installed
on my system? 

A: Use the cygcheck -c option. This lists package names and versions
as text. 

Sample output (abbreviated): 

$ cygcheck -c
Cygwin Package Information
Package Version
XFree86-base4.2.0-1
ash 20020731-1
autoconf2.54-1

 etc ...



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Suggested addition to the FAQ

2002-12-13 Thread Igor Pechtchanski
On Fri, 13 Dec 2002, Charles Lindahl wrote:

 Hello:

 I have a quick suggested addition to the FAQ:

 FAQ #:

 Q: How do I determine the packages and version numbers I have installed
 on my system?

 A: Use the cygcheck -c option. This lists package names and versions
 as text.

 Sample output (abbreviated):

 $ cygcheck -c
 Cygwin Package Information
 Package Version
 XFree86-base4.2.0-1
 ash 20020731-1
 autoconf2.54-1

  etc ...

It's a good suggestion, but it might be better received as a patch against
winsup/doc/faq.texinfo from the Cygwin cvs sources.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




auto-logout problems in tcsh

2002-12-13 Thread Curt Nelson
I just did a full update of my cygwin installation a couple of days ago
and I am now having problems disabling the auto-logout feature. I start
up a tcsh shell in the cygwin.bat file with the line

tcsh -l

After an hour, any tcsh shell automatically closes. I have done a search
for the TMOUT and TIMEOUT variables and they don't seem to be in my
environment. I found a line in /etc/csh.cshrc that was

unset autologout

but it didn't seem to disable the feature. I tried:

set autologout=0
set autologout=
unset auto-logout

Nothing seems to work.

Help!

Curt Nelson



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Broken Link on the ported page.

2002-12-13 Thread Adam Jurevicius
Christopher,

I still get connection refused.  what link are you able to get to?

Adam

On Thu, 12 Dec 2002, Christopher Faylor wrote:

 On Thu, Dec 12, 2002 at 06:25:40PM -0800, Adam Jurevicius wrote:
 The link to the rpm package on
 http://sources.redhat.com/cygwin/ported.html is broken.  Does anyone
 have that file or know if it's posted on another site somewhere?
 
 It's not broken right now, at least.
 
 cgf
 
 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Bug reporting: http://cygwin.com/bugs.html
 Documentation: http://cygwin.com/docs.html
 FAQ:   http://cygwin.com/faq/

-- 
Adam B. Jurevicius
Unix Administrator
[EMAIL PROTECTED]
650-565-7703 (w)

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: Slowness on app startup after recent update (and yes I read the FAQ)

2002-12-13 Thread Ron Wood
I'm not familar with strace. When I run it I get,

RDW@L0029357 /c/dev
$ strace /usr/bin/vi
strace.exe: error creating process /usr/bin/vi, (error
3)

Maybe I'm using it wrong. But when I do an strace on
ls I get something which looks correct.

Ron
--- [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Perhaps running the afflicted programs with strace
 will shed some light 
 on your problem.
 
 Larry
 
 Original Message:
 -
 From: Ron Wood [EMAIL PROTECTED]
 Date: Fri, 13 Dec 2002 10:08:28 -0800 (PST)
 To: [EMAIL PROTECTED]
 Subject: Slowness on app startup after recent update
 (and yes I read the
 FAQ)
 
 
 I updated my cygwin setup (full install) a few days
 ago and now there is a considerable delay in
 application startup. My current version is new. My
 original version was as of October sometime. 
 
 I read the FAQ and see the issue with //c in the
 path.
 That is not the case for me. In fact the delay is
 still there when I fully specify the path (eg
 /usr/bin/vi takes 2 min to start).
 
 I do believe it may have something to do with the
 network and the system trying to find something it
 cannot but I'm stumped on where to look.
 
 This happened to me earlier in the year and I
 eventually unintalled and reinstalled cygwin to get
 rid of it. I'd rather not do it this time.
 
 Thanks,
 
 Ron
 
 
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up
 now.
 http://mailplus.yahoo.com
 
 --
 Unsubscribe info: 
 http://cygwin.com/ml/#unsubscribe-simple
 Bug reporting: http://cygwin.com/bugs.html
 Documentation: http://cygwin.com/docs.html
 FAQ:   http://cygwin.com/faq/
 
 


 mail2web - Check your email from the web at
 http://mail2web.com/ .
 
 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Slowness on app startup after recent update (and yes I read theFAQ)

2002-12-13 Thread Lassi A. Tuura
 $ strace /usr/bin/vi

Try windows (not cygwin) path.

//lat
-- 
Facts do not cease to exist because they are ignored.
--Aldous Huxley


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Slowness on app startup after recent update (and yes I read the FAQ)

2002-12-13 Thread Ron Wood
Thanks. It works with,

$ strace c:/cygwin/bin/vim.exe

A part of the output is below. Seems to be get held up
on //.terminfo. Why is it going to //.terminfo/x/term?
And why is it 

  114 2155207 [main] vim 1884 normalize_posix_path:
//.terminfo/x/xterm = normal  
ize_posix_path
(//.terminfo/x/xterm)
   94 2155301 [main] vim 1884
mount_info::conv_to_win32_path: conv_to_win32_path
  
(//.terminfo/x/xterm)
   99 2155400 [main] vim 1884 set_flags: flags: binary
(0x2)
   88 2155488 [main] vim 1884
mount_info::conv_to_win32_path: src_path //.termin
  
   fo/x/xterm, dst \\.terminfo\x\xterm, flags 0x2, rc
0
53254024 55409512 [main] vim 1884 fs_info::update:
Cannot get volume information 
 
(\\.terminfo\x\), Win32 error 67
17062431 72471943 [main] vim 1884 symlink_info::check:
GetFileAttributes (\\.ter 
 minfo\x\xterm) failed
  246 72472189 [main] vim 1884
geterrno_from_win_error: windows error 67 == errn 
  
  o 136
17196693 89668882 [main] vim 1884 symlink_info::check:
GetFileAttributes (\\.ter 
 minfo\x\xterm.exe)
failed
  241 89669123 [main] vim 1884
geterrno_from_win_error: windows error 67 == errn 
  
  o 136
17907801 107576924 [main] vim 1884
symlink_info::check: GetFileAttributes (\\.te 

rminfo\x\xterm.exe.lnk) failed
  247 107577171 [main] vim 1884
geterrno_from_win_error: windows error 67 == err  
  
 no 136
17447772 125024943 [main] vim 1884
symlink_info::check: GetFileAttributes (\\.te 

rminfo\x\xterm.lnk) failed
  261 125025204 [main] vim 1884
geterrno_from_win_error: windows error 67 == err  
  
 no 136
   95 125025299 [main] vim 1884 symlink_info::check: 0
= symlink.check (\\.termi 
 nfo\x\xterm,
0x22DA68) (0x2)
  108 125025407 [main] vim 1884
mount_info::conv_to_win32_path: conv_to_win32_pa  
  
 th (//.terminfo/x)
  100 125025507 [main] vim 1884 set_flags: flags:
binary (0x2)
   90 125025597 [main] vim 1884
mount_info::conv_to_win32_path: src_path //.term  
  
 info/x, dst \\.terminfo\x, flags 0x2, rc 0
   88 2155488 [main] vim 1884
mount_info::conv_to_win32_path: src_path //.termin
  
   fo/x/xterm, dst \\.terminfo\x\xterm, flags 0x2, rc
0
53254024 55409512 [main] vim 1884 fs_info::update:
Cannot get volume information 
 
(\\.terminfo\x\), Win32 error 67
17062431 72471943 [main] vim 1884 symlink_info::check:
GetFileAttributes (\\.ter 
 minfo\x\xterm) failed
  246 72472189 [main] vim 1884
geterrno_from_win_error: windows error 67 == errn 
  
  o 136
17196693 89668882 [main] vim 1884 symlink_info::check:
GetFileAttributes (\\.ter 
 minfo\x\xterm.exe)
failed
  241 89669123 [main] vim 1884
geterrno_from_win_error: windows error 67 == errn 
  
  o 136
17907801 107576924 [main] vim 1884
symlink_info::check: GetFileAttributes (\\.te 

rminfo\x\xterm.exe.lnk) failed
  247 107577171 [main] vim 1884
geterrno_from_win_error: windows error 67 == err  
  
 no 136


--- Lassi A. Tuura [EMAIL PROTECTED] wrote:
  $ strace /usr/bin/vi
 
 Try windows (not cygwin) path.
 
 //lat
 -- 
 Facts do not cease to exist because they are
 ignored.
   --Aldous Huxley
 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Broken Link on the ported page.

2002-12-13 Thread Christopher Faylor
On Fri, Dec 13, 2002 at 11:51:19AM -0800, Adam Jurevicius wrote:
I still get connection refused.  what link are you able to get to?

Apparently I was hallucinating or it's a flaky link.  I can't get
through either.  I've removed the reference from the page.

cgf
--
Please do not send me personal email with cygwin questions or observations.
Use the resources at http://cygwin.com/ .

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: postgresql postmaster and LC_MESSAGES EN_US problem

2002-12-13 Thread Jari Aalto+list.cygwin
* Thu 2002-12-12 Jason Tishler [EMAIL PROTECTED] list.cygwin
* Message-Id: [EMAIL PROTECTED]
 Heitzso,

 On Wed, Dec 11, 2002 at 12:48:20PM -0500, Heitzso wrote:
 I got around this problem (??) by commenting out the 4 localization
 lines at the end of postgresql.conf in the data directory, but would
 greatly appreciate any suggestions as to what's south with my setup
 that would cause this.

 It appears that having LANG=en_us set before you ran initdb caused this
 problem.  My recommendation it to either unset LANG or use LANG=C before
 you rerun initdb.

 IIRC, Cygwin does not fully support locale.

Thank you, May I suggest that the documentation says:

$ env LC_ALL=C initdb -D /usr/share/postgresql/data

Jari


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Slowness on app startup after recent update (and yes I read the FAQ)

2002-12-13 Thread Ron Wood
Somehow a // has been introduced into my system. Below
is the strace to cvs.

My path is,

/usr/local/bin
:/usr/bin:/bin
:/cygdrive/c/apps/Ora81_personal/bin
:/cygdrive/c/apps/Ora81_personal/Apache/Perl/5.00503/bin/mswin32-86:/cygdrive/c/Apps/Ora81/bin
:/cygdrive/c/Program Files/Oracle/jre/1.1.7/bin
:/cygdrive/c/WINNT/system32
:/cygdrive/c/WINNT
:/cygdrive/c/WINNT/System32/Wbem
:/cygdrive/c/cg/utility
:/cygdrive/c/Program Files/Sybase/OCS-12_0/dll
:/cygdrive/c/Program Files/Sybase/OCS-12_0/bin
:/cygdrive/c/Program Files/Ora81/bin
:/cygdrive/c/PROGRAM FILES/THINKPAD/UTILITIES
:/cygdrive/c/apps/doxygen/bin
:/cygdrive/c/Apps/ATT/Graphviz/bin
:C:/Program
Files/Hummingbird/Connectivity/7.00/Accessories/
:/cygdrive/c/Program Files/Symantec/pcAnywhere/
:/cygdrive/c/WINNT/system32/nls
:/cygdrive/c/WINNT/system32/nls/ENGLISH
:/cygdrive/c/dev/ctags53
:/cygdrive/c/Apps/Vim/vim61/
:/cygdrive/c/dev/xerces-c1_7_0-win32/bin
:/cygdrive/c/Program Files/Embarcadero/Nov2001Shared
:/cygdrive/c/apps/Embarcadero/RSQL601
:/cygdrive/c/Program Files/Microsoft Visual
Studio/Common/Tools/WinNT
:/cygdrive/c/Program Files/Microsoft Visual
Studio/Common/MSDev98/Bin
:/cygdrive/c/Program Files/Microsoft Visual
Studio/Common/Tools
:/cygdrive/c/Program Files/Microsoft Visual
Studio/VC98/bin
:/cygdrive/c/apps/Embarcadero/RSQL56
:/cygdrive/c/Program Files/Embarcadero/Aug2000Shared
:/usr/X11R6/bin

part of strace output,

   90   87249 [main] cvs 2280
fhandler_disk_file::open: 0 = fhandler_disk_file::open
(C:\cygwin\usr\local\etc\zoneinfo\posixrules, 0x1)
   96   87345 [main] cvs 2280 open: -1 = open
(/usr/local/etc/zoneinfo/posixrules, 0x1)
29888  117233 [main] cvs 2280 normalize_posix_path:
src //.cvsrc
  127  117360 [main] cvs 2280 normalize_posix_path:
//.cvsrc = normalize_posix_path (//.cvsrc)
   95  117455 [main] cvs 2280
mount_info::conv_to_win32_path: conv_to_win32_path
(//.cvsrc)
  111  117566 [main] cvs 2280 set_flags: flags: binary
(0x2)
   89  117655 [main] cvs 2280
mount_info::conv_to_win32_path: src_path //.cvsrc, dst
\\.cvsrc, flags 0x2, rc 0
  140  117795 [main] cvs 2280 fs_info::update: Cannot
get root component of path \\.cvsrc
14006637 14124432 [main] cvs 2280 symlink_info::check:
GetFileAttributes (\\.cvsrc) failed
  241 14124673 [main] cvs 2280
geterrno_from_win_error: windows error 67 == errno 136
15006623 29131296 [main] cvs 2280 symlink_info::check:
GetFileAttributes (\\.cvsrc.exe) failed
  247 29131543 [main] cvs 2280
geterrno_from_win_error: windows error 67 == errno 136



__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Slowness on app startup after recent update (and yes I read the FAQ)

2002-12-13 Thread Randall R Schulz
Ron,

That's your problem.

Somehow (most likely based on an environment variable that's set but empty 
or perhaps set to /), Vim is constructing a path name that begins with 
//. That's the syntactic signal for to look for a network share. In your 
case, the shared named .terminfo is looked for. Since this is a network 
discovery process, a request must be sent out and a reply awaited. A 
timeout (and, I assume, one or more retries) is involved, and that's the 
root of your startup delay.

I can replicate the delay in starting Vim like this:

TERMINFO=/ vim

I didn't strace it, but I like my hunch...

This variation:

TERMINFO= vim

does not produce a delay. And, naturally, I don't ordinarily see a pause 
when starting Vim.


Perhaps that'll help.

Randall Schulz
Mountain View, CA USA


At 13:18 2002-12-13, Ron Wood wrote:
Thanks. It works with,

$ strace c:/cygwin/bin/vim.exe

A part of the output is below. Seems to be get held up
on //.terminfo. Why is it going to //.terminfo/x/term?
And why is it

...



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Emacs: completion of buffer names ignores case

2002-12-13 Thread Jari Aalto+mail.emacs
* 2002-12-12 Eric Hanchrow [EMAIL PROTECTED] list.cygwin
* Message-Id: [EMAIL PROTECTED]
 I'm using emacs-21.2-10.

 I frequently want to switch to the buffer named `*shell*', so I type
 *Shell Command Output* *shell*

 Now, I can understand that Emacs would ignore case when completing
 file names on Windows, since Windows itself doesn't distinguish file
 names by case.  But since Emacs does distinguish buffer names by case,
 I expect it, when completing buffer names, to ignore a buffer whose
 name differs in case from what I've typed.

You may like package `ibuffer'

  (global-set-key \C-xb 'iswitchb-buffer)
  (autoload 'iswitchb-buffer iswitchb  t)

  (setq iswitchb-default-method 'always-frame)
  (setq iswitchb-case   nil)
  (setq iswitchb-resize-minibuffer-mode nil)

Just type ANY characters you remember, and hit RET.


Jari


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Slowness on app startup after recent update (and yes I read the FAQ)

2002-12-13 Thread Randall R Schulz
Ron,

Again, a good place to look is your environment.

This example suggests strongly that your HOME environment variable is 
simply /. I think some code (in this case cvs) blindly takes the value 
of environment variables that are meant to name directories and blindly 
appends a slash and whatever path components lead to the resource they're 
looking for. If that root or base directory name is just /, this problem 
ensues.

Also, note that repeated slashes are only a problem at the beginning of a 
path name. Elsewhere they're idempotent.


By the way, in output like the kind you've attached in the last two posts, 
it's a good idea to try to prevent line wrapping. If that's not an option 
with your mail client (or if the mail servers or list processors along the 
way are going to override your choice not to wrap long lines), then put the 
content in an attachment so it doesn't get mangled.

Randall Schulz
Mountain View, CA USA


At 13:42 2002-12-13, Ron Wood wrote:
Somehow a // has been introduced into my system. Below
is the strace to cvs.

My path is,

...

part of strace output,

...
29888  117233 [main] cvs 2280 normalize_posix_path:
src //.cvsrc
  127  117360 [main] cvs 2280 normalize_posix_path:
//.cvsrc = normalize_posix_path (//.cvsrc)
   95  117455 [main] cvs 2280
mount_info::conv_to_win32_path: conv_to_win32_path
(//.cvsrc)
...



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Giving up trying to get Cygwin OpenSSH3.5 to work on Win2000 Pro SP3

2002-12-13 Thread Emilio A Icaza
Any takers?  Corinna?

Can somebody help me figure out what can be wrong with this?

1. Installed CYGWIN base and needed packages
2. Installed openssh 3.5p1-2 and requisites
3. Ran ssh-host-config to create keys, sshd user, and service, etc.

If I try to connect to the server from localhost, with:
$ ssh emilio@localhost -v -v -v

 I get:

(See attached file: localhost.log)

If I try to connect from a RedHat 7.2 machine with
[root@emiliolx root]# ssh [EMAIL PROTECTED] -v -v -v

I get:

(See attached file: remote.log)

My cygcheck is:

(See attached file: cygcheck.log)

The server /var/log/ssh.log file is empty.

This is my last straw attempt to get this to work.  Please help!

[EMAIL PROTECTED]


localhost.log
Description: Binary data


remote.log
Description: Binary data


cygcheck.log
Description: Binary data
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Re: Slowness on app startup after recent update (and yes I read the FAQ) - Solution - kind of

2002-12-13 Thread Ron Wood
That is it. My $HOME is set to '/'. If I change it to
something else things work as expected. 

This opens up two questions,

1. Why is $HOME set to '/'? According to /etc/profile
it should be set to /home/RDW. id -un returns RDW. Not
sure why this is not setup correctly.

2. This was working fine before updating my cygwin
setup. My $HOME was set to '/' before and everything
was fine.

I've hardcoded some things to get around this problem.
Not sure why this happened. I havn't changed anything
or have an unusual setup. 

Thanks for all your help,

ron


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Giving up trying to get cygwin OpenSSH3.5 to work on Win2000 Pro SP3

2002-12-13 Thread Christopher Faylor
On Fri, Dec 13, 2002 at 04:45:35PM -0600, Emilio A Icaza wrote:
Any takers?  Corinna?

Can somebody help me figure out what can be wrong with this?

1. Installed CYGWIN base and needed packages
2. Installed openssh 3.5p1-2 and requisites

All except a newer version of the cygwin dll it seems.  I suggest
upgrading to 1.3.17.

cgf
--
Please do not send me personal email with cygwin questions or observations.
Use the resources at http://cygwin.com/ .

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




No such file or directory

2002-12-13 Thread ganglio
Hi!
i'm trying to compile bochs-2.0-pre3 under cygwin but it give me the
following error:

win32.cc:61:39: windows32/CommonFunctions.h: No such file or directory

i looked over the net and i discovered that the file
should be in the

/usr/i686-pc-cygwin/include

directory but it there isn't.

does some one help me?

thanks a lot

Roberto Torella




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Slowness on app startup after recent update (and yes I read the FAQ) - Solution - kind of

2002-12-13 Thread Randall R Schulz
Ron,

Why ask why? It can all be traced back to the primordial singularity, of 
course.

Is your HOME set in the Windows environment? If it is, the value inherited 
from the environment upon shell startup will override the value that would 
otherwise have been taken from your entry in /etc/passwd.

Why does upgrading software make things change? Because the newer software 
is different. Sometimes those changes render old scripts and code 
non-functional.

Blind upgrading is not really advisable. Read the release notes and know 
what to expect and whether any special procedures are required. (Take it 
from someone who's been bitten by upgrading without reading the release 
announcements.)

Randall Schulz
Mountain View, CA USA


At 15:14 2002-12-13, Ron Wood wrote:
That is it. My $HOME is set to '/'. If I change it to
something else things work as expected.

This opens up two questions,

1. Why is $HOME set to '/'? According to /etc/profile
it should be set to /home/RDW. id -un returns RDW. Not
sure why this is not setup correctly.

2. This was working fine before updating my cygwin
setup. My $HOME was set to '/' before and everything
was fine.

I've hardcoded some things to get around this problem.
Not sure why this happened. I havn't changed anything
or have an unusual setup.

Thanks for all your help,

ron



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




ANN: Gcc-3.2.1

2002-12-13 Thread David Kredba
There is EXPERIMENTAL gcc-3.2.1 package at http://vranioko.ibot.cas.cz
with C, C++, Objc, F77, Java and Ada languages enabled.


Configured with :
--enable-languages=c,c++,f77,java,objc,ada \
--enable-threads=posix --with-system-zlib --enable-nls 
--without-included-gettext \
--enable-interpreter --disable-sljl-exceptions 
--disable-version-specific-runtime-libs \
--enable-shared --build=i686-pc-cygwin --host=i686-pc-cygwin \
--target=i686-pc-cygwin --enable-haifa --prefix=/usr --exec-prefix=/usr \
--sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/sbin



David


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Cygwin Network Programming Problem

2002-12-13 Thread Elfyn McBratney
Hi,

I tried your source, looks o.k. at first glance, and it works perfectly. I tried to 
reproduce your problem, about 10 times, and I always got:

  Hello, world!

  Connection closed

Are you using the latest dll?

Elfyn
[EMAIL PROTECTED]


--- Parker, Ron [EMAIL PROTECTED] wrote:
I have taken what looks to be a common network programming sample from the
Internet and compiled it on Cygwin.  Upon reaching 'accept' for the second
time I receive the following output:

   accept: No children

I have spent a few days perusing the Net and have found no solution to this
problem.  If you compile and run the following source, you can telnet to
port 3490 and get back, Hello, world!.  When you telnet a second time, the
error shows up.

[snip]

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/

_
www.smokeJet.com - Free UK Internet Services

_
Select your own custom email address for FREE! Get [EMAIL PROTECTED] w/No Ads, 6MB, 
POP  more! http://www.everyone.net/selectmail?campaign=tag

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Giving up trying to get cygwin OpenSSH3.5 to work on Win2000 Pro SP3

2002-12-13 Thread Emilio A Icaza
All except a newer version of the cygwin dll it seems.  I suggest
upgrading to 1.3.17.
cgf

I am already at 1.3.17-1, same result.  Anything else?

Thanks,

Emilio


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




How did I get it?

2002-12-13 Thread Jack Rose
Could some tell me how the CYGWIN1.DLL ended up on my computer. It seems to
have just appeared at 3:09am yesterday and I know I wasn't working at that
time.

Could this have been uploaded to my machine for malicious purposes? If so,
what else should I be looking for, besides a better firewall and virus
detector?

Any information would be appreciated...

Thanks

Jack Rose
[EMAIL PROTECTED]


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: How do I build GCC 3.2-3 or is it broken ?

2002-12-13 Thread Michael H. Cox
Check out the following:

http://sources.redhat.com/ml/cygwin/2002-11/msg01045.html
http://www.cygwin.com/ml/cygwin/2002-12/msg00426.html

Mike

P.S.  Just in case you read this, Chris, didn't mean to upset you or
apologize for you.  I was just trying to encourage Anurag, who seemed a
little discouraged.

 -Original Message-
 From: Aaron Gray [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 13, 2002 10:07 AM
 To: [EMAIL PROTECTED]
 Subject: How do I build GCC 3.2-3 or is it broken ?


 Hello,

 I have tried to rebuild GCC 3.2-3 it builds the execs but unfortunately
it
 bombs out making some of the libraries.

 I may have mised something but I am not sure. How do I build CygWin GCC
 3.2-3 ?
 I have installed CygWin then changed to the 'i686-pc-cygwin'
 directory then
 done a 'make'.

 Have I missed any configuration steps, or is GCC's library broken ?

 ===
 It looks like the following file is broken :-

 libstdc++-v3/libsupc++/pure.cc

 ~~~
 /usr/i686-pc-cygwin/gcc/xgcc -shared-libgcc
 -B/usr/i686-pc-cygwin/gcc/ -nost
 dinc
 ++ -L/usr/i686-pc-cygwin/i686-pc-cygwin/libstdc++-v3/src
 -L/usr/i686-pc-cygw
 in/i
 686-pc-cygwin/libstdc++-v3/src/.libs
 -B/usr/local/i686-pc-cygwin/bin/ -B/usr
 /loc
 al/i686-pc-cygwin/lib/ -isystem
 /usr/local/i686-pc-cygwin/include -I../../../../
 src/gcc-3.2-3/libstdc++-v3/../gcc
 -I../../../../src/gcc-3.2-3/libstdc++-v3/.
 ./in
 clude
 -I/usr/i686-pc-cygwin/i686-pc-cygwin/libstdc++-v3/include/i686-pc-cygw
 in -
 I/usr/i686-pc-cygwin/i686-pc-cygwin/libstdc++-v3/include
 -I../../../../src/g
 cc-3
 .2-3/libstdc++-v3/libsupc++ -g -O2 -fno-implicit-templates -Wall
 -Wno-format
  -W
 -Wwrite-strings -Winline -fdiagnostics-show-location=once
 -ffunction-section
 s -f
 data-sections -g -c
 ../../../../src/gcc-3.2-3/libstdc++-v3/libsupc++/pure.cc -o
 pure.o

 cc1plus: warning: -ffunction-sections may affect debugging on some
targets
 In file included from /usr/include/unistd.h:8,
  from
 ../../../../src/gcc-3.2-3/libstdc++-v3/libsupc++/pure.cc:3
 4:
 ../../../../src/gcc-3.2-3/include/getopt.h:115: declaration of C
function
 `int
getopt()' conflicts with
 /usr/include/sys/unistd.h:125: previous declaration `int getopt(int,
char*
const*, const char*)' here

 make[3]: *** [pure.lo] Error 1
 make[3]: Leaving directory
 `/usr/i686-pc-cygwin/i686-pc-cygwin/libstdc++-v3/libs
 upc++'
 make[2]: *** [all-recursive] Error 1
 make[2]: Leaving directory
 `/usr/i686-pc-cygwin/i686-pc-cygwin/libstdc++-v3'
 make[1]: *** [all-recursive-am] Error 2
 make[1]: Leaving directory
 `/usr/i686-pc-cygwin/i686-pc-cygwin/libstdc++-v3'
 make: *** [all-target-libstdc++-v3] Error 2
 ~~~

 Hope you can help, many thanks in advance,

 Aaron Gray






smime.p7s
Description: application/pkcs7-signature


find -exec broken??

2002-12-13 Thread Javier
Hi!!

I am trying to use the -ok or the -exec actions of find, but I am
running into an odd error:

I want to list the dirs on a given dir, and then to do a bk edit on
them.

So, first I get the dirs listed (to see if I have the parms to find
well):

public_html find . -type d -maxdepth 1

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




More pipe (and other) improvements in snapshot

2002-12-13 Thread Christopher Faylor
On Fri, Dec 13, 2002 at 03:48:28PM +0100, Pavel Holejsovsky wrote:
[EMAIL PROTECTED] wrote:
Christopher Faylor wrote:
On Thu, Dec 12, 2002 at 07:32:16AM -0500, Norman Vine wrote:
Any 'tips' as to how to best debug this appreciated 

- Attach to the hung process with gdb and see where it is hung.

- Provide cygcheck output.

- Run under strace and see if you can infer where hangs or problems
 are occurring.

The hung process (sed) is actually not hung, but connected to stdin 
instead of file. The root cause is that when config.status is processed 
by bash, then sometimes `` construct forgets all output, causing 
different generated file names to be empty, thus connecting sed to stdin 
instead of some file. Following command line reproduces the bug for me:

while true; do test `echo foo` = foo || echo failed; done

When this command is run inside bash, then failed lines appear quite 
regularly. The bug is reproducible only with /bin/bash, /bin/sh works 
reliably.

I meant to test the above before I made some more changes to cygwin
to attempt to avoid data loss but I didn't get around to it.

So, there is a snapshot up there which may or may not solve the problem.
The above command doesn't die for me now, so I guess that's something.

I'll check the prevous snapshot tomorrow to see if it actually fails for
me.  I've been a little sick for a couple of weeks now and attempting to
stay with my work on real job in the day and cygwin at night scenario
is not working too well.

In the meantime, please try the current snapshot.  It is probably
slightly (but possibly unoticeably) slower but it should be very much
less likely to lose data in a pipe.

The latest snapshot also has some new inline assembly functions courtesy
of some cygwin-developers (Gary R.  Van Sickle and Thomas Pfaff) which
might cause a little bit of a boost, too.

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: More pipe (and other) improvements in snapshot

2002-12-13 Thread Christopher Faylor
On Sat, Dec 14, 2002 at 12:27:44AM -0500, Christopher Faylor wrote:
On Fri, Dec 13, 2002 at 03:48:28PM +0100, Pavel Holejsovsky wrote:
[EMAIL PROTECTED] wrote:
Christopher Faylor wrote:
On Thu, Dec 12, 2002 at 07:32:16AM -0500, Norman Vine wrote:
Any 'tips' as to how to best debug this appreciated 

- Attach to the hung process with gdb and see where it is hung.

- Provide cygcheck output.

- Run under strace and see if you can infer where hangs or problems
 are occurring.

The hung process (sed) is actually not hung, but connected to stdin 
instead of file. The root cause is that when config.status is processed 
by bash, then sometimes `` construct forgets all output, causing 
different generated file names to be empty, thus connecting sed to stdin 
instead of some file. Following command line reproduces the bug for me:

while true; do test `echo foo` = foo || echo failed; done

When this command is run inside bash, then failed lines appear quite 
regularly. The bug is reproducible only with /bin/bash, /bin/sh works 
reliably.

I meant to test the above before I made some more changes to cygwin
to attempt to avoid data loss but I didn't get around to it.

So, there is a snapshot up there which may or may not solve the problem.
The above command doesn't die for me now, so I guess that's something.

I'll check the prevous snapshot tomorrow to see if it actually fails for
me.  I've been a little sick for a couple of weeks now and attempting to
stay with my work on real job in the day and cygwin at night scenario
is not working too well.

In the meantime, please try the current snapshot.  It is probably
slightly (but possibly unoticeably) slower but it should be very much
less likely to lose data in a pipe.

The latest snapshot also has some new inline assembly functions courtesy
of some cygwin-developers (Gary R.  Van Sickle and Thomas Pfaff) which
might cause a little bit of a boost, too.

Nevermind.  I just tried the current snapshot on my NT4 machien and it
puked all over the place.

I'll fix it tomorrow.  Please avoid this snapshot until then.

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: find -exec broken??

2002-12-13 Thread Elfyn McBratney
Hi,

What problem are you getting? I tried the your example on my system with and without 
the -ok arg ommitted:

[root@webdev]:{512}:% find . -type d -maxdepth 1 
.
./elfyn-tests
./src

[root@webdev]:{510}:% find . -type d -maxdepth 1 -ok ls -al {} \;
 ls ... .  ? yes
total 5897
drwxrwxrwx+   4 root root16384 Dec 12 03:23 .
drwxr-xr-x+  21 root root 4096 Dec 10 08:27 ..
-rwxrwxrwx+   1 root root   346642 Aug  3 19:38 atk-1.0.3.tar.gz
drwxrwxrwx+   2 root root0 Dec  8 09:07 elfyn-tests
-rw-rw-rw-1 root root   99 Dec  8 15:11 postgre.log
drwxrwxrwx+   4 root root 4096 Dec  8 09:07 src
-rwxrwxrwx+   1 admins   none  5665384 Dec 11 23:41 webmin-1.030.tar.gz
 ls ... ./elfyn-tests  ? yes
total 20
drwxrwxrwx+   2 root root0 Dec  8 09:07 .
drwxrwxrwx+   4 root root16384 Dec 12 03:23 ..
-rw-rw-rw-1 root root  689 Dec  3 00:42 setfacl.c
 ls ... ./src  ? yes
total 54432
drwxrwxrwx+   4 root root 4096 Dec  8 09:07 .
drwxrwxrwx+   4 root root16384 Dec 12 03:23 ..
drwxrwxrwx+   7 root root0 Dec  6 16:22 cygipc-1.13
-rwxrwxrwx+   1 root root79657 Dec  6 16:18 cygipc-1.13-2-src.tar.bz2
...
-rwxrwxrwx+   1 root root   172780 Dec  6 04:11 viewcvs-0.9.2.zip

This looks fine to me, as I would expect. Do you not get the output you expect?

Elfyn
[EMAIL PROTECTED]


--- Javier [EMAIL PROTECTED] wrote:
Hi!!

I am trying to use the -ok or the -exec actions of find, but I am
running into an odd error:

I want to list the dirs on a given dir, and then to do a bk edit on
them.

So, first I get the dirs listed (to see if I have the parms to find
well):

public_html find . -type d -maxdepth 1

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/

_
www.smokeJet.com - Free UK Internet Services

_
Select your own custom email address for FREE! Get [EMAIL PROTECTED] w/No Ads, 6MB, 
POP  more! http://www.everyone.net/selectmail?campaign=tag

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




query

2002-12-13 Thread mohit batra
hi 

  i am new to cygwin enviornment i just downloaded it
yesterday . i have an application written in linux 
downloaded from internet .it is a tar file . i want to
run it on windows 2000 can i do it using cygwin .


Regards 
Mohit Batra 

=
Mohit batra

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: query

2002-12-13 Thread Robert McNulty Junior
As a Linux program, No.
Get the source tar and compile it using GCC.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
Of mohit batra
Sent: Saturday, December 14, 2002 12:30 AM
To: [EMAIL PROTECTED]
Subject: query


hi

  i am new to cygwin enviornment i just downloaded it
yesterday . i have an application written in linux
downloaded from internet .it is a tar file . i want to
run it on windows 2000 can i do it using cygwin .


Regards
Mohit Batra

=
Mohit batra

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/





--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/