I'm trying to build python from scratch on cygwin and am running into "remap"
errors such as:
C:\cygwin\tmp\scipy_test\cygwin\Python-2.2.1\python.exe: *** unable
to remap C:\cyggdbm.dll to same address as parent -- 0x420000
I'm using the latests cygwin (1.3.10) on W2K. When trying to build python,
THings chug along just fine, and then I get the following:
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -DUSE_DL_IMPORT -I. -I/tmp/scipy_t
/Python-2.2.1/./Include -I/usr/local/include -IInclude/ -c /tmp/scipy_test/cygwi
.2.1/Modules/gdbmmodule.c -o build/temp.cygwin-1.3.10-i686-2.2/gdbmmodule.o
gcc -shared -Wl,--enable-auto-image-base build/temp.cygwin-1.3.10-i686-2.2/gdbmm
/usr/local/lib -L. -lgdbm -lpython2.2 -o build/lib.cygwin-1.3.10-i686-2.2/gdbm.d
Warning: resolving _gdbm_errno by linking to __imp__gdbm_errno (auto-import)
building 'termios' extension
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -DUSE_DL_IMPORT -I. -I/tmp/scipy_t
/Python-2.2.1/./Include -I/usr/local/include -IInclude/ -c /tmp/scipy_test/cygwi
.2.1/Modules/termios.c -o build/temp.cygwin-1.3.10-i686-2.2/termios.o
C:\cygwin\tmp\scipy_test\cygwin\Python-2.2.1\python.exe: *** unable to remap C:\
\cyggdbm.dll to same address as parent -- 0x420000
C:\cygwin\tmp\scipy_test\cygwin\Python-2.2.1\python.exe: *** unable to remap C:\
\cyggdbm.dll to same address as parent -- 0x420000
25 [main] python 1684 sync_with_child: child 1908(0x144) died before initia
ith status code 0x1
6684 [main] python 1684 sync_with_child: *** child state child loading dlls
error: Resource temporarily unavailable
make: *** [sharedmods] Error 1
I read a few mails about a rebase solution at:
http://sources.redhat.com/ml/cygwin/2001-12/msg00894.html
However, after building and running this on the percribed files, I get:
$ rebase -d -b 0x68000000 -o 0x10000 cygXpm-X4.dll cygXpm-noX4.dll cygbz21.
0.dll cygcrypto.dll cygform5.dll cygform6.dll cyggdbm.dll cyghistory4.dll c
yghistory5.dll cygintl.dll cygitcl30.dll cygitk30.dll cygjbig1.dll cygjpeg6
b.dll cygmenu5.dll cygmenu6.dll cygncurses++5.dll cygncurses++6.dll cygncur
ses5.dll cygncurses6.dll cygpanel5.dll cygpanel6.dll cygpcre.dll cygpcr
eposix.dll cygpng2.dll cygreadline4.dll cygreadline5.dll cygregex.dll cygss
l.dll cygtcl80.dll cygtclreg80.dll cygtiff3.dll cygtk80.dll cygz.dll
cygXpm-X4.dll: new base = 67fe0000, new size = 20000
cygXpm-noX4.dll: new base = 67fc0000, new size = 20000
cygbz21.0.dll: new base = 67f90000, new size = 30000
cygcrypto.dll: new base = 67ee0000, new size = b0000
ReBaseImage() failed with last error = 2
Can anyone point out the error in my ways, or point me to a fix?
thanks,
eric
--
Eric Jones <eric at enthought.com>
Enthought, Inc. [www.enthought.com and www.scipy.org]
(512) 536-1057
> Hello,
>
> I'm trying to build python from scratch on cygwin and am running into "remap"
> errors such as:
>
> C:\cygwin\tmp\scipy_test\cygwin\Python-2.2.1\python.exe: *** unable
> to remap C:\cyggdbm.dll to same address as parent -- 0x420000
[...]
> Can anyone point out the error in my ways, or point me to a fix?
Try linking _socket statically. Doesn't the README say this?
Cheers,
M.
(recent NT escapee -- so no more cygwin help, I'm afraid, Jason)
--
112. Computer Science is embarrassed by the computer.
-- Alan Perlis, http://www.cs.yale.edu/homes/perlis-alan/quotes.html
On Thu, Apr 11, 2002 at 08:26:22PM -0400, eric wrote:
> I read a few mails about a rebase solution at:
>
> http://sources.redhat.com/ml/cygwin/2001-12/msg00894.html
>
> However, after building and running this on the percribed files, I get:
>
> $ rebase -d -b 0x68000000 -o 0x10000 cygXpm-X4.dll ...
> [snip]
> cygXpm-X4.dll: new base = 67fe0000, new size = 20000
> cygXpm-noX4.dll: new base = 67fc0000, new size = 20000
> cygbz21.0.dll: new base = 67f90000, new size = 30000
> cygcrypto.dll: new base = 67ee0000, new size = b0000
> ReBaseImage() failed with last error = 2
>
> Can anyone point out the error in my ways, or point me to a fix?
Replace the argument list above with the cyg*.dll files in *your*
/usr/bin. The "last error = 2" error message is caused by a file not
found condition. A later version of rebase displays better error messages
that make this more obvious.
See the following for more (possibly useful) information:
http://www.zope.org/Members/dgeorgieff/howto_zope_cvs_on_cygwin/
Otherwise, just follow Michael's suggestion and build _socket statically.
I will try to release a pre-built 2.2.1 ASAP.
Jason
On Fri, Apr 12, 2002 at 09:38:22AM +0000, Michael Hudson wrote:
> (recent NT escapee -- so no more cygwin help, I'm afraid, Jason)
Congratulations on your new found freedom. :,) I'm sorry to see you go,
but thanks for your help.
Jason