This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: unable to remap to same address as parent - despite rebaseall


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 
> http://www.mylifestartingup.com/2009/04/fatal-error-unable-to-remap-to-same.html
> but to no avail.
>
> Anybody knows?
>

rebaseall does the following to get a list of objects that need to be 
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 
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 
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]