delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/04/05/17:46:12

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
X-ASG-Debug-ID: 1302039959-2814c2fc0001-w5GHUG
X-Barracuda-Envelope-From: Illia DOT Bobyr AT ronin-capital DOT com
From: Illia Bobyr <Illia DOT Bobyr AT ronin-capital DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
CC: Redd Vinylene <reddvinylene AT gmail DOT com>
Date: Tue, 5 Apr 2011 16:45:56 -0500
X-ASG-Orig-Subj: Re: unable to remap to same address as parent - despite rebaseall
Subject: Re: unable to remap to same address as parent - despite rebaseall
Message-ID: <4D9B8D94.5080303@ronin-capital.com>
References: <BANLkTim4ea-Li80RfEVLQ4AgXQtVhsTUtg AT mail DOT gmail DOT com>
In-Reply-To: <BANLkTim4ea-Li80RfEVLQ4AgXQtVhsTUtg@mail.gmail.com>
user-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.9
MIME-Version: 1.0
X-Barracuda-Connect: UNKNOWN[10.106.240.22]
X-Barracuda-Start-Time: 1302039959
X-Barracuda-Encrypted: AES128-SHA
X-Barracuda-URL: http://spam01.roncap.com:8000/cgi-mod/mark.cgi
X-IsSubscribed: yes
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

On 4/2/2011 7:45 AM, Redd Vinylene wrote:
>
> Hi!
>
> I'm on Windows 7 and I'm getting:
>
> fatal error - unable to remap
> \\?\C:\cygwin\lib\ruby\gems\1.8\gems\bcrypt-ruby-2.1.4\lib\bcrypt_ext.so
> to same address as parent:
>
> http://pastie.org/1747060
>
> I tried=20
> http://www.mylifestartingup.com/2009/04/fatal-error-unable-to-remap-to-sa=
me.html
> but to no avail.
>
> Anybody knows?
>

rebaseall does the following to get a list of objects that need to be=20
rebased:

     find /etc/setup -name '*.lst.gz' | \
         xargs gzip -d -c | \
         grep -E "\.(dll|so)\$" | \
         sed -e '/cygwin1\.dll$/d' -e '/cyglsa.*\.dll$/d' -e 's/^/\//'

The gems, I guess, do not add lst.gz files to the /ets/setup, thus=20
rebaseall does not know about any DLLs or SOs they install.
But it is possible to provide a list of objects that need to be rebased=20
in addition to the default list when you run rebaseall.

You can probably do something like this:

     find /lib/ruby/gems -iname '*.so' > /tmp/ruby.gems.local.so.lst

Then "quit" cygwin and rebaseall like this:

     /usr/bin/rebaseall -T /tmp/ruby.gems.local.so.lst

Ilya Bobyr

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