Re: Cygwin + Python: unable to remap

2010-09-18 Thread Reini Urban
Al schrieb: Or, read from stdin as follows: $ "something that generates extra DLL list" | rebaseall -T - ... As example, "something that gernates extra DLL list" looks in my case like this. PREFIX=/home/prefix/gentoo find $PREFIX/bin/ -name *.dll -o -name *.so find $PREFIX/lib/ -name *.dl

Re: Cygwin + Python: unable to remap

2010-09-17 Thread Al
> > Or, read from stdin as follows: > >    $ "something that generates extra DLL list" | rebaseall -T - ... > As example, "something that gernates extra DLL list" looks in my case like this. PREFIX=/home/prefix/gentoo find $PREFIX/bin/ -name *.dll -o -name *.so find $PREFIX/lib/ -name *.dll -o -n

Re: Cygwin + Python: unable to remap

2010-09-17 Thread Jason Tishler
On Fri, Sep 17, 2010 at 02:53:53PM +0200, Al wrote: > > You just need to use the -T option and specify the addition DLLs to > > rebase. > > Thank you very much. You are quite welcome. > [snip] > > To give the future reader of this thread some additional value. I > first gave the DLL file itself

Re: Cygwin + Python: unable to remap

2010-09-17 Thread Al
> The rebase README indicates the following: > > The following is the rebaseall command line syntax: > >    rebaseall [-b BaseAddress] [-o Offset] [-T FileList | -] [-v] > > where: > >    -b => base address used by rebase (default: 0x7000) >    -o => offset between each DLL rebased (default: 0x

Re: Cygwin + Python: unable to remap

2010-09-17 Thread Al
> > The following is the rebaseall command line syntax: > >    rebaseall [-b BaseAddress] [-o Offset] [-T FileList | -] [-v] > > where: > >    -b => base address used by rebase (default: 0x7000) >    -o => offset between each DLL rebased (default: 0x1) >    -s => specify DLL suffix, use mul

Re: Cygwin + Python: unable to remap

2010-09-17 Thread Jason Tishler
Al, On Fri, Sep 17, 2010 at 11:24:10AM +0200, Al wrote: > > It's not that simple :) > > > > rebaseall only rebases the exact dll's which were installed from your > > packager (setup.exe), > > but not any other dll's used at run-time - shadowing system dll's as > > in your case, or added dependenci

Re: Cygwin + Python: unable to remap

2010-09-17 Thread Al
> > It's not that simple :) > > rebaseall only rebases the exact dll's which were installed from your > packager (setup.exe), > but not any other dll's used at run-time - shadowing system dll's as > in your case, or added dependencies as with perl or python. Hmmm, that leads to the conclusion, tha

Re: Cygwin + Python: unable to remap

2010-09-17 Thread Reini Urban
2010/9/17 Mark Geisert: > Al writes: >> 2010/9/16 Mark Geisert: >> >> >     cygncurses5.dll => /home/prefix/gentoo/usr/bin/cygncurses5.dll >> >> > (0x1000) >> > >> > This one is below the sixty million value that Reini described as > suspicious. >> >> Now what do I make of that. Do I tell it to

Re: Cygwin + Python: unable to remap

2010-09-16 Thread Mark Geisert
Al writes: > 2010/9/16 Mark Geisert XX.XXX>: Please don't feed the spammers. > >> >    cygncurses5.dll => /home/prefix/gentoo/usr/bin/cygncurses5.dll > >> > (0x1000) > > > > This one is below the sixty million value that Reini described as suspicious. > > Now what do I make of that. Do

Re: Cygwin + Python: unable to remap

2010-09-16 Thread Al
2010/9/16 Mark Geisert : >> >>  ldd /bin/bash >> > >> > prefix Alder ~ $ ldd ~/gentoo/bin/bash.exe >> >        ntdll.dll => /cygdrive/c/Windows/system32/ntdll.dll (0x7796) >> >        kernel32.dll => /cygdrive/c/Windows/system32/kernel32.dll >> > (0x7788) >> >        cygncurses5.dll => /h

Re: Cygwin + Python: unable to remap

2010-09-16 Thread Al
To compare both: >> Everything below 0x6000 should be suspicious: >>  ldd /bin/python.exe > > pre...@alder ~ $ ldd ~/gentoo/usr/bin/python2.6.exe >        ntdll.dll => /cygdrive/c/Windows/system32/ntdll.dll (0x7796) >        kernel32.dll => /cygdrive/c/Windows/system32/kernel32.dll (0x7788

Re: Cygwin + Python: unable to remap

2010-09-16 Thread Al
> > Cygwin Python binary is working. Something must be wrong with my own > cygwin build I guess. correct: ... with my own Python build ... -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Uns

Re: Cygwin + Python: unable to remap

2010-09-16 Thread Al
> > Did rebaseall really succeed successfully? I turned off Avira. Rebaseall was successfull (no warnings or else). Did also reboot. > Looks like one dll is at a wrong baseaddress. I often had /bin/cygz.dll > wrong. > > Everything below 0x6000 should be suspicious: >  ldd /bin/python.exe pre

Re: Cygwin + Python: unable to remap

2010-09-16 Thread Reini Urban
Al schrieb: To give some additional information: If I run the program several times (without rebasing in between) the addresses always change. I don't see a pattern in it: > 2 [main] python2.6 3592 P:\cygwin\home\prefix\gentoo\usr\bin\python2.6.exe: *** fatal error - unable to remap P:\c

Re: Cygwin + Python: unable to remap

2010-09-16 Thread Al
To give some additional information: If I run the program several times (without rebasing in between) the addresses always change. I don't see a pattern in it: 2 [main] python2.6 384 P:\cygwin\home\prefix\gentoo\usr\bin\python2.6.exe: *** fatal error - unable to remap P:\cygwin\home\prefix\ge