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 *.dll

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 be loaded elsewhere?

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, that I

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 dependencies as with

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

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: 0x1)    

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

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 -name *.so

Cygwin + Python: unable to remap

2010-09-16 Thread Al
Hello, I knew in advance this would be one of the difficult points. I compiled python and ncurses on a prefix. Now I get the following error: 2 [main] python2.6 1180 P:\cygwin\home\prefix\gentoo\usr\bin\python2.6.exe: *** fatal error - unable to remap

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

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

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

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

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
2010/9/16 Mark Geisert m...@maxrnd.com:  ldd /bin/bash prefix at 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 =

Re: Cygwin + Python: unable to remap

2010-09-16 Thread Mark Geisert
Al writes: 2010/9/16 Mark Geisert at 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 I tell