delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/12/07/11:42:40

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:subject:from:to:mime-version
:content-type:content-transfer-encoding; q=dns; s=default; b=gDL
775EEo0UzvDs7LzdBipOOPvBRYy8B+NZJX1OwOKrOlaXo8GusAnJN2dtkd5/i6tp
MbWXe1zS5TDf74EJmCg7d27UVFwUqAZSfcuc6Us/pJviRm/NfItOkURX9JCjkD/+
H+lHSuFQ857OLbKOQHa+TFaX4zoM1sBqqu7biL6M=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:subject:from:to:mime-version
:content-type:content-transfer-encoding; s=default; bh=jz+yEF+8Q
aY4NmqTLVJNUuqHq4g=; b=NEybHeRiW8oxZUQszEVzTObebfWoqcvbozihRLmf2
MrRO7GEMLQu7+fudWp/Qx+jwWEsmJ/XhwqnyfG0WnFcEjCQOCvCnBHJbade1aEI8
D4ui09unfmCxBfownXHLbbETa9bWIhwcbOQ42F3NzC3POcpztHn30fAgbeS6p6Gd
WM=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.8 required=5.0 tests=BAYES_50,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: ZFT-SERVER-1.telematik-zentrum.de
Message-ID: <0f351be10c654cc4972881f6a9b306da.squirrel@zft-server-1.telematik-zentrum.de>
Date: Sun, 7 Dec 2014 17:42:16 +0100
Subject: Problem with using a packaged cygwin with another cygwin-installation in C:\cygwin
From: "Michael Fritscher" <michael DOT fritscher AT telematik-zentrum DOT de>
To: cygwin AT cygwin DOT com
User-Agent: SquirrelMail/1.4.21
MIME-Version: 1.0
X-IsSubscribed: yes

Good afternoon,

we want to distribute a small set of cygwin-based programs (mainly
ffmpeg/ffserver a view utilities and a combining script) in your facility.
The problem is that some of the users have a "normal" cygwin installation
in c:\cygwin, but on a different version, so I get the infamous "heap size
mismatch error. The funny thing is that I get the error only on one way
starting it:

  * let java do a  Runtime.getRuntime().exec("c:\temp\v\sh -l -c
/cygdrive/c/temp/v/s.sh");
  * in the s.sh there are commands like ls or cat

Then the ls/cat (but not the sh!) crashes.

If I start the sh with the same parameters in cmd.exe, it is working fine.
I assume that Java and cmd do the start on different ways (E.g. the
environment variables are quite different). No, doing things like
Runtime.getRuntime().exec("cmd.exe /C c:\temp\v\sh -l -c
/cygdrive/c/temp/v/s.sh"); doesn't help, getting the same error. I assume
that the binaries want to take some optional dlls from c:\cygwin\bin,
which are not compatible...

So:
1. How do I get a list of the optional dlls?
2. (the better way) How can I restrict the executables to use only dlls on
the current directory?

Ah, I'm using 32 bit cygwin on a 64 bit Windows 7 SP1.

Best regards,
Michael Fritscher


-- 
ZfT - Zentrum für Telematik e.V.
Michael Fritscher
Allesgrundweg 12
97218 Gerbrunn
Tel:  +49 (931) 3 29 29 54 - 21
Email: michael DOT fritscher AT telematik-zentrum DOT de
Web: http://www.telematik-zentrum.de



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