www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2000/05/21/18:40:50

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-developers-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com
From: Chris Faylor <cgf AT cygnus DOT com>
Date: Sun, 21 May 2000 18:40:38 -0400
To: cygwin-developers AT sourceware DOT cygnus DOT com
Subject: Re: Can't execute Cygwin applications directly on cmd.exe
Message-ID: <20000521184038.D1386@cygnus.com>
Reply-To: cygwin-developers AT sourceware DOT cygnus DOT com
Mail-Followup-To: cygwin-developers AT sourceware DOT cygnus DOT com
References: <s1sd7mfhkx4 DOT fsf AT jaist DOT ac DOT jp>
Mime-Version: 1.0
User-Agent: Mutt/1.2i
In-Reply-To: <s1sd7mfhkx4.fsf@jaist.ac.jp>; from fujieda@jaist.ac.jp on Mon, May 22, 2000 at 02:28:55AM +0900

On Mon, May 22, 2000 at 02:28:55AM +0900, Kazuhiro Fujieda wrote:
>I can't execute Cygwin applications directly on the command
>prompt (cmd.exe) as the following since 2000/05/16. I can
>observe this problem only on NT4 Sp6a.
>
>Microsoft(R) Windows NT(R)
>(C) Copyright 1985-1996 Microsoft Corp.
>
>C:\Home\fujieda>ls
>C:\CYGWIN\USR\BIN\ls.exe: *** couldn't dynamically determine load address for 'NetWkstaUserGetInfo', Win32 error 127
>
>C:\Home\fujieda>
>
>It is triggered by the following modification in dcrt0.cc.
>I confirmed it was solved by canceling the modification.

Obviously this isn't a problem for me.  Can you tell me why moving an
initialization routine three or four lines up causes this behavior?
It makes no sense to me so there's no way I'll be able to debug it.

cgf

>Index: dcrt0.cc
>===================================================================
>RCS file: /cvs/src/src/winsup/cygwin/dcrt0.cc,v
>retrieving revision 1.13
>retrieving revision 1.14
>diff -u -r1.13 -r1.14
>--- dcrt0.cc	2000/05/13 01:42:53	1.13
>+++ dcrt0.cc	2000/05/17 05:49:51	1.14
>@@ -746,14 +746,14 @@
>   set_errno (0);
>   debug_printf ("user_data->main %p", user_data->main);
> 
>+  /* Initialize uid, gid. */
>+  uinfo_init ();
>+
>   /* Flush signals and ensure that signal thread is up and running. Can't
>      do this for noncygwin case since the signal thread is blocked due to
>      LoadLibrary serialization. */
>   if (!dynamically_loaded)
>     sig_send (NULL, __SIGFLUSH);
>-
>-  /* Initialize uid, gid. */
>-  uinfo_init ();
> 
>   if (user_data->main && !dynamically_loaded)
>     exit (user_data->main (argc, argv, *user_data->envptr));
>____
>  | AIST      Kazuhiro Fujieda <fujieda AT jaist DOT ac DOT jp>
>  | HOKURIKU  School of Information Science
>o_/ 1990      Japan Advanced Institute of Science and Technology

-- 
cgf AT cygnus DOT com                        Cygnus Solutions, a Red Hat company
http://sourceware.cygnus.com/         http://www.redhat.com/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019