delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/10/01/09:59:02

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <4AC4B592.9070409@bonhard.uklinux.net>
Date: Thu, 01 Oct 2009 14:58:42 +0100
From: Fergus <fergus AT bonhard DOT uklinux DOT net>
User-Agent: Thunderbird 2.0.0.22 (Windows/20090605)
MIME-Version: 1.0
To: Cygwin ML <cygwin AT cygwin DOT com>
CC: Fergus <fergus AT bonhard DOT uklinux DOT net>
Subject: Re: Error in [1.7] involving /netrel/src/cygwin-1.7.0-61/winsup/cygwin/mount.cc
References: <4AC4AADE DOT 4050401 AT bonhard DOT uklinux DOT net>
In-Reply-To: <4AC4AADE.4050401@bonhard.uklinux.net>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

> It ties in with what the assert is complaining about.

> Are you launching this from a bash shell or from some win32 context like
> cmd.exe?  And is the exe itself a cygwin or win32 exe?  And is it doing
> anything tricky like trying to dynamically load the cygwin dll?  Is the cygwin
> dll that it is running against installed in the standard location or somewhere
> else?  It does sound likes something's up with the stage where it tries to
> locate the root directory by assuming the cygwin dll lives in a "bin/"
> subdirectory and ascending one level...


OK, Poirot. The executable is built in Cygwin using the command "gcc 
-static .." and I run it outside Cygwin from a Command Prompt window. 
The -static switch actually works, in that it reduces the executable's 
dependencies from cygwin1.dll + several others, to cygwin1.dll alone. 
The executable is then co-located with cygwin1.dll and together the duo 
provide me with a portable application. (Actually a fast and elaborate 
stats package, amazingly compact with exe + cygwin1.dll ~ 3 MB, and 
fully operable on host machines a million miles from the nearest Cygwin 
installation.)
Typically they reside at the root of a USB stick, but I noticed the 
reported failure on moving from [1.5] to [1.7]. If I move both files 
down one or more levels (and it doesn't matter what I name the 
subdirectory(ies) whether as \bin\ or \anything\else\) then everything 
works just fine.
I'm sure you're right, that it's something to do with where cygwin1.dll 
[1.7] expects to find itself (cf. [1.5]) and the "cure" is similarly 
very suggestive of this. I'm dead happy to live with it once I 
understand it, if only approximately.
Thank you very much indeed for your helpful insight, greatly appreciated.
Fergus


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

- Raw text -


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