delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/01/05/07:10:45

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Message-ID: <30305.193.16.155.145.1104926914.squirrel@193.16.155.145>
In-Reply-To: <20050105100830.GB5240@cygbert.vinschen.de>
References: <pan DOT 2005 DOT 01 DOT 05 DOT 09 DOT 19 DOT 22 DOT 647025 AT hochreiter DOT at> <20050105100830 DOT GB5240 AT cygbert DOT vinschen DOT de>
Date: Wed, 5 Jan 2005 13:08:34 +0100 (CET)
Subject: Re: popen() fails while system() works
From: "Rainer Hochreiter" <rainer AT hochreiter DOT at>
To: cygwin AT cygwin DOT com
User-Agent: SquirrelMail/1.4.3a-0.f0.9.1.legacy
MIME-Version: 1.0
X-IsSubscribed: yes

> On Jan  5 10:19, Rainer Hochreiter wrote:
>> my main program 'mpsvcd.exe' dynamically loads a shared library using
>> dlopen(). one of the functions from this shared library calls popen() to
>> read the standard output from another executable - and this fails with
>> the
>> error messages listed below! using system() instead of popen() to start
>> the executable works fine, except that i can't read it's standard
>> output.
>> what's the difference between using popen() and system() here?
>> under linux popen() works also!
>>
>> any hints?
>
> Did you try to rebase the DLLs?  It looks like an address conflict:
>>
>> C:\cygwin\opt\topcall\bin\mpsvcd.exe (1340): *** unable to remap
>> C:\cygwin\bin\cygintl-2.dll to same address as parent(0x1CC0000) !=
>> 0x1CD0000
>
> See /usr/share/doc/Cygwin/rebase-2.3.README.
>

is this a new package?
didn't find it in my installation, but now I have it ;-)

well, do i have to rebase all DLLs on my installation, or only that
one mentioned by the error message?
won't destroy my installation if doing the wrong thing;-)


-- 
rainer hochreiter             | web:    www.hochreiter.at
lilienfelder str. 43          | e-mail: rainer AT hochreiter DOT at
a-3150 wilhelmsburg / austria | mobile: +43 664 2812175


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

- Raw text -


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