Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Wed, 5 Jan 2005 11:08:30 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: popen() fails while system() works
Message-ID: <20050105100830.GB5240@cygbert.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <pan.2005.01.05.09.19.22.647025@hochreiter.at>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <pan.2005.01.05.09.19.22.647025@hochreiter.at>
User-Agent: Mutt/1.4.2i

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.


HTH
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          mailto:cygwin@cygwin.com
Red Hat, Inc.

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

